/* =========================================================================
   IV Furgo Multirentals · Estilos
   Guía de marca 2026. Concepto: franjas horizontales — blanco y gris hielo
   (60 %), azul marino y azul noche (30 %), naranja solo en la acción (10 %).
   ========================================================================= */

:root {
  /* Color (guía de marca) */
  --navy: #003a6c;
  --orange: #ff6b2c;
  --night: #0b1f33;
  --slate: #6b737c;
  --white: #ffffff;
  --ice: #f2f4f7;
  /* Derivados para texto pequeño y bordes */
  --text-muted: #566069;
  --line: #dce1e7;
  --on-dark-muted: #b4c0ce;
  --ok: #1c7c4a;

  /* Tipografía */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Forma */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 12px 32px -20px rgba(11, 31, 51, 0.35);

  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Muelle sin rebote (amortiguación crítica): arranca rápido y frena suave */
  --spring: linear(0, 0.082, 0.243, 0.413, 0.562, 0.682, 0.774, 0.841, 0.890, 0.925, 0.949, 0.965, 0.977, 0.984, 0.990, 0.993, 0.995, 0.997, 0.998, 0.999, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--night);
  font: 400 1rem/1.625 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }   /* los datos que faltan en datos.js no dejan hueco */
img { display: block; max-width: 100%; }
a { color: var(--navy); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; padding: 8px 12px; background: var(--white); }

.wrap {
  width: 100%; max-width: 1160px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 8vw, 96px); }
