/* ==========================================================================
   SAA TAXI · Taxi Seguro San Antonio — Sistema de Diseño Oficial v1.0.0
   San Antonio de los Altos (Municipio Los Salias, Miranda) ↔ Caracas, Venezuela
   Paleta WCAG 2.1 AA (con pares principales > 7:1) · Claro · Oscuro · Lupa · Voz
   100 % Autónomo (Cero CDN externos · Cero estilos inline · Cero desborde)
   ========================================================================== */

@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Modo Claro — Lavanda Luminoso SAA + Morado Real + Amarillo Taxi */
  --bg: #F6F2FC;
  --surface: #FFFFFF;
  --surface-soft: #EDE5F8;
  --ink: #1E0B36;
  --ink-secondary: #463161;
  --purple-royal: #2E104C;
  --violet: #6B21A8;
  --violet-tint: #EFE7FA;

  /* Amarillo Taxi SAA — Texto encima SIEMPRE #1E0B36 (>11:1) */
  --taxi-yellow: #FACC15;
  --taxi-amber: #F59E0B;
  --taxi-ink: #1E0B36;
  --amber-soft-bg: #FEF3C7;
  --amber-soft-ink: #78350F;

  /* Estados semánticos (> 7:1 sobre sus fondos) */
  --emerald: #15803D;
  --emerald-bg: #DCFCE7;
  --emerald-ink: #14532D;
  --danger: #B91C1C;
  --danger-bg: #FEE2E2;
  --danger-ink: #7F1D1D;

  /* Bordes y sombras (WCAG 1.4.11 >= 3.0:1 garantizado en --border-strong) */
  --border: #D6C7EB;
  --border-strong: #7E57B5;
  --header-bg: rgba(246, 242, 252, 0.94);
  --shadow-sm: 0 2px 8px rgba(46, 16, 76, 0.06);
  --shadow-md: 0 10px 28px rgba(46, 16, 76, 0.10);
  --shadow-lg: 0 20px 48px rgba(30, 11, 54, 0.16);

  /* Radios y contenedor */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;
  --container: 1200px;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #140923;
  --surface: #211034;
  --surface-soft: #2C1645;
  --ink: #F6F2FC;
  --ink-secondary: #E0D2F3;
  --purple-royal: #2E104C;
  --violet: #C48BFF;
  --violet-tint: #32194E;

  --taxi-yellow: #FACC15;
  --taxi-amber: #F59E0B;
  --taxi-ink: #1E0B36;
  --amber-soft-bg: #3B2A0A;
  --amber-soft-ink: #FDE68A;

  --emerald: #34D399;
  --emerald-bg: #0F2E24;
  --emerald-ink: #6EE7B7;
  --danger: #F87171;
  --danger-bg: #3B1219;
  --danger-ink: #FECACA;

  --border: #432663;
  --border-strong: #9B74D4;
  --header-bg: rgba(20, 9, 35, 0.94);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.58);
}

/* ==========================================================================
   Reset, Tipografía y Garantía Cero Desborde Horizontal
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  min-width: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
}

img, svg, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, p, li, label, span, a, button, code {
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0 0 0.65rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
  color: var(--ink-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-secondary);
  opacity: 1;
}

/* Foco visible de altísimo contraste (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--taxi-yellow);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--purple-royal);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enlace para saltar al contenido principal */
.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 9999;
  background: var(--taxi-yellow);
  color: var(--taxi-ink);
  font-weight: 800;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  border: 3px solid var(--purple-royal);
  box-shadow: var(--shadow-lg);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
}

/* Utilidades semánticas de espaciado y tipografía (cero atributos style inline) */
.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: 8px; }
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.my-lg { margin: 24px 0; }
.pt-0 { padding-top: 0; }
.w-full { width: 100%; }
.inline-icon-label { display: inline-flex; align-items: center; gap: 10px; }
.lead-strong { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.note-small { font-size: 0.86rem; margin-bottom: 0; }
.bcv-subnote { display: block; margin-top: 6px; color: #E9D5FF; }
.textarea-compact { min-height: 84px; }
.legal-link-strong { text-decoration: underline; font-weight: 700; }

/* ==========================================================================
   Barra Superior de Accesibilidad Universal en Vivo
   ========================================================================== */
.a11y-bar {
  background: var(--purple-royal);
  color: #FFFFFF;
  border-bottom: 2px solid rgba(250, 204, 21, 0.35);
  padding: 8px 0;
  position: relative;
  z-index: 1002;
}

.a11y-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.a11y-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #F6F2FC;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.a11y-label strong {
  color: var(--taxi-yellow);
}

.a11y-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.a11y-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.a11y-btn:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: var(--taxi-yellow);
}

