/* ============================================================================
   TRANSPORTES GLOBAL BRACAR S.A.C. — HOJA DE ESTILOS
   ============================================================================
   Autor: Estudio de diseño (landing original, no plantilla)
   Concepto: "movimiento, ruta y confianza".
   ----------------------------------------------------------------------------
   ÍNDICE
   0. SISTEMA DE DISEÑO (variables: paleta, tipografía, espaciado, radios…)
   1. RESET Y BASE
   2. UTILIDADES Y COMPONENTES (botones, títulos, links, motivo "ruta")
   3. NAVBAR
   4. HERO + ANIMACIÓN DEL BUS
   5. BARRA DE CONFIANZA (stats)
   6. NOSOTROS
   7. SERVICIOS
   8. FLOTA
   9. POR QUÉ ELEGIRNOS
   10. CERTIFICACIONES
   11. CLIENTES (marquee)
   12. TESTIMONIOS
   13. CONTACTO + FORMULARIO
   14. FOOTER + WHATSAPP FLOTANTE
   15. ANIMACIONES (@keyframes)
   16. RESPONSIVE (media queries)
   17. ACCESIBILIDAD (prefers-reduced-motion)
   ============================================================================ */


/* ============================================================================
   0. SISTEMA DE DISEÑO
   ============================================================================
   Todo el diseño deriva de estos tokens. Cambiar aquí = cambiar en toda la web.
*/
:root {
  /* ---- PALETA ------------------------------------------------------------
     Base azul marino profundo + acento cálido ámbar + azul eléctrico.
  */
  --navy-900:  #0C1F3A;   /* fondo oscuro más profundo */
  --navy-800:  #10294B;
  --navy:      #16345F;   /* AZUL MARCA principal */
  --navy-700:  #1E4578;
  --blue:      #2E7BE4;   /* azul eléctrico (energía / links) */
  --blue-soft: #6AA8F0;
  --amber:     #F5A623;   /* ACENTO cálido */
  --amber-600: #E0930F;

  --ink:       #14243B;   /* texto sobre claro */
  --muted:     #5C6B80;   /* texto secundario */
  --line:      #E4E8EE;   /* bordes sutiles */

  --paper:     #FFFFFF;   /* claro puro */
  --cream:     #F4F2EC;   /* claro cálido (ritmo de secciones) */
  --cream-2:   #EFECE3;

  /* Colores sobre fondo oscuro */
  --on-dark:        #EAF0F8;
  --on-dark-muted:  #9FB2CC;

  /* ---- ESCALA TIPOGRÁFICA (fluida con clamp) ----------------------------- */
  --ff-display: "Anton", "Archivo", system-ui, sans-serif; /* mega números/titulares */
  --ff-head:    "Archivo", system-ui, sans-serif;          /* headings */
  --ff-body:    "Inter", system-ui, sans-serif;            /* cuerpo */

  --fs-mega:  clamp(3.5rem, 11vw, 9rem);    /* números gigantes */
  --fs-h1:    clamp(2.4rem, 5.2vw, 4.6rem);
  --fs-h2:    clamp(1.9rem, 3.6vw, 3.3rem);
  --fs-h3:    clamp(1.2rem, 1.8vw, 1.6rem);
  --fs-lead:  clamp(1.05rem, 1.4vw, 1.25rem);
  --fs-body:  1rem;
  --fs-sm:    0.875rem;
  --fs-xs:    0.75rem;

  /* ---- ESPACIADO (base 8px) --------------------------------------------- */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --section-y: clamp(4rem, 9vw, 8rem);      /* padding vertical de sección */
  --gutter:    clamp(1.25rem, 5vw, 5rem);   /* margen lateral */
  --maxw:      1240px;                       /* ancho máximo de contenido */

  /* ---- RADIOS, SOMBRAS, TRANSICIONES ------------------------------------ */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 4px 14px rgba(12, 31, 58, 0.08);
  --shadow-md: 0 18px 40px rgba(12, 31, 58, 0.14);
  --shadow-amber: 0 12px 30px rgba(245, 166, 35, 0.35);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.2s var(--ease);
  --t-med:  0.4s var(--ease);
}


/* ============================================================================
   1. RESET Y BASE
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; }

h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.05; font-weight: 800; }

/* Foco visible y accesible en toda la web */
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Acomoda el ancla bajo la navbar fija */
section[id], header[id] { scroll-margin-top: 84px; }


/* ============================================================================
   2. UTILIDADES Y COMPONENTES
   ============================================================================ */

/* --- Contenedores de sección: envuelven el contenido a --maxw --- */
.about, .services, .fleet, .why, .certs, .clients,
.testimonials, .contact, .stats {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* --- Eyebrow (etiqueta pequeña sobre los títulos) --- */
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--sp-2);
}
.section__eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--amber);
}
.section__eyebrow--light { color: var(--amber); }