.band--ice { background: var(--ice); position: relative; overflow: hidden; }
/* Textura de marca: las barras inclinadas del logo, muy tenues, en una esquina */
.band--ice::before {
  content: ""; position: absolute; top: 0; right: -60px; width: min(46vw, 460px); height: 340px; pointer-events: none;
  background: repeating-linear-gradient(102deg, transparent 0 26px, rgba(0, 58, 108, 0.055) 26px 44px);
  -webkit-mask: linear-gradient(205deg, #000 10%, transparent 72%); mask: linear-gradient(205deg, #000 10%, transparent 72%);
}
.band--ice > .wrap { position: relative; }
.band--night { background: var(--night); color: var(--white); }

/* Rótulo en mayúsculas (Montserrat SemiBold) */
.kicker {
  font: 600 0.8125rem/1.4 var(--font-display);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate);
}
.band--night .kicker, .hero .kicker { color: var(--on-dark-muted); }
.head { display: grid; gap: 12px; max-width: 700px; margin-bottom: clamp(28px, 4vw, 44px); }
.head h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.015em; color: var(--navy); }
.band--night .head h2 { color: var(--white); }
.head p:not(.kicker) { font-size: 1.125rem; color: var(--text-muted); }
.band--night .head p:not(.kicker) { color: var(--on-dark-muted); }
.key { color: var(--orange); }   /* la palabra clave del titular */
.num { font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border: 0; border-radius: var(--radius-md);
  font: 700 1rem/1 var(--font-display); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms, box-shadow 160ms;
}
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--orange); color: var(--night); }
.btn--primary:hover { background: #ff7d45; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #0a4a82; }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--white); }
.btn--line { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn--line:hover { box-shadow: inset 0 0 0 2px var(--navy); }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, 0.82); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  transition: border-color 200ms, box-shadow 200ms;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(11, 31, 51, 0.5); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { position: relative; margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--night); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 160ms var(--ease), opacity 100ms; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--navy); }
.nav a:not(.btn):active { opacity: 0.6; }   /* respuesta al pulsar */
/* Línea bajo la sección en pantalla: viaja de un enlace a otro con un muelle */
.nav-line {
  position: absolute; left: 0; top: 0; height: 2px; border-radius: 2px; background: var(--navy);
  opacity: 0; pointer-events: none; will-change: transform;
  transition: transform 560ms var(--spring), width 560ms var(--spring), opacity 220ms var(--ease);
}
.nav-line.is-on { opacity: 1; }
.nav-line.no-move { transition: opacity 220ms var(--ease); }
.nav .btn { min-height: 42px; padding: 0 16px; font-size: 0.9rem; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn {
    display: inline-grid; place-items: center; margin-left: auto; width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; color: var(--night); cursor: pointer;
  }
  .menu-btn span { grid-area: 1 / 1; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 260ms var(--ease); }
  .menu-btn span:first-child { transform: translateY(-4px); }
  .menu-btn span:last-child { transform: translateY(4px); }
  .menu-open .menu-btn span:first-child { transform: rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 180ms var(--ease), transform 420ms var(--spring), visibility 0s 420ms;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav a:not(.btn) { padding: 12px 0; font-size: 1.1rem; }
  .nav a.is-active { font-weight: 700; }
  .nav-line { display: none; }
  .nav .btn { min-height: 50px; margin-top: 8px; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night); color: var(--white); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: -50px; bottom: 0; width: 380px; height: 78%; pointer-events: none;
  background: repeating-linear-gradient(102deg, transparent 0 26px, rgba(0, 58, 108, 0.5) 26px 44px);
  -webkit-mask: linear-gradient(0deg, #000, transparent 75%); mask: linear-gradient(0deg, #000, transparent 75%);
}
.hero-media { position: absolute; inset: 0 0 0 36%; z-index: 0; overflow: hidden; }
/* Pase de fotos: fundido cruzado. La foto activa se asienta despacio (de 1,06 a 1)
   y la que entra se enfoca al llegar, para que se sienta como material y no como un corte. */
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%;
  opacity: 0; transform: scale(1.06); filter: blur(6px);
  transition: opacity 1100ms var(--ease), filter 1100ms var(--ease), transform 0s 1100ms;
}
.hero-media img.is-on {
  opacity: 1; transform: scale(1); filter: none;
  transition: opacity 1100ms var(--ease), filter 1100ms var(--ease), transform 7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
/* Degradado azul noche → azul marino sobre la foto, como pide la guía */
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--night) 0%, rgba(11, 31, 51, 0.86) 22%, rgba(0, 58, 108, 0.42) 58%, rgba(0, 58, 108, 0.12) 100%);
}
/* El texto va por encima de la foto, pero deja pasar los clics al indicador del pase */
.hero .wrap { position: relative; z-index: 1; pointer-events: none; padding-block: clamp(56px, 9vw, 120px); }
.hero-copy { pointer-events: auto; }
.hero-copy { display: grid; gap: 20px; max-width: 560px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 .kicker { display: block; margin-bottom: 18px; letter-spacing: 0.12em; }
.hint { font-size: 0.875rem; line-height: 1.5; color: var(--on-dark-muted); max-width: 44ch; }
.hero .lead { font-size: 1.1875rem; line-height: 1.6; color: var(--on-dark-muted); max-width: 46ch; }
.hero .lead strong { color: var(--white); font-weight: 500; }
.hero .actions { margin-top: 8px; }
.from {
  display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-family: var(--font-display); color: var(--white);
}
.from b { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.from span { font-size: 0.95rem; font-weight: 600; color: var(--on-dark-muted); }
/* Indicador del pase: qué furgoneta se ve y una barra por foto que se va llenando */
.hero-ui {
  position: absolute; z-index: 2; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 20px;
  display: grid; justify-items: end; gap: 6px;
}
.hero-tag {
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: rgba(11, 31, 51, 0.55); color: var(--white);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  font: 600 0.8125rem/1.3 var(--font-display); letter-spacing: 0.02em;
  transition: opacity 260ms var(--ease);
}
.hero-tag.is-swapping { opacity: 0; }
.hero-bars { display: flex; gap: 6px; }
.hero-bars button {
  position: relative; width: 34px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
}
.hero-bars button::before, .hero-bars button::after {
  content: ""; position: absolute; left: 0; top: 12px; height: 4px; border-radius: 2px;
}
.hero-bars button::before { right: 0; background: rgba(255, 255, 255, 0.38); transition: background-color 160ms; }
.hero-bars button:hover::before { background: rgba(255, 255, 255, 0.6); }
.hero-bars button::after { width: 100%; background: var(--white); transform-origin: left center; transform: scaleX(0); }
.hero-bars button.is-done::after { transform: scaleX(1); }
.hero-bars button.is-on::after { animation: llenar var(--dur, 5s) linear forwards; }
.hero-ui.is-paused .hero-bars button.is-on::after { animation-play-state: paused; }
.hero-bars button:active::before { background: var(--white); }   /* respuesta al pulsar, no al soltar */
@keyframes llenar { to { transform: scaleX(1); } }

/* Entrada del hero al cargar */
.hero-copy > * { animation: rise 800ms var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 70ms; }
.hero-copy > :nth-child(3) { animation-delay: 140ms; }
.hero-copy > :nth-child(4) { animation-delay: 210ms; }
.hero-copy > :nth-child(5) { animation-delay: 280ms; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } }
@media (max-width: 860px) {
  .hero::before { display: none; }
  .hero-media { inset: 0 0 auto 0; height: 340px; touch-action: pan-y; }
  .hero-media img { height: 86%; }   /* la foto entera arriba; el texto monta solo sobre el degradado */
  .hero-media::after { background: linear-gradient(180deg, rgba(11, 31, 51, 0.3) 0%, rgba(11, 31, 51, 0) 28%, rgba(11, 31, 51, 0.82) 76%, var(--night) 100%); }
  .hero-ui { top: 14px; bottom: auto; }
  .hero .wrap { padding-block: 232px 30px; }
  .hero-copy { gap: 16px; }
  .hero h1 { font-size: clamp(2.1rem, 9.4vw, 2.6rem); }
  .hero h1 .kicker { margin-bottom: 12px; font-size: 0.75rem; }
  .hero .lead { font-size: 1.0625rem; line-height: 1.5; }
  .from b { font-size: 1.75rem; }
  .hero .actions { margin-top: 2px; }
  .hero .actions .btn { flex: 1 1 100%; min-height: 54px; }
}

/* ---------- Ventajas ---------- */
.perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.perk { display: grid; gap: 10px; align-content: start; padding: 4px 24px; border-left: 1px solid var(--line); }
.perk:first-child { border-left: 0; padding-left: 0; }
.perk svg { width: 32px; height: 32px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.perk h3 { font-size: 1.0625rem; line-height: 1.3; font-weight: 700; color: var(--night); }
.perk p { font-size: 0.95rem; line-height: 1.5; color: var(--text-muted); }
@media (max-width: 900px) {
  .perks { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .perk:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .perks { grid-template-columns: 1fr; row-gap: 22px; }
  .perk { border-left: 0; padding-left: 0; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; }
  .perk svg { grid-row: span 2; }
}

/* ---------- Flota ---------- */
.fleet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.van {
  display: grid; grid-template-rows: auto 1fr; background: var(--white);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 320ms var(--ease), transform 420ms var(--spring);
}
@media (hover: hover) and (pointer: fine) {
  .van:hover { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card); transform: translateY(-3px); }
}
.van-media { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--ice); overflow: hidden; }
.van-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 220ms var(--ease); }
.van-media img.is-fading { opacity: 0; }
/* Sin fotos: bloque de marca con el nombre, nunca una foto que no sea de la furgoneta */
.van-empty {
  position: absolute; inset: 0; display: grid; align-content: end; gap: 4px; padding: 22px;
  background: var(--navy); color: var(--white); overflow: hidden;
}
.van-empty::before {
  content: ""; position: absolute; right: -10px; top: 0; bottom: 0; width: 55%;
  background: repeating-linear-gradient(102deg, transparent 0 22px, rgba(255, 255, 255, 0.09) 22px 38px);
}
.van-empty b { position: relative; font: 800 1.6rem/1.1 var(--font-display); }
.van-empty span { position: relative; font-size: 0.9rem; color: var(--on-dark-muted); }
.thumbs { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; }
.thumbs button {
  width: 46px; height: 36px; padding: 0; border: 2px solid var(--white); border-radius: var(--radius-sm);
  overflow: hidden; cursor: pointer; background: var(--ice); opacity: 0.78;
  transition: opacity 160ms, transform 160ms var(--ease);
}
.thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--orange); }
.thumbs button:hover { opacity: 1; }
.thumbs button:active { transform: scale(0.94); }
.thumbs img { position: static; width: 100%; height: 100%; object-fit: cover; }
.van-body { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.van-body h3 { font-size: 1.375rem; line-height: 1.2; font-weight: 800; color: var(--navy); }
.van-body h3 small { font: 600 0.8125rem/1 var(--font-display); letter-spacing: 0.08em; color: var(--slate); margin-left: 6px; }
.van-body > p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.5; }
.van-load {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 12px;
  padding: 12px 14px; border-radius: var(--radius-md); background: var(--ice);
}
.van-load span { font: 600 0.8125rem/1.2 var(--font-display); letter-spacing: 0.02em; color: var(--text-muted); }
.van-load b { font: 800 1.25rem/1 var(--font-display); letter-spacing: -0.01em; color: var(--navy); }
.van-load i { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.van-load i::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--navy);
  transform-origin: left center; transform: scaleX(var(--p, 1));
  transition: transform 1200ms var(--spring) calc(var(--d, 0ms) + 320ms);
}
.van.will-reveal:not(.is-in) .van-load i::after { transform: scaleX(0); }
/* La foto de cada tarjeta se asienta al aparecer */
.van.will-reveal .van-media > img { transform: scale(1.08); }
.van.will-reveal.is-in .van-media > img { transform: none; transition: transform 1400ms var(--ease) var(--d, 0ms), opacity 220ms var(--ease); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 4px 10px; border-radius: var(--radius-sm); background: var(--ice); font-size: 0.8125rem; font-weight: 500; color: var(--night); }
.van-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; font-family: var(--font-display); }
.van-price b { font-size: 1.7rem; font-weight: 800; color: var(--night); letter-spacing: -0.02em; }
.van-price span { font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.van .btn { margin-top: 4px; }
.state { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--ok); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state--alquilada { color: var(--text-muted); }
@media (max-width: 980px) { .fleet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .fleet { grid-template-columns: 1fr; }
  .van-media { aspect-ratio: 3 / 2; }
  .thumbs button { width: 54px; height: 42px; }
  .van-body { padding: 18px; }
}

/* ---------- Precios ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.picker { display: grid; gap: 26px; }
.field-group { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-group legend { padding: 0; margin-bottom: 10px; font: 700 1rem/1.3 var(--font-display); color: var(--night); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.opts label {
  display: grid; gap: 2px; min-width: 96px; padding: 12px 16px; border-radius: var(--radius-md);
  background: var(--white); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer;
  font: 700 1rem/1.2 var(--font-display); color: var(--night);
  transition: box-shadow 160ms, background-color 160ms, transform 140ms var(--ease);
}
.opts label small { font: 500 0.8125rem/1.3 var(--font-body); color: var(--text-muted); }
.opts label:hover { box-shadow: inset 0 0 0 2px var(--slate); }
.opts label:active { transform: scale(0.97); }
.opts input:checked + label { box-shadow: inset 0 0 0 2px var(--navy); background: #eaf1f8; color: var(--navy); }
.opts input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 3px; }
.quote {
  position: sticky; top: calc(var(--header-h) + 20px);
  display: grid; gap: 16px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}
.quote-what { font-weight: 500; color: var(--text-muted); }
.quote-what b { color: var(--night); font-weight: 600; }
.quote-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-family: var(--font-display); }
.quote-price b { font-size: clamp(2.6rem, 6vw, 3.25rem); line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.quote-price span { font-weight: 700; color: var(--night); }
.quote-price b.tick { animation: tick 260ms var(--ease); }
@keyframes tick { from { opacity: 0.2; transform: translateY(6px); } }
.quote-lines { display: grid; gap: 0; border-top: 1px solid var(--line); }
.quote-lines div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.quote-lines dt { color: var(--text-muted); }
.quote-lines dd { font-weight: 600; text-align: right; }
.save { color: var(--ok); }
.quote small { font-size: 0.8125rem; line-height: 1.5; color: var(--text-muted); }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } .quote { position: static; } }
@media (max-width: 520px) {
  .opts { display: grid; grid-template-columns: 1fr 1fr; }
  .opts label { min-width: 0; }
}

/* ---------- Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: paso; }
.steps li { counter-increment: paso; display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 3px solid var(--navy); }
.steps li::before { content: counter(paso); font: 800 2.25rem/1 var(--font-display); color: var(--orange); }
.steps h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; }
.steps p { font-size: 0.95rem; line-height: 1.5; color: var(--text-muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { position: relative; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 0 0 26px; border-top: 0; }
  .steps li::before {
    grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md);
    background: var(--navy); color: var(--white); font-size: 1.25rem;
  }
  .steps li::after { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--line); }
  .steps li:last-child { padding-bottom: 0; }
  .steps li:last-child::after { display: none; }
  .steps h3 { align-self: end; }
}

/* ---------- Condiciones y preguntas ---------- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.two .head { margin-bottom: 20px; }
.terms { display: grid; border-top: 1px solid var(--line); }
.terms div { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.terms dt { color: var(--text-muted); font-size: 0.95rem; }
.terms dd { font-weight: 500; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; position: relative; cursor: pointer; padding: 16px 36px 16px 0;
  font: 700 1.0313rem/1.4 var(--font-display); color: var(--night);
  transition: color 160ms var(--ease), opacity 100ms;
}
.faq summary:hover, .faq details.is-open summary { color: var(--navy); }
.faq summary:active { opacity: 0.65; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
  transform: rotate(45deg); transition: transform 460ms var(--spring);
}
.faq:not(.js) details[open] summary::after, .faq details.is-open summary::after { transform: translateY(4px) rotate(-135deg); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 0 18px; color: var(--text-muted); max-width: 60ch; }
.faq-a a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
/* El texto entra un instante después de que se abra el hueco, y sale antes de cerrarlo */
.faq.js .faq-a p { opacity: 0; transform: translateY(-8px); transition: opacity 180ms var(--ease), transform 260ms var(--ease); }
.faq.js details.is-open .faq-a p { opacity: 1; transform: none; transition: opacity 380ms var(--ease) 110ms, transform 560ms var(--spring) 80ms; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .terms div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: hidden; }
/* Barras inclinadas del logo, como motivo de marca */
.contact::before {
  content: ""; position: absolute; left: -40px; bottom: 0; width: 340px; height: 100%;
  background: repeating-linear-gradient(102deg, transparent 0 26px, rgba(0, 58, 108, 0.55) 26px 44px);
  -webkit-mask: linear-gradient(0deg, #000, transparent 70%); mask: linear-gradient(0deg, #000, transparent 70%);
  pointer-events: none;
}
.contact .wrap { position: relative; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact h2 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; font-weight: 800; letter-spacing: -0.015em; }
.contact-copy { display: grid; gap: 22px; }
.contact-copy > p { color: var(--on-dark-muted); font-size: 1.125rem; max-width: 40ch; }
.channels { display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.channels div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.channels dt { color: var(--on-dark-muted); font-size: 0.95rem; }
.channels dd { font-weight: 600; user-select: all; }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-lg); background: var(--white); color: var(--night); }
.form h3 { font-size: 1.375rem; font-weight: 800; color: var(--navy); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 0; border-radius: var(--radius-sm);
  background: var(--ice); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--night);
  font: 400 1rem/1.4 var(--font-body); transition: box-shadow 160ms;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--navy); background: var(--white); }
