/* ============================================================
   CREDERE Cooperativa Multiactiva — Crédito de moto
   Sistema de diseño claro estilo Stripe / Notion / Shopify:
   blanco abierto, hairlines, sombras sutiles, tipografía nítida.
   Tipografía: Outfit (display, de la marca) + Inter (cuerpo/UI).
   Paleta Pantone: 296C #041E42 · 3385C #47D7AC · 266C #753BBD · 2171C #009ADE
   ============================================================ */

:root {
  --navy: #041E42;
  --navy-2: #0A2E63;
  --navy-deep: #02132B;
  --mint: #47D7AC;
  --mint-dark: #17A47C;
  --sky: #009ADE;
  --purple: #753BBD;

  --ink: #0A2540;
  --body: #425466;
  --muted: #6B7C93;
  --bg: #FFFFFF;
  --bg-soft: #F6F9FC;
  --bg-mint: #EFFBF6;
  --line: #E6EBF1;
  --line-strong: #D5DEE8;
  --sky-text: #0074A8; /* variante de sky que pasa WCAG AA como texto */

  --shadow-sm: 0 1px 2px rgba(10, 37, 64, .06);
  --shadow-md: 0 4px 14px rgba(10, 37, 64, .08);
  --shadow-lg: 0 14px 36px -10px rgba(10, 37, 64, .16);

  --r-card: 12px;
  --r-input: 8px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  /* bloquea el paneo horizontal en móvil: clip no crea contenedor de scroll */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  /* mata el gesto de paneo horizontal en táctil (solo scroll vertical y zoom) */
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-x: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.4rem, 4.8vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }

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

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

::selection { background: rgba(0, 154, 222, .18); }

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

/* ---------- Layout helpers ---------- */

.section { padding: 96px 24px; max-width: 1120px; margin: 0 auto; }

.section__head { max-width: 60ch; margin-bottom: 48px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { margin-top: 12px; font-size: 1.05rem; max-width: 54ch; }
.section__head--center p { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: .95rem;
  font-weight: 600;
  color: var(--sky-text);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.link { font-weight: 500; color: var(--sky-text); transition: color 150ms ease; }
.link:hover { color: var(--navy-2); }
.link--nav { color: var(--mint); }
.link--nav:hover { color: #fff; }

.em { color: var(--sky-text); font-style: normal; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  white-space: nowrap;
  padding: 13px 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), background-color 150ms ease, color 150ms ease;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--navy);
  color: #fff;
}
.btn--primary:hover { background: var(--navy-2); box-shadow: var(--shadow-md); }

.btn--mint {
  background: var(--mint);
  color: var(--navy);
}
.btn--mint:hover { background: #5FE3BC; box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); background: var(--bg-soft); }

.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

/* Botón pagar crédito (PSE) */
.btn--pay {
  background: var(--mint);
  color: var(--navy);
  font-weight: 700;
  font-size: .95rem;
  padding: 6px 20px 6px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), background-color 150ms ease;
}
.btn--pay:hover {
  background: #5FE3BC;
  box-shadow: var(--shadow-md);
}
.btn--pay:active { transform: scale(0.98); }
.btn--pay-icon {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
}

/* ---------- Barra de anuncio ---------- */

.promo {
  background: var(--navy);
  color: rgba(255, 255, 255, .82);
  font-size: .84rem;
  text-align: center;
  padding: 9px 16px;
}
.promo b { color: #fff; font-weight: 600; }
.promo a {
  color: var(--mint);
  font-weight: 600;
  margin-left: 4px;
  white-space: nowrap;
}
.promo a:hover { text-decoration: underline; }

/* ---------- Navegación ---------- */

/* Arriba: barra completa de borde a borde. Al hacer scroll: píldora flotante. */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
}

.nav__inner {
  width: 100%;
  height: 72px;
  margin-inline: auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid transparent;
  border-bottom-color: #C3CFDD;
  border-radius: 0;
  box-shadow: 0 6px 22px rgba(10, 37, 64, .1);
  transition:
    width 320ms var(--ease-out),
    height 320ms var(--ease-out),
    border-radius 320ms var(--ease-out),
    border-color 320ms ease,
    box-shadow 320ms ease,
    padding 320ms var(--ease-out);
}

.nav.is-scrolled .nav__inner {
  width: min(1180px, calc(100% - 48px));
  height: 56px;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  border-color: var(--line);
  box-shadow: var(--shadow-lg);
}

.nav__brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }

.brand-mark { width: 28px; height: 32px; }

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-word small {
  font-family: var(--font);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--muted);
  margin-top: 3px;
}
.brand-word--light { color: #fff; }
.brand-word--light small { color: rgba(255, 255, 255, .6); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav__links a {
  font-weight: 500;
  font-size: .92rem;
  color: var(--body);
  transition: color 150ms ease;
}
.nav__links a:hover { color: var(--ink); }

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

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav__toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms var(--ease-out);
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Hero (foto inmersiva estilo Apollo) ---------- */

.hero { padding: 14px 24px 48px; }

.hero__wrap { max-width: 1120px; margin: 0 auto; }

.hero__frame {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 20px;
  border-radius: 20px;
  overflow: hidden;
  min-height: clamp(580px, 80vh, 780px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: var(--navy-deep);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 55%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(262deg, rgba(2, 19, 43, .86) 0%, rgba(2, 19, 43, .62) 46%, rgba(2, 19, 43, .22) 78%, rgba(2, 19, 43, .06) 100%),
    linear-gradient(to top, rgba(2, 19, 43, .55), transparent 52%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 6vw, 80px);
  max-width: 740px;
}

.hero__kicker {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 18px;
}

.hero__content h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
}
.em--light { color: var(--mint); }

.hero__sub {
  margin-top: 16px;
  font-size: 1.12rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .85);
  max-width: 44ch;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn--outline-light {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: .86rem;
  color: rgba(255, 255, 255, .78);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust svg { width: 15px; height: 15px; color: var(--mint); flex: none; }

.chat__bubble {
  padding: 11px 16px;
  border-radius: 14px;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: var(--shadow-md);
}
.chat__bubble--user {
  background: #fff;
  color: var(--ink);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat__bubble--credere {
  background: var(--mint);
  color: var(--navy);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chat__dot {
  width: 8px; height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--navy);
  animation: gpsPulse 2.2s ease-in-out infinite;
}

/* Tarjetas bajo el hero */
.hero__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hcard {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 360px;
  display: block;
  border: 1px solid var(--line);
}
.hcard > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transition: transform 450ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hcard:hover > img { transform: scale(1.04); }
  .hcard:hover .hcard__arrow { background: var(--navy); color: #fff; }
}
.hcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, .68) 0%, rgba(10, 37, 64, .1) 42%, transparent 62%);
  pointer-events: none;
}
.hcard--cta::after { display: none; }

.hcard__pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
}

.hcard__arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background-color 200ms ease, color 200ms ease;
}
.hcard__arrow svg { width: 15px; height: 15px; }

.hcard__label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.hcard--cta {
  background: var(--navy);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 6px;
  border: 0;
}
.hcard--cta h3 { color: #fff; font-size: 1.2rem; }
.hcard--cta p { color: rgba(255, 255, 255, .68); font-size: .9rem; margin-bottom: 12px; }

/* ---------- Concesionarios aliados ---------- */

.allies { border-block: 1px solid var(--line); }
.allies__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.allies__marquee {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.allies__marquee::before, .allies__marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}
.allies__marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.allies__marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

.allies__track {
  display: flex;
  width: max-content;
  animation: alliesScroll 30s linear infinite;
}
.allies__marquee:hover .allies__track { animation-play-state: paused; }

.allies__group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  flex: none;
}

@keyframes alliesScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ally-logo {
  height: 24px;
  width: auto;
  filter: grayscale(1);
  opacity: .55;
  transition: filter 200ms ease, opacity 200ms ease;
}
.ally-logo:hover { filter: none; opacity: 1; }

/* ---------- Cifras ---------- */

.stats { padding: 48px 24px 8px; }

.stats__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  background:
    radial-gradient(42% 70% at 100% 0%, rgba(71, 215, 172, .12), transparent 70%),
    radial-gradient(36% 60% at 0% 100%, rgba(0, 154, 222, .12), transparent 70%),
    var(--navy);
  border-radius: 20px;
}

.stat {
  border-left: 1px solid rgba(255, 255, 255, .16);
  padding-left: 24px;
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat__label { font-size: .9rem; color: rgba(255, 255, 255, .62); display: block; margin-top: 6px; }

/* ---------- Mosaico del crédito ---------- */

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mtile {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .mtile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .mtile--photo:hover > img { transform: scale(1.05); }
  .mtile--photo:hover .hcard__arrow { background: var(--navy); color: #fff; }
}

/* Tile del monto (navy, hermano del panel de cifras) */
.mtile--amount {
  grid-column: span 2;
  padding: 36px 40px;
  background:
    radial-gradient(46% 80% at 100% 0%, rgba(71, 215, 172, .14), transparent 70%),
    radial-gradient(38% 66% at 0% 100%, rgba(0, 154, 222, .13), transparent 70%),
    var(--navy);
  color: rgba(255, 255, 255, .78);
}
.mtile__kicker {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--mint);
  margin-bottom: 6px;
}
.mtile__amount {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.mtile--amount p { font-size: .98rem; max-width: 40ch; }

.mtile__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mtile__chips span {
  font-size: .82rem;
  font-weight: 500;
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
}

.mtile__link {
  margin-top: 20px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--mint);
}
.mtile__link:hover { text-decoration: underline; }

/* Tile GPS */
.mtile--gps {
  padding: 26px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  gap: 6px;
}

/* mini-widget de mapa */
.mtile__scene {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: var(--r-input);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.mtile__scene svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mtile__scene .radar {
  position: absolute;
  inset: 0;
  margin: auto;
}
.mtile__scene .map-route { filter: drop-shadow(0 0 4px rgba(71, 215, 172, .3)); }
.mtile--gps h3 { font-size: 1.1rem; }
.mtile--gps p { font-size: .92rem; }

.radar--lg { width: 92px; height: 92px; }
.radar--lg i { width: 11px; height: 11px; }

.mtile__partner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
  margin-top: 10px;
}
.mtile__partner img { height: 20px; width: auto; }

/* Tiles con foto (mismo lenguaje que las tarjetas del hero) */
.mtile--photo { border: 1px solid var(--line); }
.mtile--photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 450ms var(--ease-out);
}
.mtile--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, .7) 0%, rgba(10, 37, 64, .12) 44%, transparent 64%);
  pointer-events: none;
}

