/* Paleta tomada del logo: azul marino del trazo, azul del wordmark y el celeste del auto */
:root {
  --navy: #00193d;
  --blue: #275fb0;
  --azure: #016bd3;
  --sky: #cfe2fa;
  --paper: #f3f6fb;
  --card: #ffffff;
  --muted: #1c2d4f;
  --line: rgba(0, 25, 61, 0.1);

  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gut: clamp(20px, 4vw, 56px);
  --wrap: 1440px;

  /* estado de la animación, lo escribe script.js */
  --scan: 0;
  --hood: 0;
  --beam: 0;
  --out: 0;
  --head: 1;
  --leave: 0;
  --back: 0;
  --m2: 1;
  --ana: 1;
  --leave3: 0;
  --rev: 1;
  --cta: 1;
  --inf: 1;
  --rd: 1;
  --infout: 0;
  --leave4: 0;
  --cov: 1;
  --ms: 1;
  --mbeam: 0;
  --badge: 1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    radial-gradient(70% 45% at 0% 100%, rgba(207, 226, 250, 0.9), transparent 70%),
    var(--paper);
  background-attachment: fixed;
  color: var(--navy);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

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

:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
}

/* el contenido va por encima del granulado para que el texto quede nítido */
main {
  position: relative;
  z-index: 1;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
}

svg use {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Granulado sobre toda la página */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 .1 0 0 0 0 .24 0 0 0 1.7 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(var(--wrap) - 2 * var(--gut), 100% - 2 * var(--gut));
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(0, 25, 61, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.nav-logo img {
  width: auto;
  height: 42px;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  padding: 6px 0;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--azure);
}

/* ---------- Botones y piezas comunes ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--azure);
  box-shadow: 0 14px 30px rgba(1, 107, 211, 0.28);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.18s, transform 0.18s;
}

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

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-sm {
  padding: 11px 20px;
  box-shadow: none;
  font-size: 0.92rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--azure);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  width: 72px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 em,
h2 em {
  color: var(--azure);
  font-style: normal;
}

/* ---------- Hero (base: flujo normal, sin JS) ---------- */

.story {
  overflow-x: clip;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 18px;
  max-width: var(--wrap);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 92px var(--gut) 28px;
}

.hero-copy {
  display: contents;
}

.hero-copy .eyebrow {
  order: 1;
}

h1 {
  order: 2;
  font-size: clamp(2.2rem, 9.4vw, 3.4rem);
  line-height: 1.03;
}

.hero-car {
  order: 3;
  position: relative;
  z-index: 1;
}

.hero-sub {
  order: 4;
  max-width: 34rem;
  color: var(--muted);
}

.hero-copy .btn {
  order: 5;
  justify-self: start;
}

.trust {
  order: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.trust svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--azure);
}

.hero-blob {
  position: absolute;
  top: 18%;
  right: -12%;
  z-index: 0;
  width: 90%;
  height: 46%;
  border-radius: 58% 42% 38% 62% / 52% 44% 56% 48%;
  background: radial-gradient(closest-side, #a9cdf8, rgba(207, 226, 250, 0.6) 62%, transparent);
  filter: blur(26px);
  opacity: calc(1 - var(--out) * 1.6);
  pointer-events: none;
}

/* El auto: tres capas del mismo tamaño que se revelan con el scroll */
.car-home,
.car-dock {
  position: relative;
  width: 100%;
  aspect-ratio: 2138 / 736;
}

.car {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}

.car img,
.dock-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.car-silueta {
  clip-path: inset(0 0 0 calc(var(--sil-clip, var(--scan)) * 100%));
  opacity: var(--sil-o, 1);
}

.car-auto {
  clip-path: inset(0 calc((1 - var(--scan)) * 100%) 0 0);
  /* queda sólido debajo hasta que el capot abierto termina de aparecer */
  opacity: calc(min(1, (1 - var(--hood)) * 1000) * (1 - var(--back)));
}

.car-capot {
  opacity: calc(var(--hood) * (1 - var(--back)));
}

.beam {
  position: absolute;
  top: -8%;
  bottom: -8%;
  left: calc(var(--scan) * 100%);
  width: 2px;
  margin-left: -1px;
  background: var(--azure);
  box-shadow: 0 0 0 1px rgba(1, 107, 211, 0.15), -14px 0 28px 6px rgba(1, 107, 211, 0.28);
  opacity: var(--beam);
}

.readout {
  display: none;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: calc(1 - var(--out) * 3);
}

.readout-bar {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.readout-bar i {
  display: block;
  width: calc(var(--scan) * 100%);
  height: 100%;
  background: var(--azure);
}

.readout-pct {
  min-width: 4ch;
  color: var(--navy);
  text-align: right;
}

.js .readout {
  display: flex;
}

/* ---------- ¿Qué incluye? (base: flujo normal) ---------- */

.incl {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--gut) 96px;
  scroll-margin-top: 20px;
}

.incl-head {
  display: grid;
  gap: 18px;
}

h2 {
  margin-top: 14px;
  font-size: clamp(2rem, 7.6vw, 3rem);
  line-height: 1.04;
}

.incl-intro {
  max-width: 40rem;
  color: var(--muted);
}

.incl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.car-dock {
  max-width: 560px;
  margin: 0 auto 6px;
}

.card {
  --t: 1;
  --o: 1;
  --fx: 0px;
  --fy: 0px;
  --exit: 0px;
}

.card-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 14px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(0, 25, 61, 0.06);
}