/* --- Títulos de sección --- */
.section__title {
  font-size: var(--fs-h2);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--navy);
}
.section__title--light { color: var(--on-dark); }
.text-accent { color: var(--blue); }
.text-amber  { color: var(--amber); }

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  padding: 0.85em 1.5em;
  border-radius: var(--r-pill);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
  will-change: transform;
}
.btn--lg { padding: 1.05em 2em; font-size: var(--fs-body); }
.btn--block { width: 100%; justify-content: center; }

.btn--amber { background: var(--amber); color: var(--navy-900); box-shadow: var(--shadow-amber); }
.btn--amber:hover { background: var(--amber-600); transform: translateY(-3px); }

.btn--ghost { background: transparent; color: var(--on-dark); border: 2px solid rgba(255,255,255,0.35); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-3px); }

/* Variantes de envío del formulario */
.btn--wa { background: #25D366; color: #fff; box-shadow: 0 12px 26px rgba(37,211,102,0.35); }
.btn--wa:hover { background: #1EBE5A; transform: translateY(-3px); }
.btn--mail { background: var(--blue); color: #fff; box-shadow: 0 12px 26px rgba(46,123,228,0.32); }
.btn--mail:hover { background: #1f66c8; transform: translateY(-3px); }

/* --- Link-CTA con flecha que se desplaza al hover --- */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 3px;
  transition: gap var(--t-fast), color var(--t-fast);
}
.link-cta span { transition: transform var(--t-fast); }
.link-cta:hover { color: var(--blue); gap: 0.9em; }
.link-cta:hover span { transform: translateX(4px); }

/* --- MOTIVO GRÁFICO "RUTA": línea segmentada que se dibuja con el scroll --- */
.route {
  position: absolute;
  top: 0; left: max(14px, 2.5vw);
  width: 20px; height: 100%;
  z-index: 1;
  pointer-events: none;
}
.route__path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 14 16;                 /* línea discontinua tipo carretera */
  /* pathLength se normaliza a 1000 vía atributo en JS para animar el trazo */
  opacity: 0.55;
}

/* Aparición por scroll (IntersectionObserver añade .is-visible).
   El estado oculto se aplica SOLO si JS está activo (clase .js en <html>),
   así los usuarios sin JavaScript ven todo el contenido (mejora progresiva/SEO). */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }


/* ============================================================================
   3. NAVBAR
   ============================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--t-med), box-shadow var(--t-med), padding var(--t-med);
  padding: 0.6rem 0;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

/* Navbar sólida al hacer scroll (clase .is-scrolled vía JS) */
.nav.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 6px 24px rgba(12,31,58,0.10);
}

/* --- Marca / logo (reconstrucción fiel al original) -----------------------
   Estructura del logo real: "TRANSPORTES GLOBAL" en gris arriba y "BRACAR"
   en grande debajo (azul marino), con un trazo de carretera (motivo "ruta").
   Los colores se adaptan al fondo (claros sobre el hero oscuro; de marca
   sobre la navbar clara) para mantener la legibilidad. */
.brand { display: inline-flex; align-items: center; }
/* Logo oficial SIN caja. Se muestra la versión blanca sobre el hero oscuro
   y la versión a color cuando la navbar pasa a fondo claro (al hacer scroll). */
.brand__logo { display: block; height: 42px; width: auto; }
.brand__logo--light { display: none; }
.nav.is-scrolled .brand__logo--dark { display: none; }
.nav.is-scrolled .brand__logo--light { display: block; }

/* --- Menú --- */
.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__menu a:not(.btn) {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  color: var(--on-dark);
  position: relative;
  padding: 4px 0;
  transition: color var(--t-fast);
}
.nav__menu a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--amber);
  transition: width var(--t-fast);
}
.nav__menu a:not(.btn):hover::after { width: 100%; }
.nav.is-scrolled .nav__menu a:not(.btn) { color: var(--navy); }
.nav__cta { color: var(--navy-900) !important; }