.mtile--wide { grid-column: span 2; }

.mtile__label {
  position: relative;
  z-index: 2;
  padding: 0 20px 18px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* Radar GPS */
.radar {
  position: relative;
  width: 66px; height: 66px;
  border-radius: 50%;
  border: 1px solid rgba(0, 154, 222, .4);
  display: grid;
  place-items: center;
}
.radar::before, .radar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(0, 154, 222, .4);
  animation: radarPing 2.8s var(--ease-out) infinite;
}
.radar::after { animation-delay: 1.4s; }
.radar i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky);
}

@keyframes radarPing {
  from { transform: scale(1); opacity: .7; }
  to   { transform: scale(1.7); opacity: 0; }
}

/* ---------- Cómo funciona (stepper interactivo) ---------- */

.steps { max-width: none; border-top: 1px solid var(--line); }
.steps__wrap { max-width: 1120px; margin: 0 auto; }

.stepper {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}

.stepper__list { list-style: none; }
.stepper__list li + li { border-top: 1px solid var(--line); }

.stepper__btn {
  position: relative;
  width: 100%;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  text-align: left;
  padding: 20px 4px 22px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  opacity: .45;
  transition: opacity 250ms ease;
}
.stepper__btn:hover { opacity: .8; }
.stepper__btn.is-active { opacity: 1; }

.stepper__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--sky-text);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  flex: none;
}

.stepper__txt b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
/* solo el paso activo muestra su descripción (acordeón) */
.stepper__txt small {
  display: block;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition: max-height 320ms var(--ease-out), opacity 320ms ease, margin-top 320ms var(--ease-out);
}
.stepper__btn.is-active .stepper__txt small {
  max-height: 3.2em;
  opacity: 1;
  margin-top: 4px;
}

/* barra de progreso del paso activo */
.stepper__bar {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: transparent;
  overflow: hidden;
}
.stepper__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--sky);
}
.stepper__btn.is-run .stepper__bar i { animation: stepProgress 8s linear forwards; }

@keyframes stepProgress { from { width: 0; } to { width: 100%; } }

/* Escenario */
.stepper__stage {
  position: relative;
  min-height: 430px;
  border-radius: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out), visibility 0s 450ms;
  visibility: hidden;
  pointer-events: none;
}
.scene.is-active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s, 0s, 0s; }

.scene--photo { padding: 0; }
.scene--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scene__chip {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-weight: 600;
  font-size: .88rem;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.scene__chip--gps i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint-dark);
  animation: gpsPulse 2s ease-in-out infinite;
}

@keyframes gpsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23, 164, 124, .5); }
  55%      { box-shadow: 0 0 0 6px rgba(23, 164, 124, 0); }
}

/* Mini-tarjetas de las escenas */
.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  padding: 26px 28px;
  width: min(380px, 92%);
}

.mini-sim { display: flex; flex-direction: column; gap: 12px; }
.mini-sim__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .88rem;
  color: var(--muted);
}
.mini-sim__row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.mini-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sky);
}
.mini-sim__send {
  display: block;
  text-align: center;
  background: #25D366;
  color: var(--navy);
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 999px;
  margin-top: 10px;
}

/* Escena 1: mini formulario interactivo */
.demo-toggle {
  display: inline-flex;
  gap: 2px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.demo-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}
