/* Fandez — UI clara (nunca dark). Fondo blanco en todas las plataformas. */
/* Aland (asistente) = teal; peligro = solo errores, nunca CTA */
/* Legacy: brand/v1-azul/ · brand/v2-ambar/ */
:root {
  color-scheme: light only;
  --zilo-bg: #FFFFFF;
  --zilo-surface: #FFFFFF;
  --zilo-card: #FFFFFF;
  --zilo-elevated: #FFFFFF;
  --zilo-accent: #C45C14;
  --zilo-accent-rgb: 196, 92, 20;
  --zilo-accent-soft: #F6E6D4;
  --zilo-accent-strong: #A84E10;
  --zilo-text: #1A1814;
  --zilo-muted: #6B635A;
  --zilo-border: #E6E0D8;
  --zilo-success: #2F6B4F;
  --zilo-warning: #B47814;
  --zilo-danger: #B83A2E;
  --aland: #2A6A5B;
  --aland-soft: #E4F0EC;
  --aland-strong: #1F5045;
  --zilo-radius-btn: 0.875rem;
  --zilo-radius-card: 1rem;
  --zilo-shadow: 0 1px 2px rgba(26, 24, 20, 0.05);
  --zilo-shadow-md: 0 1px 2px rgba(26, 24, 20, 0.04), 0 6px 16px rgba(26, 24, 20, 0.06);
}

html {
  color-scheme: light only;
  background-color: var(--zilo-bg);
}

@media (prefers-color-scheme: dark) {
  html, body, :root {
    color-scheme: light only;
    background-color: var(--zilo-bg);
  }
}

/* Aland — asistente (teal, no violeta “IA”) */
.aland-surface {
  background: var(--aland-soft);
  border-color: rgba(17, 94, 89, 0.28);
}
.aland-text { color: var(--aland-strong); }
.aland-btn {
  background: var(--aland);
  color: #fff;
  border: 1px solid var(--aland-strong);
}
.aland-btn:hover { background: var(--aland-strong); }
.aland-chip {
  background: rgba(17, 94, 89, 0.12);
  color: var(--aland-strong);
  border: 1px solid rgba(17, 94, 89, 0.22);
}

.zilo-body {
  color-scheme: light only;
  background-color: var(--zilo-bg);
  background-image: none;
}

.fandez-wordmark {
  font-family: Unbounded, 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--zilo-text);
  line-height: 1;
}

.fandez-logo-mark {
  display: block;
  flex-shrink: 0;
}

.zilo-display {
  font-family: 'Bricolage Grotesque', 'Source Sans 3', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--zilo-text);
}

.zilo-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--zilo-muted);
}

.zilo-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
}

.zilo-choice-grid > label {
  display: flex;
  min-width: 0;
  cursor: pointer;
}

.zilo-choice-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 4.75rem;
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--zilo-border);
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.zilo-choice-card .zilo-choice-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
}

.zilo-choice-card .zilo-choice-desc {
  display: block;
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--zilo-muted);
  margin-top: 0.125rem;
}

.zilo-choice-card.zilo-choice-card--compact .zilo-choice-title {
  font-size: 0.8125rem;
  line-height: 1.3;
}

.zilo-card-premium {
  background: var(--zilo-surface);
  border: 1px solid var(--zilo-border);
  box-shadow: var(--zilo-shadow);
}

.zilo-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.35rem;
  border-radius: var(--zilo-radius-btn);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #FFFFFF;
  background: var(--zilo-accent);
  border: 1px solid transparent;
  box-shadow: none;
  transition: background-color 0.15s ease;
}
.zilo-btn-primary:hover:not(:disabled) {
  background: var(--zilo-accent-strong);
}
.zilo-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.zilo-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: var(--zilo-radius-btn);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--zilo-text);
  border: 1px solid var(--zilo-border);
  background: #FFFFFF;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.zilo-btn-ghost:hover {
  color: var(--zilo-accent);
  border-color: rgba(var(--zilo-accent-rgb), 0.35);
  background: var(--zilo-accent-soft);
}

.zilo-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: #FFFFFF;
  border: 1px solid var(--zilo-border);
  color: var(--zilo-text);
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.zilo-input::placeholder { color: #9A9288; }
.zilo-input:focus {
  outline: none;
  border-color: rgba(var(--zilo-accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--zilo-accent-rgb), 0.12);
}

.password-field-input {
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #6B7280;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.password-toggle:hover {
  color: var(--zilo-accent);
  background: rgba(196, 92, 20, 0.06);
}
.password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(196, 92, 20, 0.18);
}

