/* MiAceite - Estilos Personalizados y Optimizaciones iPhone iOS PWA */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace, -apple-system;
  --sat: env(safe-area-inset-top, 24px);
  --sab: env(safe-area-inset-bottom, 20px);
  --dock-height: 120px;
  --bg-page: #15191e;
  --bg-card: #1d2228;
  --bg-sub: #252b33;
  --border-line: #313944;
  --text-main: #f3f4f6;
  --text-muted: #c7cdd6;
  --accent: #f59e0b;
  --accent-ink: #15191e;
}

html.light {
  --bg-page: #EFECE6;
  --bg-card: #FAF8F5;
  --bg-sub: #e6e1d7;
  --border-line: #cec7b9;
  --text-main: #18181b;
  --text-muted: #3f3f46;
  --accent: #b45309;
  --accent-ink: #FAF8F5;
}

/* ============================================================== */
/* 1. CERO MOVIMIENTO HORIZONTAL / DESBORDE (REGLA SAGRADA IPHONE)*/
/* ============================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  height: -webkit-fill-available;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  color: var(--text-main);
  font-size: 18px;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0;
}

header.app-header {
  padding-top: env(safe-area-inset-top, 20px);
  height: calc(48px + env(safe-area-inset-top, 20px));
  padding-bottom: 0;
  display: flex;
  align-items: center;
}

main.app-main-content {
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 20px));
}

.no-horizontal-scroll {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

.no-scrollbar {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}

h1, h2, h3, h4, h5, .font-heading {
  font-family: var(--font-heading);
}

/* ============================================================== */
/* 2. REGLAS ZERO-SCROLL INICIO Y ANTI-REBOTE AUTOS (PILAR 1)     */
/* ============================================================== */
#view-inicio {
  height: calc(100vh - 48px - 68px - env(safe-area-inset-top, 24px) - env(safe-area-inset-bottom, 20px));
  height: calc(100dvh - 48px - 68px - env(safe-area-inset-top, 24px) - env(safe-area-inset-bottom, 20px));
  max-height: calc(100dvh - 48px - 68px - env(safe-area-inset-top, 24px) - env(safe-area-inset-bottom, 20px));
  overflow-y: hidden !important;
  overflow-x: hidden !important;
  touch-action: pan-x;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overscroll-behavior-y: contain;
}

#fleetStatusSummaryCard {
  min-height: 30px;
  height: 30px;
  max-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-radius: 12px;
  box-sizing: border-box;
  cursor: pointer;
}

#view-autos {
  overflow-x: hidden !important;
  touch-action: pan-y !important;
}

/* Banner de Patrocinador Aliado (68px-72px, exactamente a 4px de luz sobre el Tab Bar) */
#partnerBannerCard {
  height: 68px !important;
  max-height: 70px !important;
  min-height: 66px !important;
  overflow: hidden !important;
  margin-top: auto !important;
  margin-bottom: 0 !important; /* El respiro de 4px lo da matemáticamente el padding-bottom de 68px vs 64px del tab bar */
  box-sizing: border-box !important;
}

/* Tarjetas Gráficas Cockpit de Inicio (48px exactos Apple HIG) */
.garage-vehicle-card,
.home-car-row-2level,
.vehicle-compact-row,
.home-car-row {
  min-height: 48px !important;
  height: 48px !important;
  max-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 10px !important;
  border-radius: 14px !important;
  background-color: var(--bg-card);
  border: 1px solid var(--border-line);
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  box-sizing: border-box !important;
  overflow: hidden;
}

.garage-vehicle-card:active,
.home-car-row-2level:active,
.vehicle-compact-row:active,
.home-car-row:active {
  transform: scale(0.98);
  background: rgba(30, 41, 59, 0.9);
}

.cockpit-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: box-shadow 0.3s ease;
}

.cockpit-halo-green {
  background: rgba(45, 138, 97, 0.16);
  color: #52b788;
  border: 1px solid rgba(82, 183, 136, 0.35);
}

.cockpit-halo-yellow {
  background: rgba(217, 119, 6, 0.16);
  color: #d99b26;
  border: 1px solid rgba(217, 155, 38, 0.35);
}

.cockpit-halo-red {
  background: rgba(201, 74, 88, 0.16);
  color: #e06c75;
  border: 1px solid rgba(224, 108, 117, 0.4);
}

