/* ============================
   AndaYa — Design System v2.0
   Dark Premium / Glassmorphic
   ============================ */

.hidden { display: none !important; }

/* ── Tokens ── */
:root {
  /* Colores base */
  --black-deep:    #050810;
  --black-card:    #0d1526;
  --black-input:   #0a1020;
  --navy:          #111827;

  /* Acento principal */
  --blue-primary:  #2563eb;
  --blue-light:    #3b82f6;
  --blue-glow:     rgba(37, 99, 235, 0.35);

  /* Acento secundario */
  --cyan:          #06b6d4;
  --cyan-glow:     rgba(6, 182, 212, 0.25);

  /* Semáforo */
  --green:         #10b981;
  --green-light:   #34d399;
  --green-glow:    rgba(16, 185, 129, 0.3);
  --red:           #ef4444;
  --yellow:        #f59e0b;

  /* Texto */
  --text-primary:  #f8fafc;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;

  /* Bordes */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-glow:   rgba(37, 99, 235, 0.4);
  --border-card:   rgba(255, 255, 255, 0.1);

  /* Glassmorphism */
  --glass-bg:     rgba(13, 21, 38, 0.82);
  --glass-blur:   blur(24px);

  /* Sombras */
  --shadow-card:   0 24px 48px -12px rgba(0, 0, 0, 0.7);
  --shadow-glow-blue: 0 0 24px rgba(37, 99, 235, 0.5);
  --shadow-glow-green: 0 0 24px rgba(16, 185, 129, 0.5);

  /* Tipografía */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Radios */
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --radius-xl:  28px;

  /* Transiciones */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition:  all 0.28s var(--ease-smooth);
}

/* ── Reset Global ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--black-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ============================
   NAVBAR
   ============================ */
.passenger-topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

.btn-map-theme-passenger {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  color: #0f172a;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
  pointer-events: auto;
  transition: var(--transition);
}

.btn-map-theme-passenger:hover {
  background: #ffffff;
  transform: scale(1.06);
}

/* ── MODO OSCURO MAPA PASAJERO (VIP NIGHT MODE) ── */
#map.dark-mode .leaflet-tile-pane,
.map-layer.dark-mode .leaflet-tile-pane {
  filter: brightness(0.65) invert(1) contrast(2.6) hue-rotate(200deg) saturate(0.35);
}

/* Botón Hamburguesa Circular Flotante (Blanco Limpio) */
.btn-menu-hamburger {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-menu-hamburger:hover {
  background: #f8fafc;
  transform: scale(1.06);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
}

.btn-menu-hamburger:active {
  transform: scale(0.96);
}

/* Distintivo de Marca Flotante (Logo Oficial) */
.brand-pill-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 30px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
  pointer-events: auto;
  height: 46px;
  max-width: 160px;
}

.brand-logo-img {
  height: 32px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}

/* ============================
   MENÚ LATERAL DRAWER (BLANCO PREMIUM)
   ============================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.drawer-menu {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 440px;
  max-width: 92vw;
  background: #ffffff;
  border-right: 1px solid #e2e8f0;
  box-shadow: 16px 0 48px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  color: #0f172a;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.hidden .drawer-menu {
  transform: translateX(-100%);
}

.drawer-header {
  padding: 28px 20px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.user-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.user-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.user-info p {
  font-size: 0.78rem;
  color: #2563eb;
  font-weight: 600;
  margin-top: 3px;
}

.btn-close-drawer {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid #cbd5e1;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-close-drawer:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.drawer-nav-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: none;
  border-radius: 14px;
  color: #1e293b;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.drawer-item:hover {
  background: #f1f5f9;
  color: #2563eb;
  transform: translateX(4px);
}

.drawer-item:active {
  transform: translateX(0);
}

.d-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* ── SELECTOR DE APARIENCIA EN DRAWER (3 OPCIONES) ── */
.drawer-theme-box {
  margin-top: 10px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-theme-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-theme-text {
  flex: 1;
  min-width: 0;
}

.drawer-theme-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.drawer-theme-desc {
  font-size: 0.73rem;
  color: #64748b;
  margin-top: 2px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-segmented-ctrl {
  display: flex;
  align-items: center;
  background: #e2e8f0;
  border-radius: 12px;
  padding: 3px;
  gap: 3px;
}

.theme-seg-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
  border: none;
  background: transparent;
  color: #64748b;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-seg-option:hover {
  color: #0f172a;
}

.theme-seg-option.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.theme-seg-option svg {
  flex-shrink: 0;
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  background: #f8fafc;
}

.app-version {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

.app-slogan-footer {
  font-family: var(--font-display);
  font-size: 0.68rem;
  color: #d97706;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-top: 2px;
}


/* ============================
   MAPA
   ============================ */
.map-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Ocultar atribución y marca de agua del mapa */
.leaflet-control-attribution {
  display: none !important;
}

/* ============================
   PANEL FLOTANTE (GLASS)
   ============================ */
/* ============================
   PANEL FLOTANTE (BLANCO PREMIUM)
   ============================ */
.glass-panel {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 900;
  max-width: 440px;
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
  color: #0f172a;
  transition: top 0.28s var(--ease-smooth), bottom 0.28s var(--ease-smooth);
}

.glass-panel::-webkit-scrollbar {
  display: none;
}

/* Modo Teclado Activo: Eleva el panel flotante bajo el navbar para visibilidad total */
.glass-panel.keyboard-mode {
  bottom: auto !important;
  top: 68px !important;
  z-index: 2500 !important;
}

/* Borde superior brillante */
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.4), rgba(6, 182, 212, 0.4), transparent);
  border-radius: 50%;
}

/* Steps */
.panel-step {
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: stepIn 0.3s var(--ease-smooth) both;
}

.panel-step.active {
  display: flex;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── PASO 1: Heading ── */
.panel-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.accent-text {
  color: #2563eb;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: initial;
}

/* ── Route Inputs (Limpio Sin Cajas Negras) ── */
.route-inputs {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.route-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 12px 0;
  width: 16px;
  flex-shrink: 0;
}

.connector-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.origin-dot { background: #2563eb; box-shadow: 0 0 8px rgba(37, 99, 235, 0.4); }
.dest-dot   { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }

.connector-line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, #2563eb, #ef4444);
  margin: 4px 0;
  opacity: 0.35;
}

.inputs-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.input-field {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  border-bottom: 1.5px solid #e2e8f0;
  border-radius: 0;
  padding: 4px 0 6px 0;
  transition: border-color 0.2s ease;
}

.input-field:focus-within {
  border-bottom-color: #2563eb;
  box-shadow: none;
}

.input-field.input-error-pulse {
  border-bottom-color: #ef4444 !important;
  animation: shakeError 0.4s ease;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.field-label {
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #64748b;
  margin-bottom: 2px;
}

.input-field input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  color: #0f172a;
  padding: 2px 32px 2px 0;
}

.input-field input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.btn-gps {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-20%);
  background: rgba(37, 99, 235, 0.1);
  border: none;
  color: #2563eb;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-gps:hover {
  background: rgba(37, 99, 235, 0.2);
}

/* ── Quick Destinations ── */
.quick-destinations {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.quick-destinations::-webkit-scrollbar { display: none; }

.dest-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.dest-chip:hover, .dest-chip.active-chip {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--text-primary);
}

.chip-icon { font-size: 0.95rem; }

/* ── CTA Button ── */
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0ea5e9 100%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(37, 99, 235, 0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before { left: 100%; }

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(37, 99, 235, 0.7), 0 0 0 1px rgba(255,255,255,0.07) inset;
}

.cta-button:active { transform: translateY(0); }