.zilo-select-tech {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1.5px solid rgba(var(--zilo-accent-rgb), 0.3);
  background-color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23C45C14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.1rem;
  appearance: none;
  -webkit-appearance: none;
  color: var(--zilo-text);
  font-weight: 500;
}
.zilo-select-tech:focus {
  border-color: rgba(196, 92, 20, 0.65);
  box-shadow: 0 0 0 3px rgba(196, 92, 20, 0.12);
  outline: none;
}
.zilo-select-tech:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.job-chat-bubble {
  max-width: 88%;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.job-chat-bubble--mine {
  margin-left: auto;
  background: #C45C14;
  color: #FFFFFF;
  border-bottom-right-radius: 0.3rem;
}
.job-chat-bubble--mine .job-chat-meta,
.job-chat-bubble--mine .job-chat-role {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.18);
}
.job-chat-bubble--theirs {
  margin-right: auto;
  background: #FFFFFF;
  color: #0F172A;
  border: 1px solid #E2E8F0;
  border-bottom-left-radius: 0.3rem;
}
.job-chat-bubble--role-client.job-chat-bubble--theirs {
  border-left: 3px solid #64748B;
}
.job-chat-bubble--role-provider.job-chat-bubble--theirs {
  border-left: 3px solid #C45C14;
}
.job-chat-bubble--role-tecnico.job-chat-bubble--theirs {
  border-left: 3px solid #059669;
}
.job-chat-bubble--system {
  margin: 0.35rem auto;
  max-width: 95%;
  background: #F1F5F9;
  color: #64748B;
  font-size: 0.72rem;
  text-align: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  box-shadow: none;
}
.job-chat-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.65rem;
  color: #64748B;
  margin-bottom: 0.3rem;
}
.job-chat-meta__time {
  opacity: 0.85;
}
.job-chat-role {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #E2E8F0;
  color: #334155;
}
.job-chat-role--client { background: #E2E8F0; color: #334155; }
.job-chat-role--provider { background: #E4F0EC; color: #2A6A5B; }
.job-chat-role--tecnico { background: #D1FAE5; color: #047857; }
.job-chat-name {
  font-weight: 600;
  color: inherit;
}

.job-chat-panel,
.job-chat-sheet {
  color-scheme: only light;
  background: #FFFFFF !important;
  color: #0F172A;
}
.job-chat-thread {
  background: #F8FAFC;
}
.job-chat-composer {
  color-scheme: only light;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  padding: 0.85rem 1rem 1rem;
}
.job-chat-composer__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 0.4rem;
}
.job-chat-composer__row {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
}
.job-chat-input {
  flex: 1;
  min-width: 0;
  min-height: 2.85rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.85rem;
  border: 1.5px solid #94A3B8 !important;
  background: #F8FAFC !important;
  color: #0F172A !important;
  font-size: 0.9rem;
  line-height: 1.35;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.job-chat-input::placeholder {
  color: #64748B !important;
  opacity: 1;
}
.job-chat-input:focus {
  outline: none;
  border-color: #C45C14 !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(196, 92, 20, 0.18);
}
.job-chat-send {
  flex-shrink: 0;
  min-width: 5.5rem;
  padding: 0.7rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  background: var(--zilo-accent);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 700;
}
.job-chat-send:disabled {
  opacity: 0.55;
}
.job-chat-composer__hint {
  margin-top: 0.45rem;
  font-size: 0.7rem;
  color: #64748B;
}

.zilo-health-ring {
  position: relative;
  width: 120px;
  height: 120px;
}
.zilo-health-ring svg { transform: rotate(-90deg); }
.zilo-health-ring .score {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scrollbar-hide { scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

#toast-container {
  position: fixed;
  top: max(1rem, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: calc(100% - 2rem);
  max-width: 420px;
  pointer-events: none;
}

.toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem 0.875rem 1.05rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--zilo-text);
  background: #FFFFFF;
  border: 1px solid var(--zilo-border);
  box-shadow: var(--zilo-shadow-md);
  animation: toastIn 0.28s ease-out;
  pointer-events: auto;
  overflow: hidden;
  cursor: pointer;
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0.75rem 0 0 0.75rem;
  background: currentColor;
  opacity: 0.9;
}

.toast-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}

.toast-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.toast-body {
  flex: 1;
  min-width: 0;
  padding-top: 0.15rem;
}

.toast-success {
  color: #0B5A40;
  background: #FFFFFF;
  border-color: rgba(15, 122, 86, 0.28);
}
.toast-success::before { background: #0F7A56; }
.toast-success .toast-icon {
  color: #0F7A56;
  background: rgba(15, 122, 86, 0.1);
}

.toast-info {
  color: #143A6B;
  background: #FFFFFF;
  border-color: rgba(196, 92, 20, 0.25);
}
.toast-info::before { background: #C45C14; }
.toast-info .toast-icon {
  color: #C45C14;
  background: rgba(196, 92, 20, 0.1);
}

.toast-warning {
  color: #6B3F0A;
  background: #FFFFFF;
  border-color: rgba(180, 120, 20, 0.28);
}
.toast-warning::before { background: #B47814; }
.toast-warning .toast-icon {
  color: #9A6510;
  background: rgba(180, 120, 20, 0.12);
}

.toast-error {
  color: #7A1F1A;
  background: #FFFFFF;
  border-color: rgba(192, 57, 43, 0.25);
}
.toast-error::before { background: #C0392B; }
.toast-error .toast-icon {
  color: #C0392B;
  background: rgba(192, 57, 43, 0.1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(-6px); }
}
.toast.toast-leaving {
  animation: toastOut 0.3s ease forwards;
}

.trip-step {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  position: relative;
  opacity: 0.45;
  transition: opacity 0.3s;
}
.trip-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 28px;
  bottom: -2px;
  width: 2px;
  background: rgba(196, 92, 20, 0.18);
}
.trip-step.done { opacity: 0.75; }
.trip-step.done .trip-dot { background: var(--zilo-success); box-shadow: none; }
.trip-step.active { opacity: 1; }
.trip-step.active .trip-dot { background: var(--zilo-accent); box-shadow: none; }
.trip-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #D8DCE5;
  flex-shrink: 0;
  margin-top: 2px;
  border: 2px solid rgba(196, 92, 20, 0.2);
}

/* Seguimiento en vivo tipo Uber / PedidosYa */
.live-track-shell {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--zilo-border);
  background: #EDE8E1;
}
.live-track-shell #trackingMap,
.live-track-shell #guardianMap,
.live-track-shell .leaflet-container {
  width: 100%;
  height: 18rem;
  border: 0;
  border-radius: 0;
  z-index: 0;
}
@media (min-width: 480px) {
  .live-track-shell #trackingMap,
  .live-track-shell #guardianMap,
  .live-track-shell .leaflet-container {
    height: 22rem;
  }
}
.live-track-eta {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(26, 24, 20, 0.08);
  box-shadow: 0 8px 24px rgba(26, 24, 20, 0.12);
  backdrop-filter: blur(8px);
}
.live-track-eta__time {
  font-family: 'Bricolage Grotesque', 'Source Sans 3', system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--zilo-accent);
  min-width: 3.2rem;
}
.live-track-eta__time small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--zilo-muted);
  margin-top: 0.15rem;
}
.live-track-eta__copy strong {
  display: block;
  font-size: 0.9rem;
  color: var(--zilo-text);
}
.live-track-eta__copy span {
  display: block;
  font-size: 0.72rem;
  color: var(--zilo-muted);
  margin-top: 0.1rem;
}
.live-track-eta.is-waiting .live-track-eta__time {
  color: var(--zilo-text);
  font-size: 1.05rem;
}
.live-track-hint {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: var(--zilo-muted);
}
.fandez-tech-marker {
  position: relative;
  width: 44px;
  height: 44px;
}
.fandez-tech-marker__pulse {
  position: absolute;
  inset: 4px;
  border-radius: 999px;
  background: rgba(42, 106, 91, 0.28);
  animation: fandezTechPulse 1.8s ease-out infinite;
}
.fandez-tech-marker__dot {
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: #2A6A5B;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(26, 24, 20, 0.25);
}
@keyframes fandezTechPulse {
  0% { transform: scale(0.75); opacity: 0.85; }
  100% { transform: scale(1.55); opacity: 0; }
}
.fandez-map-pin {
  background: transparent !important;
  border: 0 !important;
}