/* Botones de redes sociales en el menú */
.nav__social { display: inline-flex; align-items: center; gap: 8px; }
.nav__menu .nav__social a {
  width: 34px; height: 34px; padding: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.nav__menu .nav__social a::after { content: none; }   /* sin subrayado */
.nav__menu .nav__social a:hover { background: var(--amber); color: var(--navy-900); border-color: var(--amber); transform: translateY(-2px); }
.nav.is-scrolled .nav__menu .nav__social a { color: var(--navy); border-color: var(--line); }
.nav.is-scrolled .nav__menu .nav__social a:hover { color: var(--navy-900); }

/* --- Botón hamburguesa (oculto en desktop) --- */
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}
.nav__burger span {
  display: block; height: 2.5px; border-radius: 2px;
  background: var(--on-dark);
  transition: transform var(--t-fast), opacity var(--t-fast), background var(--t-med);
}
.nav.is-scrolled .nav__burger span { background: var(--navy); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/* ============================================================================
   4. HERO + ANIMACIÓN DEL BUS
   ============================================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 12vh, 8.5rem) var(--gutter) clamp(3rem, 6vh, 5rem);
  background:
    radial-gradient(120% 90% at 85% -10%, var(--navy-700) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 60%, var(--navy-800) 100%);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}

/* Retícula del hero: texto a la izquierda, mapa animado a la derecha */
.hero__inner {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

/* --- Fondo del hero: glow --- */
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__glow {
  position: absolute; top: -20%; right: -10%;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(46,123,228,0.35), transparent 65%);
  filter: blur(20px);
}

/* --- Contenido del hero (editorial, a la izquierda) --- */
.hero__content { max-width: 640px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--ff-head); font-weight: 600;
  font-size: var(--fs-xs); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--on-dark-muted);
  padding: 0.5em 1em;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-3);
}
.hero__eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 0 rgba(245,166,35,0.6);
  animation: pulse 2.2s ease-out infinite;
}

.hero__title {
  font-size: var(--fs-h1);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  max-width: 15ch;
  margin-bottom: var(--sp-3);
}
.hero__title-accent { color: var(--amber); display: inline; }

.hero__subtitle {
  font-size: var(--fs-lead);
  color: var(--on-dark-muted);
  max-width: 46ch;
  margin-bottom: var(--sp-4);
}
.hero__subtitle strong { color: var(--on-dark); }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ===========================================================================
   VISUAL ANIMADO: MAPA DEL PERÚ + VEHÍCULO EN RUTA
   El vehículo (JS) recorre la ruta y se "transforma" cada 5 s en otro tipo.
   =========================================================================== */
.hero__visual { position: relative; }
.perumap {
  width: 100%; max-width: 560px; height: auto;
  margin-left: auto; display: block;
  filter: drop-shadow(0 22px 42px rgba(0,0,0,0.45));
}
/* Silueta (relleno y borde ya definidos en el SVG) */
.perumap__route-base { fill: none; stroke: rgba(234,240,248,0.22); stroke-width: 5; stroke-linecap: round; }
.perumap__route {
  fill: none; stroke: var(--amber); stroke-width: 8;
  stroke-linecap: round; stroke-dasharray: 2 22;
  filter: drop-shadow(0 0 4px rgba(245,166,35,0.5));
}
.perumap__city { fill: var(--amber); }
.perumap__city--sm { opacity: 0.7; }
.perumap__label {
  fill: var(--on-dark); font-family: var(--ff-head);
  font-weight: 800; font-size: 28px; letter-spacing: 0.02em;
  paint-order: stroke; stroke: rgba(12,31,58,0.65); stroke-width: 4px;
}

/* Vehículo viajero: uno visible a la vez, con "morph" (fundido + escala) */
.tripveh { filter: drop-shadow(0 5px 7px rgba(0,0,0,0.4)); }
.tripveh .veh {
  opacity: 0; transform: scale(0.8);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transform-box: fill-box; transform-origin: center;
}
.tripveh .veh.is-on { opacity: 1; transform: scale(1); }
/* Ruedas girando (cada una rota sobre su propio centro vía transform-origin inline) */
.tripveh .tw { animation: wheelSpin 0.7s linear infinite; will-change: transform; }
/* Logo "BRACAR" en el costado del vehículo */
.veh-logo {
  fill: var(--navy);
  font-family: var(--ff-head);
  font-weight: 800;
  letter-spacing: 0.02em;
}
/* Personitas contentas encima: leve rebote + brazo que saluda */
.tripveh .person { animation: personBob 1.5s ease-in-out infinite; }
.tripveh .arm-wave {
  transform-box: fill-box;
  transform-origin: left bottom;   /* pivota en el hombro */
  animation: wave 0.8s ease-in-out infinite alternate;
}

/* Etiqueta del tipo de vehículo actual (cambia cada 5 s) */
.hero__vehlabel {
  position: absolute; top: 4%; left: 0;
  display: inline-flex; flex-direction: column;
  background: rgba(12,31,58,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-radius: var(--r-md);
  padding: 0.5em 0.9em;
}
.hero__vehlabel-k {
  font-family: var(--ff-head); font-weight: 700;
  font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber);
}
.hero__vehlabel-v {
  font-family: var(--ff-head); font-weight: 800;
  font-size: 1.15rem; text-transform: uppercase; color: var(--on-dark);
  line-height: 1.1;
}