.chip {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--azure);
}

.chip svg {
  width: 21px;
  height: 21px;
}

.card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.card p {
  grid-column: 1 / -1;
  align-self: start;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.leads,
.count {
  display: none;
}

/* ---------- Informes (base: flujo normal) ---------- */

.inf {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--gut) 96px;
}

.inf-intro {
  max-width: 34rem;
  margin-top: 18px;
  color: var(--muted);
}

.inf-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 34rem;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.inf-note svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--azure);
}

.inf-frame {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 600px;
}

/* la hoja del informe, con la estética de la web */
.paper {
  --read: 1;
  padding: clamp(20px, 3.4vw, 34px);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(0, 25, 61, 0.16);
  font-size: 0.92rem;
  line-height: 1.45;
}

.paper-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.paper-top img {
  width: auto;
  height: 36px;
}

.paper-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--azure);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.paper-title {
  margin-top: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--azure);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.paper-data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 18px 0 0;
}

.paper-data div {
  min-width: 0;
}

.paper-data dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.paper-data dd {
  margin: 2px 0 0;
  font-weight: 700;
}

/* patente tapada: no hay ningún dato real detrás de la barra */
.redact {
  display: inline-block;
  width: 7.5em;
  height: 1.15em;
  border-radius: 4px;
  background: repeating-linear-gradient(-45deg, var(--navy) 0 6px, #1c2d4f 6px 12px);
  vertical-align: middle;
}

.paper-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.paper-h::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--azure);
}

.paper-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
}

.paper-table th {
  padding: 0 0 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.paper-table td {
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.paper-table td:last-child {
  text-align: right;
}

.st {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
}

.st svg {
  width: 13px;
  height: 13px;
}

.st-ok {
  background: var(--sky);
  color: var(--azure);
}

.st-na {
  color: var(--muted);
  font-weight: 600;
}

.paper-obs {
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 3px solid var(--azure);
  border-radius: 0 12px 12px 0;
  background: var(--paper);
}

.paper-docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  list-style: none;
}

.paper-docs li {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.paper-docs svg {
  width: 24px;
  height: 24px;
  color: var(--azure);
}

.paper-foot {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

@media (min-width: 1000px) {
  .inf {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    column-gap: clamp(36px, 6vw, 110px);
  }
}

/* ---------- Cobertura (base: flujo normal) ---------- */

.cov {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--gut) 96px;
}

.cov-intro {
  max-width: 36rem;
  margin-top: 18px;
  color: var(--muted);
}

.feats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 28px;
  list-style: none;
}

.feat {
  --f: 1;
  --fo: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(0, 25, 61, 0.06);
}

.feat h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.feat p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.cov-map {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}

/* el mapa se revela de norte a sur con la misma línea de escaneo del auto */
.map {
  position: relative;
  aspect-ratio: 1024 / 1536;
}

.map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 0 calc((1 - var(--ms)) * 100%) 0);
}

.map-beam {
  position: absolute;
  top: calc(var(--ms) * 100%);
  right: -4%;
  left: -4%;
  height: 2px;
  margin-top: -1px;
  background: var(--azure);
  box-shadow: 0 0 0 1px rgba(1, 107, 211, 0.15), 0 -14px 28px 6px rgba(1, 107, 211, 0.28);
  opacity: var(--mbeam);
}

/* cada ubicación cae cuando la línea pasa por su latitud */
.pin {
  --p: clamp(0, calc((var(--ms) - var(--y)) * 16), 1);
  position: absolute;
  top: calc(var(--y) * 100%);
  left: calc(var(--x) * 100%);
  width: clamp(16px, 5.4%, 24px);
  aspect-ratio: 1;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--azure);
  box-shadow: 0 6px 14px rgba(0, 25, 61, 0.35);
  opacity: var(--p);
  transform: translate(-50%, calc(-120% - (1 - var(--p)) * 22px)) rotate(-45deg) scale(var(--p));
}

.pin::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: #fff;
}