.demo-toggle button.is-on { background: var(--navy); color: #fff; }

.mini-sim__send { border: 0; cursor: pointer; width: 100%; transition: background-color 150ms ease, transform 150ms var(--ease-out); }
.mini-sim__send:hover { background: #1FC15C; }
.mini-sim__send:active { transform: scale(.98); }
.mini-sim__send.is-press { transform: scale(.94); background: #1FC15C; }

/* pila formulario ↔ mini-modal de la demo */
.scene__stack { display: grid; width: min(380px, 100%); }
.scene__stack > * { grid-area: 1 / 1; }

.mini-modal {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
  pointer-events: none;
}
.scene.show-modal .mini-modal { opacity: 1; transform: none; }
.scene.show-modal .mini-sim { opacity: 0; transform: scale(.97); pointer-events: none; }
.mini-sim { transition: opacity 300ms ease, transform 300ms var(--ease-out); }

.mini-modal__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.mini-modal__field span {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 5px;
}
.mini-modal__field b {
  display: block;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
}
.mini-modal__check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  color: var(--body);
}
.mini-modal__check .okmark {
  opacity: 0;
  transform: scale(.6);
  transition: opacity 250ms ease, transform 250ms var(--ease-out);
}
.mini-modal__check.is-on .okmark { opacity: 1; transform: none; }

/* entrada escalonada del formulario al activar el paso */
.scene[data-scene="0"] .mini-sim > * { opacity: 0; transform: translateY(8px); }
.scene[data-scene="0"].is-active .mini-sim > * { animation: bubbleIn 350ms var(--ease-out) forwards; }
.scene[data-scene="0"].is-active .mini-sim > *:nth-child(1) { animation-delay: 150ms; }
.scene[data-scene="0"].is-active .mini-sim > *:nth-child(2) { animation-delay: 300ms; }
.scene[data-scene="0"].is-active .mini-sim > *:nth-child(3) { animation-delay: 450ms; }
.scene[data-scene="0"].is-active .mini-sim > *:nth-child(4) { animation-delay: 600ms; }

/* Escena 2: chat con el asesor */
.mini-chat { display: flex; flex-direction: column; gap: 10px; }
.mini-chat__head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.mini-chat__head i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #25D366;
  animation: gpsPulse 2.2s ease-in-out infinite;
}
.mini-chat .chat__bubble { box-shadow: none; border: 1px solid var(--line); }
.mini-chat .chat__bubble--credere { border: 0; }

/* animación de conversación */
.chat__stack { display: grid; }
.chat__stack > * { grid-area: 1 / 1; justify-self: end; }

.chat-anim { opacity: 0; transform: translateY(8px); }
.scene.is-active .chat-anim--1 { animation: bubbleIn 400ms var(--ease-out) 300ms forwards; }
.scene.is-active .chat-anim--typing {
  animation:
    bubbleIn 300ms var(--ease-out) 1000ms forwards,
    bubbleOut 220ms ease 2500ms forwards;
}
.scene.is-active .chat-anim--2 { animation: bubbleIn 400ms var(--ease-out) 2700ms forwards; }

@keyframes bubbleIn { to { opacity: 1; transform: none; } }
@keyframes bubbleOut { to { opacity: 0; transform: scale(.9); } }

.chat__typing { display: inline-flex; gap: 4px; padding: 3px 2px; }
.chat__typing i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(4, 30, 66, .55);
  animation: typingBounce 1.1s ease-in-out infinite;
}
.chat__typing i:nth-child(2) { animation-delay: .15s; }
.chat__typing i:nth-child(3) { animation-delay: .3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: none; opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Escena 3: estudio y aprobación */
.mini-study__head {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mini-study__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
}
.okmark {
  width: 22px; height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-mint);
  color: var(--mint-dark);
  display: grid;
  place-items: center;
}
.okmark svg { width: 11px; height: 11px; }

.mini-study__approved {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-mint);
  color: var(--mint-dark);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px;
  border-radius: var(--r-input);
}
.mini-study__approved svg { width: 16px; height: 16px; }

.study-anim { opacity: 0; transform: translateY(6px); }
.scene.is-active .study-anim--1 { animation: bubbleIn 350ms var(--ease-out) 250ms forwards; }
.scene.is-active .study-anim--2 { animation: bubbleIn 350ms var(--ease-out) 750ms forwards; }
.scene.is-active .study-anim--3 { animation: bubbleIn 350ms var(--ease-out) 1250ms forwards; }
.scene.is-active .study-anim--4 { animation: popIn 420ms var(--ease-out) 1900ms forwards; }

@keyframes popIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Campos con slider (modal de solicitud) ---------- */

.sim__fieldhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.sim__fieldhead label { font-weight: 500; color: var(--ink); font-size: .92rem; }
.sim__fieldhead output {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  /* pista visible de 5px con zona táctil de 44px (WCAG 2.5.5) */
  height: 44px;
  border-block: 19.5px solid transparent;
  border-radius: 999px;
  background: linear-gradient(to right, var(--sky) var(--fill, 50%), var(--line) var(--fill, 50%));
  background-clip: padding-box;
  outline-offset: 6px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
  transition: transform 150ms var(--ease-out);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-md);
}

/* ---------- Botón WhatsApp ---------- */