@keyframes redPulseHalo {
  0%, 100% {

    border-color: rgba(251, 113, 133, 0.4);
  }
  50% {

    border-color: rgba(251, 113, 133, 0.9);
  }
}

.cockpit-plate-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  color: #e2e8f0;
  background-color: var(--bg-sub);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;

}

.oil-life-capsule {
  width: 72px;
  height: 5px;
  background: #090d16;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);

  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.oil-life-liquid {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s ease;
}

.oil-liquid-green {
  background-color: #10b981;

}

.oil-liquid-yellow {
  background-color: #f59e0b;

}

.oil-liquid-red {
  background-color: #ef4444;

}

.vehicle-compact-name {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.vehicle-compact-km {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}

/* Carrusel por Lotes de 5 Autos en Inicio */
.home-batches-carousel,
.home-batches-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 12px;
  touch-action: pan-x pan-y;
  width: 100%;
}
.home-batches-carousel::-webkit-scrollbar,
.home-batches-slider::-webkit-scrollbar {
  display: none !important;
}

#fleetSingleLineList,
.home-batch-slide,
.home-batch-page {
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  scroll-snap-align: start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 3px !important;
}

.home-batch-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.home-batch-dot.active {
  width: 20px;
  background: #f59e0b;

}

/* ============================================================== */
/* 2.B CARRUSEL HORIZONTAL 'APPLE WALLET' (PILAR 2)               */
/* ============================================================== */
.wallet-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.wallet-carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 16px 6px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.wallet-carousel::-webkit-scrollbar {
  display: none !important;
}

.wallet-card {
  flex: 0 0 88%;
  max-width: 380px;
  scroll-snap-align: center;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 640px) {
  .wallet-card {
    flex: 0 0 92%;
    max-width: 440px;
  }
}

/* Regla Auto Único: Scroll-Lock y centrado */
.wallet-carousel.single-card {
  overflow-x: hidden !important;
  justify-content: center;
  padding: 4px 0 6px 0;
}

.wallet-carousel.single-card .wallet-card {
  flex: 0 0 100%;
  max-width: 100%;
  cursor: default;
}

/* Indicadores de paginación estilo iOS */
.wallet-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
  margin-bottom: 4px;
}

.wallet-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.wallet-dot.active {
  width: 22px;
  background: #f59e0b;

}

/* ============================================================== */
/* 3. TARJETA BANCARIA DE VEHÍCULO (FINTECH WALLET - IMAGEN 2)   */
/* ============================================================== */
.vehicle-luxury-card {
  background-color: var(--bg-card);
  /* flat surface */
  -webkit-/* flat surface */
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);

}

.vehicle-luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent);
}

/* Chip metálico estilo tarjeta dorada / platino */
.card-emv-chip {
  width: 32px;
  height: 24px;
  background-color: #d97706;
  border-radius: 5px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.45);

  overflow: hidden;
  flex-shrink: 0;
}

.card-emv-chip::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(0, 0, 0, 0.28);
  border-radius: 2px;
}

.card-emv-chip::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  top: 50%;
  background: rgba(0, 0, 0, 0.25);
}

/* Efectos semáforo Glow refinado */
.glow-green {
  border-color: rgba(34, 197, 94, 0.45) !important;

}

.glow-yellow {
  border-color: rgba(245, 158, 11, 0.55) !important;

}

.glow-red {
  border-color: rgba(239, 68, 68, 0.65) !important;

  animation: pulse-red 2.4s infinite;
}

@keyframes pulse-red {
  0%, 100% {

  }
  50% {

  }
}