/* Dato fuerte "+2000" como badge del mapa */
.hero__stat {
  position: absolute; bottom: 3%; right: 0;
  display: flex; flex-direction: column; align-items: flex-end;
  text-align: right; transform: rotate(-4deg);
}
.hero__stat-num {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 0.9; color: var(--amber);
}
.hero__stat-label {
  font-family: var(--ff-head); font-weight: 700;
  font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-muted);
}


/* ============================================================================
   5. BARRA DE CONFIANZA (stats)
   ============================================================================ */
.stats {
  background: var(--navy);
  color: var(--on-dark);
  padding-top: var(--sp-6);
  padding-bottom: var(--sp-6);
  position: relative;
  z-index: 3;
}
.stats__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.stat {
  text-align: left;
  padding-left: var(--sp-3);
  border-left: 3px solid rgba(245,166,35,0.5);
}
.stat__num {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.95;
  color: var(--amber);
}
.stat__label {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.03em;
  color: var(--on-dark-muted);
}


/* ============================================================================
   6. NOSOTROS
   ============================================================================ */
.about {
  background: var(--paper);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.about__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* Columna gráfica del año */
.about__aside {
  position: sticky; top: 100px;
  background: var(--navy);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-4);
  overflow: hidden;
}
.about__year-label {
  font-family: var(--ff-head); font-weight: 700;
  font-size: var(--fs-xs); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--amber);
}
.about__year {
  display: block;
  font-family: var(--ff-display);
  font-size: var(--fs-mega);
  line-height: 0.85;
  color: var(--on-dark);
  margin: var(--sp-1) 0 var(--sp-3);
}
.about__founders { color: var(--on-dark-muted); font-size: var(--fs-sm); }
.about__founders strong { color: var(--on-dark); }

/* Columna de texto */
.about__lead { font-size: var(--fs-lead); color: var(--muted); margin: var(--sp-3) 0 var(--sp-4); max-width: 56ch; }
.about__lead strong { color: var(--ink); }

.about__mv { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.mv__title {
  font-family: var(--ff-head);
  font-size: var(--fs-h3);
  text-transform: uppercase;
  color: var(--navy);
  display: flex; align-items: baseline; gap: 0.5em;
  margin-bottom: var(--sp-1);
}
.mv__title span { font-family: var(--ff-display); color: var(--amber); font-size: 1.1em; }
.mv p { color: var(--muted); font-size: var(--fs-sm); }

/* Valores: lista editorial con números grandes, filas con línea */
.values {
  max-width: var(--maxw);
  margin: var(--sp-6) auto 0;
  border-top: 2px solid var(--line);
  padding-top: var(--sp-4);
}
.values__head {
  font-family: var(--ff-head); font-weight: 700;
  font-size: var(--fs-xs); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--blue); margin-bottom: var(--sp-2);
}
.value {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--t-fast), background var(--t-fast);
}
.value:hover { padding-left: var(--sp-3); background: linear-gradient(90deg, var(--cream), transparent); }
.value__n {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--amber);
  min-width: 2.2ch;
}
.value__name {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: -0.01em;
}


/* ============================================================================
   7. SERVICIOS (bloque oscuro, grid asimétrico)
   ============================================================================ */
.services {
  background:
    linear-gradient(180deg, var(--navy-900), var(--navy));
  color: var(--on-dark);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  /* Máscara diagonal superior para romper el apilado rectangular */
  clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 100%);
  margin-top: -1px;
}
.services__intro { max-width: var(--maxw); margin: 0 auto var(--sp-5); }

.services__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
.svc {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  transition: transform var(--t-med), background var(--t-med), border-color var(--t-med);
}
.svc:hover { transform: translateY(-6px); background: rgba(255,255,255,0.07); border-color: rgba(245,166,35,0.4); }
/* Servicio destacado ocupa 2 filas a la izquierda */
.svc--feature { grid-row: span 2; justify-content: space-between; background: linear-gradient(160deg, var(--navy-700), var(--navy-800)); }
/* Servicio ancho ocupa las 2 columnas */
.svc--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: var(--sp-4); }
.svc--wide .svc__num { margin-bottom: 0; }

.svc__num {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245,166,35,0.55);
  margin-bottom: var(--sp-3);
}
.svc__title {
  font-size: var(--fs-h3);
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: var(--sp-2);
}
.svc__text { color: var(--on-dark-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-3); max-width: 46ch; }
/* Link-cta dentro de servicios (colores claros) */
.svc .link-cta { color: var(--on-dark); border-color: var(--amber); }
.svc .link-cta:hover { color: var(--amber); }