/* Logo UI: contraste estable en fondos oscuros / dark mode forzado */
.fandez-logo-mark {
  display: block;
  flex-shrink: 0;
  color-scheme: only light;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(196, 92, 20, 0.12);
}

.admin-tabs { scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }

.zilo-icon-wrap {
  background: #FFFFFF;
  border: 1px solid var(--zilo-border);
  box-shadow: none;
  color: #4B5563;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.zilo-icon-wrap .zilo-icon {
  opacity: 0.88;
}
.group:hover .zilo-icon-wrap {
  transform: none;
  background: #FAFBFC;
  border-color: rgba(196, 92, 20, 0.22);
  color: var(--zilo-accent);
  box-shadow: none;
}
.group:hover .zilo-icon-wrap .zilo-icon {
  opacity: 1;
}

/* Especialidades — pills minimalistas */
.zilo-icon-hero {
  background: var(--zilo-elevated);
  border-color: transparent;
  color: var(--zilo-text);
}

.zilo-specialty-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--zilo-text);
  background: #FFFFFF;
  border: 1px solid var(--zilo-border);
  transition: border-color 0.15s, background 0.15s;
}
.zilo-specialty-pill:hover {
  border-color: rgba(196, 92, 20, 0.28);
  background: var(--zilo-accent-soft);
}
.zilo-specialty-pill .zilo-icon-wrap {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  border-color: transparent;
  background: var(--zilo-elevated);
  color: var(--zilo-muted);
}
.zilo-specialty-pill:hover .zilo-icon-wrap {
  background: var(--zilo-accent-soft);
  color: var(--zilo-accent);
  border-color: transparent;
  box-shadow: none;
}

.zilo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: #FFFFFF;
  color: var(--zilo-text);
  border: 1px solid var(--zilo-border);
}
.zilo-tag .zilo-icon-wrap {
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 0.375rem;
  border: none;
  background: #F2F4F7;
  color: #6B7280;
}

.zilo-icon { display: block; }

.fandez-map-panel {
  position: relative;
  isolation: isolate;
}

.leaflet-container {
  background: #F4F7FB !important;
  border-radius: 1rem;
  font-family: 'Source Sans 3', system-ui, sans-serif;
}

.fandez-map-panel .leaflet-container {
  border-radius: 1rem;
}
.leaflet-tile {
  filter: saturate(0.95) contrast(1.02);
}
.leaflet-popup-content-wrapper {
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  border-radius: 16px;
  border: 1px solid rgba(230, 233, 239, 0.9);
  box-shadow: 0 18px 44px rgba(16,24,40,0.18);
  backdrop-filter: blur(10px);
}
.leaflet-popup-content {
  margin: 0.75rem 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}
.leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.96);
}
.leaflet-control-zoom {
  border: none !important;
  border-radius: 14px !important;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(16,24,40,0.16);
}
.leaflet-control-zoom a {
  width: 2.25rem !important;
  height: 2.25rem !important;
  line-height: 2.15rem !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #111827 !important;
  border-color: rgba(230, 233, 239, 0.9) !important;
  font-weight: 700;
}
.leaflet-control-attribution {
  border-top-left-radius: 10px;
  background: rgba(255, 255, 255, 0.78) !important;
  color: #6B7280 !important;
  font-size: 0.625rem;
}
.fandez-map-pin {
  background: transparent !important;
  border: none !important;
}

.fandez-map-pin svg {
  display: block;
  filter: none;
}

.toggle-ios { position: relative; width: 56px; height: 32px; flex-shrink: 0; }
.toggle-ios input { opacity: 0; width: 0; height: 0; }
.toggle-ios .slider {
  position: absolute; inset: 0;
  background: #E2E6ED;
  border-radius: 9999px;
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid #D3D8E0;
}
.toggle-ios .slider::before {
  content: '';
  position: absolute;
  width: 24px; height: 24px;
  left: 3px; bottom: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 4px rgba(16,24,40,0.25);
}
.toggle-ios input:checked + .slider { background: var(--zilo-success); border-color: var(--zilo-success); }
.toggle-ios input:checked + .slider::before { transform: translateX(24px); }

.coverage-region-check,
.coverage-commune-item {
  position: relative;
}
.coverage-check-input {
  position: absolute;
  opacity: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}
.coverage-check-box {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border: 2px solid var(--zilo-border, #d1d5db);
  border-radius: 5px;
  background: #fff;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.coverage-check-input:checked + .coverage-check-box {
  background: var(--zilo-success, #059669);
  border-color: var(--zilo-success, #059669);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M12.2 4.2 6.5 9.9 3.8 7.2l-1.1 1.1 4.8 4.8 7.5-7.5z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.coverage-check-input:disabled + .coverage-check-box {
  opacity: 0.45;
  cursor: not-allowed;
}
.coverage-check-input:disabled {
  cursor: not-allowed;
}
.coverage-communes-list.is-disabled {
  opacity: 0.55;
}
.coverage-communes-list.is-disabled .coverage-check-input:not(:disabled) {
  pointer-events: none;
}
.coverage-region > summary::-webkit-details-marker { display: none; }
.coverage-region > summary::marker { content: ''; }

.countdown-ring { transform: rotate(-90deg); }
.countdown-ring circle { transition: stroke-dashoffset 1s linear; }

.safe-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }

.nav-client-active { color: var(--zilo-accent) !important; }
.nav-client-bar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--zilo-border);
}

.checkout-line { border-bottom: 1px solid var(--zilo-border); }
.checkout-discount { color: var(--zilo-success); }

.guardian-pulse {
  animation: guardianPulse 2s ease-in-out infinite;
}
@keyframes guardianPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 92, 20,0.3); }
  50% { box-shadow: none; }
}

.zilo-icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--zilo-muted);
  background: #FFFFFF;
  border: 1px solid var(--zilo-border);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.zilo-icon-btn:hover { color: var(--zilo-accent); border-color: rgba(196, 92, 20,0.35); box-shadow: 0 2px 8px rgba(16,24,40,0.06); }