.err { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 500; color: #b3261e; }
.err::before {
  content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  background: #b3261e; color: var(--white); font: 700 0.6875rem/1 var(--font-display);
}
.consent.is-bad { padding: 10px 12px; margin: -10px -12px; border-radius: var(--radius-sm); background: #fdecea; color: #7a1c16; }
.consent.is-bad input { outline: 2px solid #b3261e; outline-offset: 1px; }
#f-ok-err { margin-top: -6px; }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #b3261e; }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.875rem; color: var(--text-muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; }
.form-msg { display: grid; gap: 10px; padding: 18px; border-radius: var(--radius-md); font-size: 0.95rem; line-height: 1.5; animation: rise 420ms var(--spring) both; }
.form-msg:focus { outline: none; }
.form-msg b { font: 800 1.0625rem/1.3 var(--font-display); }
.form-msg--ok { background: #e7f4ec; color: #12512f; }
/* Fallo del envío: no es un error del usuario, así que no va en rojo.
   Tarjeta de marca con el mensaje ya escrito y un solo botón. */
.form-msg--fail { background: var(--ice); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--night); }
.form-msg--fail b { color: var(--navy); }
.form-msg--fail > span, .form-msg--fail small { color: var(--text-muted); }
.form-msg--fail small { font-size: 0.8125rem; text-align: center; }
.bubble {
  justify-self: end; max-width: 94%; padding: 10px 14px 12px; border-radius: 16px 16px 4px 16px;
  background: #dcf3d0; color: #10220a; font-size: 0.9rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--night); color: var(--on-dark-muted); border-top: 1px solid rgba(255, 255, 255, 0.12); padding-block: 36px; font-size: 0.875rem; }
@media (max-width: 860px) { .site-footer { padding-bottom: calc(36px + 76px + env(safe-area-inset-bottom, 0px)); } }   /* hueco para la barra fija */
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.site-footer img { height: 38px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .legal-line { flex-basis: 100%; }
.social { display: flex; gap: 10px; }
.site-footer .social a {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  color: var(--white); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: background-color 220ms var(--ease), color 220ms var(--ease), transform 460ms var(--spring);
}
.social svg { width: 18px; height: 18px; }
.site-footer .social a:hover { background: var(--white); color: var(--night); text-decoration: none; transform: translateY(-3px); }
.site-footer .social a:active { transform: scale(0.92); transition-duration: 100ms; }

/* ---------- Barra fija del móvil: precio y acción ---------- */
.bar { display: none; }
@media (max-width: 860px) {
  .bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, 0.86); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
    transform: translateY(105%); transition: transform 460ms var(--spring);
  }
  .bar.is-shown { transform: none; }
  .bar p { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 5px; min-width: 0; font-family: var(--font-display); color: var(--night); line-height: 1.15; }
  .bar p span:first-child { flex-basis: 100%; }
  .bar p span { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); }
  .bar p b { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
  .bar .btn { flex: none; min-height: 48px; padding: 0 18px; }
}

/* ---------- Opiniones ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.review { display: grid; gap: 16px; align-content: space-between; padding: 24px; border-radius: var(--radius-lg); background: var(--ice); }
.review blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
.review figcaption { display: grid; gap: 2px; font-size: 0.875rem; color: var(--text-muted); }
.review figcaption b { color: var(--night); font-family: var(--font-display); }

/* ---------- Página legal ---------- */
.legal { display: grid; gap: 44px; max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 800; color: var(--navy); line-height: 1.08; }
.legal section { display: grid; gap: 12px; }
.legal h2 { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.legal h3 { font-size: 1.0625rem; font-weight: 700; margin-top: 8px; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { display: grid; gap: 6px; padding-left: 20px; list-style: disc; }
.legal strong { color: var(--night); }

/* ---------- Aparición al entrar en pantalla ----------
   Solo se oculta lo que estaba fuera de pantalla al cargar. */
.will-reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); }
.will-reveal.is-in {
  opacity: 1; transform: none; filter: none;
  transition: opacity 700ms var(--ease), filter 700ms var(--ease), transform 1000ms var(--spring);
  transition-delay: var(--d, 0ms);
}

/* Quien pide menos transparencia o más contraste ve superficies sólidas */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .site-header, .nav, .bar { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hero-tag { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Quien pide reducir el movimiento (Windows: «Efectos de animación» apagados;
   Mac/iPhone: «Reducir movimiento») no se queda sin animaciones: lo que se
   desplaza, escala o desenfoca pasa a ser un fundido. El pase de fotos sigue. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @keyframes rise { from { opacity: 0; } }
  @keyframes tick { from { opacity: 0.2; } }
  .hero-media img, .hero-media img.is-on { transform: none; filter: none; transition: opacity 1000ms var(--ease); }
  .will-reveal { transform: none; filter: none; }
  .will-reveal.is-in { transition: opacity 700ms var(--ease); transition-delay: var(--d, 0ms); }
  .van.will-reveal .van-media > img { transform: none; }
  .van:hover, .site-footer .social a:hover { transform: none; }
  .nav { transform: none; }
  .nav-line { transition: opacity 220ms var(--ease); }
  .faq.js .faq-a p { transform: none; }
  .bar { transform: none; opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease), visibility 0s 300ms; }
  .bar.is-shown { opacity: 1; visibility: visible; transition-delay: 0s; }
  .is-arriving { animation: llegar 480ms var(--ease); }
  @keyframes llegar { from { opacity: 0.2; } }
}