/* Foto de fondo fusionada con el bloque mediante un degradado */
.svc__img {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-med);
}
.svc:hover .svc__img { transform: scale(1.05); }
.svc::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top,
    rgba(9, 22, 44, 0.96) 0%,
    rgba(9, 22, 44, 0.72) 30%,
    rgba(9, 22, 44, 0.42) 62%,
    rgba(9, 22, 44, 0.58) 100%);
}
/* El bloque ancho necesita algo más de oscurecido tras el texto (a la derecha) */
.svc--wide::after {
  background:
    linear-gradient(90deg, rgba(9,22,44,0.35) 0%, rgba(9,22,44,0.55) 55%, rgba(9,22,44,0.85) 100%),
    linear-gradient(to top, rgba(9,22,44,0.9) 0%, rgba(9,22,44,0.45) 55%, rgba(9,22,44,0.5) 100%);
}
/* El contenido va por encima de la foto y del degradado */
.svc__num, .svc__content { position: relative; z-index: 2; }
.svc__title, .svc__text { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45); }


/* ============================================================================
   8. FLOTA
   ============================================================================ */
.fleet {
  background: var(--cream);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.fleet__intro { max-width: var(--maxw); margin: 0 auto var(--sp-5); }
.fleet__lead { color: var(--muted); font-size: var(--fs-lead); max-width: 52ch; margin-top: var(--sp-3); }

.fleet__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.fleet-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.fleet-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* Capacidad como número grande, superpuesto a la foto */
.fleet-card__cap {
  position: absolute; top: 0; left: 0; z-index: 2;
  display: flex; align-items: baseline; gap: 0.25em;
  padding: var(--sp-2) var(--sp-3);
  background: var(--navy);
  color: var(--on-dark);
  border-bottom-right-radius: var(--r-md);
}
.fleet-card__cap span { font-family: var(--ff-display); font-size: 1.9rem; line-height: 1; color: var(--amber); }
.fleet-card__cap small { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }

/* Zona de foto (placeholder con degradado si la imagen no carga) */
.fleet-card__photo {
  aspect-ratio: 3 / 2;
  background: linear-gradient(160deg, var(--cream-2), #dfe6ee);
  position: relative;
  overflow: hidden;
}

/* Carrusel automático de fotos (crossfade) dentro de cada tarjeta de flota */
.carousel__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  will-change: opacity;
}
.carousel__slide.is-active { opacity: 1; }
/* Indicadores (puntos) — los genera el JS */
.carousel__dots {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
}
.carousel__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 1px 2px rgba(0,0,0,0.35);
  cursor: pointer; padding: 0; border: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}
.carousel__dot.is-active { background: var(--amber); transform: scale(1.25); }

.fleet-card__name {
  font-size: var(--fs-h3);
  text-transform: uppercase;
  color: var(--navy);
  padding: var(--sp-3);
}


/* ============================================================================
   9. POR QUÉ ELEGIRNOS (full-bleed oscuro, frase grande)
   ============================================================================ */