.progress-fill {
  transition: width 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================== */
/* 4. BOTONES RÁPIDOS Y ACCIÓN GIGANTE DE 56PX (DIRECTRIZ 3)      */
/* ============================================================== */
.action-btn-large {
  min-height: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 700;
  touch-action: manipulation;
  transition: transform 0.1s ease, background 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.action-btn-large:active {
  transform: scale(0.95);
}

.quick-pill-btn {
  min-height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 8px 10px;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.quick-pill-btn:active {
  transform: scale(0.96);
}

.tactile-btn-44 {
  min-height: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
  touch-action: manipulation;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.tactile-btn-44:active {
  transform: scale(0.96);
}

/* Transiciones entre Vistas SPA */
.app-view {
  display: block;
  animation: fadeInView 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-view.hidden {
  display: none !important;
}

@keyframes fadeInView {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tarjetas compactas de Alerta de 2 Niveles */
.compact-alert-card {
  background-color: var(--bg-card);
  /* flat surface */
  -webkit-/* flat surface */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.compact-alert-card:active {
  transform: scale(0.99);
}

/* ============================================================== */
/* 5. SISTEMA DE 'BOTTOM SHEETS' TÁCTILES DE iOS (PILAR 3)       */
/* ============================================================== */
.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 8, 16, 0.75);
  /* flat surface */
  -webkit-/* flat surface */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bottom-sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  max-height: 85dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 16px)) 1.25rem;
  display: flex;
  flex-direction: column;
}

.bottom-sheet-backdrop.active .bottom-sheet {
  transform: translateY(0);
}

.bottom-sheet-handle {
  width: 42px;
  height: 5px;
  background: rgba(148, 163, 184, 0.45);
  border-radius: 9999px;
  margin: 10px auto 14px auto;
  flex-shrink: 0;
  cursor: grab;
}

/* ============================================================== */
/* 6. TAB BAR NATIVO DE iOS (DIRECTRIZ 5 - z-40)                  */
/* ============================================================== */
.bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--bg-card);
  /* flat surface */
  -webkit-/* flat surface */
  border-top: 1px solid rgba(255, 255, 255, 0.1);

  padding-top: 6px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 12px));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.bottom-tab-bar.tab-bar-hidden {
  transform: translateY(140%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  min-height: 48px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  background: transparent;
  border: none;
  padding: 2px 0;
}

.tab-btn.active {
  color: #f59e0b;
}

.tab-btn:active {
  transform: scale(0.92);
}

.tab-icon-wrap {
  position: relative;
  font-size: 18px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-badge-dot {
  position: absolute;
  top: -2px;
  right: -5px;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: 2px solid #15191e;
}

/* Nivel 1: Zona Pills de 26px */
.zone-pill-26 {
  height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Botones de acción táctiles para el pulgar de 48px */
.btn-dock-action {
  min-height: 46px;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  touch-action: manipulation;
  transition: all 0.15s ease;
}

.btn-dock-action:active {
  transform: scale(0.95);
}

.btn-whatsapp {
  background-color: #16a34a;
  color: #FAF8F5;

}

.btn-whatsapp:hover, .btn-whatsapp:active {
  background-color: #15803d;

}

/* Glass card general */
.glass-card {
  background: rgba(23, 32, 51, 0.78);
  /* flat surface */
  -webkit-/* flat surface */
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============================================================== */
/* NUEVA ARQUITECTURA ZERO-SCROLL INICIO & CARRUSEL MIS AUTOS    */
/* ============================================================== */

/* Banner de Patrocinador 15% Viewport (92px - 96px) */
.sponsor-banner-compact {
  height: 94px;
  max-height: 94px;
  border-radius: 20px;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-sizing: border-box;
  background: rgba(23, 32, 51, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);

}

.sponsor-banner-header {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 2px;
}

.zone-pill-mini {
  height: 18px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sponsor-banner-body {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sponsor-logo-40 {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.btn-whatsapp-44 {
  min-height: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  background-color: #16a34a;
  color: #FAF8F5;

  flex-shrink: 0;
  touch-action: manipulation;
}

.btn-whatsapp-44:active {
  transform: scale(0.95);
}

/* Fila de Auto en Inicio (2 niveles compactos Apple HIG) */
.home-car-row.border-red {
  border-color: rgba(244, 63, 94, 0.45);
}

.home-car-row.border-yellow {
  border-color: rgba(245, 158, 11, 0.45);
}

.home-car-row.border-green {
  border-color: rgba(34, 197, 94, 0.35);
}

/* Píldora de Flota '+X restantes' en Inicio */
.home-fleet-pill {
  height: 32px;
  min-height: 32px;
  border-radius: 12px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.home-fleet-pill:active {
  transform: scale(0.97);
  background: rgba(245, 158, 11, 0.2);
}

/* Alerta flotante estilo Fizz Friday */
.alert-card-float {
  animation: floatNotice 4s ease-in-out infinite;
}

@keyframes floatNotice {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Header Seguro con notch y Dynamic Island de iPhone está definido en header.app-header */

/* Estados activos generales */
button, select, input, a {
  transition: all 0.15s ease;
  touch-action: manipulation;
}

button:active, a:active {
  transform: scale(0.97);
}

/* Scrollbar sutil */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.6);
}

/* ============================================================== */
/* AVISO CENTRAL ESTILO APPLE HUD (NOTIFICACIONES TÁCTILES iOS)   */
/* ============================================================== */
.apple-hud-toast {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 82vw;
  width: 290px;
  border-radius: 28px;
  background: var(--bg-card);
  /* flat surface */
  -webkit-/* flat surface */
  border: 1px solid rgba(255, 255, 255, 0.15);

  padding: 22px 18px;
  transform: scale(0.92);
  opacity: 0;
  pointer-events: auto;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.apple-hud-toast.active,
.apple-hud-toast.show {
  transform: scale(1);
  opacity: 1;
}

/* ============================================================== */
/* 25. PANTALLA DE ACCESO / BIENVENIDA ANIMADA (#view-auth)       */
/* ============================================================== */
#view-auth {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: var(--bg-page);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 24px) + 24px) 24px calc(env(safe-area-inset-bottom, 20px) + 24px) 24px;
  overflow-y: auto;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

#view-auth.hidden,
#view-auth[style*="display: none"] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  z-index: -10 !important;
}

#view-auth.auth-fade-out {
  opacity: 0 !important;
  transform: scale(0.96) !important;
  pointer-events: none !important;
}

.oil-drop-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.oil-glow-pulse {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: transparent;
  animation: oilGlowPulse 2.4s infinite ease-in-out;
  pointer-events: none;
}

.oil-drop-svg {
  position: relative;
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 4px 18px rgba(245, 158, 11, 0.6));
  animation: oilDropViscous 3.2s infinite ease-in-out;
}

.oil-ripple {
  position: absolute;
  bottom: 8px;
  width: 54px;
  height: 14px;
  border-radius: 50%;
  background-color: transparent;
  animation: oilRipple 3.2s infinite ease-in-out;
}

@keyframes oilDropViscous {
  0%, 100% {
    transform: translateY(0) scale(1, 1);
  }
  35% {
    transform: translateY(-8px) scale(0.94, 1.07);
  }
  70% {
    transform: translateY(3px) scale(1.05, 0.94);
  }
}

@keyframes oilGlowPulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.38);
    opacity: 0.95;
  }
}

@keyframes oilRipple {
  0%, 100% {
    transform: scale(0.88);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.85;
  }
}

/* Micro-ajustes Banner 68px */
#partnerBannerCard .sponsor-logo-40 {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
}

#partnerBannerCard .btn-whatsapp-44 {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  border-radius: 10px !important;
}