.cov-badge {
  position: absolute;
  right: -6px;
  bottom: 27%;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 25, 61, 0.14);
  font-size: 0.92rem;
  line-height: 1.2;
  opacity: var(--badge);
  transform: translateY(calc((1 - var(--badge)) * 16px)) scale(calc(0.9 + var(--badge) * 0.1));
}

.cov-badge svg {
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  color: var(--azure);
}

.cov-badge strong {
  max-width: 6ch;
  color: var(--azure);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

@media (min-width: 700px) {
  .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feat:last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Reseñas (base: flujo normal) ---------- */

.rev {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--gut) 96px;
}

.rev-intro {
  max-width: 34rem;
  margin-top: 18px;
  color: var(--muted);
}

.rev-count {
  display: none;
}

.quotes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 28px;
  list-style: none;
}

.quote {
  --q: 1;
  --d: 0;
  --r: 0deg;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(0, 25, 61, 0.06);
}

.stars {
  display: block;
  color: #e08a00;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  line-height: 1;
}

.quote blockquote {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.who {
  display: grid;
  gap: 2px;
  margin-top: 16px;
  font-size: 1rem;
}

.who::before {
  content: "";
  width: 28px;
  height: 2px;
  margin-bottom: 12px;
  background: var(--azure);
}

.who span {
  color: var(--muted);
}

.rev-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: 14px;
  padding: 22px 24px 22px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--azure);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
}