.a11y-btn[aria-pressed="true"],
.a11y-btn.is-speaking {
  background: var(--taxi-yellow);
  color: var(--taxi-ink);
  border-color: var(--taxi-yellow);
}

.a11y-btn-guide {
  background: #FACC15;
  color: #1E0B36;
  border-color: #FACC15;
}

.a11y-btn-guide:hover {
  background: #FDE047;
}

.voice-status-banner {
  background: var(--amber-soft-bg);
  color: var(--amber-soft-ink);
  border-bottom: 2px solid var(--taxi-amber);
  padding: 10px 0;
  font-size: 0.9rem;
  font-weight: 700;
}

.voice-status-banner[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .a11y-label {
    display: block;
    width: 100%;
    font-size: 0.82rem;
    text-align: center;
  }
  .a11y-controls {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .a11y-btn {
    width: 100%;
    padding: 8px 8px;
    font-size: 0.8rem;
    text-align: center;
  }
}

/* ==========================================================================
   Cabecera Principal y Navegación
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  max-width: 100%;
}

.brand-emblem {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--ink);
}

.brand-name-accent {
  display: inline-block;
  background: var(--taxi-yellow);
  color: var(--taxi-ink);
  padding: 1px 7px;
  border-radius: 7px;
  margin-left: 3px;
}

.brand-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary);
  line-height: 1.2;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  padding: 7px 10px;
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--violet-tint);
  color: var(--violet);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link[aria-current="page"] {
  color: #FACC15;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta-desktop {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 20px 20px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-nav-list {
  display: grid;
  gap: 8px;
}

.mobile-nav-list a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--surface-soft);
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 1420px) {
  html[data-magnifier="true"] .main-nav,
  html[data-magnifier="true"] .btn.header-cta-desktop,
  html[data-magnifier="true"] .header-cta-desktop {
    display: none;
  }
  html[data-magnifier="true"] .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 1060px) {
  .main-nav,
  .btn.header-cta-desktop,
  .header-cta-desktop {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
}

@media (max-width: 420px) {
  .brand-emblem {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 1.04rem;
  }
  .brand-sub {
    font-size: 0.75rem;
  }
  .menu-toggle {
    padding: 7px 11px;
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   Botones Oficiales (Contraste Verificado >= 8:1)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  font-weight: 800;
  font-size: 0.96rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  background: var(--surface-soft);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 1;
}

.btn-yellow {
  background: var(--taxi-yellow);
  color: var(--taxi-ink);
  border-color: #EAB308;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.28);
}

.btn-yellow:hover {
  background: #FDE047;
}

.btn-violet {
  background: #6B21A8;
  color: #FFFFFF;
  border-color: #6B21A8;
  box-shadow: 0 6px 18px rgba(107, 33, 168, 0.26);
}

.btn-violet:hover {
  background: #581C87;
}

[data-theme="dark"] .btn-violet {
  background: #7E22CE;
  color: #FFFFFF;
  border-color: #A855F7;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--violet);
  background: var(--violet-tint);
}

.btn-sm {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.88rem;
}

/* ==========================================================================
   Panel Simplificado Adulto Mayor (Se despliega al activar Modo Lupa)
   ========================================================================== */
.senior-banner {
  display: none;
  background: var(--surface);
  border-bottom: 4px solid var(--taxi-amber);
  padding: 20px 0;
}

html[data-magnifier="true"] .senior-banner {
  display: block;
}

.senior-banner-box {
  background: var(--violet-tint);
  border: 3px solid var(--purple-royal);
  border-radius: var(--r-lg);
  padding: 18px;
}

[data-theme="dark"] .senior-banner-box {
  border-color: var(--taxi-yellow);
}

.senior-banner-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.senior-banner-title {
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1.22;
  color: var(--ink);
  margin: 8px 0 4px;
}

.senior-grid-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.senior-big-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  border: 3px solid var(--purple-royal);
  font-weight: 800;
  font-size: 1.02rem;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .senior-big-btn {
  border-color: var(--taxi-yellow);
}

.senior-big-btn.is-primary {
  background: var(--taxi-yellow);
  color: var(--taxi-ink);
  border-color: #1E0B36;
}

@media (max-width: 720px) {
  .senior-grid-actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Secciones, Etiquetas y Hero Principal
   ========================================================================== */
.section {
  padding: 68px 0;
}

.section-alt {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-royal {
  background: linear-gradient(145deg, #2E104C 0%, #3E1668 60%, #240B3D 100%);
  color: #FFFFFF;
}

.section-royal h2,
.section-royal h3,
.section-royal h4 {
  color: #FFFFFF;
}

.section-royal p {
  color: #EDE3FA;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--violet-tint);
  color: var(--violet);
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

[data-theme="dark"] .kicker {
  color: #FACC15;
}

.section-royal .kicker {
  background: rgba(250, 204, 21, 0.16);
  color: var(--taxi-yellow);
  border-color: rgba(250, 204, 21, 0.45);
}

.hero {
  padding: 44px 0 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 36px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
}

.hero-highlight {
  display: inline;
  background: linear-gradient(180deg, transparent 62%, rgba(250, 204, 21, 0.55) 62%);
}

[data-theme="dark"] .hero-highlight {
  color: var(--taxi-yellow);
  background: none;
}

.hero-lead {
  font-size: 1.08rem;
  margin-bottom: 22px;
}

.audience-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.audience-tab {
  min-height: 42px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.audience-tab[aria-selected="true"] {
  background: var(--purple-royal);
  color: var(--taxi-yellow);
  border-color: var(--purple-royal);
}

[data-theme="dark"] .audience-tab[aria-selected="true"] {
  background: var(--taxi-yellow);
  color: var(--taxi-ink);
  border-color: var(--taxi-yellow);
}

.audience-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-left: 5px solid var(--violet);
  border-radius: var(--r-md);
  padding: 15px 18px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.audience-box p {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trust-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 12px;
  box-shadow: var(--shadow-sm);
}

.trust-pill strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink);
}

.trust-pill span {
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.hero-art-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.hero-art-card img {
  width: 100%;
  border-radius: calc(var(--r-lg) - 8px);
}

.hero-art-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 6px 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.badge-yellow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--taxi-yellow);
  color: var(--taxi-ink);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 11px;
  border-radius: var(--r-pill);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .trust-pills {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Tarjetas de Pilares (Cero Motos · Doble Moneda · PIN 4 Dígitos · Accesible)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pillar-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-icon {
  width: 56px;
  height: 56px;
}

.pillar-card h3 {
  font-size: 1.12rem;
  margin-bottom: 2px;
}

.pillar-card p {
  margin: 0;
  font-size: 0.93rem;
}

@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SIMULADORES INTERACTIVOS (Tarifas BCV · Ganancias Taxista · Teléfono Vivo)
   ========================================================================== */
.sim-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: start;
}

.sim-panel {
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.sim-result-panel {
  background: linear-gradient(160deg, #2E104C 0%, #1E0B36 100%);
  color: #FFFFFF;
  border: 2px solid #6B21A8;
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}

.sim-result-panel h3,
.sim-result-panel h4 {
  color: #FFFFFF;
}

.sim-result-panel p {
  color: #EDE3FA;
}

.field-group {
  margin-bottom: 18px;
}

.field-group label,
.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--ink);
  margin-bottom: 7px;
}

.input-control,
.select-control {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}

.input-control[aria-invalid="true"] {
  border-color: var(--danger);
}

.segmented-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.seg-btn {
  min-height: 46px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.seg-btn[aria-pressed="true"] {
  background: #6B21A8;
  color: #FFFFFF;
  border-color: #6B21A8;
}

[data-theme="dark"] .seg-btn[aria-pressed="true"] {
  background: var(--taxi-yellow);
  color: var(--taxi-ink);
  border-color: var(--taxi-yellow);
}

.bills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.bill-btn {
  min-height: 44px;
  padding: 8px 6px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
}

.bill-btn[aria-pressed="true"] {
  background: var(--taxi-yellow);
  color: var(--taxi-ink);
  border-color: #1E0B36;
}

.price-dual-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(250, 204, 21, 0.45);
  border-radius: var(--r-md);
  padding: 18px;
  margin: 14px 0;
}

.price-usd-big {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--taxi-yellow);
  line-height: 1.1;
}

.price-ves-big {
  font-size: 1.28rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 4px;
}

.change-alert-box {
  background: rgba(52, 211, 153, 0.14);
  border: 1.5px solid #34D399;
  border-radius: var(--r-sm);
  padding: 13px 15px;
  margin-top: 12px;
  color: #ECFDF5;
  font-size: 0.92rem;
}

.change-alert-box.is-warn {
  background: rgba(250, 204, 21, 0.16);
  border-color: var(--taxi-yellow);
  color: #FEF9C3;
}

/* Deslizadores Calculadora Taxista */
.range-control {
  width: 100%;
  accent-color: #6B21A8;
  height: 28px;
  cursor: pointer;
}

[data-theme="dark"] .range-control {
  accent-color: #FACC15;
}

.tier-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tier-btn {
  padding: 11px 10px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}

.tier-btn strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}

.tier-btn span {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

.tier-btn[aria-pressed="true"] {
  background: var(--taxi-yellow);
  color: var(--taxi-ink);
  border-color: #1E0B36;
}

.tier-btn[aria-pressed="true"] span {
  color: #1E0B36;
  font-weight: 700;
}

.zero-fee-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--emerald-bg);
  color: var(--emerald-ink);
  border: 2px solid var(--emerald);
  border-radius: var(--r-sm);
  padding: 12px 15px;
  font-weight: 800;
  margin-bottom: 18px;
}

.driver-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.driver-stat-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-sm);
  padding: 14px;
}