.btn--wsp {
  background: #25D366;
  color: var(--navy);
  font-weight: 700;
}
.btn--wsp:hover { background: #1FC15C; box-shadow: var(--shadow-md); }

/* ---------- Modal de solicitud ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 20, 40, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 250ms ease;
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.modal.is-open .modal__card { opacity: 1; transform: none; }

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.modal__close:hover { background: var(--line); color: var(--ink); }
.modal__close svg { width: 15px; height: 15px; }

.modal__card h3 {
  font-size: 1.45rem;
  padding-right: 36px;
}
.modal__sub { margin-top: 6px; font-size: .95rem; }

#formSolicitud {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.modal__note {
  margin-top: 16px;
  font-size: .78rem;
  color: var(--muted);
}

/* pasos del modal */
.modal__dots {
  list-style: none;
  display: flex;
  gap: 6px;
  margin-top: 20px;
}
.modal__dots li {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background-color 250ms ease;
}
.modal__dots li.is-active { background: var(--sky); }
.modal__dots li.is-done { background: var(--mint); }

.mstep { display: none; flex-direction: column; gap: 20px; }
.mstep.is-active { display: flex; animation: stepIn 320ms var(--ease-out); }

.mstep__q {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.modal__nav { display: flex; gap: 10px; }
.modal__nav .btn--primary,
.modal__nav .btn--wsp { flex: 1; }

/* ---------- Aliado estratégico: Self Security ---------- */

.ally-sec__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 64px;
  align-items: center;
}

.ally-sec__copy p { margin-top: 14px; max-width: 50ch; }
.ally-sec__copy p b { color: var(--ink); font-weight: 600; }

.ally-sec__list {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ally-sec__list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .97rem;
  color: var(--ink);
  font-weight: 500;
}
.ally-sec__list svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--mint-dark);
}

.ally-sec__brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.ally-sec__brand img { height: 34px; width: auto; }

.ally-sec__panel {
  position: relative;
  min-height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(71, 215, 172, .13), transparent 70%),
    radial-gradient(44% 62% at 0% 100%, rgba(0, 154, 222, .14), transparent 70%),
    var(--navy);
  display: grid;
  place-items: center;
}

.ally-sec__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* la ruta se dibuja, espera y la moto sigue su camino (bucle) */
.map-route {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px rgba(71, 215, 172, .5));
}
.ally-sec__visual.is-in .map-route,
.mtile--gps.is-in .map-route {
  animation: routeDraw 8s var(--ease-out) 400ms infinite;
}

@keyframes routeDraw {
  0%   { stroke-dashoffset: 100; }
  28%  { stroke-dashoffset: 0; }
  68%  { stroke-dashoffset: 0; }
  92%  { stroke-dashoffset: -100; }
  100% { stroke-dashoffset: -100; }
}

.radar--xl, .ally-sec__status { position: relative; z-index: 2; }

.radar--xl {
  width: 150px;
  height: 150px;
  border-color: rgba(0, 154, 222, .55);
}
.radar--xl::before, .radar--xl::after { border-color: rgba(0, 154, 222, .55); }
.radar--xl i {
  width: 14px;
  height: 14px;
  box-shadow: 0 0 16px rgba(0, 154, 222, .8);
}

.ally-sec__status {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.ally-sec__status i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: gpsPulse 2.2s ease-in-out infinite;
}

/* ---------- Preguntas frecuentes ---------- */

.faq { max-width: 1120px; }

.faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-weight: 500;
  color: var(--ink);
  font-size: 1rem;
  transition: color 150ms ease;
}
.faq__item summary:hover { color: var(--sky-text); }
.faq__item summary::-webkit-details-marker { display: none; }

.faq__icon {
  position: relative;
  width: 20px; height: 20px;
  flex: none;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  border-radius: 2px;
  background: var(--muted);
  transform: translate(-50%, -50%);
  transition: transform 220ms var(--ease-out);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__item p {
  padding: 0 4px 22px;
  font-size: .95rem;
  max-width: 64ch;
}

/* ---------- CTA final ---------- */

.cta {
  background: var(--navy);
  text-align: center;
  padding: 96px 24px;
}

.cta__inner { max-width: 620px; margin: 0 auto; }

.cta__mark { width: 46px; margin: 0 auto 26px; }

.cta h2 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 2.6rem); }
.cta p { color: rgba(255, 255, 255, .72); margin: 14px auto 32px; max-width: 44ch; }

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

/* ---------- Footer (claro, estilo Stripe) ---------- */

.footer { background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--body); }

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
}

.footer__brand p { margin-top: 16px; font-size: .92rem; max-width: 26ch; color: var(--muted); }

.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col h4 {
  font-family: var(--font);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0;
}
.footer__col a, .footer__addr { font-size: .9rem; color: var(--muted); }
.footer__col a { transition: color 150ms ease; }
.footer__col a:hover { color: var(--ink); }

.footer__legal {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: .8rem;
  color: var(--muted);
}
.footer__legal--solo { border-top: 0; }
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__legal-links a { transition: color 150ms ease; }
.footer__legal-links a:hover { color: var(--ink); }

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

.wsp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--navy);
  font-weight: 600;
  font-size: .9rem;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.wsp-float:hover { transform: translateY(-2px); }
.wsp-float:active { transform: scale(0.98); }
.wsp-float__icon { width: 20px; height: 20px; flex: none; }

/* ---------- Barra tipo app (solo celular) ---------- */

.appbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(10, 37, 64, .08);
  padding: 6px 10px calc(8px + env(safe-area-inset-bottom, 0px));
}

.appbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 4px;
  border: 0;
  background: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: .7rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.appbar__item:active { background: var(--bg-soft); }