.cta-green {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  box-shadow: 0 8px 24px -6px rgba(16, 185, 129, 0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
}

.cta-green:hover {
  box-shadow: 0 12px 28px -6px rgba(16, 185, 129, 0.7), 0 0 0 1px rgba(255,255,255,0.07) inset;
}

.cta-arrow, .cta-icon {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.cta-button:hover .cta-arrow { transform: translateX(4px); }

/* ── PASO 2: Fare Card ── */
.step-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-back-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.btn-back-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

/* Resumen de Ruta */
.route-summary-wrap {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.route-summary {
  flex: 1;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.route-summary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.route-point {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.origin-rp { background: #2563eb; box-shadow: 0 0 6px rgba(37, 99, 235, 0.4); }
.dest-rp   { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }

.rp-connector {
  width: 2px;
  height: 10px;
  background: linear-gradient(to bottom, #2563eb, #ef4444);
  margin-left: 3px;
  opacity: 0.35;
}

.rp-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

/* Fare Card (Blanco Premium) */
.fare-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06);
}

.fare-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,0.6), rgba(6,182,212,0.6), transparent);
}

.fare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.fare-amount-block {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.fare-currency {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #2563eb;
  transform: translateY(-2px);
}

.fare-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: #0f172a;
  line-height: 1;
}

.fare-unit {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: #64748b;
  margin-left: 2px;
  letter-spacing: 0.5px;
}

.fare-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.tag-savings {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
}

.badge-icon-svg {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

.tag-zero {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.22);
  color: #047857;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 10px;
}

/* ── Tarifa Garantizada del Trayecto: Label + Botón (i) ── */
.fare-guarantee-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 5px 10px 5px 11px;
}

.fgl-text {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: #0369a1;
  letter-spacing: 0.1px;
}

.btn-fare-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #0369a1;
  background: transparent;
  color: #0369a1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-fare-info:hover {
  background: #0369a1;
  color: #ffffff;
}

/* ── Popover Informativo de Tarifa (Despliegue Fluido en Tarjeta) ── */
.fare-info-popover {
  position: relative;
  margin: 10px 16px 14px;
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.08);
  padding: 14px 16px;
  z-index: 10;
  animation: popoverIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.fare-info-popover.hidden {
  display: none;
}

@keyframes popoverIn {
  from { opacity: 0; transform: scale(0.94) translateY(-6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.fip-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: #0c4a6e;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0f2fe;
}

.fip-header svg {
  stroke: #0369a1;
  flex-shrink: 0;
}

.fip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fip-list li {
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.45;
  font-weight: 500;
}

.fip-list li strong {
  color: #0f172a;
  font-weight: 800;
}

.fip-close {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 9px;
  background: linear-gradient(135deg, #0369a1, #0ea5e9);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: opacity 0.18s ease;
}

.fip-close:hover {
  opacity: 0.88;
}

.fare-breakdown {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.br-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-weight: 600;
}

.br-label svg { stroke: #64748b; opacity: 1; }

.br-value {
  font-family: var(--font-display);
  font-weight: 800;
  color: #0f172a;
}

.green-val {
  color: #059669;
  font-weight: 800;
}

.highlight-row {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 8px 12px;
  border-radius: 10px;
  margin: 0;
}

/* ── Toggle Switch TAG ── */
.tag-preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  margin: 12px 0 6px 0;
  border: 1.5px solid #cbd5e1;
  transition: var(--transition);
}

.tag-preference-row:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.tag-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  display: block;
}

.tag-desc {
  font-size: 0.74rem;
  color: #475569;
  font-weight: 600;
  display: block;
  margin-top: 1px;
}

.toggle-switch-wrapper {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-switch-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  border-radius: 26px;
  transition: background-color 0.28s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.toggle-switch-input:checked + .toggle-switch-slider {
  background-color: #2563eb;
}

.toggle-switch-input:checked + .toggle-switch-slider::before {
  transform: translateX(22px);
}

/* ── PASO 3: Búsqueda ── */
.searching-state {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 0;
}

/* Radar animado */
.radar-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid #2563eb;
  animation: radarExpand 2.4s ease-out infinite;
}

.radar-ring.r1 { width: 100%; height: 100%; animation-delay: 0s; }
.radar-ring.r2 { width: 100%; height: 100%; animation-delay: 0.8s; }
.radar-ring.r3 { width: 100%; height: 100%; animation-delay: 1.6s; }

@keyframes radarExpand {
  0%   { transform: scale(0.4); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.radar-center {
  position: relative;
  font-size: 1.5rem;
  z-index: 2;
  filter: drop-shadow(0 0 8px rgba(37,99,235,0.4));
}

.searching-copy h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.searching-copy p {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 2px;
}

/* Driver Matched Card */
.driver-matched-card {
  background: linear-gradient(145deg, #f0fdf4 0%, #ffffff 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16,185,129,0.08);
}

.driver-matched-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.8), transparent);
}

.match-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: #047857;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.driver-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.driver-avatar-wrap {
  position: relative;
}

.driver-details h4 {
  color: #0f172a;
  font-weight: 800;
}

.driver-details p {
  color: #64748b;
}

.btn-cancel-trip {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-weight: 800;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancel-trip:hover {
  background: #fee2e2;
}

.btn-call-driver {
  background: #2563eb;
  border: none;
  color: white;
  font-weight: 800;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-call-driver:hover {
  background: #1d4ed8;
}

.driver-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.driver-avatar-wrap {
  position: relative;
}

.driver-avatar {
  font-size: 2.4rem;
  line-height: 1;
  display: block;
}

.driver-star-badge {
  position: absolute;
  bottom: -4px;
  right: -6px;
  background: var(--black-card);
  border: 1px solid var(--border-subtle);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  color: var(--yellow);
  white-space: nowrap;
}

.driver-details {
  flex: 1;
}

.driver-details h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.driver-details p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.plate-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 1px;
}

.driver-eta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  min-width: 58px;
}

.eta-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--green-light);
}

.eta-caption {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 1px;
}

/* PIN de Abordaje Seguro Prominente en Tarjeta de Match */
.passenger-pin-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #0f172a;
  border: 1.5px solid #1e3a8a;
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: all 0.2s ease;
}

.passenger-pin-strip.hidden {
  display: none !important;
}

.pin-strip-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pin-strip-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pin-shield-icon {
  width: 18px;
  height: 18px;
  filter: invert(47%) sepia(85%) saturate(1982%) hue-rotate(200deg) brightness(101%) contrast(97%);
}

.pin-strip-text {
  display: flex;
  flex-direction: column;
}

.pin-strip-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #93c5fd;
  text-transform: uppercase;
}

.pin-strip-hint {
  font-size: 0.74rem;
  color: #cbd5e1;
}

.pin-strip-code-badge {
  background: #1e293b;
  border: 1.5px solid #38bdf8;
  border-radius: 8px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pin-strip-code {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.35);
}

/* Trip Controls */
.trip-controls {
  display: flex;
  gap: 10px;
}

.btn-cancel-trip {
  flex: 1;
  padding: 13px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  color: #f87171;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancel-trip:hover {
  background: rgba(239, 68, 68, 0.2);
}