.driver-stat-card span {
  display: block;
  font-size: 0.82rem;
  color: #E9D5FF;
}

.driver-stat-card strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--taxi-yellow);
  margin-top: 2px;
}

.driver-stat-card small {
  display: block;
  font-size: 0.82rem;
  color: #FFFFFF;
}

.sim-disclaimer-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #EDE3FA;
}

@media (max-width: 960px) {
  .sim-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .sim-panel,
  .sim-result-panel {
    padding: 18px 14px;
  }
  .segmented-group,
  .tier-selector,
  .driver-stats-grid {
    grid-template-columns: 1fr;
  }
  .bills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   SIMULADOR 3: Teléfono Interactivo (Estándar vs. Lupa vs. Guía por Voz)
   ========================================================================== */
.phone-demo-grid {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 32px;
  align-items: center;
}

.mode-cards-stack {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.mode-select-card {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 2px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.mode-select-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 3px;
}

.mode-select-card span {
  display: block;
  font-size: 0.88rem;
  color: #EDE3FA;
}

.mode-select-card[aria-selected="true"] {
  background: var(--taxi-yellow);
  color: var(--taxi-ink);
  border-color: #FFFFFF;
}

.mode-select-card[aria-selected="true"] span {
  color: #1E0B36;
  font-weight: 600;
}

.phone-chassis {
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  background: #140724;
  border: 5px solid #9E4AED;
  border-radius: 38px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
}

.phone-notch {
  width: 108px;
  height: 14px;
  background: #2E104C;
  border-radius: 99px;
  margin: 0 auto 10px;
}

.phone-screen {
  background: #F6F2FC;
  color: #1E0B36;
  border-radius: 26px;
  padding: 15px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phone-screen.is-voice-screen {
  background: #1B0B2E;
  color: #FFFFFF;
}

.phone-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(107, 33, 168, 0.2);
}

.phone-screen.is-voice-screen .phone-topbar {
  border-bottom-color: rgba(250, 204, 21, 0.3);
}

.phone-title-std { font-size: 0.95rem; }
.phone-title-lupa { font-size: 1.02rem; }
.phone-title-voz { color: #FACC15; }

.phone-pin-pill {
  background: #FACC15;
  color: #1E0B36;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 10px;
  border-radius: 99px;
}

.phone-pin-lupa {
  font-size: 1.65rem;
  padding: 5px 13px;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.phone-minimap-svg {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 2px solid #C4B0E2;
  margin-top: 10px;
}

.phone-veh-card {
  background: #EDE5F8;
  border-radius: 16px;
  padding: 12px;
  margin: 12px 0;
}

.phone-veh-title {
  display: block;
  color: #2E104C;
}

.phone-veh-meta {
  font-size: 0.84rem;
  color: #3D2459;
}

.phone-fare-card {
  background: #FFFFFF;
  border: 2px solid #C4B0E2;
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
}

.phone-fare-route {
  font-size: 0.82rem;
  color: #3D2459;
  display: block;
}

.phone-fare-dual {
  font-size: 1.35rem;
  color: #2E104C;
  display: block;
}

.phone-fare-pay {
  font-size: 0.8rem;
  color: #14532D;
  display: block;
  font-weight: 700;
}

.phone-pin-notice {
  background: #FEF3C7;
  border: 1.5px solid #D97706;
  border-radius: 12px;
  padding: 10px;
  font-size: 0.82rem;
  color: #78350F;
  margin-bottom: 12px;
}

.phone-bottom-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.phone-badge-trunk {
  justify-content: center;
  padding: 10px;
  text-align: center;
}

.phone-badge-sos {
  background: #FEE2E2;
  color: #7F1D1D;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
}

.phone-senior-buttons {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}

.phone-giant-btn {
  width: 100%;
  padding: 13px 12px;
  border-radius: 14px;
  border: 2.5px solid #2E104C;
  background: #FFFFFF;
  color: #1E0B36;
  font-weight: 800;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
}

.phone-giant-btn.is-yellow {
  background: #FACC15;
}

.phone-giant-btn.is-sos {
  background: #FEE2E2;
  color: #7F1D1D;
  border-color: #B91C1C;
}

.phone-screen .phone-lupa-feedback {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #2E104C;
  background: #EDE5F8;
  padding: 8px 10px;
  border-radius: 10px;
}

.phone-screen .phone-voice-desc {
  font-size: 0.84rem;
  color: #EDE3FA;
  margin-bottom: 12px;
}

.phone-voice-wave {
  background: #2C1447;
  border: 2px solid #FACC15;
  border-radius: 18px;
  padding: 14px;
  margin: 12px 0;
  text-align: center;
}

.phone-voice-kicker {
  font-size: 0.82rem;
  color: #E9D5FF;
  display: block;
}

.phone-voice-plate {
  font-size: 1.15rem;
  color: #FFFFFF;
  letter-spacing: 0.08em;
  display: block;
}

.phone-voice-pin-lbl {
  font-size: 0.82rem;
  color: #6EE7B7;
  display: block;
  margin-top: 8px;
}

.phone-voice-pin {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #FACC15;
  margin: 6px 0;
}

.phone-voice-btn {
  width: 100%;
  font-size: 0.88rem;
}

@media (max-width: 920px) {
  .phone-demo-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Secciones Editoriales Dos Columnas (Delivery en Taxi + Causa Social 10 %)
   ========================================================================== */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: center;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 500;
}

.check-dot {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--taxi-yellow);
  color: var(--taxi-ink);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.editorial-img-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.editorial-img-card img {
  width: 100%;
  border-radius: calc(var(--r-lg) - 8px);
}

@media (max-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Ecosistema de Aplicaciones Android y Portal de Comercios
   ========================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.app-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.apk-btn-stack {
  display: grid;
  gap: 10px;
}

.apk-sha-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.apk-sha-box {
  background: var(--surface-soft);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  text-align: left;
}

.apk-sha-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.apk-sha-code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.apk-steps-box {
  margin-top: 26px;
  background: var(--surface-soft);
  border: 2px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 24px 22px;
}

.apk-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.apk-step-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
}

.apk-step-card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.apk-step-card p {
  margin: 0;
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .apps-grid,
  .apk-steps-grid,
  .apk-sha-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Páginas Interiores: Accesibilidad, Términos, Privacidad y Atención Vecinal
   ========================================================================== */
.legal-wrap {
  padding: 44px 20px 72px;
}

.legal-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  max-width: 940px;
  margin: 0 auto;
}

.legal-card h1 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  margin-bottom: 12px;
}

.legal-card h2 {
  font-size: 1.32rem;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legal-card h2.legal-sec-heading {
  margin: 0;
  padding: 0;
  border: 0;
}

.legal-sec-divider {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.legal-card ul,
.legal-card ol {
  color: var(--ink-secondary);
  padding-left: 22px;
  margin: 0 0 16px;
}

.legal-card li {
  margin-bottom: 8px;
}

.info-callout {
  background: var(--violet-tint);
  border-left: 5px solid var(--violet);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  margin: 18px 0;
}

.info-callout p {
  margin: 0;
  color: var(--ink);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
}

.saa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.saa-table th,
.saa-table td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.saa-table th {
  background: var(--purple-royal);
  color: var(--taxi-yellow);
  font-weight: 800;
}

/* Formulario de Atención Vecinal */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 2px solid var(--border-strong);
  background: var(--bg);
  color: var(--ink);
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-field textarea.textarea-compact {
  min-height: 84px;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error-msg {
  margin: 6px 0 0;
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--danger-bg);
  color: var(--danger-ink);
  border: 1.5px solid var(--danger);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-error-summary {
  margin: 16px 0;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: var(--danger-bg);
  color: var(--danger-ink);
  border: 2px solid var(--danger);
  font-weight: 700;
}

.form-error-summary p {
  margin: 0;
  color: var(--danger-ink);
}

.reissue-confirm-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--r-sm);
  background: var(--amber-soft-bg);
  color: var(--amber-soft-ink);
  border: 2px solid var(--taxi-amber);
}

.reissue-confirm-box p {
  margin: 0 0 12px;
  color: var(--amber-soft-ink);
  font-weight: 700;
}

.copy-feedback-msg {
  margin: 12px 0 0;
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--emerald-bg);
  color: var(--emerald-ink);
  border: 1.5px solid var(--emerald);
  font-size: 0.88rem;
  font-weight: 700;
}

.inline-sec-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.icon-heading-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.icon-heading-row h2,
.icon-heading-row h3 {
  margin: 0;
}

/* Modal Accesible para Guía Modo Prueba Android v1.0.0 */
.saa-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20, 9, 35, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.saa-modal-backdrop[hidden] {
  display: none;
}

.saa-modal-dialog {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  border: 3px solid var(--purple-royal);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .saa-modal-dialog {
  border-color: var(--taxi-yellow);
}

.modal-steps-list {
  color: var(--ink-secondary);
  padding-left: 20px;
  margin: 0 0 18px;
}

.modal-steps-list li {
  margin-bottom: 6px;
}

.receipt-box {
  margin-top: 28px;
  background: var(--surface-soft);
  border: 3px solid var(--emerald);
  border-radius: var(--r-md);
  padding: 24px;
}

.receipt-code {
  display: inline-block;
  background: var(--taxi-yellow);
  color: var(--taxi-ink);
  font-weight: 800;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}

@media (max-width: 680px) {
  .legal-wrap {
    padding: 28px 12px 54px;
  }
  .legal-card {
    padding: 20px 14px;
  }
  .receipt-box {
    padding: 18px 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .saa-table th,
  .saa-table td {
    padding: 9px 8px;
    font-size: 0.84rem;
  }
}

/* ==========================================================================
   Pie de Página Oficial
   ========================================================================== */
.site-footer {
  background: #1A082E;
  color: #EDE3FA;
  padding: 54px 0 32px;
  border-top: 4px solid var(--taxi-yellow);
}

.footer-brand-lockup {
  margin-bottom: 12px;
}

.footer-brand-name {
  color: #FFFFFF;
}

.footer-brand-sub {
  color: #E9D5FF;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer h3,
.site-footer h4 {
  color: #FFFFFF;
  font-size: 1.02rem;
  margin-bottom: 12px;
}

.site-footer p {
  color: #D8C7F0;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: #EDE3FA;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--taxi-yellow);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #D8C7F0;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MODO LUPA ADULTO MAYOR (html[data-magnifier="true"])
   Raíz >= 20px en todo dispositivo + Alto Contraste Real + Cero Desborde
   ========================================================================== */
html[data-magnifier="true"] {
  font-size: 125%;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-soft: #F2EAFA;
  --ink: #120424;
  --ink-secondary: #220B3D;
  --border: #2E104C;
  --border-strong: #1E0B36;
}

html[data-theme="dark"][data-magnifier="true"] {
  --bg: #0B0414;
  --surface: #160926;
  --surface-soft: #220E3A;
  --ink: #FFFFFF;
  --ink-secondary: #F6F2FC;
  --border: #FACC15;
  --border-strong: #FACC15;
}

html[data-magnifier="true"] body {
  line-height: 1.7;
}

html[data-magnifier="true"] .brand-sub,
html[data-magnifier="true"] .a11y-label,
html[data-magnifier="true"] .a11y-btn,
html[data-magnifier="true"] .kicker,
html[data-magnifier="true"] .badge-yellow,
html[data-magnifier="true"] .trust-pill span,
html[data-magnifier="true"] .tier-btn span,
html[data-magnifier="true"] .apk-sha-label,
html[data-magnifier="true"] .apk-sha-code,
html[data-magnifier="true"] .footer-bottom {
  font-size: 0.82rem;
}

html[data-magnifier="true"] .btn,
html[data-magnifier="true"] .a11y-btn,
html[data-magnifier="true"] .input-control,
html[data-magnifier="true"] .select-control,
html[data-magnifier="true"] .seg-btn,
html[data-magnifier="true"] .bill-btn,
html[data-magnifier="true"] .tier-btn {
  min-height: 56px;
  border-width: 2.5px;
}

/* En Modo Lupa reorganizamos grillas densas a columnas amplias sin apretar textos */
html[data-magnifier="true"] .hero-grid,
html[data-magnifier="true"] .sim-layout,
html[data-magnifier="true"] .phone-demo-grid,
html[data-magnifier="true"] .split-grid,
html[data-magnifier="true"] .apps-grid,
html[data-magnifier="true"] .apk-steps-grid,
html[data-magnifier="true"] .apk-sha-grid {
  grid-template-columns: 1fr;
}

html[data-magnifier="true"] .pillars-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 720px) {
  html[data-magnifier="true"] .pillars-grid,
  html[data-magnifier="true"] .trust-pills,
  html[data-magnifier="true"] .tier-selector,
  html[data-magnifier="true"] .segmented-group,
  html[data-magnifier="true"] .driver-stats-grid,
  html[data-magnifier="true"] .phone-bottom-badges,
  html[data-magnifier="true"] .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  html[data-magnifier="true"] .a11y-bar {
    padding: 6px 0;
  }
  html[data-magnifier="true"] .a11y-label {
    font-size: 0.76rem;
    line-height: 1.3;
  }
  html[data-magnifier="true"] .a11y-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  html[data-magnifier="true"] .a11y-btn {
    min-height: 48px;
    padding: 6px 8px;
    font-size: 0.74rem;
    line-height: 1.22;
    border-radius: 12px;
  }
}

/* Impresión limpia de Constancias Vecinales (Modo Claro, Modo Oscuro y Modo Lupa) */
@media print {
  :root,
  [data-theme="dark"],
  html[data-magnifier="true"],
  html[data-theme="dark"][data-magnifier="true"] {
    color-scheme: light !important;
    --bg: #FFFFFF !important;
    --surface: #FFFFFF !important;
    --surface-soft: #FFFFFF !important;
    --ink: #000000 !important;
    --ink-secondary: #1E0B36 !important;
    --border: #000000 !important;
    --border-strong: #000000 !important;
  }
  .no-print,
  .a11y-bar,
  .voice-status-banner,
  .site-header,
  .site-footer,
  .senior-banner {
    display: none !important;
  }
  html,
  body,
  .legal-card,
  .legal-card h1,
  .legal-card h2,
  .legal-card h3,
  .legal-card h4,
  .legal-card p,
  .legal-card ul,
  .legal-card ol,
  .legal-card li,
  .legal-card strong,
  .legal-card span,
  .legal-card td,
  .legal-card th,
  .info-callout,
  .info-callout p,
  .receipt-box,
  .receipt-box h1,
  .receipt-box h2,
  .receipt-box h3,
  .receipt-box h4,
  .receipt-box p,
  .receipt-box ul,
  .receipt-box li,
  .receipt-box strong,
  .receipt-box span {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .legal-card,
  .receipt-box {
    border: 2px solid #000000 !important;
    box-shadow: none !important;
    padding: 18px !important;
  }
  .receipt-code {
    border: 1.5px solid #000000 !important;
  }
}

/* Respeto estricto a prefers-reduced-motion (WCAG 2.3.3 / Criterio C3) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