.zilo-stat {
  padding: 0.875rem;
  border-radius: 1rem;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid var(--zilo-border);
}
.zilo-stat strong { display: block; font-size: 1.125rem; font-weight: 700; color: var(--zilo-text); }
.zilo-stat span { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--zilo-muted); }

.zilo-badge {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--zilo-accent-soft);
  color: var(--zilo-accent-strong);
  border: 1px solid rgba(196, 92, 20,0.2);
}
.zilo-badge-success { background: #E7F6EF; color: var(--zilo-success); border-color: rgba(5,150,105,0.25); }
.zilo-badge-muted { background: #F2F4F7; color: var(--zilo-muted); border-color: var(--zilo-border); }

.zilo-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--zilo-border), transparent);
}

/* Loader steps (legacy classes kept for JS toggles) */
.step-item { transition: all 0.35s ease; }
.step-item.is-active {
  background: var(--zilo-accent-soft) !important;
  border-color: rgba(196, 92, 20,0.28) !important;
  color: var(--zilo-accent-strong) !important;
}
.step-item.is-done { opacity: 0.85; color: var(--zilo-success) !important; }
.step-item.is-busy {
  background: #FFF7ED !important;
  border-color: rgba(217,119,6,0.35) !important;
  color: #B45309 !important;
}
.search-step-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.45;
}
.step-item.is-active .search-step-dot,
.step-item.is-busy .search-step-dot {
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(196, 92, 20,0.12);
}
.step-item.is-busy .search-step-dot {
  box-shadow: 0 0 0 4px rgba(217,119,6,0.15);
}

/* Overlay búsqueda de técnico */
.search-overlay {
  background: #FFFFFF;
}
.search-overlay-orb,
.search-overlay-grid {
  display: none;
}

.search-hero-card {
  position: relative;
}
.search-hero-core {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}
.search-ring-progress {
  transition: stroke-dashoffset 0.6s ease;
  filter: none;
}
.search-progress-fill {
  background: var(--zilo-accent);
  box-shadow: none;
}

/* Carrusel minimalista de servicios (pantalla de búsqueda) */
.search-services-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.search-services-track {
  display: flex;
  width: max-content;
  gap: 0.5rem;
  animation: searchServicesScroll 28s linear infinite;
}
.search-services-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--zilo-border);
  color: var(--zilo-text);
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.search-services-chip .zilo-icon-wrap {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.4rem;
  background: var(--zilo-accent-soft);
  border: none;
  color: var(--zilo-accent);
}
@keyframes searchServicesScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.search-phase-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--zilo-accent-strong);
  background: var(--zilo-accent-soft);
  border: 1px solid rgba(196, 92, 20, 0.18);
}

.search-timeline {
  position: relative;
  padding-left: 0.25rem;
}
.search-timeline::before {
  content: '';
  position: absolute;
  left: 1.05rem;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 2px;
  background: rgba(196, 92, 20, 0.18);
  border-radius: 1px;
}
.search-timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem 0.7rem 0.55rem;
  margin-bottom: 0.35rem;
  border-radius: 1rem;
  color: var(--zilo-muted);
  background: rgba(255,255,255,0.55);
  border: 1px solid transparent;
  transition: all 0.35s ease;
}
.search-timeline-marker {
  position: relative;
  z-index: 1;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 2px solid rgba(196, 92, 20, 0.25);
  background: #fff;
  flex-shrink: 0;
  margin-left: 0.35rem;
}
.search-timeline-copy {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.35;
}
.search-timeline-item.is-active {
  color: #1E3A8A;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(255,255,255,0.98));
  border-color: rgba(196, 92, 20, 0.22);
  box-shadow: 0 8px 20px rgba(196, 92, 20, 0.08);
}
.search-timeline-item.is-active .search-timeline-marker {
  border-color: #C45C14;
  background: #C45C14;
  box-shadow: 0 0 0 4px rgba(196, 92, 20, 0.15);
}
.search-timeline-item.is-done {
  color: #047857;
  background: rgba(240, 253, 244, 0.7);
}
.search-timeline-item.is-done .search-timeline-marker {
  border-color: #10B981;
  background: #10B981;
}
.search-timeline-item.is-busy {
  color: #92400E;
  background: linear-gradient(135deg, #FFF7ED, #FFFFFF);
  border-color: rgba(245, 158, 11, 0.35);
}
.search-timeline-item.is-busy .search-timeline-marker {
  border-color: #F59E0B;
  background: #F59E0B;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
  animation: searchPulse 1.4s ease-in-out infinite;
}
@keyframes searchPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0.2); }
}

.search-tip-card {
  padding: 0.9rem 1rem;
  border-radius: 1.1rem;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(196, 92, 20, 0.1);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
  backdrop-filter: blur(8px);
}
.search-cancel-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #9F1239;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(244, 63, 94, 0.22);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.search-cancel-btn:hover {
  background: #FFF1F2;
  border-color: rgba(244, 63, 94, 0.35);
}
.search-aland-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 0.95rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.25);
}