.rev-cta-title {
  max-width: 22ch;
  margin-top: 8px;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

@media (min-width: 700px) {
  .quotes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Análisis (base: flujo normal) ---------- */

.ana {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--gut) 96px;
}

.ana .ana-title {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  font-size: clamp(1.9rem, 7.4vw, 3rem);
  line-height: 1.04;
}

.ana-num {
  display: flex;
  align-items: baseline;
  color: var(--azure);
  font-size: clamp(6.5rem, 32vw, 12rem);
  padding-bottom: 0.1em;
  letter-spacing: -0.05em;
  line-height: 0.84;
}

.six {
  position: relative;
  display: inline-block;
}

.six-glyph {
  display: inline-block;
  transform-origin: left center;
}

/* copia de la silueta que se funde con el 6 */
.six-sil {
  position: absolute;
  top: 50%;
  left: 0;
  display: none;
  width: auto;
  max-width: none;
  height: 64%;
  aspect-ratio: 2137 / 736;
  transform: translateY(-50%);
  transform-origin: left center;
}

.ana-text {
  max-width: 40rem;
  margin-top: 18px;
  color: var(--muted);
}

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

.stat {
  --s: 1;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(0, 25, 61, 0.06);
}

.stat strong {
  display: block;
  color: var(--azure);
  font-size: clamp(2.3rem, 9vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.stat-unit {
  display: block;
  margin-top: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.stat-unit::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: 12px;
  background: var(--azure);
}

.stat p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

@media (min-width: 700px) {
  .incl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .car-dock,
  .card-pdf {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    padding-top: 110px;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: start;
    gap: 22px;
  }

  h1 {
    font-size: clamp(2.6rem, 4.5vw, 4.5rem);
  }

  .hero-sub {
    font-size: 1.15rem;
  }

  .trust {
    margin-top: 14px;
  }

  .hero-blob {
    top: 16%;
    right: -6%;
    width: 60%;
    height: 68%;
    filter: blur(34px);
  }

}

.nav-links a[aria-current] {
  color: var(--azure);
}

.nav-toggle {
  display: none;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--navy);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, background-color 0.2s;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* en pantallas angostas los links pasan a un panel desplegable bajo la barra */
@media (max-width: 999.98px) {
  .nav {
    gap: 10px;
  }

  .nav .btn {
    margin-left: auto;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    gap: 0;
    margin: 0;
    padding: 10px 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 25, 61, 0.14);
    font-size: 1rem;
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    padding: 13px 0;
  }

  .nav-links a + a {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .nav-logo img {
    height: 36px;
  }

  .nav .btn {
    padding: 11px 14px;
  }
}

@media (max-width: 400px) {
  .nav {
    padding-left: 14px;
  }

  .nav-logo img {
    height: 30px;
  }

  .nav .btn {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

/* en celulares el desenfoque de la barra es caro al animar lo que pasa por detrás */
@media (max-width: 999.98px) {
  .nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---------- Modo story: hero y "¿Qué incluye?" comparten una sola escena fija.
   El scroll no mueve la página: avanza la historia (silueta → auto → capot → tarjetas) ---------- */

[data-mode="story"] .scene {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

[data-mode="story"] .scene::before {
  content: "";
  position: absolute;
  top: 30%;
  left: 30%;
  width: 40%;
  height: 46%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #a9cdf8, rgba(207, 226, 250, 0.5) 60%, transparent);
  filter: blur(30px);
  opacity: calc(var(--head) * (1 - var(--leave)));
}

[data-mode="story"] .hero-track {
  position: absolute;
  inset: 0;
}

[data-mode="story"] .hero {
  height: 100%;
  min-height: 0;
  align-content: safe center;
  transform-origin: top center;
}

[data-mode="story"] .hero-copy > * {
  opacity: calc(1 - var(--out) * 1.6);
  transform: translateY(calc(var(--out) * -26vh));
}

/* sin transición de transform: si no, el botón queda atrasado respecto del scroll y "salta" */
[data-mode="story"] .hero-copy > .btn {
  transition: background-color 0.18s;
}

[data-mode="story"] .is-incl .hero-copy {
  visibility: hidden;
}

[data-mode="story"] .car {
  will-change: transform;
}

[data-mode="story"] .incl {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.4vh, 30px);
  padding: 92px var(--gut) clamp(16px, 3vh, 36px);
  pointer-events: none;
}

[data-mode="story"] .is-incl .incl {
  pointer-events: auto;
}

/* al terminar, la segunda pantalla sube y deja lugar a la tercera */
[data-mode="story"] .incl,
[data-mode="story"] .leads {
  opacity: calc(1 - var(--leave) * 1.6);
}

[data-mode="story"] .incl {
  transform: translateY(calc(var(--leave) * -16vh));
}

[data-mode="story"] .incl-head {
  opacity: var(--head);
  transform: translateY(calc((1 - var(--head)) * 32vh));
}

[data-mode="story"] .incl-grid {
  position: relative;
  flex: 1;
  align-content: safe center;
  min-height: 0;
  margin-top: 0;
  transform-origin: top center;
}

[data-mode="story"] .car-dock {
  max-width: none;
  margin: 0;
}

[data-mode="story"] .dock-img {
  visibility: hidden;
}

[data-mode="story"] .card-in {
  opacity: var(--o);
  transform:
    translate(calc(var(--fx) * (1 - var(--t))), calc(var(--fy) * (1 - var(--t)) + var(--exit)))
    scale(calc(0.6 + 0.4 * var(--t)));
}

/* sólo mientras script.js mide el layout en reposo */
.measuring .card-in,
.measuring .hero-copy > *,
.measuring .incl,
.measuring .stat,
.measuring .ana-claim,
.measuring .ana-text {
  transform: none !important;
}

.measuring .ana-top,
.measuring .stats,
.measuring .feat,
.measuring .inf-head,
.measuring .inf-frame,
.measuring .cov-head,
.measuring .quote {
  transform: none !important;
}

.measuring .six-sil {
  transform: translateY(-50%) !important;
}

/* Tercera pantalla dentro de la misma escena */
[data-mode="story"] .ana {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  gap: clamp(18px, 3.4vh, 44px);
  padding: 100px var(--gut) clamp(16px, 3vh, 36px);
  pointer-events: none;
  transform-origin: top center;
}

/* la tercera pantalla sube y deja lugar a las reseñas */
[data-mode="story"] .ana {
  opacity: calc(1 - var(--leave3) * 1.6);
}

[data-mode="story"] .ana-top,
[data-mode="story"] .stats {
  transform: translateY(calc(var(--leave3) * -14vh));
}

/* Cuarta pantalla: las reseñas llegan de a una y se van apilando como tarjetas */
[data-mode="story"] .rev {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: safe center;
  gap: clamp(18px, 3.4vh, 40px);
  padding: 96px var(--gut) clamp(16px, 3vh, 40px);
  pointer-events: none;
  transform-origin: top center;
}

[data-mode="story"] .is-rev .rev {
  pointer-events: auto;
}

[data-mode="story"] .rev {
  opacity: calc(1 - var(--leave4) * 1.6);
}

/* Pantalla de informes: la hoja entra, se lee de arriba abajo con el scroll
   y cada estado se marca a medida que pasa (--read va de 0 a 1) */
[data-mode="story"] .inf {
  position: absolute;
  inset: 0;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: safe center;
  gap: clamp(14px, 2.6vh, 32px);
  padding: 96px var(--gut) clamp(16px, 3vh, 36px);
  opacity: calc(1 - var(--infout) * 1.6);
  transform: translateY(calc(var(--infout) * -14vh));
  pointer-events: none;
}

[data-mode="story"] .inf-head {
  opacity: var(--inf);
  transform: translateY(calc((1 - var(--inf)) * 22vh));
}

[data-mode="story"] .inf-frame {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 22px;
  opacity: var(--inf);
  transform: translateY(calc((1 - var(--inf)) * 40vh)) rotate(calc((1 - var(--inf)) * -5deg));
  -webkit-mask-image: linear-gradient(transparent, #000 4%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 4%, #000 88%, transparent);
}

[data-mode="story"] .paper {
  --read: var(--rd);
  margin-top: 12px;
  transform: translateY(calc(var(--rd) * var(--travel, 0px) * -1));
}

/* los estados aparecen fila por fila mientras la hoja sube */
[data-mode="story"] .paper-table tr {
  --k: clamp(0, calc((var(--rd) * 1.9 - var(--i) / 13) * 10), 1);
}

[data-mode="story"] .paper-table .st {
  opacity: var(--k);
  transform: scale(calc(0.6 + var(--k) * 0.4));
}

[data-mode="story"] .paper-docs li {
  --k: clamp(0, calc((var(--rd) - 0.82 - var(--i) * 0.05) * 14), 1);
  opacity: calc(0.25 + var(--k) * 0.75);
  transform: translateY(calc((1 - var(--k)) * 10px));
}

@media (min-width: 1000px) {
  [data-mode="story"] .inf {
    grid-template-rows: none;
    padding-top: 110px;
  }

  [data-mode="story"] .inf h2 {
    font-size: clamp(2.2rem, min(4.2vw, 7.4vh), 4rem);
  }

  [data-mode="story"] .inf-frame {
    height: min(74vh, 680px);
  }
}

@media (max-width: 999.98px) {
  [data-mode="story"] .inf {
    padding-top: 112px;
  }

  [data-mode="story"] .inf h2 {
    margin-top: 10px;
    font-size: clamp(1.7rem, 7vw, 2.6rem);
  }

  [data-mode="story"] .inf-intro {
    margin-top: 10px;
    font-size: 0.96rem;
    line-height: 1.5;
  }

  [data-mode="story"] .inf-note {
    margin-top: 10px;
    font-size: 0.84rem;
  }

  [data-mode="story"] .inf-frame {
    max-width: 560px;
  }

  [data-mode="story"] .paper {
    font-size: 0.86rem;
  }
}

/* Quinta pantalla: cobertura. El mapa se escanea y las ubicaciones se van sumando */
[data-mode="story"] .cov {
  position: absolute;
  inset: 0;
  align-content: safe center;
  gap: clamp(14px, 2.6vh, 32px);
  padding: 96px var(--gut) clamp(16px, 3vh, 36px);
  pointer-events: none;
  transform-origin: top center;
}

[data-mode="story"] .cov-head {
  opacity: var(--cov);
  transform: translateY(calc((1 - var(--cov)) * 22vh));
}

[data-mode="story"] .feat {
  opacity: calc(var(--f) * var(--fo));
  transform: translateY(calc((1 - var(--f)) * 40px - (1 - var(--fo)) * 30px));
}

[data-mode="story"] .rev-head {
  opacity: var(--rev);
  transform: translateY(calc((1 - var(--rev)) * 22vh));
}

[data-mode="story"] .rev-stage {
  opacity: var(--rev);
}

[data-mode="story"] .rev-stage {
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
  padding-top: 26px;
}

[data-mode="story"] .quotes {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 16px;
}

/* cada tarjeta entra desde abajo, cae un poco girada sobre la pila
   y las de abajo se hunden un escalón (--d = cuántas tiene encima) */
[data-mode="story"] .quote {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 34px);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 25, 61, 0.14);
  opacity: clamp(0, calc(var(--q) * 4), 1);
  transform:
    translateY(calc((1 - var(--q)) * 75vh - var(--d) * 13px))
    rotate(calc(var(--r) + (1 - var(--q)) * 9deg))
    scale(calc(1 - var(--d) * 0.035));
}

.quote:nth-child(1) { --r: -3deg; }
.quote:nth-child(2) { --r: 2.5deg; }
.quote:nth-child(3) { --r: -1.5deg; }
.quote:nth-child(4) { --r: 3deg; }
.quote:nth-child(5) { --r: -2.5deg; }
.quote:nth-child(6) { --r: 0deg; }

[data-mode="story"] .quote blockquote {
  font-size: clamp(1.05rem, min(1.75vw, 3.3vh), 1.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

[data-mode="story"] .who {
  margin-top: auto;
  padding-top: 18px;
}

[data-mode="story"] .rev-cta {
  margin-top: 0;
  opacity: var(--cta);
  transform: translateY(calc((1 - var(--cta)) * 30px));
}

[data-mode="story"] .ana .eyebrow {
  opacity: var(--m2);
}

[data-mode="story"] .six-sil {
  display: block;
}

[data-mode="story"] .ten,
[data-mode="story"] .ana-claim,
[data-mode="story"] .ana-text {
  --k: clamp(0, calc(var(--ana) * 2.2 - var(--i) * 0.6), 1);
  opacity: var(--k);
  transform: translateY(calc((1 - var(--k)) * 26px));
}

.ten { --i: 0; }
.ana-claim { --i: 1; }
.ana-text { --i: 2; }

[data-mode="story"] .stats {
  margin-top: 0;
}

/* las tarjetas entran desde la derecha y se acomodan una al lado de la otra */
[data-mode="story"] .stat {
  opacity: clamp(0, calc(var(--s) * 3), 1);
  transform:
    translateX(calc((1 - var(--s)) * 70vw))
    rotate(calc((1 - var(--s)) * 7deg));
}

[data-mode="story"] .leads {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.leads path {
  fill: none;
  stroke: var(--azure);
  stroke-width: 1.25;
}

.leads circle {
  fill: var(--paper);
  stroke: var(--azure);
  stroke-width: 2;
}

/* Story en escritorio: las siete tarjetas quedan alrededor del auto */
@media (min-width: 1000px) {
  [data-mode="story"] .cov {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    column-gap: clamp(32px, 5vw, 90px);
  }

  [data-mode="story"] .cov h2 {
    font-size: clamp(2.4rem, min(5vw, 8.6vh), 4.6rem);
  }

  [data-mode="story"] .cov-map {
    width: auto;
    height: min(78vh, 720px);
    aspect-ratio: 1024 / 1536;
  }

  [data-mode="story"] .feats {
    margin-top: clamp(16px, 3vh, 28px);
  }

  [data-mode="story"] .feat {
    padding: clamp(14px, 2.2vh, 20px);
  }

  [data-mode="story"] .rev {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    column-gap: clamp(36px, 6vw, 110px);
    padding-top: 110px;
  }

  [data-mode="story"] .rev h2 {
    font-size: clamp(2.2rem, min(4.2vw, 7.4vh), 4rem);
  }

  [data-mode="story"] .rev-cta {
    grid-column: 1 / -1;
  }

  [data-mode="story"] .ana-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 72px);
  }

  [data-mode="story"] .ana-top .eyebrow {
    grid-column: 1 / -1;
    margin-bottom: 18px;
  }

  [data-mode="story"] .ana .ana-title {
    display: contents;
  }

  [data-mode="story"] .ana-num {
    grid-area: 2 / 1 / span 2;
    align-self: center;
    font-size: clamp(8rem, min(17vw, 30vh), 15rem);
  }

  [data-mode="story"] .ana-claim {
    grid-area: 2 / 2;
    align-self: end;
    max-width: 18ch;
    font-size: clamp(1.9rem, min(3.4vw, 6vh), 3.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.04;
  }

  [data-mode="story"] .ana-text {
    grid-area: 3 / 2;
    align-self: start;
  }

  [data-mode="story"] .incl {
    padding-top: clamp(92px, 13vh, 112px);
  }

  [data-mode="story"] .incl-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: clamp(28px, 5vw, 80px);
  }

  [data-mode="story"] .incl-intro {
    justify-self: end;
    font-size: clamp(0.98rem, 2.3vh, 1.12rem);
  }

  [data-mode="story"] h2 {
    margin-top: 10px;
    font-size: clamp(1.8rem, min(3.1vw, 5.6vh), 3rem);
  }

  [data-mode="story"] .incl-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, auto);
    grid-template-areas:
      "km   car estr"
      "mec  car scan"
      "desg pdf mult";
    gap: clamp(8px, 1.6vh, 14px) clamp(28px, 3.4vw, 56px);
  }

  [data-mode="story"] .car-dock {
    grid-area: car;
    align-self: center;
  }

  [data-mode="story"] .card-km { grid-area: km; }
  [data-mode="story"] .card-estr { grid-area: estr; }
  [data-mode="story"] .card-mec { grid-area: mec; }
  [data-mode="story"] .card-scan { grid-area: scan; }
  [data-mode="story"] .card-desg { grid-area: desg; }
  [data-mode="story"] .card-mult { grid-area: mult; }
  [data-mode="story"] .card-pdf { grid-area: pdf; }

  [data-mode="story"] .card-in {
    gap: 6px 12px;
    padding: clamp(10px, 1.7vh, 14px) 18px;
  }

  [data-mode="story"] .chip {
    width: 34px;
    height: 34px;
  }

  [data-mode="story"] .chip svg {
    width: 18px;
    height: 18px;
  }

  [data-mode="story"] .card h3 {
    font-size: clamp(0.98rem, 2.2vh, 1.1rem);
  }

  [data-mode="story"] .card p {
    font-size: clamp(0.9rem, 2.05vh, 1rem);
    line-height: 1.45;
  }
}

/* Story en pantallas angostas: el auto queda arriba y las tarjetas salen de a una */
@media (max-width: 999.98px) {
  [data-mode="story"] .cov {
    padding-top: 112px;
  }

  [data-mode="story"] .cov-copy {
    display: contents;
  }

  [data-mode="story"] .cov h2 {
    margin-top: 10px;
    font-size: clamp(1.7rem, 7vw, 2.6rem);
  }

  [data-mode="story"] .cov-intro {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.5;
  }

  [data-mode="story"] .cov-map {
    width: auto;
    height: min(40vh, 420px);
    aspect-ratio: 1024 / 1536;
  }

  [data-mode="story"] .cov-badge {
    right: auto;
    bottom: 12%;
    left: 92%;
    padding: 10px 12px;
  }

  /* las tres tarjetas ocupan el mismo lugar y pasan de a una */
  [data-mode="story"] .feats {
    order: 3;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  [data-mode="story"] .feat {
    grid-area: 1 / 1;
    padding: 14px 16px;
  }

  [data-mode="story"] .ana {
    padding-top: 112px;
  }

  [data-mode="story"] .ana-num {
    font-size: clamp(5.5rem, min(32vw, 20vh), 11rem);
  }

  [data-mode="story"] .ana .ana-title {
    font-size: clamp(1.6rem, 6.6vw, 2.6rem);
  }

  [data-mode="story"] .ana-text {
    margin-top: 12px;
    font-size: 1rem;
    line-height: 1.5;
  }

  [data-mode="story"] .stats {
    gap: 10px;
    width: 100%;
    max-width: 640px;
  }

  [data-mode="story"] .stat {
    padding: 14px;
  }

  [data-mode="story"] .stat strong {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  [data-mode="story"] .stat-unit {
    margin-top: 8px;
    font-size: 1rem;
  }

  [data-mode="story"] .stat-unit::before {
    margin-bottom: 8px;
  }

  [data-mode="story"] .stat p {
    margin-top: 6px;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  [data-mode="story"] .scene::before {
    top: 34%;
    left: 4%;
    width: 92%;
    height: 26%;
  }

  [data-mode="story"] .hero {
    gap: 14px;
    padding: 112px var(--gut) 24px;
  }

  [data-mode="story"] h1 {
    font-size: clamp(1.9rem, 8.2vw, 3.2rem);
  }

  [data-mode="story"] .hero-sub {
    font-size: 1rem;
    line-height: 1.5;
  }

  [data-mode="story"] .trust {
    gap: 8px 18px;
    font-size: 0.92rem;
  }

  [data-mode="story"] .rev {
    padding-top: 112px;
  }

  [data-mode="story"] .rev-stage {
    padding-top: 14px;
  }

  [data-mode="story"] .incl {
    padding-top: 112px;
  }

  [data-mode="story"] h2 {
    margin-top: 10px;
    font-size: clamp(1.7rem, 7vw, 2.6rem);
  }

  [data-mode="story"] .incl-intro {
    font-size: 1rem;
    line-height: 1.5;
  }

  [data-mode="story"] .incl-head {
    gap: 12px;
  }

  [data-mode="story"] .incl-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }

  [data-mode="story"] .car-dock {
    grid-area: 1 / 1;
  }

  [data-mode="story"] .count {
    grid-area: 2 / 1;
    display: block;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.18em;
    opacity: var(--head);
  }

  [data-mode="story"] .count b {
    color: var(--azure);
    font-weight: 500;
  }

  [data-mode="story"] .card {
    grid-area: 3 / 1;
    align-self: start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ---------- Entrada: sólo la silueta, después se acomoda y aparece el resto ---------- */

.intro .nav {
  opacity: 0;
  transform: translate(-50%, -18px);
}

.intro .hero-copy > * {
  opacity: 0 !important;
  transform: translateY(22px) !important;
}

.intro .readout,
.intro .hero-blob {
  opacity: 0 !important;
}

.intro .car-home {
  clip-path: inset(-10% 100% -10% 0);
}

.intro-draw .car-home {
  clip-path: inset(-10% 0 -10% 0);
  transition: clip-path 0.55s cubic-bezier(0.6, 0, 0.2, 1);
}

.intro-out .hero-car {
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.2, 1);
}

.intro-out .nav {
  transition: opacity 0.45s ease 0.25s, transform 0.45s ease 0.25s;
}

.intro-out .hero-copy > * {
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: 0.3s;
}

.intro-out .hero-copy > :nth-child(2) { transition-delay: 0.35s; }
.intro-out .hero-copy > :nth-child(3) { transition-delay: 0.4s; }
.intro-out .hero-copy > :nth-child(4) { transition-delay: 0.45s; }
.intro-out .hero-copy > :nth-child(5) { transition-delay: 0.5s; }

.intro-out .readout,
.intro-out .hero-blob {
  transition: opacity 0.5s ease 0.4s;
}

/* Celulares bajos: se compacta cada pantalla para que el texto no tenga que achicarse tanto */
@media (max-width: 999.98px) and (max-height: 700px) {
  [data-mode="story"] .hero,
  [data-mode="story"] .incl,
  [data-mode="story"] .ana,
  [data-mode="story"] .rev,
  [data-mode="story"] .inf,
  [data-mode="story"] .cov {
    padding-top: 96px;
  }

  [data-mode="story"] .inf-note {
    display: none;
  }

  [data-mode="story"] .incl-intro,
  [data-mode="story"] .rev-intro,
  [data-mode="story"] .cov-intro,
  [data-mode="story"] .ana-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  [data-mode="story"] .car-dock {
    width: 68%;
    justify-self: center;
  }

  [data-mode="story"] .card-in {
    padding: 14px 16px;
  }

  [data-mode="story"] .ana-num {
    font-size: clamp(4.5rem, min(26vw, 16vh), 8rem);
  }

  [data-mode="story"] .rev-stage {
    padding-top: 6px;
  }

  [data-mode="story"] .quote {
    padding: 16px 18px;
  }

  [data-mode="story"] .rev-cta {
    gap: 10px;
    padding: 12px 16px 12px 20px;
  }

  [data-mode="story"] .rev-cta .eyebrow {
    display: none;
  }

  [data-mode="story"] .rev-cta-title {
    margin-top: 0;
    font-size: 1.05rem;
  }

  [data-mode="story"] .rev-cta .btn {
    padding: 11px 18px;
    font-size: 0.9rem;
  }

  [data-mode="story"] .cov-map {
    height: min(34vh, 420px);
  }
}

/* ---------- Ícono de WhatsApp (relleno, no trazo) ---------- */

use[href="#i-wa"] {
  fill: currentColor;
  stroke: none;
}

/* ---------- Botón flotante de WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1faa53;
  box-shadow: 0 12px 28px rgba(0, 25, 61, 0.28);
  color: #fff;
  transition: transform 0.18s, opacity 0.5s;
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-float svg {
  width: 30px;
  height: 30px;
}

.intro .wa-float {
  opacity: 0;
}

/* ---------- Formulario de consulta ---------- */

.req {
  width: min(540px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(0, 25, 61, 0.35);
  color: var(--navy);
  overflow: auto;
}

.req::backdrop {
  background: rgba(0, 25, 61, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.req-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: clamp(22px, 5vw, 36px);
}

.req h2 {
  margin-top: -6px;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
}

.req-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--navy);
  cursor: pointer;
}

.req-close svg {
  width: 20px;
  height: 20px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > span,
.field legend {
  padding: 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.field legend {
  margin-bottom: 8px;
}

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

.field select {
  width: 100%;
  min-height: 50px;
  padding: 0 42px 0 16px;
  border: 1px solid rgba(0, 25, 61, 0.22);
  border-radius: 14px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300193d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
  color: var(--navy);
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.field select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.pills label {
  position: relative;
  cursor: pointer;
}

.pills input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pills span {
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 1px solid rgba(0, 25, 61, 0.22);
  border-radius: 14px;
  background: var(--paper);
  font-weight: 600;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.pills input:checked + span {
  border-color: var(--azure);
  background: var(--azure);
  color: #fff;
}

.pills input:focus-visible + span {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
}

.req-error {
  color: #b3261e;
  font-size: 0.92rem;
  font-weight: 600;
}

.req-send {
  justify-content: center;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.req-send {
  gap: 10px;
  padding-inline: 16px;
}

.req-send svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.req-note {
  margin-top: -8px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 420px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Pie: redes y contacto ---------- */

.foot {
  position: relative;
  z-index: 1;
  padding: clamp(48px, 8vw, 88px) var(--gut) 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.foot-in {
  display: grid;
  gap: 36px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.foot-brand {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.foot-brand img {
  width: auto;
  height: 56px;
}

.foot-brand p {
  max-width: 24rem;
  color: var(--muted);
}

.foot-links {
  display: grid;
  gap: 6px;
  list-style: none;
}

.foot-links a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-weight: 700;
  overflow-wrap: anywhere;
  transition: color 0.15s;
}

.foot-links a:hover {
  color: var(--azure);
}

.foot-links small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.foot-links .chip {
  flex: none;
  width: 46px;
  height: 46px;
}

.foot-legal {
  max-width: var(--wrap);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

@media (min-width: 800px) {
  .foot-in {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 64px;
  }

  /* deja libre la esquina del botón flotante */
  .foot-links {
    padding-right: 72px;
  }
}