/* ============================================================== */
/* 26. ANTI-IA: TEMA DUAL, ERGONOMÍA (16px+ INPUTS) Y 375x667     */
/* ============================================================== */
input, select, textarea {
  font-size: 16px !important;
}

main button, #view-auth button, .btn-primary, .btn-whatsapp {
  min-height: 52px;
}

header button {
  min-height: 38px;
}

[class*="bg-gradient-"] {
  background-image: none !important;
}

.tab-btn, .chip-btn {
  min-height: 48px;
}

@media (max-height: 700px) {
  #view-inicio {
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    gap: 10px;
  }
}

/* Mapeo completo Oscuro Mate (#15191e / #1d2228) */
html.dark body,
html.dark .bg-slateDark-950 {
  background-color: #15191e !important;
  color: #f3f4f6 !important;
}
html.dark .bg-slate-900,
html.dark .bg-slate-900\/95,
html.dark .bg-slate-900\/90,
html.dark .bg-slateDark-900 {
  background-color: #1d2228 !important;
}
html.dark .bg-slate-800,
html.dark .bg-slate-800\/90,
html.dark .bg-slate-800\/80,
html.dark .bg-slate-800\/60,
html.dark .bg-slate-800\/50 {
  background-color: #252b33 !important;
}
html.dark .border-slate-800,
html.dark .border-slate-700,
html.dark .border-slate-800\/80 {
  border-color: #313944 !important;
}