/* Radar de búsqueda + desatascador girando */
.zilo-radar-wrap {
  position: relative;
  width: 4.75rem;
  height: 4.75rem;
  margin-bottom: 0.25rem;
  flex-shrink: 0;
}
.zilo-radar {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(196, 92, 20, 0.45);
  border-radius: 9999px;
  opacity: 0;
  animation: fandezRadar 2s ease-out infinite;
  pointer-events: none;
}
.zilo-radar:nth-child(2) {
  animation-delay: 0.7s;
}
.zilo-radar-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.zilo-search-plunger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  filter: drop-shadow(0 3px 6px rgba(23, 26, 31, 0.18));
  animation: fandezPlungerSpin 1.15s linear infinite;
  transform-origin: 50% 58%;
}
.zilo-search-plunger svg {
  display: block;
  width: 2.55rem;
  height: 2.55rem;
}
@keyframes fandezRadar {
  0% { transform: scale(0.4); opacity: 0.7; }
  70% { opacity: 0.22; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes fandezPlungerSpin {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(90deg) scale(1.08); }
  50% { transform: rotate(180deg) scale(1); }
  75% { transform: rotate(270deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Compat: por si queda algún punto antiguo */
.zilo-radar-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 9999px;
  background: var(--zilo-accent);
}

/* Modal proveedor */
.zilo-modal-sheet {
  background: #FFFFFF;
  border: 1px solid var(--zilo-border);
  border-bottom: none;
  box-shadow: 0 -24px 80px rgba(16,24,40,0.18);
}
.zilo-modal-accent-bar {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--zilo-accent), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}
.zilo-modal-accept {
  flex: 2;
  padding: 1rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
  background: linear-gradient(135deg, #10B981, #059669);
  box-shadow: 0 8px 24px rgba(5,150,105,0.25);
  transition: transform 0.2s;
}
.zilo-modal-accept:hover { transform: translateY(-1px); }
.zilo-modal-decline {
  flex: 1;
  padding: 1rem;
  border-radius: 1rem;
  font-weight: 600;
  color: var(--zilo-muted);
  background: #FFFFFF;
  border: 1px solid var(--zilo-border);
  transition: all 0.2s;
}
.zilo-modal-decline:hover {
  color: var(--zilo-danger);
  border-color: rgba(220,38,38,0.3);
  background: rgba(220,38,38,0.05);
}

/* Admin */
.admin-page {
  background: #F4F6FA;
}
.admin-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 60;
}
.admin-sidebar-backdrop.is-open { display: block; }
.admin-sidebar {
  width: 17.5rem;
  flex-shrink: 0;
  background: #FFFFFF;
  border-right: 1px solid var(--zilo-border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 70;
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem 1rem;
  border-bottom: 1px solid var(--zilo-border);
}
.admin-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0.625rem;
}
.admin-nav-group { margin-bottom: 0.875rem; }
.admin-nav-group-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zilo-muted);
  padding: 0 0.5rem 0.375rem;
}
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.625rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  margin-bottom: 0.125rem;
}
.admin-nav-item:hover {
  background: #F8FAFC;
  color: #0F172A;
}
.admin-nav-item-active {
  background: var(--zilo-accent-soft);
  color: var(--zilo-accent-strong);
  border-color: rgba(196, 92, 20, 0.22);
  font-weight: 600;
}
.admin-nav-icon {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  background: currentColor;
  opacity: 0.35;
  flex-shrink: 0;
}
.admin-nav-item-active .admin-nav-icon { opacity: 0.85; }
.admin-sidebar-footer {
  border-top: 1px solid var(--zilo-border);
  padding: 0.875rem;
}
.admin-user-chip {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}
.admin-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: var(--zilo-accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.admin-user-avatar-lg { width: 2.5rem; height: 2.5rem; font-size: 0.875rem; }
.admin-sidebar-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748B;
  padding: 0.375rem 0.5rem;
  border-radius: 0.5rem;
}
.admin-sidebar-logout:hover { color: #DC2626; background: rgba(220,38,38,0.06); }
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: rgba(244,246,250,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--zilo-border);
}
.admin-menu-btn {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  border: 1px solid var(--zilo-border);
  background: #fff;
  align-items: center;
  justify-content: center;
  color: #334155;
}
.admin-topbar-title { flex: 1; min-width: 0; }
.admin-topbar-actions { display: flex; gap: 0.5rem; }
.admin-content {
  flex: 1;
  padding: 1.25rem;
  max-width: 72rem;
  width: 100%;
  margin: 0 auto;
}
.admin-card {
  background: #FFFFFF;
  border: 1px solid var(--zilo-border);
  border-radius: 1rem;
  padding: 1rem;
}
.admin-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--zilo-accent);
  border: 1px solid var(--zilo-accent-strong);
  box-shadow: none;
}
.admin-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid var(--zilo-border);
}
.admin-field-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zilo-muted);
  margin-bottom: 0.375rem;
}
.admin-field-input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--zilo-border);
  background: #fff;
  font-size: 0.875rem;
}
.admin-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 9999px;
}
.admin-badge-blue { background: rgba(196, 92, 20,0.12); color: #9A3F0A; }
.admin-badge-green { background: rgba(16,185,129,0.12); color: #059669; }
.admin-badge-gray { background: #F1F5F9; color: #64748B; }
.admin-perm-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #334155;
  cursor: pointer;
}
.admin-perm-check input { margin-top: 0.125rem; }
.admin-team-card + .admin-team-card { margin-top: 0; }

@media (max-width: 1023px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 0 20px 50px rgba(15,23,42,0.18);
  }
  .admin-sidebar.is-open { transform: translateX(0); }
  .admin-menu-btn { display: inline-flex; }
  .admin-content { padding: 1rem; }
}

.admin-page .admin-tab {
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
  background: #FFFFFF;
  color: var(--zilo-muted);
  border: 1px solid var(--zilo-border);
}
.admin-page .admin-tab-active {
  background: var(--zilo-accent) !important;
  color: #FFFFFF !important;
  border-color: var(--zilo-accent-strong) !important;
  box-shadow: none;
}
.admin-page .stat-gold { border-color: rgba(196, 92, 20,0.25); background: var(--zilo-accent-soft); }
.admin-page .stat-gold p { color: var(--zilo-accent); }

.legal-footer { border-color: var(--zilo-border) !important; }
.legal-footer a:hover { color: var(--zilo-accent) !important; }

/* Gift card */
.zilo-gift-card {
  background: var(--zilo-accent-soft);
  border: 1px solid rgba(196, 92, 20, 0.22);
}

/* Invite hero */
.zilo-invite-hero {
  background: #FFFFFF;
  border: 1px solid var(--zilo-border);
}

/* Page enter */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.zilo-page-enter { animation: pageIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
.zilo-page-enter-delay-1 { animation-delay: 0.06s; }
.zilo-page-enter-delay-2 { animation-delay: 0.12s; }
.zilo-page-enter-delay-3 { animation-delay: 0.18s; }

.guide-modal-panel {
  background: #FFFFFF;
  border: 1px solid var(--zilo-border);
  border-bottom: none;
  box-shadow: 0 -24px 80px rgba(16,24,40,0.18);
}
@media (min-width: 640px) {
  .guide-modal-panel {
    border-bottom: 1px solid var(--zilo-border);
    box-shadow: 0 24px 80px rgba(16,24,40,0.18);
  }
}
.guide-modal-body { scrollbar-width: thin; }

/* Onboarding tour (estilo Airbnb) */
.zilo-onboarding {
  position: fixed;
  inset: 0;
  z-index: 600;
  pointer-events: none;
}
.zilo-onboarding-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  pointer-events: auto;
}
.zilo-onboarding-spotlight {
  position: fixed;
  pointer-events: none;
  z-index: 601;
  box-shadow: 0 0 0 9999px rgba(17, 24, 39, 0.55);
  border: 2px solid rgba(196, 92, 20, 0.7);
  transition: top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.zilo-onboarding-highlight {
  position: relative;
  z-index: 602 !important;
}
.zilo-onboarding-card {
  position: fixed;
  z-index: 603;
  width: min(340px, calc(100vw - 32px));
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: #FFFFFF;
  border: 1px solid var(--zilo-border);
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.22);
  pointer-events: auto;
  transition: top 0.35s ease, left 0.35s ease;
  animation: onboardingCardIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes onboardingCardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.zilo-onboarding-out .zilo-onboarding-card {
  animation: onboardingCardOut 0.25s ease both;
}
@keyframes onboardingCardOut {
  to { opacity: 0; transform: translateY(8px); }
}
.zilo-onboarding-progress {
  height: 3px;
  border-radius: 999px;
  background: #E6E9EF;
  margin-bottom: 1rem;
  overflow: hidden;
}
.zilo-onboarding-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #C45C14, #9A3F0A);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.zilo-onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  gap: 0.75rem;
}
.zilo-onboarding-skip {
  font-size: 0.75rem;
  color: var(--zilo-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.zilo-onboarding-skip:hover { color: var(--zilo-text); }
.zilo-onboarding-nav {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

/* Empty state */
.zilo-empty {
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--zilo-muted);
}
.zilo-empty .zilo-display { font-size: 1.5rem; color: var(--zilo-text); margin-bottom: 0.5rem; }

/* ── Error page disruptiva ── */
.fandez-error-body { overflow-x: hidden; }
.fandez-error-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.fandez-error-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(165deg, #F6F7F9 0%, #EAF0FF 45%, #F6F7F9 100%);
}
.fandez-error-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: errorOrbFloat 8s ease-in-out infinite;
}
.fandez-error-orb--1 {
  width: 320px; height: 320px;
  top: -8%; right: -12%;
  background: rgba(196, 92, 20, 0.18);
}
.fandez-error-orb--2 {
  width: 280px; height: 280px;
  bottom: 5%; left: -15%;
  background: rgba(5, 150, 105, 0.1);
  animation-delay: -3s;
}
.fandez-error-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 92, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 92, 20, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}
@keyframes errorOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.06); }
}

