/* =========================================================
   Mídete 6K · Clínica Sucardio — landing
   Paleta muestreada de las piezas de @clinicasucardio.
   Contraste: el rojo (#D23429) solo se usa como texto en tamaños
   grandes (>= 24 px, 3:1) o como fondo con texto blanco (4.9:1).
   ========================================================= */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/poppins-800.woff2") format("woff2"); }

/* Respaldo con métricas de Poppins: evita saltos de diseño mientras llega la fuente real */
@font-face { font-family: "Poppins Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 112%; ascent-override: 94%; descent-override: 31%; line-gap-override: 9%; }

:root {
  --navy: #131939;
  --navy-deep: #0d1844;
  --blue: #182a57;
  --red: #d23429;
  --red-logo: #eb0303;
  --white: #ffffff;
  --gray: #d6d9e5;

  --line: rgba(214, 217, 229, 0.16);
  --line-strong: rgba(214, 217, 229, 0.34);
  --surface: rgba(24, 42, 87, 0.62);
  --surface-solid: #182a57;

  --header-h: 68px;
  --dock-h: 296px;
  --gutter: clamp(18px, 4.5vw, 56px);
  --maxw: 1180px;
  --radius: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Poppins", "Poppins Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--white);
  background: var(--navy);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fondo global: viñeta + papel de ECG fijo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(214, 217, 229, 0.09) 1.5px, transparent 1.5px) 0 0 / 200px 200px,
    linear-gradient(90deg, rgba(214, 217, 229, 0.09) 1.5px, transparent 1.5px) 0 0 / 200px 200px,
    linear-gradient(rgba(214, 217, 229, 0.045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(214, 217, 229, 0.045) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(ellipse 90% 70% at 50% 0%, var(--blue) 0%, var(--navy) 62%, var(--navy-deep) 100%);
  -webkit-mask-image: linear-gradient(#000 0%, #000 55%, rgba(0, 0, 0, 0.55) 100%);
  mask-image: linear-gradient(#000 0%, #000 55%, rgba(0, 0, 0, 0.55) 100%);
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  translate: 0 -160%;
  transition: translate 0.25s var(--ease);
}
.skip-link:focus { translate: 0 0; }

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 56px;
  padding: 0 1.7em;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 34px -14px rgba(210, 52, 41, 0.85);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(210, 52, 41, 0.95); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.35em; height: 1.35em; flex: none; }
.btn--lg { min-height: 64px; padding: 0 2.1em; font-size: 1.1875rem; }
.btn--sm { min-height: 44px; padding: 0 1.2em; font-size: 0.9375rem; }
.btn--ghost { background: transparent; border-color: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { background: rgba(214, 217, 229, 0.08); box-shadow: none; }
.btn--light { background: var(--white); color: var(--navy); box-shadow: none; }
.btn--pulse::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid var(--red);
  animation: ring 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ring { 0% { opacity: 0.9; scale: 1; } 70%, 100% { opacity: 0; scale: 1.1 1.4; } }

/* ---------- Cabecera + progreso de ECG ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(19, 25, 57, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__in {
  height: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { height: 40px; width: auto; }
.brand__txt { display: grid; line-height: 1; }
.brand__txt b { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; }
.brand__txt span { font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.22em; color: var(--gray); margin-top: 3px; }

.nav { display: none; }
.nav ul { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav a {
  display: inline-block;
  padding: 10px 2px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 0 2px;
  transition: color 0.2s, background-size 0.35s var(--ease);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--white); background-size: 100% 2px; }

.site-header__meta {
  display: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.04em;
}
.ecg-progress { position: absolute; left: 0; right: 0; bottom: -12px; height: 22px; pointer-events: none; }
.ecg-progress svg { width: 100%; height: 100%; overflow: visible; }
.ecg-progress path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - var(--p, 0));
  filter: drop-shadow(0 0 5px rgba(210, 52, 41, 0.8));
}

/* ---------- Rail de kilómetros (solo escritorio ancho) ---------- */
.rail { display: none; }

/* ---------- Hero ---------- */
.hero { padding-top: var(--header-h); overflow-x: clip; }
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  background: var(--navy-deep);
  overflow: hidden;
}
.stage video, .stage__poster { width: 100%; height: 100%; object-fit: cover; }
.stage__poster { position: absolute; inset: 0; }
.stage video { position: relative; z-index: 1; background: transparent; }

.vc {
  position: absolute;
  z-index: 3;
  right: clamp(10px, 2vw, 22px);
  bottom: clamp(10px, 2vw, 22px);
  display: flex;
  gap: 10px;
}
.vc button {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(19, 25, 57, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.vc button:hover { background: rgba(24, 42, 87, 0.95); transform: scale(1.06); }
.vc svg { width: 22px; height: 22px; fill: currentColor; }
.vc [data-state="on"] .i-off, .vc [data-state="off"] .i-on { display: none; }

.dock {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(18px, 3vw, 26px) var(--gutter) clamp(36px, 5vw, 64px);
  display: grid;
  gap: 24px;
}
.kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 14px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}
.kicker span { display: inline-flex; align-items: center; gap: 8px; }
.kicker span + span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

h1 { font-size: clamp(1.9rem, 1.1rem + 2.5vw, 3rem); letter-spacing: -0.03em; line-height: 1.06; }
h1 em, h2 em { font-style: normal; color: var(--red); }
.lead { margin: 14px 0 0; max-width: 60ch; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); line-height: 1.5; color: var(--gray); }

.dock__cta { display: grid; gap: 14px; align-content: end; }
.dock__cta .btn { width: 100%; }
.dock__price { margin: 0; font-size: 0.9375rem; text-align: center; color: var(--gray); }
.dock__price strong { color: var(--white); }

.chip-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.9375rem;
  color: var(--gray);
}
.chip-timer .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: beat 1s ease-in-out infinite; }
.chip-timer b { color: var(--white); font-variant-numeric: tabular-nums; }
@keyframes beat { 0%, 100% { scale: 1; opacity: 1; } 15% { scale: 1.6; opacity: 0.7; } 30% { scale: 1; } 45% { scale: 1.35; } }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: clamp(76px, 10vw, 148px); overflow-x: clip; }
.section__in { position: relative; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section--alt { background: linear-gradient(180deg, rgba(13, 24, 68, 0) 0%, rgba(13, 24, 68, 0.72) 18%, rgba(13, 24, 68, 0.72) 82%, rgba(13, 24, 68, 0) 100%); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}
.eyebrow::before { content: ""; width: 30px; height: 2px; border-radius: 2px; background: var(--red); }

h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.9rem); margin-bottom: 0.45em; }
.km-bg {
  position: absolute;
  top: clamp(-30px, -2vw, 0px);
  right: var(--gutter);
  z-index: 0;
  font-size: clamp(6rem, 20vw, 17rem);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(214, 217, 229, 0.11);
  pointer-events: none;
  user-select: none;
}
.section__in > *:not(.km-bg) { position: relative; z-index: 1; }
.prose { max-width: 62ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--gray); }
.prose strong { color: var(--white); font-weight: 600; }