.appbar__item svg { width: 22px; height: 22px; }
.appbar__item--asesor svg { color: #1FA855; }

.appbar__pse { width: 24px; height: 24px; border-radius: 50%; }

.appbar__lines {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  height: 22px;
}
.appbar__lines i {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ---------- Simulador de pre-aprobado (wizard) ---------- */

.wiz { max-width: 680px; padding-top: 64px; }

.wiz__head { text-align: center; margin-bottom: 34px; }
.wiz__head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.wiz__head p { margin-top: 10px; }

.wiz__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  padding: 32px;
}

.wiz__dots {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.wiz__dots li {
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease;
}
.wiz__dots li.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.wiz__dots li.is-done { background: var(--bg-mint); color: var(--mint-dark); border-color: rgba(23, 164, 124, .3); }

.wiz__step {
  border: 0;
  display: none;
  flex-direction: column;
  gap: 24px;
}
.wiz__step.is-active { display: flex; animation: stepIn 360ms var(--ease-out); }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

.wiz__q {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}

.tcards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tcard { position: relative; cursor: pointer; }
.tcard input { position: absolute; opacity: 0; pointer-events: none; }
.tcard__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 20px;
  border-radius: var(--r-input);
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 150ms var(--ease-out);
}
.tcard__body b { color: var(--ink); font-size: 1rem; font-weight: 600; }
.tcard__body small { color: var(--muted); font-size: .82rem; }
.tcard:active .tcard__body { transform: scale(0.99); }
.tcard input:checked + .tcard__body {
  border-color: var(--sky);
  box-shadow: 0 0 0 1px var(--sky);
  background: rgba(0, 154, 222, .03);
}
.tcard input:focus-visible + .tcard__body {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.wiz__mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-input);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.wiz__mini span {
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wiz__mini b {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 500; color: var(--ink); font-size: .92rem; }
.field input {
  font-family: var(--font);
  font-size: .98rem;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: var(--r-input);
  border: 1px solid var(--line-strong);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input::placeholder { color: #5D6E85; }
.field input:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(0, 154, 222, .12);
}
.field__error { color: #CD3D64; font-size: .82rem; font-weight: 500; }

.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  cursor: pointer;
  font-size: .88rem;
}
.check input {
  width: 18px; height: 18px;
  flex: none;
  margin-top: 2px;
  accent-color: var(--sky);
  cursor: pointer;
}
.check a { color: var(--sky-text); font-weight: 500; text-decoration: underline; }

.wiz__nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}
.wiz__nav .btn--primary { margin-left: auto; }

.wiz__result {
  text-align: center;
  padding: 12px 4px 4px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
}
.wiz__result.is-shown { opacity: 1; transform: none; }
.wiz__result h2 { font-size: clamp(1.4rem, 3.2vw, 1.9rem); margin-bottom: 8px; }
.wiz__result > p { max-width: 46ch; margin: 0 auto; }

.result__check { width: 84px; margin: 0 auto 20px; }
.result__circle {
  fill: none;
  stroke: var(--mint-dark);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transform: rotate(-90deg);
  transform-origin: center;
}
.result__tick {
  fill: none;
  stroke: var(--mint-dark);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
}
.wiz__result.is-shown .result__circle { animation: draw 650ms var(--ease-out) forwards; }
.wiz__result.is-shown .result__tick { animation: draw 420ms var(--ease-out) 520ms forwards; }
.result__check--warn .result__circle, .result__check--warn .result__tick { stroke: var(--sky); }

@keyframes draw { to { stroke-dashoffset: 0; } }

.result__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0;
}
.result__grid > div {
  padding: 16px 12px;
  border-radius: var(--r-input);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.result__grid span { font-size: .76rem; color: var(--muted); }
.result__grid b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

#wizAdjust .btn { margin-top: 24px; }

.wiz__redo {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: 0;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}
.wiz__redo:hover { color: var(--ink); }

.wiz__note {
  margin-top: 20px;
  font-size: .78rem;
  color: var(--muted);
  max-width: 54ch;
  margin-inline: auto;
}

.wiz__foot { text-align: center; margin-top: 24px; font-size: .92rem; }

/* Confeti */
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  overflow: hidden;
}
.confetti span {
  position: absolute;
  top: -3vh;
  width: 9px;
  height: 13px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0%   { opacity: 1; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: .9; transform: translate(var(--sx, 0), 105vh) rotate(var(--rx, 360deg)); }
}

/* ---------- Páginas legales ---------- */

.legal { max-width: 720px; padding-top: 64px; }
.legal h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-bottom: 6px; }
.legal__updated { font-size: .86rem; color: var(--muted); margin-bottom: 38px; }
.legal h2 { font-size: 1.18rem; margin: 34px 0 10px; }
.legal p, .legal li { font-size: .95rem; }
.legal b { color: var(--ink); font-weight: 600; }
.legal ul { padding-left: 22px; margin: 12px 0; display: flex; flex-direction: column; gap: 7px; }
.legal a { color: var(--sky-text); font-weight: 500; }
.legal a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 550ms var(--ease-out), transform 550ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