.btn-call-driver {
  padding: 13px 18px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  color: var(--blue-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

/* Utility */
.hidden { display: none !important; }

/* ── Leaflet Clear Light Navigation Tiles ── */
.leaflet-top.leaflet-right {
  top: 70px !important;
  right: 12px !important;
}

.leaflet-touch .leaflet-bar {
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.leaflet-touch .leaflet-bar a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-family: var(--font-display);
  font-weight: 800;
  color: #0f172a !important;
}

/* ── Botones de Autenticación Navbar ── */
.btn-user-auth, .btn-driver-auth {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-light);
  cursor: pointer;
  transition: var(--transition);
}

.btn-user-auth:hover, .btn-driver-auth:hover {
  background: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

/* ── Modal de Autenticación & Modales Generales (UX Mejorada Img2 / Img3) ── */
.auth-modal {
  max-width: 540px !important;
  width: 94%;
  padding: 20px !important;
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-brand .m-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
}

.modal-brand h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.modal-brand p {
  font-size: 0.78rem;
  color: #475569;
  margin: 2px 0 0 0;
  font-weight: 500;
}

.btn-close-modal {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-close-modal:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.auth-tabs {
  display: flex;
  background: #ffffff;
  border-radius: 14px;
  padding: 4px;
  margin: 14px 0 16px 0;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

.auth-tab-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #475569;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding-top: 14px;
  padding-bottom: 40px !important;
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 36px !important;
}

.auth-form.active {
  display: flex;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input, .form-select {
  width: 100%;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px;
  padding: 11px 14px;
  color: #0f172a !important;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
}

.form-group input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.form-group input:focus, .form-select:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Modal Layout Fullscreen / Sheet View (Estética Conductor Derecha) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000 !important;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.glass-modal {
  background: #ffffff !important;
  color: #0f172a !important;
  border: none !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25) !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  padding: 24px 20px 48px 20px !important;
  scrollbar-width: thin;
}

@media (min-width: 640px) {
  .modal-overlay {
    padding: 20px;
  }
  .glass-modal {
    width: 96% !important;
    max-width: 740px !important;
    height: 94vh !important;
    max-height: 94vh !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 24px 28px 48px 28px !important;
  }
}

.auth-modal {
  max-width: 740px !important;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.modal-body {
  flex: 1;
  overflow-y: visible;
  padding-top: 14px;
}

/* ── Optimización Responsiva Móvil (Smartphones & Tablets) ── */
@media (max-width: 480px) {
  .passenger-topbar {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .btn-menu-hamburger {
    width: 42px;
    height: 42px;
  }

  .brand-pill {
    padding: 6px 14px;
  }

  .brand-pill .brand-name {
    font-size: 1rem;
  }

  .glass-panel {
    bottom: 8px;
    bottom: max(8px, env(safe-area-inset-bottom, 8px));
    left: 8px;
    right: 8px;
    padding: 12px 12px 10px;
    border-radius: 20px;
  }

  .favorite-places-bar {
    gap: 5px;
    margin: 8px 0 6px 0;
  }

  .fav-place-chip {
    padding: 5px 6px;
    gap: 4px;
    border-radius: 10px;
    min-width: 0;
  }

  .fav-icon {
    font-size: 1rem;
  }

  .fav-title {
    font-size: 0.72rem;
  }

  .fav-sub {
    font-size: 0.62rem;
  }

  .btn-fav-edit {
    font-size: 0.68rem;
  }

  .panel-step {
    gap: 8px;
  }

  .panel-heading {
    font-size: 1.15rem;
  }

  .route-connector {
    padding-top: 16px;
    padding-bottom: 6px;
  }

  .inputs-col {
    gap: 6px;
  }

  .input-field {
    padding: 1px 0 3px 0;
  }

  .field-label {
    font-size: 0.56rem;
  }

  .input-field input {
    font-size: 0.85rem;
  }

  .btn-gps {
    width: 24px;
    height: 24px;
  }

  .cta-button {
    padding: 10px 14px;
    font-size: 0.92rem;
    border-radius: 12px;
    margin-top: 2px;
  }

  .fare-amount {
    font-size: 2.0rem;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ============================
   AUTOCOMPLETE SUGGESTIONS DROPDOWN
   ============================ */
.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.25);
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 6px;
  gap: 2px;
}

.suggestions-dropdown.hidden {
  display: none !important;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.suggestion-item:hover {
  background: #f1f5f9;
  transform: translateX(2px);
}

.suggestion-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.suggestion-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.suggestion-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.suggestion-subtitle {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

/* ============================
   BOTONES DE ACCIÓN CABIFY (+ / ⇅)
   ============================ */
.route-actions-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  flex-shrink: 0;
}

.btn-action-purple {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #7c3aed;
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-action-purple:hover {
  background: #6d28d9;
  transform: scale(1.06);
}

.btn-action-purple:active {
  transform: scale(0.95);
}

.btn-action-light-purple {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f3e8ff;
  border: 1px solid #e9d5ff;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
}

.btn-action-light-purple:hover {
  background: #ede9fe;
  color: #6d28d9;
}

.btn-action-light-purple.rotated {
  transform: rotate(180deg);
}

/* ============================
   MODAL INTRODUCE LA PARADA (FULL SCREEN CABIFY/UBER)
   ============================ */
#stop-search-modal-overlay {
  padding: 0 !important;
  background: #ffffff !important;
}

.stop-search-modal {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  background: #ffffff;
  color: #0f172a;
  border-radius: 0 !important;
  padding: 20px 18px !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: none !important;
}

.stop-search-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stop-search-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

.stop-search-input-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #7c3aed;
  border-radius: 14px;
  padding: 10px 14px;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.15);
}

.search-box-icon {
  font-size: 1.1rem;
  opacity: 0.7;
}

.stop-search-input-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f172a;
}

.stop-search-input-box input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.btn-pick-map-icon {
  background: #f3e8ff;
  border: none;
  color: #7c3aed;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-pick-map-icon:hover {
  background: #7c3aed;
  color: #ffffff;
}

.frequent-stops-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: none !important;
  padding-right: 4px;
}

.frequent-stop-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 8px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.18s ease;
}

.frequent-stop-item:hover {
  background: #f8fafc;
  border-radius: 12px;
}

.fs-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.icon-home {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.icon-clock {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.fs-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fs-name {
  font-size: 0.93rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.fs-address {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}

/* ============================
   AVISO DE GRACIA Y MODAL DE CANCELACIÓN ADAPTATIVO
   ============================ */
.cancel-grace-notice {
  background: #f0fdf4;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: #047857;
  font-weight: 600;
  margin-top: 4px;
  transition: all 0.3s ease;
}

.cancel-grace-notice.expired {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
}

.grace-icon {
  font-size: 1rem;
}

.btn-share-trip {
  flex: 1;
  padding: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  color: #1d4ed8;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-share-trip:hover {
  background: #dbeafe;
}

.cancel-modal {
  max-width: 440px !important;
  width: 92% !important;
  background: var(--black-card, #0d1526) !important;
  color: var(--text-primary, #f8fafc) !important;
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.12)) !important;
  border-radius: 20px !important;
  padding: 24px 20px !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: var(--glass-blur, blur(24px));
}

[data-theme="light"] .cancel-modal {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
}

.cancel-modal-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid rgba(245, 158, 11, 0.30);
  color: var(--yellow, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
  transition: var(--transition, all 0.28s ease);
}

.cancel-modal-icon-badge svg {
  width: 28px;
  height: 28px;
  stroke: var(--yellow, #f59e0b);
}

.cancel-modal-icon-badge.warning-badge {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.40);
  color: var(--yellow, #f59e0b);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.cancel-modal-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
  margin: 0;
  letter-spacing: -0.3px;
}

[data-theme="light"] .cancel-modal-title {
  color: #0f172a;
}

.cancel-modal-body-box {
  width: 100%;
  background: var(--black-input, #0a1020);
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.10));
  border-radius: 14px;
  padding: 14px 16px;
  transition: var(--transition, all 0.28s ease);
}

[data-theme="light"] .cancel-modal-body-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.cancel-modal-body-box.warning-box {
  background: var(--black-input, #0a1020);
  border-color: rgba(245, 158, 11, 0.28);
}

[data-theme="light"] .cancel-modal-body-box.warning-box {
  background: #fffbeb;
  border-color: #fde68a;
}

.cancel-modal-desc {
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.90rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.50;
  margin: 0;
}

[data-theme="light"] .cancel-modal-desc {
  color: #475569;
}

.cancel-modal-desc strong {
  color: var(--text-primary, #f8fafc);
  font-weight: 700;
}

[data-theme="light"] .cancel-modal-desc strong {
  color: #0f172a;
}

.cancel-fee-tag {
  display: inline-block;
  margin-top: 10px;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.30);
  color: var(--red, #ef4444);
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 10px;
}

.cancel-modal-actions {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-primary,
.btn-keep-trip {
  flex: 1;
  padding: 13px 14px;
  background: var(--blue-primary, #2563eb);
  border: none;
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--blue-glow, rgba(37, 99, 235, 0.35));
  transition: var(--transition, all 0.28s ease);
}

.btn-primary:hover,
.btn-keep-trip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.50);
}

.btn-danger-outline,
.btn-confirm-cancel {
  flex: 1;
  padding: 13px 14px;
  background: rgba(239, 68, 68, 0.10);
  border: 1.5px solid var(--red, #ef4444);
  border-radius: 12px;
  color: var(--red, #ef4444);
  font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition, all 0.28s ease);
}

[data-theme="light"] .btn-danger-outline,
[data-theme="light"] .btn-confirm-cancel {
  background: rgba(239, 68, 68, 0.08);
  border-color: #ef4444;
  color: #dc2626;
}

.btn-danger-outline:hover,
.btn-confirm-cancel:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
  color: #ffffff;
  transform: translateY(-1px);
}

[data-theme="light"] .btn-danger-outline:hover,
[data-theme="light"] .btn-confirm-cancel:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-confirm-cancel.fee-applied,
.btn-danger-outline.fee-applied {
  background: rgba(239, 68, 68, 0.12);
  border: 1.5px solid #ef4444;
  color: #ef4444;
  font-weight: 700;
}

[data-theme="light"] .btn-confirm-cancel.fee-applied,
[data-theme="light"] .btn-danger-outline.fee-applied {
  background: rgba(239, 68, 68, 0.10);
  border-color: #ef4444;
  color: #dc2626;
}

.btn-confirm-cancel.fee-applied:hover,
.btn-danger-outline.fee-applied:hover {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #ffffff;
}

[data-theme="light"] .btn-confirm-cancel.fee-applied:hover,
[data-theme="light"] .btn-danger-outline.fee-applied:hover {
  background: #fee2e2;
  color: #991b1b;
}

/* ============================
   NOTIFICACIONES TOAST (CERO ALERT NATIVO)
   ============================ */
.toast-container {
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: 90%;
  max-width: 440px;
}

.toast-pill {
  pointer-events: auto;
  width: 100%;
  background: #ffffff;
  color: #0f172a;
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.06);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  animation: toastSlideDown 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-pill.fade-out {
  opacity: 0;
  transform: translateY(-12px);
}

@keyframes toastSlideDown {
  from { opacity: 0; transform: translateY(-24px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon .toast-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.toast-text {
  flex: 1;
  line-height: 1.35;
}

.toast-close {
  background: #f1f5f9;
  border: none;
  color: #94a3b8;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.toast-close:hover {
  background: #fee2e2;
  color: #dc2626;
}

.toast-success { border-left: 4px solid #10b981; }
.toast-success .toast-icon { color: #059669; }
.toast-warning { border-left: 4px solid #f59e0b; }
.toast-warning .toast-icon { color: #d97706; }
.toast-error   { border-left: 4px solid #ef4444; }
.toast-error   .toast-icon { color: #dc2626; }
.toast-info    { border-left: 4px solid #2563eb; }
.toast-info    .toast-icon { color: #2563eb; }

/* ============================
   ESTILOS PARA ICONOS SVG LOCALES (/icons/)
   ============================ */
.drawer-icon-svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.user-avatar-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.icon-svg-sm {
  width: 15px;
  height: 15px;
  object-fit: contain;
  vertical-align: middle;
}

.icon-svg-md {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.cta-icon-svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.radar-car-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.driver-avatar-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.star-rating-img {
  width: 10px;
  height: 10px;
  object-fit: contain;
  vertical-align: middle;
}

.icon-btn-svg {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}

.fs-icon-svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Estado de Ruta sin TAG */
.tag-preference-row.no-tag-route {
  background: #f1f5f9;
  border-color: #e2e8f0;
  opacity: 0.9;
}

.tag-preference-row.no-tag-route .tag-title {
  color: #475569;
}

.tag-preference-row.no-tag-route .tag-desc {
  color: #64748b;
}

/* ── Campo Destino Label Row & Link Map Picker ── */
.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.btn-link-map-picker {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.btn-link-map-picker:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ── Chips de Categorías POI (Estilo Ejecutivo Senior) ── */
.poi-category-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 0 12px 0;
  scrollbar-width: none;
}
.poi-category-bar::-webkit-scrollbar { display: none; }

.poi-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.chip-svg-icon {
  color: #0284c7;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.poi-category-chip:hover, .poi-category-chip:active {
  background: #f0f9ff;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.12);
}

.poi-category-chip:hover .chip-svg-icon {
  color: #0284c7;
  transform: scale(1.1);
}

/* ── Pin Central Flotante de Alta Precisión (Map Picker UX) ── */
.center-picker-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  z-index: 90;
  pointer-events: none;
}

/* Retícula fija en suelo: punto geométrico de coordenadas exactas */
.picker-ground-reticle {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.reticle-shadow {
  position: absolute;
  width: 18px;
  height: 7px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.35);
  filter: blur(1.5px);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease, filter 0.28s ease;
}

.reticle-ring {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.28s ease, background 0.28s ease;
}

.reticle-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

/* Envoltorio del Pin con punta calibrada al píxel 0,0 del centro */
.picker-pin-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -46.5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

.picker-pin-svg {
  display: block;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.32));
  transition: filter 0.25s ease;
}

/* Colores Modo Diurno */
.center-picker-pin .pin-body {
  fill: url(#pin-grad-day);
}

.center-picker-pin .pin-inner-core {
  fill: #047857;
}

/* Microinteracción háptica al arrastrar el mapa (Lift on Pan) */
.center-picker-pin.is-dragging .picker-pin-wrapper {
  transform: translate(-50%, -62px) scale(1.08);
}

.center-picker-pin.is-dragging .reticle-shadow {
  transform: scale(0.55);
  opacity: 0.2;
  filter: blur(3px);
}

.center-picker-pin.is-dragging .reticle-ring {
  transform: scale(1.35);
  border-color: rgba(16, 185, 129, 0.85);
  background: rgba(16, 185, 129, 0.18);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

/* ── MODO OSCURO (NOCHE VIP): ALTO CONTRASTE Y LUMINISCENCIA ── */
#map.dark-mode ~ .center-picker-pin .pin-body,
body.dark-theme .center-picker-pin .pin-body {
  fill: url(#pin-grad-night);
}

#map.dark-mode ~ .center-picker-pin .picker-pin-svg,
body.dark-theme .center-picker-pin .picker-pin-svg {
  filter: drop-shadow(0 0 10px rgba(0, 245, 160, 0.55)) drop-shadow(0 6px 16px rgba(0, 0, 0, 0.7));
}

#map.dark-mode ~ .center-picker-pin .pin-inner-core,
body.dark-theme .center-picker-pin .pin-inner-core {
  fill: #022c22;
}

#map.dark-mode ~ .center-picker-pin .reticle-ring,
body.dark-theme .center-picker-pin .reticle-ring {
  border-color: #00f5a0;
  box-shadow: 0 0 14px rgba(0, 245, 160, 0.6);
  background: rgba(0, 245, 160, 0.15);
}

#map.dark-mode ~ .center-picker-pin .reticle-dot,
body.dark-theme .center-picker-pin .reticle-dot {
  background: #00f5a0;
  box-shadow: 0 0 8px #00f5a0;
}

#map.dark-mode ~ .center-picker-pin .reticle-shadow,
body.dark-theme .center-picker-pin .reticle-shadow {
  background: rgba(0, 0, 0, 0.75);
}

/* ── Tarjeta Inferior de Confirmación de Mapa ── */
.map-picker-card {
  position: absolute;
  bottom: 24px;
  left: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideUpPicker 0.3s ease-out;
}

@keyframes slideUpPicker {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.picker-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.picker-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.picker-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#picker-address-text {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.btn-close-picker {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

/* ============================
   ESTILOS PARA NUEVOS MODALES Y CUMPLIMIENTO LEY 19.628 / EAT
   ============================ */

/* Privacy Banner */
.modal-brand-icon-svg {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.icon-svg-xs {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: middle;
}

.privacy-notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--blue-light);
  line-height: 1.35;
  margin-bottom: 8px;
}

.privacy-icon { font-size: 1.1rem; flex-shrink: 0; }
.privacy-text strong { color: #f8fafc; font-weight: 700; }

.form-select {
  width: 100%;
  background: var(--black-input);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

.field-feedback {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 2px;
  display: block;
}
.field-feedback.valid { color: #10b981; }
.field-feedback.invalid { color: #ef4444; }

.teen-account-notice {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #fbbf24;
}

/* ── Rediseño de Carga de Fotografías y Captura de Cámara (Legibilidad & UX 100%) ── */
.photo-upload-section-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.pu-main-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.pu-main-sub {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

.photo-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 6px 0 12px 0;
}

@media (max-width: 480px) {
  .photo-upload-grid {
    grid-template-columns: 1fr;
  }
}

.photo-upload-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.photo-upload-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.pu-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.pu-badge {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.pu-badge.blue-badge {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.pu-badge.green-badge {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.pu-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.pu-desc {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.3;
  margin: 0;
}

/* Preview Thumbnail Box */
.photo-preview-thumbnail {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  margin: 4px 0;
}

.photo-preview-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-success-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(16, 185, 129, 0.95);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 0;
  text-align: center;
}

.pu-actions-row {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}

.btn-photo-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-cam-primary {
  background: #2563eb;
  border: 1px solid #1d4ed8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.btn-cam-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-gallery-subtle {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.btn-gallery-subtle:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.file-input-hidden { display: none !important; }

.file-name-preview {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  word-break: break-all;
  margin-top: 2px;
}

.file-name-preview.has-file {
  color: #059669;
  font-weight: 700;
}

.checkbox-legal-group {
  margin: 8px 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--blue-primary);
}

.legal-link {
  color: var(--blue-light);
  text-decoration: underline;
}

/* Profile Modal */
.profile-modal { max-width: 680px !important; width: 96% !important; padding: 22px !important; }
.profile-avatar-section { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.avatar-large-wrap { position: relative; width: 84px; height: 84px; }
.avatar-large-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--blue-primary); box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3); }
.btn-change-avatar { position: absolute; bottom: 0; right: 0; background: var(--blue-primary); border: 2px solid #ffffff; border-radius: 50%; width: 28px; height: 28px; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

.verified-badge-pill {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 20px;
}

.profile-section-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.section-box-title { font-size: 0.85rem; color: #0f172a; margin: 0 0 8px 0; font-weight: 800; }
.info-row { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 6px; }
.info-label { color: #64748b; font-weight: 600; }
.info-value { color: #0f172a; font-weight: 800; }
.section-box-sub { font-size: 0.72rem; color: #64748b; margin: 6px 0 0 0; }

.profile-secondary-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.btn-logout-profile {
  flex: 1;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-logout-profile:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-export-data-arcop {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1.5px solid rgba(16, 185, 129, 0.25);
  color: #059669;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.18s ease;
}

.btn-export-data-arcop:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-delete-data-arco {
  flex: 1;
  background: rgba(239, 68, 68, 0.07);
  border: 1.5px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.btn-delete-data-arco:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
}


/* History Modal & PDF */
.history-modal { max-width: 520px !important; width: 92%; padding: 22px !important; }
.history-list { display: flex; flex-direction: column; gap: 12px; max-height: 420px; overflow-y: auto; }
.history-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-card); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.hc-header { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); }
.hc-status.completed { color: #10b981; font-weight: 700; }
.hc-route { display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; font-weight: 600; }
.dot-orig { display: inline-block; width: 8px; height: 8px; background: #3b82f6; border-radius: 50%; margin-right: 6px; }
.dot-dest { display: inline-block; width: 8px; height: 8px; background: #ef4444; border-radius: 50%; margin-right: 6px; }
.hc-meta-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-subtle); padding-top: 8px; margin-top: 2px; }
.hc-driver-info { display: flex; flex-direction: column; font-size: 0.78rem; color: var(--text-secondary); }
.hc-car { font-size: 0.72rem; color: var(--text-muted); }
.hc-fare { font-weight: 800; color: #38bdf8; font-size: 1rem; }
.btn-download-pdf {
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
}
.btn-download-pdf:hover { background: rgba(37, 99, 235, 0.3); }

/* Wallet Modal */
.wallet-modal { max-width: 440px !important; width: 92%; padding: 22px !important; }
.wallet-balance-card { background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%); border-radius: 16px; padding: 18px; color: white; display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.wb-label { font-size: 0.78rem; opacity: 0.9; }
.wb-amount { font-size: 1.8rem; font-weight: 900; }
.wb-curr { font-size: 0.9rem; font-weight: 700; }
.wb-sub { font-size: 0.72rem; opacity: 0.85; }

.wallet-section-title { font-size: 0.85rem; color: #f8fafc; margin: 12px 0 8px 0; font-weight: 700; }
.payment-method-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-card); border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; cursor: pointer; }
.payment-method-card.active { border-color: var(--blue-primary); background: rgba(37, 99, 235, 0.1); }
.pm-left { display: flex; align-items: center; gap: 12px; }
.pm-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pm-icon img, .pm-icon svg {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.pm-left strong { font-size: 0.88rem; display: block; }
.pm-left p { font-size: 0.74rem; color: var(--text-muted); margin: 2px 0 0 0; }
.btn-add-card {
  background: transparent;
  border: 1.5px dashed #cbd5e1;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-add-card:hover {
  border-color: #3b82f6;
  color: #1d4ed8;
  background: #f8fafc;
}

/* ══════════════════════════════════════════
   CENTRO DE AYUDA & SOPORTE PRO — v2.0
   Clases mapeadas 1:1 con el HTML real
   ══════════════════════════════════════════ */

/* ── Body contenedor general del modal ── */
.support-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 16px;
}

/* ── Buscador en tiempo real ── */
.support-search-box {
  position: relative;
  width: 100%;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-input-wrap .search-icon img {
  width: 16px;
  height: 16px;
  opacity: 0.55;
}
.search-input-wrap input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 13px 42px 13px 44px;
  border-radius: 14px;
  outline: none;
  transition: all 0.22s ease;
}
.search-input-wrap input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}
.search-input-wrap input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.btn-clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #e2e8f0;
  border: none;
  color: #475569;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Chips de Categorías / Intenciones Rápidas ── */
.quick-intents-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  margin-bottom: -8px;
}
.quick-intents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.intent-chip-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-body);
}
.intent-chip-card:hover {
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
}
.intent-chip-card.active {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.intent-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.intent-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.intent-icon-lost {
  background: #fef2f2;
  border-color: #fecaca;
}

.intent-icon-fare {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.intent-icon-safety {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.intent-icon-ticket {
  background: #faf5ff;
  border-color: #e9d5ff;
}

.intent-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}
.intent-text small {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

/* ── Cabecera de sección FAQ ── */
.support-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
  margin-bottom: -8px;
}
.support-section-header h4 {
  font-size: 0.9rem;
  font-weight: 900;
  color: #0f172a;
}

/* ── Acordeón FAQ Premium ── */
.faq-accordion-pro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-card-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.22s ease;
}
.faq-card-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.faq-card-item.open {
  border-color: #bfdbfe;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}
.faq-card-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  padding: 13px 14px;
  cursor: pointer;
  user-select: none;
  align-items: center;
}
.faq-cat-badge {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 9px;
  border-radius: 99px;
  white-space: nowrap;
}
.badge-icon-svg {
  width: 13px;
  height: 13px;
  object-fit: contain;
  flex-shrink: 0;
}
/* Colores de badge por categoría — alineados con HTML */
.badge-purple { background: #f5f3ff; color: #6d28d9; }
.badge-blue   { background: #eff6ff; color: #1d4ed8; }
.badge-amber  { background: #fffbeb; color: #92400e; }
.badge-green  { background: #f0fdf4; color: #166534; }
/* Compatibilidad con clases anteriores */
.faq-cat-badge.cat-safety  { background: #fef2f2; color: #991b1b; }
.faq-cat-badge.cat-billing { background: #f0fdf4; color: #166534; }
.faq-cat-badge.cat-trips   { background: #faf5ff; color: #6b21a8; }

.faq-card-title {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
}
.faq-chevron {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 0.8rem;
  color: #94a3b8;
  transition: transform 0.25s ease, color 0.2s ease;
  display: inline-block;
  padding-left: 4px;
}
.faq-card-item.open .faq-chevron {
  transform: rotate(90deg);
  color: #2563eb;
}
.faq-card-body {
  padding: 0 14px 14px 14px;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.5;
  font-weight: 500;
}
.faq-card-body p {
  margin: 0 0 8px 0;
}
.faq-card-body p:last-child { margin-bottom: 0; }
.faq-card-body ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.faq-card-body strong {
  color: #0f172a;
  font-weight: 800;
}
.faq-card-body.hidden { display: none; }

/* ── Formulario de Ticket In-App ── */
.support-ticket-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f0f4ff 100%);
  border: 1.5px solid #e0e7ff;
  border-radius: 16px;
  padding: 16px;
  margin-top: 4px;
}
.st-header {
  margin-bottom: 14px;
}
.st-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.st-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.st-icon-svg {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.st-title-wrap h5 {
  font-size: 0.9rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 3px;
}
.st-title-wrap p {
  font-size: 0.76rem;
  color: #4b5563;
  line-height: 1.35;
  font-weight: 500;
}
.st-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.st-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .st-form-row-2 { grid-template-columns: 1fr; }
}
.st-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.st-form .form-group label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.st-form .form-group select,
.st-form .form-group input,
.st-form .form-group textarea {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.st-form .form-group select:focus,
.st-form .form-group input:focus,
.st-form .form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.st-form .form-group textarea {
  resize: vertical;
  min-height: 70px;
  font-family: var(--font-body);
}
.btn-submit-ticket {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  border: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.86rem;
  padding: 13px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}
.btn-submit-ticket:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.btn-submit-ticket:active {
  transform: translateY(0);
}

/* ── Banner WhatsApp de Urgencias ── */
.urgent-whatsapp-banner {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.08);
}
.uw-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.uw-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(22, 163, 74, 0.12);
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.uw-status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1); }
}
.uw-channel-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #166534;
  opacity: 0.85;
}
.uw-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.uw-title {
  font-size: 0.94rem;
  font-weight: 900;
  color: #14532d;
  margin: 0;
  line-height: 1.3;
}
.uw-desc {
  font-size: 0.78rem;
  color: #166534;
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
}
.btn-urgent-wa {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-family: var(--font-display, inherit);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
.btn-urgent-wa:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.38);
}
.btn-urgent-wa:active {
  transform: translateY(0);
}
.wa-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}


/* Security Center Modal */
.security-modal { max-width: 520px !important; width: 94%; padding: 22px !important; }

/* Aviso de Controles en Vivo sobre el Mapa */
.security-live-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 12px;
  margin-bottom: 4px;
}
.security-live-notice .sln-icon {
  flex-shrink: 0;
  margin-top: 2px;
}
.security-live-notice .sln-text strong {
  display: block;
  font-size: 0.84rem;
  color: #1e40af;
  font-weight: 800;
}
.security-live-notice .sln-text p {
  margin: 3px 0 0 0;
  font-size: 0.77rem;
  color: #1e3a8a;
  line-height: 1.35;
}

/* Estándares y Garantías Ley EAT */
.security-standards-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 12px;
}
.standards-title {
  font-size: 0.86rem;
  color: #0f172a;
  font-weight: 800;
  margin: 0 0 12px 0;
}
.standard-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.standard-row:last-child {
  margin-bottom: 0;
}
.standard-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.standard-info strong {
  display: block;
  font-size: 0.82rem;
  color: #0f172a;
  font-weight: 700;
}
.standard-info p {
  margin: 2px 0 0 0;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.35;
}

body.dark-theme .security-live-notice {
  background: #172554;
  border-color: #1e3a8a;
}
body.dark-theme .security-live-notice .sln-text strong {
  color: #93c5fd;
}
body.dark-theme .security-live-notice .sln-text p {
  color: #bfdbfe;
}
body.dark-theme .security-standards-box {
  background: #1e293b;
  border-color: #334155;
}
body.dark-theme .standards-title {
  color: #f8fafc;
}
body.dark-theme .standard-icon {
  background: #0f172a;
  border-color: #334155;
}
body.dark-theme .standard-info strong {
  color: #f1f5f9;
}
body.dark-theme .standard-info p {
  color: #94a3b8;
}

.trusted-contacts-box { background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 16px; padding: 14px 16px; }
.tc-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tc-header-row h4 { color: #0f172a !important; font-weight: 800; font-size: 0.88rem; }
.btn-edit-tc { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; font-size: 0.76rem; font-weight: 800; padding: 4px 10px; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; }
.btn-edit-tc:hover { background: #dbeafe; border-color: #93c5fd; }

.tc-empty-alert { display: flex; align-items: flex-start; gap: 10px; background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 12px; padding: 12px; margin-top: 6px; }
.tc-empty-alert.hidden { display: none !important; }
.tc-alert-icon { font-size: 1.2rem; flex-shrink: 0; }
.tc-alert-text strong { display: block; font-size: 0.82rem; color: #92400e; font-weight: 800; }
.tc-alert-text p { font-size: 0.76rem; color: #78350f; margin: 3px 0 0 0; line-height: 1.35; font-weight: 500; }

.tc-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; background: #ffffff; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #cbd5e1; color: #0f172a; font-weight: 700; }
.tc-item.hidden { display: none !important; }

.tc-edit-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tc-edit-form.hidden { display: none !important; }
.tc-edit-form input { background: #ffffff; border: 1.5px solid #cbd5e1; color: #0f172a; padding: 9px 12px; border-radius: 10px; font-size: 0.84rem; font-weight: 600; width: 100%; outline: none; }
.tc-edit-form input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }

.btn-save-tc { flex: 1; background: linear-gradient(135deg, #059669, #10b981); color: white; border: none; padding: 9px; border-radius: 10px; font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; cursor: pointer; }
.btn-cancel-tc { background: #f1f5f9; border: 1px solid #cbd5e1; color: #475569; padding: 9px 14px; border-radius: 10px; font-size: 0.8rem; font-weight: 700; cursor: pointer; }

/* EAT Driver Mode Modal */
.eat-modal { max-width: 460px !important; width: 92%; padding: 22px !important; }
.eat-hero-card { background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 100%); border-radius: 14px; padding: 14px; color: white; margin-bottom: 12px; }
.eat-hero-card h4 { margin: 0 0 4px 0; font-size: 0.92rem; }
.eat-hero-card p { margin: 0; font-size: 0.78rem; opacity: 0.9; }
.eat-requirements-list { list-style: none; padding: 0; margin: 0 0 16px 0; display: flex; flex-direction: column; gap: 6px; }
.eat-requirements-list li { font-size: 0.8rem; color: #475569; background: #f8fafc; border: 1px solid #e2e8f0; padding: 8px 12px; border-radius: 10px; }
.eat-requirements-list strong { color: #0f172a; }

/* ============================
   ESTILOS MODAL BLOQUEANTE VUELTO PASAJERO (WHITE PREMIUM BOTTOM ACTION SHEET)
   ============================ */
.vuelto-passenger-overlay {
  align-items: flex-end !important;
  padding: 0 !important;
  z-index: 99999 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(8px) !important;
}

.vuelto-passenger-card {
  max-width: 520px !important;
  width: 100% !important;
  height: auto !important;
  max-height: 90vh !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-bottom: none !important;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.22) !important;
  border-radius: 28px 28px 0 0 !important;
  color: #0f172a !important;
  padding: 14px 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px !important;
  animation: sheetSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

@keyframes sheetSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.vuelto-passenger-card .sheet-drag-handle {
  width: 44px;
  height: 5px;
  background: #cbd5e1;
  border-radius: 3px;
  margin: 0 auto 8px auto;
  flex-shrink: 0;
}

.vuelto-passenger-card .modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  width: 100% !important;
}

.vuelto-passenger-card .modal-brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.vuelto-passenger-card .modal-brand-badge-emerald {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1.5px solid #a7f3d0 !important;
  border-radius: 14px !important;
  width: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15) !important;
}

.vuelto-passenger-card .modal-brand-icon-svg {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
}

.vuelto-passenger-card .modal-header h3 {
  color: #0f172a !important;
  font-family: var(--font-display) !important;
  font-size: 1.22rem !important;
  font-weight: 800 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.vuelto-passenger-card .modal-header p {
  color: #64748b !important;
  font-size: 0.8rem !important;
  margin: 2px 0 0 0 !important;
}

.vuelto-passenger-card .btn-close-modal {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vuelto-passenger-card .btn-close-modal:hover {
  background: #fee2e2;
  color: #dc2626;
}

.vuelto-passenger-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.vuelto-passenger-card .fare-breakdown-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.vuelto-passenger-card .breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  color: #475569;
}

.vuelto-passenger-card .breakdown-row strong {
  color: #0f172a;
  font-weight: 800;
}

.vuelto-passenger-card .breakdown-divider {
  height: 1.5px;
  background: #e2e8f0;
  margin: 2px 0;
}

.vuelto-passenger-card .total-label-highlight {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #0f172a;
  text-transform: uppercase;
}

.vuelto-passenger-card .cash-to-collect {
  font-size: 1.85rem;
  font-weight: 900;
  color: #059669;
  font-family: var(--font-display);
}

.vuelto-passenger-card .cash-to-collect small {
  font-size: 0.95rem;
  font-weight: 800;
  color: #10b981;
}

.passenger-wallet-badge {
  background: #f0fdf4;
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  width: 100%;
  box-sizing: border-box;
}

.passenger-wallet-badge .wallet-badge-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #065f46;
  font-weight: 700;
}

.passenger-wallet-badge small {
  font-size: 0.72rem;
  color: #059669;
  opacity: 0.9;
}

.passenger-timer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  margin-top: 2px;
}

.passenger-timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #d97706;
  font-weight: 800;
}

.passenger-timer-row img {
  width: 16px;
  height: 16px;
}

.passenger-timer-box .vuelto-timer-hint {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.25;
  margin: 0;
}

.vuelto-passenger-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.vuelto-passenger-card .btn-cash-confirm-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.98rem;
  padding: 15px 18px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.vuelto-passenger-card .btn-cash-confirm-pill:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.vuelto-passenger-card .btn-icon-svg-white {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.vuelto-passenger-card .btn-reject-vuelto {
  width: 100%;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  color: #334155;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vuelto-passenger-card .btn-reject-vuelto:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.vuelto-passenger-card .btn-icon-svg-accent {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ====================================================
   FASE 1: DIRECCIONES HABITUALES 1-CLIC (P3)
   ==================================================== */
.favorite-places-bar {
  display: flex;
  gap: 8px;
  margin: 10px 0 8px 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.favorite-places-bar::-webkit-scrollbar {
  display: none;
}

.fav-place-chip {
  flex: 1 1 0;
  min-width: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.fav-place-chip:hover {
  border-color: #3b82f6;
  background: #f8fafc;
  transform: translateY(-1px);
}

.fav-place-chip.has-address {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.fav-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fav-icon .chip-svg-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

#fav-chip-home .fav-icon {
  background: #eff6ff;
  color: #2563eb;
}

#fav-chip-work .fav-icon {
  background: #f1f5f9;
  color: #475569;
}

#fav-chip-custom .fav-icon {
  background: #fffbeb;
  color: #d97706;
}

.fav-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.fav-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-sub {
  font-size: 0.68rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-place-chip.has-address .fav-sub {
  color: #2563eb;
  font-weight: 700;
}


.btn-fav-edit {
  background: none;
  border: none;
  font-size: 0.7rem;
  cursor: pointer;
  padding: 2px 0;
  opacity: 0.45;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.btn-fav-edit:hover {
  opacity: 1;
}

/* ====================================================
   PANTALLA UNIFICADA: DIRECCIONES HABITUALES (P3)
   ==================================================== */
.fav-manager-modal {
  width: 100% !important;
  max-width: 640px !important;
}

.fav-manager-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
}

.fav-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 18px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.fav-card.has-data {
  border-color: #bfdbfe;
  background: #f8fafc;
}

.fav-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fav-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.fav-hero-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fav-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #f1f5f9;
}

.fav-card-icon.fav-icon-home {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.fav-card-icon.fav-icon-work {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.fav-card-icon.fav-icon-custom {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.fav-card-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.fav-card-text-block {
  flex: 1;
  min-width: 0;
}

.fav-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.fav-card-addr {
  font-size: 0.85rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-card.has-data .fav-card-addr {
  color: #1e293b;
  font-weight: 600;
}

.fav-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-fav-card-edit, .btn-fav-card-delete {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fav-card-edit:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #2563eb;
}

.btn-fav-card-delete:hover {
  background: #fef2f2;
  border-color: #ef4444;
  color: #dc2626;
}

/* Formulario inline desplegable */
.fav-card-edit-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
  animation: stepIn 0.25s ease both;
}

.fav-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.fav-input-wrap input {
  width: 100%;
  padding: 12px 78px 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #0f172a;
  background: #ffffff;
  transition: border-color 0.2s;
}

.fav-input-wrap input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.btn-fav-gps {
  position: absolute;
  right: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-fav-gps:hover {
  background: #2563eb;
  color: #ffffff;
}

.fav-form-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.btn-fav-cancel {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-fav-cancel:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cta-button-sm {
  padding: 8px 18px !important;
  font-size: 0.85rem !important;
  border-radius: 10px !important;
  width: auto !important;
}

.fav-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 14px 16px;
  color: #1e40af;
  font-size: 0.82rem;
  line-height: 1.45;
  margin-top: 6px;
}

.fav-info-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
}

#suggestions-fav-home,
#suggestions-fav-work,
#suggestions-fav-custom {
  z-index: 10005 !important;
}

/* ====================================================
   FASE 1: PREFERENCIAS ESPECIALES DE VIAJE (P6)
   ==================================================== */
.trip-preferences-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  margin: 12px 0 16px 0;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.btn-toggle-preferences {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
}

.pref-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pref-icon {
  font-size: 1.15rem;
}

.pref-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
}

.pref-arrow {
  font-size: 0.75rem;
  color: #64748b;
  transition: transform 0.25s ease;
}

.pref-arrow.open {
  transform: rotate(180deg);
}

.preferences-content {
  padding: 0 16px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #f1f5f9;
}

.preferences-content.hidden {
  display: none;
}

.pref-hint {
  font-size: 0.74rem;
  color: #64748b;
  margin: 8px 0 2px 0;
}

.pref-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  gap: 12px;
}

.pref-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}

.pref-opt-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pref-opt-text {
  display: flex;
  flex-direction: column;
}

.pref-opt-text strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.pref-opt-text small {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.25;
}

.pref-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
  cursor: pointer;
}

.pref-passengers-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 10px;
}

.pref-pax-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.pax-selector-chips {
  display: flex;
  gap: 6px;
}

.pax-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pax-chip:hover {
  border-color: #3b82f6;
  color: #2563eb;
}

.pax-chip.active {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* ====================================================
   TEMPORIZADOR DE ESPERA EN RECOJO & NO-SHOW (PASAJERO)
   ==================================================== */
.waiting-timer-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}

.waiting-timer-card.warning-mode {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.15);
}

.waiting-timer-card.paid-mode {
  border-color: #ef4444;
  background: #fef2f2;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.2);
}

.waiting-timer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.waiting-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  color: #1e293b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.waiting-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: waitingPulse 1.6s infinite;
}

.waiting-timer-card.warning-mode .waiting-pulse-dot {
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
}

.waiting-timer-card.paid-mode .waiting-pulse-dot {
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}

@keyframes waitingPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.waiting-rate-hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 12px;
}

.waiting-timer-card.warning-mode .waiting-rate-hint {
  color: #b45309;
  background: #fef3c7;
  border-color: #fde68a;
}

.waiting-timer-card.paid-mode .waiting-rate-hint {
  color: #b91c1c;
  background: #fee2e2;
  border-color: #fecaca;
}

.waiting-timer-body {
  display: flex;
  align-items: center;
  gap: 14px;
}

.waiting-countdown-display {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
}

.waiting-timer-card.warning-mode .waiting-countdown-display {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

.waiting-timer-card.paid-mode .waiting-countdown-display {
  background: #fee2e2;
  border-color: #ef4444;
  color: #dc2626;
}

.waiting-status-info {
  flex: 1;
}

.waiting-main-msg {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.35;
  margin: 0;
}

.waiting-fare-accumulator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 700;
}

.waiting-fare-accumulator .acc-label {
  color: #64748b;
}

.waiting-fare-accumulator .acc-amount {
  color: #dc2626;
  font-weight: 900;
  font-size: 0.95rem;
  font-family: var(--font-display);
}

.waiting-warning-alert,
.waiting-noshow-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.76rem;
  line-height: 1.35;
  animation: fadeInNotice 0.3s ease;
}

.waiting-warning-alert {
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
}

.waiting-noshow-alert {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

@keyframes fadeInNotice {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====================================================
   BANNER DE ERRORES / DUPLICADOS EN REGISTRO (CP-1.2)
   ==================================================== */
.signup-alert-banner {
  background: #fef2f2;
  border: 1.5px solid #f87171;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeInNotice 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.signup-alert-banner.hidden {
  display: none !important;
}

.signup-alert-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.signup-alert-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.signup-alert-text {
  flex: 1;
}

.signup-alert-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 3px;
  font-family: var(--font-display, inherit);
}

.signup-alert-text p {
  font-size: 0.82rem;
  color: #7f1d1d;
  margin: 0;
  line-height: 1.35;
  font-weight: 500;
}

.btn-goto-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #dc2626;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: var(--font-display, inherit);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.btn-goto-login:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

/* ── Estandarización Universal de Iconos (Design System v2.0) ── */
.icon-inline-svg {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  display: inline-block;
  object-fit: contain;
}

.icon-svg-btn {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
}

.faq-chevron-icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.btn-close-modal,
.btn-close-drawer,
.btn-close-picker {
  background: rgba(15, 23, 42, 0.06);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-close-modal:hover,
.btn-close-drawer:hover,
.btn-close-picker:hover {
  background: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

/* ── Estilos de Bloqueo por Deuda de Cancelación (Blindaje Anti-Deuda) ── */
.btn-disabled-debt {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.35);
}

.payment-method-card.disabled-by-debt {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
}

.debt-suspended-modal {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 20px 50px rgba(239, 68, 68, 0.22) !important;
}

/* ── Selector de Medio de Pago y Garantía Deuda Cero (PWA Pasajero) ── */
.payment-method-selector-container {
  margin: 14px 0 12px 0;
  background: rgba(248, 250, 252, 0.95);
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.pms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.pms-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pms-guarantee-badge {
  font-size: 0.74rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 8px;
  border-radius: 6px;
}

.pms-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pms-option-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
}

.pms-option-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.pms-option-card.active {
  border-color: #059669;
  background: rgba(16, 185, 129, 0.05);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

.pms-radio-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.pms-option-card.active .pms-radio-circle {
  border-color: #059669;
  background: #059669;
  box-shadow: inset 0 0 0 3px #ffffff;
}

.pms-opt-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.pms-opt-name {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.pms-opt-desc {
  font-size: 0.70rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.btn-pms-add-card {
  font-size: 0.70rem;
  font-weight: 800;
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  margin-left: auto;
  transition: all 0.2s ease;
}

.btn-pms-add-card:hover {
  background: #1d4ed8;
}

/* Alerta de Deuda Cero */
.pms-zero-debt-notice {
  margin-top: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #991b1b;
  font-size: 0.76rem;
  font-weight: 600;
}

.pms-zero-debt-notice.hidden {
  display: none !important;
}

.btn-zd-action {
  background: #dc2626;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-zd-action:hover {
  background: #b91c1c;
}

/* ── CONTROLES FLOTANTES DEL PASAJERO SOBRE EL MAPA (LEY EAT 21.553) ── */
.passenger-floating-controls {
  position: absolute;
  top: 76px;
  right: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-floating-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.map-floating-circle-btn:active {
  transform: scale(0.92);
}

.map-floating-circle-btn.btn-share-wa {
  color: #10b981;
}

.map-floating-circle-btn.btn-sos-alert {
  border: 1.5px solid #fecaca;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
  animation: pulseSos 2s infinite ease-in-out;
}

body.dark-theme .map-floating-circle-btn,
#map.dark-mode ~ .passenger-floating-controls .map-floating-circle-btn {
  background: #1e293b;
  border-color: #334155;
  color: #f8fafc;
}

body.dark-theme .map-floating-circle-btn.btn-sos-alert,
#map.dark-mode ~ .passenger-floating-controls .map-floating-circle-btn.btn-sos-alert {
  background: #2a1215;
  border-color: #7f1d1d;
}