.pull {
  margin: clamp(28px, 4vw, 48px) 0 0;
  font-size: clamp(1.9rem, 1rem + 4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.pull span { color: var(--red); }

/* Reveal */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; translate: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }
.js .reveal.d4 { transition-delay: 0.32s; }

/* ---------- Km 1: mapa de la ruta ---------- */
.route { margin: clamp(36px, 6vw, 72px) 0 0; padding: clamp(14px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.route svg { width: 100%; height: auto; overflow: visible; }
.route__base, .route__line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route__base { stroke: rgba(214, 217, 229, 0.18); stroke-width: 6; stroke-dasharray: 2 14; }
.route__line { stroke: var(--red); stroke-width: 6; stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 8px rgba(210, 52, 41, 0.7)); }
.route.is-in .route__line { stroke-dashoffset: 0; transition: stroke-dashoffset 3.2s cubic-bezier(0.5, 0, 0.2, 1); }
.route .km circle { fill: var(--navy); stroke: var(--white); stroke-width: 3.5; }
.route .km text { fill: var(--white); font-family: var(--font); font-size: 22px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.route .km { opacity: 0; transform-box: fill-box; transform-origin: center; scale: 0.4; transition: opacity 0.4s, scale 0.6s var(--ease); }
.route .km.on { opacity: 1; scale: 1; }
.route .km--meta circle { fill: var(--red); r: 30; }
.route .km--meta text { font-size: 17px; font-weight: 800; letter-spacing: 0.04em; }
.route .km .ping { fill: none; stroke: var(--red); stroke-width: 3; opacity: 0; }
.route .km.on .ping { animation: ping 1.4s ease-out 1; }
@keyframes ping { 0% { opacity: 0.9; r: 24; } 100% { opacity: 0; r: 58; } }
.route__cap { margin: 14px 0 0; font-size: 0.9375rem; text-align: center; color: var(--gray); }

/* ---------- Km 2: excusa y respuesta ---------- */
.excuse { margin: clamp(28px, 4vw, 52px) 0; }
.excuse__q {
  display: inline;
  font-size: clamp(2rem, 1rem + 4.6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 58% / 0 0.09em;
  color: var(--gray);
  transition: background-size 1.1s var(--ease) 0.35s, color 1s 0.6s;
}
.reveal.is-in .excuse__q, .excuse__q.is-in { background-size: 100% 0.09em; color: rgba(214, 217, 229, 0.62); }
.excuse__a { margin: 18px 0 0; font-size: clamp(1.5rem, 1rem + 2.2vw, 2.7rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.excuse__a em { font-style: normal; color: var(--red); }

.cards3 { display: grid; gap: 16px; margin-top: clamp(28px, 4vw, 52px); }
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.card h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem); margin: 14px 0 8px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--gray); font-size: 1rem; }
.card p + p { margin-top: 1em; }
.ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(210, 52, 41, 0.16); border: 1px solid rgba(210, 52, 41, 0.5); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Km 3: oferta (bento) ---------- */
.bento { display: grid; gap: 16px; margin-top: clamp(28px, 4vw, 52px); }
.card--price { background: linear-gradient(160deg, rgba(210, 52, 41, 0.95) 0%, #a9261d 100%); border-color: rgba(255, 255, 255, 0.25); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 280px; }
.card--price p { color: rgba(255, 255, 255, 0.92); }
.price { display: block; font-size: clamp(5.5rem, 3rem + 11vw, 11rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; }
.price small { display: block; margin-top: 12px; font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.card--price .btn { background: var(--white); color: var(--navy); box-shadow: none; }
.card--med { background: linear-gradient(120deg, rgba(210, 52, 41, 0.2), rgba(24, 42, 87, 0.7) 60%); border-color: rgba(210, 52, 41, 0.6); }
.card--med h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); }
.med__ecg { margin-top: 18px; width: 100%; height: auto; overflow: visible; }
.med__ecg path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(210, 52, 41, 0.8)); }
.is-in .med__ecg path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s ease-in-out 0.3s; }

.bib-wrap { display: grid; gap: 20px; align-items: center; }
.bib-form label { display: block; margin-bottom: 8px; font-size: 0.9375rem; font-weight: 600; }
.bib-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(13, 24, 68, 0.7);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  text-transform: uppercase;
}
.bib-form input::placeholder { color: rgba(214, 217, 229, 0.6); text-transform: none; font-weight: 400; }
.bib-form input:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; border-color: var(--white); }
.bib-form small { display: block; margin-top: 8px; font-size: 0.8125rem; color: var(--gray); }
.bib-form .btn { margin-top: 14px; }
.bib {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
  aspect-ratio: 4 / 2.75;
  padding: 14px 18px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  rotate: -2.2deg;
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.75);
  transition: rotate 0.5s var(--ease);
}
.bib:hover { rotate: 0deg; }
.bib::before, .bib::after { content: ""; position: absolute; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: rgba(19, 25, 57, 0.28); }
.bib::before { left: 9px; } .bib::after { right: 9px; }
.bib__top { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; padding-top: 6px; }
.bib__top b { display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--red); color: var(--white); letter-spacing: 0.08em; }
.bib__name { align-self: center; font-size: clamp(1.4rem, 1rem + 2.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; text-align: center; }
.bib__bot { display: flex; justify-content: space-between; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; }

/* ---------- Km 4: medidor de pulso ---------- */
.monitor { display: grid; gap: 24px; margin-top: clamp(28px, 4vw, 48px); padding: clamp(18px, 3vw, 34px); border: 1px solid var(--line-strong); border-radius: calc(var(--radius) + 6px); background: linear-gradient(180deg, rgba(13, 24, 68, 0.9), rgba(13, 24, 68, 0.6)); }
.monitor canvas { width: 100%; height: 130px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); border: 1px solid var(--line); }
.pulse { display: grid; gap: 22px; justify-items: center; text-align: center; }
.pulse__btn {
  display: grid;
  place-items: center;
  width: clamp(132px, 30vw, 168px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 0 0 10px rgba(210, 52, 41, 0.18), 0 22px 50px -16px rgba(210, 52, 41, 0.9);
  transition: scale 0.12s;
  touch-action: manipulation;
}
.pulse__btn:active, .pulse__btn.tap { scale: 0.93; }
.pulse__btn svg { width: 46%; height: 46%; fill: currentColor; }
.bpm { margin: 0; font-size: clamp(3.6rem, 2rem + 8vw, 7rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bpm small { display: block; margin-top: 6px; font-size: 1rem; font-weight: 600; letter-spacing: 0.14em; color: var(--gray); }
.pulse__hint { max-width: 46ch; margin: 0; font-size: 0.9375rem; color: var(--gray); }
.pulse__res[hidden] { display: none; }
.pulse__res { display: grid; gap: 14px; justify-items: center; max-width: 52ch; }
.pulse__res p { margin: 0; font-size: 0.9375rem; color: var(--gray); }
.pulse__res .lead2 { font-size: 1.125rem; font-weight: 600; color: var(--white); }

/* ---------- Km 5: autoridad ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: clamp(28px, 4vw, 52px); }
.stat { padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat__n { display: block; font-size: clamp(2.1rem, 0.9rem + 3.4vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__n i { font-style: normal; color: var(--red); }
.stat__n small { font-size: 0.5em; font-weight: 700; letter-spacing: 0; }
.stat__l { display: block; margin-top: 10px; font-size: 0.9375rem; color: var(--gray); line-height: 1.4; }
.founder { display: grid; gap: 18px; margin-top: clamp(28px, 4vw, 52px); }
.founder .card { height: 100%; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tags li { padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.9375rem; font-weight: 500; color: var(--white); background: rgba(24, 42, 87, 0.5); }
.note { margin-top: 18px; font-size: 0.9375rem; color: var(--gray); }
.note strong { color: var(--white); font-weight: 600; }

/* ---------- Meta: escasez + pasos ---------- */
.goal { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.cd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 16px); margin: 28px 0; }
.cd > div { padding: clamp(12px, 2vw, 20px) 6px; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(13, 24, 68, 0.85); text-align: center; }
.cd b { display: block; font-size: clamp(1.9rem, 1rem + 4vw, 3.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cd span { display: block; margin-top: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray); }
.cd-note { margin: -8px 0 0; font-size: 0.9375rem; color: var(--gray); }
.steps { display: grid; gap: 14px; margin: 30px 0; counter-reset: s; }
.steps li { position: relative; padding: 4px 0 4px 62px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); font-weight: 800; }
.steps b { display: block; font-size: 1.125rem; }
.steps span { color: var(--gray); font-size: 0.9375rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row .btn { flex: 1 1 260px; }
.hearts { position: relative; width: 100%; aspect-ratio: 40 / 25; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(13, 24, 68, 0.72); padding: 14px; }
.hearts svg { width: 100%; height: 100%; }
.hearts .h-base { fill: rgba(214, 217, 229, 0.34); }
.hearts .h-wave { fill: var(--red); }
.hearts .wave-rect { animation: wave 5.5s ease-in-out infinite; }
@keyframes wave { 0% { translate: -40px 0; } 100% { translate: 840px 0; } }
.hearts__cap { position: absolute; inset: auto 14px 14px 14px; display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(19, 25, 57, 0.9); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color 0.2s, background-color 0.2s; }
.faq details[open] { border-color: var(--line-strong); background: rgba(24, 42, 87, 0.82); }
.faq summary { position: relative; display: block; min-height: 56px; padding: 16px 60px 16px 22px; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, .faq summary::before { content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: var(--white); transition: rotate 0.3s var(--ease); }
.faq summary::after { rotate: 90deg; }
.faq details[open] summary::after { rotate: 0deg; }
.faq .ans { padding: 0 22px 20px; color: var(--gray); font-size: 1rem; }
.faq .ans p:last-child { margin: 0; }

/* ---------- Cierre ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(13, 24, 68, 0.8); }
.marquee__track { display: flex; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee p { display: flex; align-items: center; gap: 28px; margin: 0; padding: 18px 14px; font-size: clamp(1.2rem, 0.9rem + 1.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; text-transform: uppercase; }
.marquee svg { width: 1.1em; height: 1.1em; fill: var(--red); flex: none; }
@keyframes slide { to { translate: -50% 0; } }

.final { text-align: center; }
.final h2 { margin-inline: auto; max-width: 18ch; }
.final .prose { margin-inline: auto; }
.final .cta-row { justify-content: center; margin-top: 28px; }
.final .cta-row .btn { flex: 0 1 auto; }

/* ---------- Pie ---------- */
.site-footer { position: relative; padding: clamp(48px, 7vw, 88px) 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(13, 24, 68, 0.75); overflow: hidden; }
.footer__in { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 36px; }
.footer__giant { position: absolute; right: -2vw; bottom: -4vw; font-size: clamp(8rem, 28vw, 24rem); font-weight: 800; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px rgba(214, 217, 229, 0.1); pointer-events: none; user-select: none; }
.footer__in > * { position: relative; z-index: 1; }
.site-footer h3 { margin-bottom: 12px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); }
.site-footer li + li { margin-top: 8px; }
.site-footer a { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size 0.3s var(--ease); }
.site-footer a:hover { background-size: 100% 1px; }
.linklike { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer__legal { margin: 0; font-size: 0.8125rem; line-height: 1.6; color: var(--gray); max-width: 80ch; }
.footer__small { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--gray); }

/* ---------- CTA fija en móvil ---------- */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(13, 24, 68, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-strong);
  translate: 0 110%;
  transition: translate 0.45s var(--ease);
}
.sticky-cta.on { translate: 0 0; }
.sticky-cta p { margin: 0; flex: 1; font-size: 0.8125rem; line-height: 1.3; color: var(--gray); }
.sticky-cta p b { display: block; color: var(--white); font-size: 0.9375rem; }
.sticky-cta .btn { flex: none; min-height: 48px; padding: 0 1.3em; font-size: 0.9375rem; }

/* ---------- Cookies ---------- */
.cc {
  position: fixed;
  z-index: 150;
  inset: auto 14px 14px 14px;
  max-width: 460px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(13, 24, 68, 0.97);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.8);
  animation: up 0.6s var(--ease) both;
}
.cc[hidden], .cc-modal[hidden] { display: none; }
@keyframes up { from { opacity: 0; translate: 0 30px; } }
.cc h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 8px; }
.cc p { margin: 0 0 16px; font-size: 0.9375rem; line-height: 1.5; color: var(--gray); }
.cc p a { color: var(--white); }
.cc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc__row .btn--ghost { grid-column: 1 / -1; }
.cc .btn, .cc-modal .btn { min-height: 48px; font-size: 0.9375rem; box-shadow: none; }
.btn--same { background: var(--white); color: var(--navy); }
.btn--same:hover { background: var(--gray); box-shadow: none; }
.cc-modal { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 16px; background: rgba(5, 8, 24, 0.78); }
.cc-modal__box { width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line-strong); border-radius: 22px; background: var(--navy); }
.cc-modal h2 { font-size: 1.5rem; margin: 0 0 8px; letter-spacing: -0.01em; }
.cc-modal p { color: var(--gray); font-size: 0.9375rem; }
.cc-opt { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.cc-opt h3 { font-size: 1rem; margin: 0 0 4px; letter-spacing: 0; font-weight: 700; }
.cc-opt p { margin: 0; font-size: 0.875rem; }
.switch { position: relative; flex: none; width: 56px; height: 32px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(214, 217, 229, 0.28); transition: background-color 0.2s; }
.switch i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); transition: translate 0.25s var(--ease); }
.switch input:checked + i { background: var(--red); }
.switch input:checked + i::after { translate: 24px 0; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + i { opacity: 0.6; }
.switch input:focus-visible + i { outline: 3px solid var(--white); outline-offset: 3px; }
.cc-modal__row { display: grid; gap: 10px; margin-top: 18px; }

/* ---------- Páginas legales y 404 ---------- */
.legal { max-width: 800px; margin-inline: auto; padding: calc(var(--header-h) + 48px) var(--gutter) 96px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); margin-bottom: 8px; }
.legal .meta { color: var(--gray); font-size: 0.9375rem; margin-bottom: 36px; }
.legal h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin: 2em 0 0.5em; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--gray); }
.legal ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--white); text-underline-offset: 3px; }
.legal strong { color: var(--white); }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.9375rem; display: block; overflow-x: auto; }
.legal th, .legal td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--gray); }
.legal th { color: var(--white); background: rgba(24, 42, 87, 0.7); white-space: nowrap; }
mark.todo { padding: 0 0.4em; border: 1px dashed var(--red); border-radius: 6px; background: rgba(210, 52, 41, 0.16); color: var(--white); }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--gray); text-decoration: none; font-weight: 600; }
.back:hover { color: var(--white); }
.e404 { min-height: 100svh; display: grid; place-items: center; padding: 24px; text-align: center; }
.e404 h1 { font-size: clamp(5rem, 3rem + 14vw, 12rem); color: var(--red); line-height: 0.9; }
.e404 p { color: var(--gray); }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 560px) {
  .cards3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cc-modal__row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 760px) {
  .site-header__meta { display: block; }
  .bib-wrap { grid-template-columns: 1.1fr 0.9fr; }
  .founder { grid-template-columns: 1.15fr 0.85fr; }
  .footer__in { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer__legal, .footer__small { grid-column: 1 / -1; }
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento .card--price { grid-column: 1 / span 5; grid-row: 1 / span 2; }
  .bento .card--shirt { grid-column: 6 / span 4; }
  .bento .card--bag { grid-column: 10 / span 3; }
  .bento .card--bib { grid-column: 6 / span 7; }
  .bento .card--med { grid-column: 1 / -1; }
  .monitor { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .monitor canvas { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .nav { display: block; }
  .goal { grid-template-columns: 1.05fr 0.95fr; }
  .cards3 { grid-template-columns: repeat(3, 1fr); }
  .sticky-cta { display: none; }
}

@media (min-width: 1000px) {
  .stage {
    width: min(100%, max(640px, calc((100svh - var(--header-h) - var(--dock-h)) * 16 / 9)));
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(180deg, transparent 0, #000 5%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%), linear-gradient(180deg, transparent 0, #000 5%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    background: transparent;
  }
  .dock { grid-template-columns: 1.3fr 0.7fr; align-items: end; gap: clamp(32px, 5vw, 72px); min-height: var(--dock-h); }
}

@media (min-width: 1360px) {
  .rail {
    position: fixed;
    z-index: 80;
    left: clamp(14px, 2vw, 34px);
    top: 50%;
    translate: 0 -50%;
    display: block;
  }
  .rail ol { position: relative; display: grid; gap: 22px; padding-left: 0; }
  .rail ol::before, .rail ol::after { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--line-strong); border-radius: 2px; }
  .rail ol::after { background: var(--red); transform-origin: top; scale: 1 var(--p, 0); box-shadow: 0 0 8px rgba(210, 52, 41, 0.9); }
  .rail a { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .rail b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--navy); font-size: 0.75rem; font-weight: 700; transition: background-color 0.3s, border-color 0.3s; }
  .rail span { position: absolute; left: 40px; padding: 4px 10px; border-radius: 8px; background: var(--navy-deep); border: 1px solid var(--line); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; opacity: 0; translate: -6px 0; pointer-events: none; transition: opacity 0.25s, translate 0.25s var(--ease); }
  .rail a:hover span, .rail a:focus-visible span { opacity: 1; translate: 0 0; }
  .rail a[aria-current="true"] b, .rail a.done b { background: var(--red); border-color: var(--red); }
}

@media (max-width: 559px) {
  :root { --header-h: 62px; }
  .brand svg { height: 34px; }
  .brand__txt b { font-size: 0.95rem; }
  .vc button { width: 40px; height: 40px; }
  .vc svg { width: 18px; height: 18px; }
  .btn--lg { min-height: 60px; font-size: 1.0625rem; padding: 0 1.4em; }
  .cd b { font-size: clamp(1.6rem, 9vw, 2.4rem); }
  .cd span { font-size: 0.6875rem; letter-spacing: 0.1em; }
  .hearts__cap { flex-direction: column; gap: 2px; font-size: 0.8125rem; }
  .cc { inset: auto 10px calc(10px + env(safe-area-inset-bottom)) 10px; max-width: none; padding: 16px; border-radius: 18px; }
  .cc h2 { font-size: 1.0625rem; margin-bottom: 6px; }
  .cc p { font-size: 0.8125rem; line-height: 1.45; margin-bottom: 12px; }
  .cc .btn, .cc-modal .btn { min-height: 46px; padding: 0 0.7em; font-size: 0.875rem; line-height: 1.15; }
  main { padding-bottom: 76px; }
}

@media (hover: none) { .btn:hover { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; translate: none; }
  .route__line, .med__ecg path { stroke-dashoffset: 0; }
  .route .km { opacity: 1; scale: 1; }
}

@media (forced-colors: active) {
  .btn, .card, .stat, .cd > div { border: 2px solid CanvasText; }
  .btn--pulse::after { display: none; }
}

@media print {
  .site-header, .sticky-cta, .cc, .cc-modal, .rail, .vc, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .hero { padding-top: 0; }
}