/* El menú colapsa a hamburguesa desde 1080px: entre 1001-1080px la barra completa no cabe */
@media (max-width: 1080px) {
  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px; right: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 22px 22px;
    gap: 16px;
    margin: 0;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out), visibility 0s 220ms;
  }
  .nav__links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
  }
  .nav__toggle { display: flex; }
  .nav__actions { margin-left: auto; }
  .nav__actions .btn--primary { display: none; }
  .nav__inner { gap: 12px; }
  .brand-word small { display: none; }
}

@media (max-width: 1000px) {
  .hero { padding: 10px 16px 40px; }
  .hero__frame {
    min-height: clamp(560px, 74vh, 660px);
    align-items: flex-end;
  }
  .hero__content { max-width: 560px; padding: 28px clamp(24px, 5vw, 48px) 36px; }
  .hero__trust { display: none; }

  /* la moto protagoniza arriba; el texto va abajo sobre el velo oscuro */
  .hero__scrim {
    background: linear-gradient(0deg, rgba(2, 19, 43, .9) 0%, rgba(2, 19, 43, .74) 38%, rgba(2, 19, 43, .26) 68%, rgba(2, 19, 43, .04) 100%);
  }
  .hero__bg { object-position: 32% 32%; }

  /* tarjetas del hero: 2 arriba + CTA a lo ancho */
  .hero__cards { grid-template-columns: 1fr 1fr; }
  .hcard { min-height: 260px; }
  .hcard--cta { grid-column: 1 / -1; min-height: 0; padding: 24px 26px; }
  .hero__cards .hcard:nth-child(2) > img { object-position: 50% 12%; }

  .allies__inner { padding: 26px 16px; }
  .stats { padding: 40px 16px 8px; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }

  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .mtile--amount, .mtile--wide { grid-column: span 2; }

  /* escenario arriba: el cambio de escena queda visible al tocar un paso */
  .stepper { grid-template-columns: 1fr; gap: 32px; }
  .stepper__stage { order: -1; min-height: 360px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col a { overflow-wrap: anywhere; }

  .ally-sec__inner { grid-template-columns: 1fr; gap: 40px; }
  .ally-sec__panel { min-height: 320px; }
}

@media (max-width: 700px) {
  .section { padding: 64px 20px; }

  .nav__inner { padding: 0 16px; }
  .nav.is-scrolled .nav__inner { padding: 0 6px 0 14px; }

  .hero { padding: 10px 20px 40px; }

  /* en celular: solo "Elige tu moto" + la tarjeta CTA, lado a lado */
  .hero__cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hcard { min-height: 210px; }
  .hero__cards .hcard:nth-child(2) { display: none; }
  .hcard--cta { grid-column: auto; padding: 16px 14px; justify-content: flex-end; gap: 4px; }
  .hcard--cta h3 { font-size: 1rem; }
  .hcard--cta p { font-size: .76rem; line-height: 1.4; margin-bottom: 8px; }
  .hcard--cta .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    font-size: .8rem;
    padding: 10px 8px;
  }
  .hcard__pill { font-size: .68rem; padding: 4px 10px; top: 10px; left: 10px; }
  .hcard__arrow { width: 28px; height: 28px; top: 10px; right: 10px; }
  .hcard__arrow svg { width: 13px; height: 13px; }
  .hcard__label { font-size: .95rem; left: 12px; bottom: 12px; }

  .allies__inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 20px; }
  .allies__marquee { width: 100%; }

  .stats { padding: 40px 20px 8px; }

  /* carrusel de cifras: 2 visibles a la vez, alternando por fundido sin mover nada */
  .stats__inner { grid-template-columns: 1fr 1fr; gap: 20px; padding: 36px 26px; }
  .stat:nth-child(1) { grid-area: 1 / 1; }
  .stat:nth-child(2) { grid-area: 1 / 2; }
  .stat:nth-child(3) { grid-area: 1 / 1; }
  .stat:nth-child(4) { grid-area: 1 / 2; }
  .stat:nth-child(-n+2) { animation: statPairA 12s ease-in-out infinite; }
  .stat:nth-child(n+3) { opacity: 0; animation: statPairB 12s ease-in-out infinite; }

  /* $25M a lo ancho y las 3 fichas compactas en fila debajo */
  .mosaic { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .mtile--amount { grid-column: 1 / -1; }
  .mtile--wide { grid-column: auto; }
  .mtile { min-height: 150px; }
  .mtile--photo .hcard__pill,
  .mtile--photo .hcard__arrow { display: none; }
  .mtile__label { font-size: .74rem; line-height: 1.3; padding: 0 10px 10px; overflow-wrap: break-word; }
  .mtile--gps { padding: 10px; }
  .mtile--gps h3 { font-size: .76rem; letter-spacing: 0; }
  .mtile--gps p,
  .mtile__partner { display: none; }
  .mtile__scene { height: 86px; margin-bottom: 8px; }
  .mtile__scene .radar { width: 44px; height: 44px; }
  .mtile__scene .radar i { width: 7px; height: 7px; }

  .stepper__stage { min-height: 380px; }
  .scene { padding: 20px; }
  .mini-card { width: min(380px, 100%); padding: 20px 18px; }

  /* pasos como fila de números 1-5: el activo crece y su texto aparece debajo */
  .stepper__list {
    display: flex;
    position: relative;
    padding-bottom: 86px;
  }
  .stepper__list li { flex: 1; }
  .stepper__list li + li { border-top: 0; }
  .stepper__btn {
    position: static;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 0 0;
  }
  .stepper__num {
    margin-top: 0;
    font-size: 1.1rem;
    transition: transform 300ms var(--ease-out), color 300ms ease;
  }
  .stepper__btn.is-active .stepper__num { transform: scale(1.7); }
  .stepper__txt {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 62px;
    text-align: center;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 300ms ease, transform 300ms var(--ease-out);
    pointer-events: none;
  }
  .stepper__btn.is-active .stepper__txt { opacity: 1; transform: none; }
  .stepper__txt b { font-size: 1.02rem; }
  .stepper__txt small { max-height: none; overflow: visible; }
  .stepper__bar {
    position: static;
    width: 26px;
    height: 2px;
    margin-top: 4px;
    border-radius: 2px;
  }

  .hero__minicard { display: none; }
  .hero__content h1 br { display: none; }

  .wiz__card { padding: 24px 18px; }
  .tcards { grid-template-columns: 1fr; }
  .result__grid { grid-template-columns: 1fr; }
  .wiz__dots li { padding: 6px 11px; font-size: .74rem; }

  /* footer compacto tipo app */
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 26px 16px;
    padding: 36px 20px 8px;
  }
  .footer__brand { grid-column: 1 / -1; text-align: center; }
  .footer__brand .nav__brand { justify-content: center; }
  .footer__brand p { margin: 10px auto 0; font-size: .85rem; }
  .footer__col { gap: 2px; }
  .footer__col h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
  .footer__col a { font-size: .88rem; padding: 5px 0; }
  .footer__addr { font-size: .82rem; padding: 3px 0; }
  #footer-contacto {
    grid-column: 1 / -1;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 14px 16px;
    text-align: center;
  }
  #footer-contacto h4 { margin-bottom: 4px; }
  .footer__legal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    font-size: .74rem;
    padding: 16px 20px 24px;
  }
  .footer__legal-links { justify-content: center; gap: 8px 16px; }

  /* barra tipo app: reemplaza a la hamburguesa del header */
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .appbar { display: grid; }
  .nav__toggle { display: none; }

  /* burbuja de WhatsApp flotando sobre la barra (debajo del menú) */
  .wsp-float {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    right: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    box-shadow: 0 6px 18px rgba(31, 168, 85, .45);
    transition: opacity 200ms ease, transform 200ms var(--ease-out);
  }
  .wsp-float__txt { display: none; }
  .wsp-float__icon { width: 28px; height: 28px; }

  /* con el menú abierto, la burbuja se esconde */
  .menu-open .wsp-float {
    opacity: 0;
    transform: scale(.8);
    pointer-events: none;
  }

  /* sin blur en móvil: el backdrop-filter convierte al menú fixed en hijo del header */
  .nav__inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, .98);
  }

  /* el menú se abre como hoja sobre la barra inferior */
  .nav__links {
    position: fixed;
    top: auto;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    left: 16px; right: 16px;
    transform: translateY(10px);
  }
  .nav__links.is-open { transform: none; }
}