.why {
  background:
    radial-gradient(90% 120% at 100% 0%, var(--navy-700), transparent 60%),
    var(--navy-900);
  color: var(--on-dark);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.why > * { max-width: var(--maxw); }
.why__pull {
  font-family: var(--ff-head);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  margin-top: var(--sp-3);
}
.why__list { display: grid; gap: var(--sp-1); }
.why__list li {
  display: flex; align-items: center; gap: var(--sp-2);
  font-family: var(--ff-head); font-weight: 600;
  font-size: var(--fs-lead);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: gap var(--t-fast), color var(--t-fast);
}
.why__list li span { color: var(--amber); font-weight: 800; }
.why__list li:hover { gap: var(--sp-3); color: var(--amber); }


/* ============================================================================
   10. CERTIFICACIONES
   ============================================================================ */
.certs {
  background: var(--paper);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.certs__head { max-width: var(--maxw); margin: 0 auto var(--sp-5); text-align: center; }
.certs__head .section__eyebrow { justify-content: center; }
.certs__lead { color: var(--muted); font-size: var(--fs-lead); margin-top: var(--sp-2); }

/* Logos de autoridades (MTC / ATU) */
.cert-logos {
  max-width: var(--maxw);
  margin: 0 auto var(--sp-5);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
}
.cert-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 240px; }
.cert-logo__img {
  width: 100%; height: 120px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center; padding: 16px;
}
.cert-logo__img img { max-height: 78px; max-width: 190px; object-fit: contain; }
/* Placeholder de texto (mientras no esté el logo oficial) */
.cert-logo__ph {
  font-family: var(--ff-display); font-size: 2.6rem; line-height: 1;
  color: var(--navy); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.cert-logo__ph small { font-family: var(--ff-head); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.cert-logo figcaption {
  font-family: var(--ff-head); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); text-align: center;
  max-width: 220px;
}

.certs__grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
.badge {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--muted);
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.badge strong { color: var(--navy); }
.badge:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.badge__ic {
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--amber);
  font-size: 0.8rem; font-weight: 700;
}


/* ============================================================================
   11. CLIENTES (marquee auto-scroll)
   ============================================================================ */
.clients {
  background: var(--cream);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  overflow: hidden;
}
.clients__head { max-width: var(--maxw); margin: 0 auto var(--sp-4); }
.clients__note { font-size: var(--fs-sm); color: var(--muted); font-style: italic; margin-top: var(--sp-1); }

.marquee {
  position: relative;
  width: 100%;
  /* Difumina los bordes laterales */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; } /* pausa al hover */
.marquee__group { display: flex; }
/* Logos SIN caja: van sueltos sobre el fondo, grandes y a color siempre */
.logo {
  flex: none;
  display: grid; place-items: center;
  height: 128px;                                   /* alto uniforme grande */
  margin: 0 clamp(1.4rem, 3.4vw, 3rem);            /* separación entre logos */
}
.logo img {
  max-height: 92px;                                /* estandariza el alto */
  max-width: 300px;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform var(--t-fast);
}
.logo:hover img { transform: scale(1.06); }        /* leve realce (opcional) */


/* ============================================================================
   12. TESTIMONIOS
   ============================================================================ */
.testimonials {
  background: var(--paper);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.testimonials__head { max-width: var(--maxw); margin: 0 auto var(--sp-5); }
.testimonials__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}
.tcard {
  background: var(--cream);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  border-top: 4px solid var(--amber);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.tcard blockquote {
  font-family: var(--ff-head); font-weight: 600;
  font-size: var(--fs-lead);
  color: var(--navy);
  font-style: italic;
}
.tcard figcaption { display: flex; align-items: center; gap: var(--sp-2); }
.tcard__avatar {
  width: 56px; height: 56px; flex: none;
  border-radius: var(--r-sm);
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  padding: 6px;
  overflow: hidden;
}
.tcard__avatar img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tcard__meta { display: flex; flex-direction: column; line-height: 1.3; }
.tcard__meta strong { color: var(--ink); }
.tcard__meta small { color: var(--muted); }


/* ============================================================================
   13. CONTACTO + FORMULARIO
   ============================================================================ */
.contact {
  background:
    radial-gradient(80% 120% at 0% 0%, var(--navy-700), transparent 55%),
    var(--navy-900);
  color: var(--on-dark);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.contact__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact__note { color: var(--on-dark-muted); font-size: var(--fs-lead); margin: var(--sp-3) 0 var(--sp-4); max-width: 42ch; }

.contact__list { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.contact__list li { display: flex; align-items: flex-start; gap: var(--sp-2); color: var(--on-dark); }
.contact__ic {
  flex: none; width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.contact__list a:hover { color: var(--amber); }

.contact__social { display: flex; gap: var(--sp-2); }
.contact__social a {
  font-family: var(--ff-head); font-weight: 700; font-size: var(--fs-sm);
  padding: 0.6em 1.2em; border-radius: var(--r-pill);
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.contact__social a:hover { border-color: var(--amber); color: var(--amber); }

/* --- Formulario (tarjeta clara sobre fondo oscuro) --- */
.quote {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.field { display: flex; flex-direction: column; gap: 0.4em; grid-column: 1 / -1; }
.field--half { grid-column: span 1; }
.field label {
  font-family: var(--ff-head); font-weight: 700;
  font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.field input, .field select, .field textarea {
  padding: 0.8em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(46,123,228,0.14);
}
.field textarea { resize: vertical; min-height: 84px; }
/* Estado de error (JS añade .field--invalid) */
.field--invalid input, .field--invalid select { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,0.12); }

.quote__error {
  grid-column: 1 / -1;
  color: #e5484d; font-size: var(--fs-sm); font-weight: 600;
  background: rgba(229,72,77,0.08);
  border: 1px solid rgba(229,72,77,0.25);
  border-radius: var(--r-sm);
  padding: 0.7em 1em;
}
.quote__ok {
  grid-column: 1 / -1;
  color: #1a7f46; font-size: var(--fs-sm); font-weight: 600;
  background: rgba(38,166,91,0.10);
  border: 1px solid rgba(38,166,91,0.30);
  border-radius: var(--r-sm);
  padding: 0.85em 1em;
}
.quote > button { grid-column: 1 / -1; }
.quote__hint { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); text-align: center; }

/* Selector de método (WhatsApp / Correo) */
.quote__method { gap: 0.55em; }
.quote__method-label {
  font-family: var(--ff-head); font-weight: 700;
  font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.seg {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 5px;
}
.seg__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0.7em 0.5em; border-radius: var(--r-pill);
  font-family: var(--ff-head); font-weight: 700; font-size: var(--fs-sm);
  color: var(--muted); background: transparent;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.seg__btn svg { opacity: 0.8; }
.seg__btn.is-active { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.seg__btn.is-active svg { opacity: 1; }


/* ============================================================================
   13b. UBICACIÓN (Google Maps)
   Banda clara (da ritmo tras el contacto oscuro), retícula asimétrica.
   ============================================================================ */
.mapsec {
  background: var(--cream);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.mapsec__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.mapsec__addr {
  font-size: var(--fs-lead);
  color: var(--ink);
  margin: var(--sp-3) 0 var(--sp-2);
  display: flex; gap: 0.5em; align-items: flex-start;
}
.mapsec__hours { color: var(--muted); margin-bottom: var(--sp-3); display: flex; gap: 0.5em; align-items: center; }
/* Marco del mapa con la estética de la marca */
.mapsec__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 5px solid var(--paper);
}
.mapsec__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* ============================================================================
   14. FOOTER + WHATSAPP FLOTANTE
   ============================================================================ */
.footer {
  background: var(--navy-900);
  color: var(--on-dark-muted);
  padding: var(--sp-6) var(--gutter) var(--sp-4);
  border-top: 3px solid var(--amber);
}
.footer__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
.brand__logo--footer { height: 50px; }
.footer__desc { font-size: var(--fs-sm); margin-top: var(--sp-2); max-width: 40ch; }
.footer__col h4 {
  font-family: var(--ff-head); font-weight: 700;
  font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: var(--sp-2);
}
.footer__col a, .footer__col p { display: block; font-size: var(--fs-sm); padding: 0.25em 0; }
.footer__col a { transition: color var(--t-fast); }
.footer__col a:hover { color: var(--amber); }

.footer__bottom {
  max-width: var(--maxw);
  margin: var(--sp-3) auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-1);
  font-size: var(--fs-xs);
}

/* --- WIDGET WHATSAPP: botón flotante + popup con asesor --- */
.wa-widget {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 95;
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 14px;
}

/* Popup de bienvenida */
.wa-pop {
  width: min(90vw, 322px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(12, 31, 58, 0.32);
  transform-origin: bottom right;
}
.wa-widget:not(.is-open) .wa-pop { display: none; }
.wa-widget.is-open .wa-pop { animation: waPopIn 0.26s var(--ease); }

.wa-pop__head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 12px 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #fff;
}
.wa-pop__avatar {
  width: 52px; height: 52px; flex: none;
  border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.wa-pop__avatar svg { width: 100%; height: 100%; display: block; }
.wa-pop__who { display: flex; flex-direction: column; line-height: 1.25; }
.wa-pop__who strong { font-family: var(--ff-head); font-size: 0.98rem; }
.wa-pop__status { font-size: 0.72rem; color: #9fe3b4; display: inline-flex; align-items: center; gap: 5px; }
.wa-pop__status i {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: pulse 2s ease-out infinite;
}
.wa-pop__close {
  margin-left: auto; color: #fff; opacity: 0.75;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  transition: opacity var(--t-fast), background var(--t-fast);
}
.wa-pop__close:hover { opacity: 1; background: rgba(255, 255, 255, 0.12); }

.wa-pop__body { padding: 16px 14px; background: #ECE5DD; }   /* fondo estilo chat */
.wa-bubble {
  background: #fff; border-radius: 4px 14px 14px 14px;
  padding: 11px 13px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
  font-size: 0.86rem; color: #2b2b2b;
}
.wa-bubble p { margin: 0 0 6px; }
.wa-bubble p:last-of-type { margin-bottom: 2px; }
.wa-bubble strong { color: var(--navy); }
.wa-bubble__time { display: block; font-size: 0.64rem; color: #90a0a8; text-align: right; }

.wa-pop__cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; color: #fff;
  font-family: var(--ff-head); font-weight: 700; font-size: 0.92rem;
  padding: 13px; text-decoration: none;
  transition: background var(--t-fast);
}
.wa-pop__cta:hover { background: #1EBE5A; }

/* Botón flotante (verde) dentro del widget */
.wa-float {
  position: relative;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  background: #25D366; color: #fff; border-radius: 50%;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  animation: waPulse 2.6s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float > * { grid-area: 1 / 1; }                 /* apila iconos en la misma celda */
.wa-float__badge {
  position: absolute; top: -3px; right: -3px; z-index: 2;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--amber); color: var(--navy-900);
  font: 700 11px/18px var(--ff-head); text-align: center;
  border-radius: 9px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.wa-ico--x { display: none; }
.wa-widget.is-open .wa-float { animation: none; }   /* detiene el pulso al abrir */
.wa-widget.is-open .wa-float__badge { display: none; }
.wa-widget.is-open .wa-ico--wa { display: none; }
.wa-widget.is-open .wa-ico--x { display: block; }


/* ============================================================================
   15. ANIMACIONES (@keyframes)
   ============================================================================ */

/* Bus: recorre de izquierda a derecha y reinicia fuera de pantalla */
@keyframes busDrive {
  0%   { transform: translateX(-360px); }
  100% { transform: translateX(100vw); }
}
/* Rebote vertical sutil del bus (andar) */
@keyframes busBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
/* Giro de ruedas */
@keyframes wheelSpin {
  to { transform: rotate(360deg); }
}
/* Personitas: saludo (brazo) y rebote alegre */
@keyframes wave {
  from { transform: rotate(-12deg); }
  to   { transform: rotate(26deg); }
}
@keyframes personBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-1.6px); }
}
/* Línea central de la carretera (sentido contrario = sensación de avance) */
@keyframes laneMove {
  from { transform: translate(0, -50%); }
  to   { transform: translate(-80px, -50%); }
}
/* Líneas de velocidad */
@keyframes speed {
  0%   { transform: translateX(40px); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateX(-120px); opacity: 0; }
}
/* Marquee de clientes: desplaza medio track (el contenido está duplicado) */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Pulso del punto del eyebrow */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,166,35,0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(245,166,35,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); }
}
/* Pulso del botón de WhatsApp */
@keyframes waPulse {
  0%   { box-shadow: 0 12px 28px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 12px 28px rgba(37,211,102,0.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 28px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}
/* Aparición del popup del asesor */
@keyframes waPopIn {
  from { opacity: 0; transform: translateY(12px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}


/* ============================================================================
   16. RESPONSIVE (mobile-first: overrides para pantallas menores)
   ============================================================================ */

/* --- Tablet --- */
@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__aside { position: static; }
  .why { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-4); }
  .fleet__grid { grid-template-columns: repeat(2, 1fr); }
  .certs__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .mapsec__inner { grid-template-columns: 1fr; }
  .mapsec__frame { aspect-ratio: 4 / 3; }
  /* Hero a una columna: el mapa animado pasa debajo del texto */
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero__content { max-width: none; }
  .hero__visual { width: 100%; max-width: 500px; margin: var(--sp-3) auto 0; }
  .perumap { margin: 0 auto; }
}

/* --- Móvil: menú hamburguesa y ajustes --- */
@media (max-width: 720px) {
  /* Navbar: siempre con fondo para legibilidad del menú desplegable */
  .nav__burger { display: flex; }
  .nav__menu {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh; width: min(80vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--sp-3);
    padding: var(--sp-6) var(--sp-4);
    background: var(--navy-900);
    box-shadow: -20px 0 50px rgba(0,0,0,0.4);
    transform: translateX(100%);
    transition: transform var(--t-med);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__menu a:not(.btn) { color: var(--on-dark) !important; font-size: 1.15rem; }
  .nav.is-scrolled .nav__menu a:not(.btn) { color: var(--on-dark) !important; }
  .nav__cta { margin-top: var(--sp-2); }

  /* Hero: apila texto y mapa; el mapa no debe tapar el titular */
  .hero { padding-top: 6.5rem; padding-bottom: clamp(2rem, 6vh, 3.5rem); }
  .hero__inner { grid-template-columns: 1fr; gap: var(--sp-3); }
  .hero__title { font-size: clamp(2.1rem, 8.5vw, 3rem); }
  .hero__content { max-width: none; }
  .hero__visual { width: 100%; max-width: 440px; margin: var(--sp-2) auto 0; }
  .perumap { max-width: 100%; margin: 0 auto; }
  .hero__stat { transform: rotate(-4deg) scale(0.82); }

  .services__grid { grid-template-columns: 1fr; }
  .svc--feature { grid-row: auto; }
  .svc--wide { flex-direction: column; align-items: flex-start; }
  .about__mv { grid-template-columns: 1fr; }
  .fleet__grid { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}

/* --- Móvil pequeño --- */
@media (max-width: 420px) {
  .stats__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}


/* ============================================================================
   17. ACCESIBILIDAD — prefers-reduced-motion
   Si el usuario prefiere menos movimiento: se detienen las animaciones
   continuas (bus, ruedas, marquee, carretera) y el bus queda estático,
   pero centrado y visible.
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Detiene ruedas del vehículo viajero y el carrusel; el JS deja el
     vehículo estático sobre la ruta (ver js/script.js). */
  .tripveh .tw, .marquee__track { animation: none; }
  .tripveh .veh { transition: none; }
  .reveal { opacity: 1; transform: none; }
}