.fandez-error-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0;
  max-width: 32rem;
  margin: 0 auto;
  width: 100%;
}
.fandez-error-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--zilo-text);
  text-decoration: none;
}

.fandez-error-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.25rem 2.5rem;
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}

.fandez-error-code-wrap {
  position: relative;
  margin-bottom: 1rem;
}
.fandez-error-code {
  display: block;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(5.5rem, 22vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--zilo-accent);
  text-shadow: 0 8px 32px rgba(196, 92, 20, 0.22);
  position: relative;
}
.fandez-error-glitch {
  animation: errorGlitch 4s steps(1) infinite;
}
.fandez-error-glitch::before,
.fandez-error-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
}
.fandez-error-glitch::before {
  color: #059669;
  animation: errorGlitchA 4s steps(1) infinite;
}
.fandez-error-glitch::after {
  color: #DC2626;
  animation: errorGlitchB 4s steps(1) infinite;
}
@keyframes errorGlitch {
  0%, 92%, 100% { transform: none; }
  93% { transform: skewX(-2deg) translateX(2px); }
  95% { transform: skewX(2deg) translateX(-2px); }
}
@keyframes errorGlitchA {
  0%, 90%, 100% { opacity: 0; transform: none; }
  91% { opacity: 0.7; transform: translate(-3px, 1px); clip-path: inset(20% 0 55% 0); }
  93% { opacity: 0; }
}
@keyframes errorGlitchB {
  0%, 94%, 100% { opacity: 0; transform: none; }
  95% { opacity: 0.6; transform: translate(3px, -1px); clip-path: inset(45% 0 25% 0); }
  97% { opacity: 0; }
}

.fandez-error-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--zilo-accent);
  background: rgba(196, 92, 20, 0.1);
  border: 1px solid rgba(196, 92, 20, 0.2);
}

.fandez-error-headline {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--zilo-text);
}

.fandez-error-slogan-stage {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}
.fandez-error-slogan {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--zilo-muted);
  max-width: 22rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.fandez-error-slogan.is-active {
  opacity: 1;
  transform: translateY(0);
}
.fandez-error-slogan.is-exiting {
  opacity: 0;
  transform: translateY(-6px);
}

.fandez-error-punchline {
  font-size: clamp(1.05rem, 3.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--zilo-text);
  margin-bottom: 0.5rem;
}
.fandez-error-punchline strong {
  color: var(--zilo-accent);
  font-weight: 800;
}
.fandez-error-punchline--compact { margin-top: 0.75rem; margin-bottom: 1.25rem; }

.fandez-error-hook {
  font-size: 0.8125rem;
  color: var(--zilo-muted);
  margin-bottom: 1.25rem;
}

.fandez-error-tips {
  width: 100%;
  min-height: 3.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.fandez-error-tip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--zilo-border);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--zilo-text);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.fandez-error-tip.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fandez-error-tip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--zilo-accent);
  box-shadow: 0 0 0 4px rgba(196, 92, 20, 0.15);
  flex-shrink: 0;
  animation: errorDotPulse 2s ease-in-out infinite;
}
@keyframes errorDotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(196, 92, 20, 0.15); }
  50% { box-shadow: 0 0 0 7px rgba(196, 92, 20, 0.08); }
}

.fandez-error-title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.fandez-error-message {
  font-size: 0.9375rem;
  color: var(--zilo-muted);
  line-height: 1.55;
  max-width: 22rem;
  margin-bottom: 0.25rem;
}

.fandez-error-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  width: 100%;
  max-width: 18rem;
  margin-bottom: 1.25rem;
}
.fandez-error-btn { width: 100%; }
.fandez-error-btn--wa {
  border-color: rgba(5, 150, 105, 0.35) !important;
  color: #059669 !important;
}
.fandez-error-link-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--zilo-accent);
  text-decoration: none;
  margin-top: 0.25rem;
}
.fandez-error-link-cta:hover { text-decoration: underline; }