@media (max-width: 560px) {
  /* botón PSE solo-icono para que el header quepa en 360px */
  .btn--pay { padding: 5px; gap: 0; }
  .btn--pay-txt { display: none; }
  .btn--pay-icon { width: 32px; height: 32px; }

  .hero__ctas { flex-direction: column; align-items: stretch; }

  .promo__extra { display: none; }

  .mtile--amount { padding: 28px 24px; }
}

/* Alternancia de parejas de cifras (móvil) */
@keyframes statPairA {
  0%, 40%  { opacity: 1; }
  48%, 90% { opacity: 0; }
  98%, 100% { opacity: 1; }
}
@keyframes statPairB {
  0%, 40%  { opacity: 0; }
  48%, 90% { opacity: 1; }
  98%, 100% { opacity: 0; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .mtile, .hcard > img, .nav__inner { transition: none; }
  .allies__track { animation: none; }
  .radar::before, .radar::after { animation: none; }
  .scene { transition: none; }
  .scene__chip--gps i, .ally-sec__status i, .chat__dot { animation: none; }
  .map-route { animation: none; stroke-dashoffset: 0; }
  .chat-anim, .study-anim, .scene[data-scene="0"] .mini-sim > * { opacity: 1; transform: none; animation: none !important; }
  .chat-anim--typing { display: none; }
  .chat__typing i { animation: none; }
  /* sin animación: las 4 cifras se muestran en 2x2 */
  .stat { animation: none !important; opacity: 1 !important; grid-area: auto !important; }
}