/* Mapeo completo Modo Día Papel Marfil (#EFECE6 / #FAF8F5) */
html.light body,
html.light .bg-slateDark-950,
html.light #view-auth {
  background-color: #EFECE6 !important;
  color: #18181b !important;
}
html.light header.app-header,
html.light .bottom-tab-bar,
html.light .vehicle-luxury-card,
html.light .compact-alert-card,
html.light .apple-hud-toast,
html.light .bg-slate-900,
html.light .bg-slate-900\/95,
html.light .bg-slate-900\/90,
html.light .bg-slate-900\/80,
html.light .bg-slateDark-900,
html.light .bg-slateDark-850 {
  background-color: #FAF8F5 !important;
  border-color: #cec7b9 !important;
  color: #18181b !important;
}
html.light .bg-slate-800,
html.light .bg-slate-800\/90,
html.light .bg-slate-800\/80,
html.light .bg-slate-800\/60,
html.light .bg-slate-800\/50,
html.light .bg-slate-950,
html.light .garage-vehicle-card,
html.light .home-car-row-2level,
html.light .vehicle-compact-row,
html.light .home-car-row,
html.light .cockpit-row-card,
html.light .cockpit-row-card.status-red,
html.light .cockpit-row-card.status-yellow,
html.light .cockpit-row-card.status-green,
html.light #partnerBannerCard,
html.light #fleetStatusSummaryCard,
html.light #iphoneInstallBanner,
html.light .glass-card {
  background-color: #FAF8F5 !important;
  border-color: #cec7b9 !important;
  color: #18181b !important;
}
html.light .cockpit-halo-green {
  background: #e6f4ec !important;
  color: #166534 !important;
  border-color: #bbf7d0 !important;
}
html.light .cockpit-halo-yellow {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fde68a !important;
}
html.light .cockpit-halo-red {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border-color: #fecaca !important;
}
html.light .text-emerald-300,
html.light .text-emerald-400 {
  color: #166534 !important;
}
html.light .text-rose-300,
html.light .text-rose-400 {
  color: #991b1b !important;
}
html.light .text-indigo-300, html.light .text-indigo-400 {
  color: #3730a3 !important;
}
html.light [class*="bg-indigo-950"] {
  background-color: #e6e1d7 !important;
  border-color: #cec7b9 !important;
  color: #18181b !important;
}
/* Apagar tonos fluorescentes en Modo Noche también */
html.dark .text-rose-300,
html.dark .text-rose-400 {
  color: #e06c75 !important;
}
html.dark .text-amber-300,
html.dark .text-amber-400 {
  color: #d99b26 !important;
}
html.dark .text-emerald-300,
html.dark .text-emerald-400 {
  color: #52b788 !important;
}
html.dark .bg-emerald-500,
html.dark .bg-green-500,
html.dark .btn-whatsapp {
  background-color: #1f7a53 !important;
  color: #FAF8F5 !important;
}
html.light .btn-whatsapp {
  background-color: #166534 !important;
  color: #FAF8F5 !important;
}
html.light .cockpit-plate,
html.light .cockpit-plate-badge,
html.light span[class*="bg-slate-800"],
html.light [class*="bg-slate-900/"],
html.light [class*="bg-slate-800/"],
html.light [class*="bg-rose-950"],
html.light [class*="bg-amber-950"],
html.light [class*="bg-emerald-950"] {
  background-color: #e6e1d7 !important;
  color: #18181b !important;
  border-color: #cec7b9 !important;
}
html.dark .btn-whatsapp-44,
html.light .btn-whatsapp-44 {
  background-color: #166534 !important;
  color: #FAF8F5 !important;
}
html.light .border-slate-800,
html.light .border-slate-700,
html.light .border-slate-700\/60,
html.light .border-slate-800\/80,
html.light .border-white\/10,
html.light .border-white\/15 {
  border-color: #cec7b9 !important;
}
html.light .text-white,
html.light .text-slate-100,
html.light .text-slate-200 {
  color: #18181b !important;
}
html.light .text-slate-300,
html.light .text-slate-400,
html.light .text-slate-500 {
  color: #3f3f46 !important;
}
html.light .text-amber-100,
html.light .text-amber-200,
html.light .text-amber-200\/80,
html.light .text-amber-300,
html.light .text-amber-400,
html.light .text-amber-500 {
  color: #92400e !important;
}
html.light .text-emerald-300,
html.light .text-emerald-400 {
  color: #065f46 !important;
}
html.light .text-rose-300,
html.light .text-rose-400 {
  color: #9f1239 !important;
}
html.light input,
html.light select,
html.light textarea {
  background-color: #FAF8F5 !important;
  color: #18181b !important;
  border-color: #b8b0a0 !important;
}