.fandez-error-autoretry {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--zilo-muted);
  letter-spacing: 0.01em;
}

.fandez-error-domain {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--zilo-muted);
}
.fandez-error-domain-link {
  font-weight: 800;
  color: var(--zilo-accent);
  text-decoration: none;
}
.fandez-error-domain-link:hover { text-decoration: underline; }

.fandez-error-page .legal-footer {
  position: relative;
  z-index: 2;
  background: transparent;
}

/* ── Client UX: trust, funnel, sticky CTA ── */
.trust-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
}
.trust-strip::-webkit-scrollbar { display: none; }
.trust-strip-item {
  flex: 1 0 140px;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.875rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--zilo-border);
  font-size: 0.625rem;
  color: var(--zilo-muted);
  line-height: 1.35;
}
.trust-strip-item strong {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--zilo-text);
  margin-bottom: 0.125rem;
}
.trust-strip-icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  background: rgba(196, 92, 20, 0.1);
  color: var(--zilo-accent);
  font-size: 0;
  line-height: 0;
}
.trust-strip-icon svg {
  display: block;
}
.ui-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  line-height: 0;
}
.ui-icon svg { display: block; }
.ui-icon--lg {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--zilo-accent-soft);
}

.checkout-progress { margin-bottom: 1rem; }
.checkout-progress-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.checkout-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 4.5rem;
}
.checkout-progress-dot {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  background: #F2F4F7;
  color: var(--zilo-muted);
  border: 2px solid var(--zilo-border);
  transition: all 0.25s ease;
}
.checkout-progress-step.is-active .checkout-progress-dot {
  background: var(--zilo-accent);
  color: #fff;
  border-color: var(--zilo-accent);
  box-shadow: 0 4px 12px rgba(196, 92, 20,0.3);
}
.checkout-progress-step.is-done .checkout-progress-dot {
  background: var(--zilo-success);
  color: #fff;
  border-color: var(--zilo-success);
}
.checkout-progress-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--zilo-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.checkout-progress-step.is-active .checkout-progress-label { color: var(--zilo-accent); }
.checkout-progress-step.is-done .checkout-progress-label { color: var(--zilo-success); }
.checkout-progress-line {
  flex: 1;
  height: 2px;
  max-width: 2.5rem;
  background: var(--zilo-border);
  margin-bottom: 1.125rem;
  transition: background 0.25s;
}
.checkout-progress-line.is-done { background: var(--zilo-success); }

.sticky-order-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--zilo-border);
  box-shadow: 0 -8px 32px rgba(16,24,40,0.08);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.25s ease;
  pointer-events: none;
}
.sticky-order-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-order-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.sticky-order-btn {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem;
  border-radius: var(--zilo-radius-btn);
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  background: var(--zilo-accent);
  border: 1px solid var(--zilo-accent-strong);
  box-shadow: none;
  transition: background 0.15s, opacity 0.15s;
}
.sticky-order-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.sticky-order-btn:active:not(:disabled) { background: var(--zilo-accent-strong); }

.sticky-track-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--zilo-border);
  box-shadow: 0 -8px 32px rgba(16,24,40,0.08);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.25s ease;
  pointer-events: none;
}
.sticky-track-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.sticky-track-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.sticky-track-copy { min-width: 0; flex: 1; }
.sticky-track-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.sticky-track-btn {
  padding: 0.7rem 0.95rem;
  border-radius: var(--zilo-radius-btn);
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.15s, opacity 0.15s;
}
.sticky-track-btn--primary {
  color: #fff;
  background: var(--zilo-accent);
  border-color: var(--zilo-accent-strong);
}
.sticky-track-btn--primary:active { background: var(--zilo-accent-strong); }
.sticky-track-btn--ghost {
  color: var(--zilo-text);
  background: var(--zilo-bg);
  border-color: var(--zilo-border);
}

.field-wizard {
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--zilo-border);
  background: rgba(255,255,255,0.72);
}
.field-wizard-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.field-wizard-track::-webkit-scrollbar { display: none; }
.field-wizard-step {
  flex: 1 0 auto;
  min-width: 3.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.45;
}
.field-wizard-step.is-done,
.field-wizard-step.is-active { opacity: 1; }
.field-wizard-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--zilo-border);
}
.field-wizard-step.is-done .field-wizard-dot { background: var(--zilo-success); }
.field-wizard-step.is-active .field-wizard-dot {
  background: var(--zilo-accent);
  box-shadow: 0 0 0 4px rgba(196, 92, 20, 0.18);
}
.field-wizard-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--zilo-muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.field-wizard-step.is-active .field-wizard-label { color: var(--zilo-accent); }
.field-wizard-step.is-done .field-wizard-label { color: var(--zilo-success); }
#fieldContext > summary::-webkit-details-marker { display: none; }
#fieldContext > summary::after {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--zilo-muted);
  border-bottom: 2px solid var(--zilo-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-left: 0.25rem;
  transition: transform 0.2s;
}
#fieldContext[open] > summary::after { transform: rotate(225deg); }

.provider-workflow .checkout-progress-step { min-width: 3.5rem; }
.provider-workflow .checkout-progress-line { max-width: 1.75rem; }
.provider-wall-card { transition: border-color 0.2s, transform 0.2s; }
.provider-wall-card:hover { border-color: rgba(196, 92, 20,0.35); transform: translateY(-1px); }

@media (prefers-reduced-motion: reduce) {
  .zilo-page-enter,
  .zilo-page-enter-delay-1,
  .zilo-page-enter-delay-2,
  .zilo-page-enter-delay-3,
  .sticky-order-bar,
  .sticky-track-bar,
  .toast,
  .guardian-pulse,
  .trip-step.active .trip-dot {
    animation: none !important;
    transition: none !important;
  }
  .zilo-radar {
    animation: none !important;
    opacity: 0.45;
    transform: scale(1);
  }
  .zilo-radar:nth-child(2) { opacity: 0.25; transform: scale(1.2); }
  .zilo-radar-dot {
    animation: none !important;
    box-shadow: 0 0 0 6px rgba(196, 92, 20, 0.18);
  }
  .zilo-search-plunger {
    animation: none !important;
  }
  .search-services-track {
    animation: none !important;
  }
}


.fandez-landing {
  color-scheme: light only;
  background: var(--zilo-bg);
}
.fandez-landing-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: transparent;
}

/* PWA — banner instalar app (móvil) */
.fandez-install-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 420;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.85rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.fandez-install-banner.hidden { display: none !important; }
.fandez-install-banner__card,
.fandez-install-banner__actions,
.fandez-install-banner__ios {
  pointer-events: auto;
}
.fandez-install-banner__card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #FFFFFF;
  color: #1A1814;
  border: 1px solid #E6E0D8;
  border-bottom: 0;
  border-radius: 1rem 1rem 0.35rem 0.35rem;
  padding: 0.85rem 0.75rem 0.75rem;
  box-shadow: 0 -8px 28px rgba(26, 24, 20, 0.12);
}
.fandez-install-banner__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  background: #C45C14;
}
.fandez-install-banner__text { flex: 1; min-width: 0; padding-top: 0.1rem; }
.fandez-install-banner__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1A1814;
  font-family: "Bricolage Grotesque", "Source Sans 3", system-ui, sans-serif;
}
.fandez-install-banner__body {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #6B635A;
}
.fandez-install-banner__close {
  border: 0;
  background: transparent;
  color: #6B635A;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0 0.15rem;
  cursor: pointer;
}
.fandez-install-banner__actions {
  display: flex;
  gap: 0.5rem;
  background: #FFFFFF;
  border: 1px solid #E6E0D8;
  border-top: 0;
  border-radius: 0.35rem 0.35rem 1rem 1rem;
  padding: 0 0.75rem 0.85rem;
}
.fandez-install-banner__cta {
  flex: 1;
  border: 0;
  border-radius: 0.75rem;
  background: #C45C14;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
}
.fandez-install-banner__cta.hidden { display: none; }
.fandez-install-banner__later {
  border: 1px solid #E6E0D8;
  border-radius: 0.75rem;
  background: #FFFFFF;
  color: #1A1814;
  font-size: 0.8rem;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.fandez-install-banner__ios {
  margin-top: 0.5rem;
  background: #FFFFFF;
  color: #1A1814;
  border: 1px solid #E6E0D8;
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
}
.fandez-install-banner__ios.hidden { display: none; }
.fandez-install-banner__ios ol {
  margin: 0;
  padding-left: 1.1rem;
}
.fandez-install-banner__ios li + li { margin-top: 0.35rem; }
.fandez-install-banner.fandez-install-banner--forced {
  z-index: 520;
}
html.fandez-standalone .fandez-install-entry,
html.fandez-standalone .fandez-install-banner {
  display: none !important;
}
body.fandez-install-visible {
  padding-bottom: 8.5rem;
}
@media (min-width: 901px) {
  .fandez-install-banner { display: none !important; }
  .fandez-install-banner.fandez-install-banner--forced { display: flex !important; }
}

/* Fandez aliases (legacy zilo-* preserved) */
.fandez-card-premium { background: var(--zilo-surface); border: 1px solid var(--zilo-border); box-shadow: var(--zilo-shadow); }
.fandez-btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.875rem 1.25rem; border-radius: var(--zilo-radius-btn); background: var(--zilo-accent); color: #fff; font-weight: 600; border: 1px solid var(--zilo-accent-strong); }
.fandez-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--zilo-muted); }

/* Provider bottom nav */
.nav-provider-bar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--zilo-border);
  box-shadow: 0 -4px 20px rgba(26, 24, 20, 0.06);
}
.nav-provider-active { color: var(--zilo-accent) !important; }

/* Activation checklist */
.provider-activation-item.is-done { opacity: 0.85; }
.provider-activation-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.25rem; height: 1.25rem; border-radius: 999px;
  background: var(--zilo-success); color: #fff; font-size: 0.65rem; margin-right: 0.5rem;
}
.provider-activation-dot {
  width: 0.625rem; height: 0.625rem; border-radius: 999px;
  border: 2px solid var(--zilo-accent); flex-shrink: 0;
}

/* Socket reconnect toast — no bloquea header ni sidebar */
.socket-reconnect-banner:not([hidden]) {
  position: fixed !important;
  top: auto !important;
  right: auto !important;
  left: 50% !important;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px)) !important;
  width: max-content !important;
  max-width: min(22rem, calc(100vw - 2rem)) !important;
  z-index: 550;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: 999px;
  background: rgba(26, 24, 20, 0.92);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  pointer-events: auto;
  transform: translateX(-50%) !important;
  animation: socketToastIn 0.24s ease-out;
}
.socket-reconnect-banner[hidden] {
  display: none !important;
}
.socket-reconnect-banner[data-tone="warning"] {
  background: rgba(180, 83, 9, 0.96);
  color: #fff;
}
.socket-reconnect-banner[data-tone="success"] {
  background: rgba(22, 101, 52, 0.96);
  color: #fff;
}
.socket-reconnect-banner__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
  animation: pulse 1.2s ease-in-out infinite;
}
.socket-reconnect-banner[data-tone="success"] .socket-reconnect-banner__dot {
  animation: none;
  opacity: 0.85;
}
.socket-reconnect-banner__close {
  margin-left: 0.125rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.125rem;
  line-height: 1;
  opacity: 0.75;
  cursor: pointer;
  flex-shrink: 0;
}
.socket-reconnect-banner__close:hover {
  opacity: 1;
}
@keyframes socketToastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(0.75rem) !important;
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) !important;
  }
}

/* Touch targets — a11y */
.zilo-icon-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

/* Fondo blanco universal — móvil, tablet, desktop, PWA, iOS/Android */
html,
body,
.zilo-body,
#fandezSplash,
.fandez-landing,
.min-h-screen,
.min-h-full,
.max-w-lg.mx-auto.min-h-screen {
  background-color: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  html,
  body,
  .zilo-body,
  :root {
    background-color: #FFFFFF !important;
    color-scheme: light only;
  }
}

/* Headers sticky: blanco sólido en todos los breakpoints */
header.sticky.bg-zilo-bg\/90,
.sticky.top-0.bg-zilo-bg\/90 {
  background-color: rgba(255, 255, 255, 0.97) !important;
}

.nav-client-bar,
.nav-provider-bar,
.sticky-order-bar,
.sticky-track-bar {
  background-color: rgba(255, 255, 255, 0.98) !important;
}

