/* Ciclotempo · sitio informativo (ciclotempo.com)

   Concepto: la hoja de meta. La página se lee como una hoja de cronometraje que se vuelve
   clasificación: tiempos en monoespaciada con milésimas, dorsales grandes y una línea de meta
   naranja. Fondo de papel frío, tinta azul marino, una sola sección de noche (la app sin señal).

   Colores del logo. Contrastes AA: texto blanco sobre --btn (4.8:1), --link sobre blanco (5.3:1),
   --muted sobre --sheet (7.1:1), --tempo-soft sobre --night (6.4:1).
   Fuentes alojadas en el sitio (SIL Open Font License), subconjunto latino: á é í ó ú ñ ¿ ¡ */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 800; font-display: swap; src: url('../fonts/barlow-condensed-800-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500 700; font-display: swap; src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2'); }

:root {
  /* tinta y papel */
  --navy: #1a214e;         /* tinta principal, titulares, dorsales */
  --ink: #1b2240;
  --muted: #4b5470;
  --paper: #ffffff;
  --sheet: #f3f5f9;        /* superficie de lectura, gris frío */
  --line: #dde2ec;
  --line-strong: #c4cbda;
  /* marca */
  --tempo: #ed5b26;        /* naranja del logo: línea de meta, tamaños grandes */
  --tempo-soft: #f28a5e;
  --tempo-wash: #fdeee7;
  --btn: #c9461a;          /* naranja accesible para botones con texto blanco */
  --btn-hover: #b03c14;
  --ciclo: #008ccf;        /* azul del logo: trazados */
  --link: #0072a8;
  --ok: #1f7a4d;
  /* noche (app sin señal) */
  --night: #121735;
  --night-2: #1c2350;
  --night-line: #2f3770;
  --night-muted: #b7bfdc;

  --display: 'Barlow Condensed', 'Arial Narrow', 'Inter', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1180px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--font);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.05; margin: 0; text-wrap: balance; color: var(--navy); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ciclo); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: .6em 1em; border-radius: var(--r); }
.skip:focus { top: 12px; }

.wrap {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 48px; padding: .7em 1.3em; border-radius: var(--r);
  font: 700 1rem/1.2 var(--font); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); }
.btn-line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-quiet { color: var(--navy); padding-left: .3em; padding-right: .3em; }
.btn-quiet:hover { color: var(--link); }
.btn-quiet-night { color: #fff; }
.btn-quiet-night:hover { color: var(--tempo-soft); }
/* compatibilidad con 404.html */
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cta-center { justify-content: center; }

.kicker {
  font: 600 .78rem/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.kicker-night { color: var(--tempo-soft); }

/* ---------- encabezado ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgb(255 255 255 / .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; position: relative; }
.brand img { width: 140px; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: var(--r); background: transparent; cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .2s, background .2s;
}
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; gap: 2px;
  padding: 12px max(var(--gutter), env(safe-area-inset-right, 0px)) 20px max(var(--gutter), env(safe-area-inset-left, 0px));
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgb(26 33 78 / .08);
}
.nav.is-open { display: flex; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: .7em .2em; }
.nav a:not(.btn):hover { color: var(--link); }
.nav .btn { margin-top: 8px; }

/* ---------- hero: la hoja de meta ---------- */
.hero {
  background: linear-gradient(var(--paper), var(--paper)) top / 100% 62% no-repeat, var(--sheet);
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; gap: 40px; align-items: start; }
.hero-copy { display: grid; gap: 20px; min-width: 0; }
.hero h1 {
  font: italic 800 clamp(3rem, 12.5vw, 6.4rem)/.9 var(--display);
  letter-spacing: -.01em; color: var(--navy);
}
.hero h1 span { color: var(--tempo); display: block; margin-top: .06em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-price { font-size: .95rem; color: var(--muted); }
.hero-price b { font: 800 1.15em/1 var(--font); color: var(--navy); }

/* la hoja */
.sheet {
  margin: 0; min-width: 0; position: relative;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -24px rgb(26 33 78 / .28);
}
.sheet::before { /* la línea de meta */
  content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 12px, #fff 12px 24px);
  border-radius: var(--r) var(--r) 0 0;
}
.sheet-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 22px 18px 14px; border-bottom: 1px solid var(--line);
}
.sheet-race { font: italic 800 1.5rem/1 var(--display); color: var(--navy); }
.sheet-point { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.sheet-point b { color: var(--ink); }
.sheet-clock { display: flex; align-items: baseline; gap: 8px; }
.sheet-clock-label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sheet-clock .mono { font-size: 1.35rem; font-weight: 700; color: var(--navy); }

.sheet-entry { padding: 14px 18px 4px; display: grid; gap: 8px; }
.sheet-entry-label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.sheet-entry-row { display: flex; gap: 8px; }
.sheet-entry input {
  width: 6.2ch; min-width: 0; flex: 0 0 auto; min-height: 48px; padding: 0 .4em;
  font-size: 1.6rem; font-weight: 700; color: var(--navy); text-align: center;
  border: 2px solid var(--navy); border-radius: var(--r); background: var(--paper);
}
.sheet-entry input:focus { outline: 3px solid var(--ciclo); outline-offset: 1px; }
.btn-register { flex: 1 1 auto; }
.sheet-waiting { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.chip {
  font: 700 .9rem/1 var(--mono); color: var(--navy); background: var(--sheet);
  border: 1px solid var(--line-strong); border-radius: 4px; padding: .45em .6em; min-height: 32px; cursor: pointer;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip:disabled { opacity: .35; text-decoration: line-through; cursor: default; }

.sheet-flash {
  margin: 10px 18px 0; padding: 10px 12px; border-radius: var(--r);
  font-size: .88rem; background: var(--sheet); color: var(--ink); min-height: 2.8em;
}
.sheet-flash.is-ok { background: var(--tempo-wash); }
.sheet-flash.is-warn { background: #fff4d6; }

.sheet-table { padding: 10px 0 0; }
.st-body { list-style: none; margin: 0; padding: 0; position: relative; }
.st-row {
  display: grid; grid-template-columns: 1.9rem 3.3rem minmax(0, 1fr) auto; gap: 8px; align-items: center;
  padding: 9px 18px; border-top: 1px solid var(--line); font-size: .92rem; background: var(--paper);
}
.st-head { border-top: 0; padding-top: 4px; padding-bottom: 6px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-pos { font: italic 800 1.25rem/1 var(--display); color: var(--navy); }
.st-bib { font-weight: 700; color: var(--navy); }
.st-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.st-name small { display: block; font-weight: 400; font-size: .76rem; color: var(--muted); }
.st-time { text-align: right; font-weight: 500; }
.st-gap { display: none; text-align: right; color: var(--muted); font-size: .82rem; }
.st-head .st-gap { font-size: inherit; }
.st-row.is-new { background: var(--tempo-wash); }
.st-row.is-new .st-pos { color: var(--tempo); }
.sheet-cap { padding: 10px 18px 14px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); }

/* el cruce de meta: una línea naranja recorre la fila que entra */
.st-row.is-crossing { position: relative; overflow: hidden; }
.st-row.is-crossing::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--tempo);
  animation: cruce .5s cubic-bezier(.2, .7, .2, 1) forwards;
}
@keyframes cruce { from { transform: translateX(0); opacity: 1; } to { transform: translateX(1200px); opacity: .2; } }

/* ---------- secciones ---------- */
.section { padding-block: 64px; }
.section-sheet { background: var(--sheet); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 46rem; }
.section h2, .final h2 {
  font: italic 800 clamp(2.3rem, 7vw, 3.6rem)/.95 var(--display); letter-spacing: -.005em;
}
.section-lead { color: var(--muted); font-size: 1.06rem; max-width: 40em; }

/* ---------- un día de carrera ---------- */
.day { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--navy); }
.day-step {
  display: grid; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(0, 1fr);
}
.day-when { font: italic 800 1.35rem/1 var(--display); color: var(--tempo); }
.day-when.mono { font: 700 1.1rem/1.2 var(--mono); }
.day-body { display: grid; gap: 6px; min-width: 0; }
.day-body h3 { font: italic 800 1.6rem/1 var(--display); }
.day-body p { color: var(--muted); max-width: 36em; }
.day-proof {
  align-self: start; justify-self: start; font-size: .86rem; color: var(--ink);
  background: var(--sheet); border-left: 3px solid var(--ciclo); padding: 8px 12px;
}
.day-proof-warn { border-left-color: #c28a00; background: #fff8e4; }
.day-step-finish .day-proof { border-left-color: var(--tempo); background: var(--tempo-wash); font-weight: 600; }

/* ---------- funciones ---------- */
.bento { display: grid; gap: 16px; }
.tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 20px; display: grid; gap: 10px; align-content: start; min-width: 0;
}
.tile h3 { font: italic 800 1.65rem/1 var(--display); }
.tile > p { color: var(--muted); }

.waves { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: .92rem; }
.waves th { text-align: left; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 0 6px; }
.waves td { padding: 9px 0; border-top: 1px solid var(--line); }
.waves th:not(:first-child), .waves td:not(:first-child) { text-align: right; padding-left: 12px; }
.waves tr:nth-child(3) td { color: var(--tempo); font-weight: 600; }

.profile { margin: 4px 0 0; display: grid; gap: 8px; }
.profile svg { width: 100%; height: auto; overflow: visible; }
.profile figcaption { font-size: .8rem; color: var(--muted); }
.pf-grid line { stroke: var(--line); stroke-width: 1; }
.pf-axis text { font: 500 15px var(--mono); fill: var(--muted); }
.pf-line { stroke: var(--ciclo); stroke-width: 3; stroke-linejoin: round; }
.pf-pt line { stroke: var(--line-strong); stroke-dasharray: 3 3; }
.pf-pt circle { fill: #fff; stroke: var(--navy); stroke-width: 2.5; }
.pf-pt text { font: italic 800 19px var(--display); fill: var(--navy); }
.pf-finish circle { fill: var(--tempo); stroke: var(--tempo); }
.pf-finish line { stroke: var(--tempo); stroke-dasharray: none; stroke-width: 2; }
.pf-finish text { fill: var(--tempo); }

.log { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 0; font-size: .88rem; }
.log li { padding: 10px 0; border-top: 1px dashed var(--line-strong); color: var(--ink); }
.log li > .mono:first-child { display: block; font-size: .78rem; color: var(--muted); }
.log em { color: var(--muted); font-style: normal; }

.more { margin: 4px 0 0; display: grid; gap: 14px 24px; }
.more div { display: grid; gap: 2px; }
.more dt { font-weight: 700; color: var(--navy); }
.more dd { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- app sin señal (noche) ---------- */
.night { background: var(--night); color: #fff; }
.night h2 { color: #fff; }
.night .section-lead { color: var(--night-muted); }
.app-grid { display: grid; gap: 40px; align-items: center; }
.app-copy { display: grid; gap: 18px; min-width: 0; }
.app-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; color: var(--night-muted); }
.app-steps li::marker { color: var(--tempo-soft); font-weight: 700; }
.app-steps b { color: #fff; }
.app-meta { font-size: .85rem; color: var(--night-muted); }
.app-help summary { cursor: pointer; font-weight: 600; color: #fff; }
.app-help p { margin-top: 8px; color: var(--night-muted); font-size: .94rem; max-width: 40em; }

.queue {
  margin: 0; background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r);
  padding: 16px; display: grid; gap: 12px; min-width: 0; max-width: 460px; justify-self: center; width: 100%;
}
.queue-top { display: flex; justify-content: space-between; align-items: center; }
.queue-place { font: italic 800 1.3rem/1 var(--display); }
.signal { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.signal i { width: 5px; background: var(--night-line); border-radius: 1px; }
.signal i:nth-child(1) { height: 25%; } .signal i:nth-child(2) { height: 50%; }
.signal i:nth-child(3) { height: 75%; } .signal i:nth-child(4) { height: 100%; }
.signal::after { content: 'Sin señal'; margin-left: 8px; font-size: .78rem; color: var(--tempo-soft); align-self: center; }
.queue-list { list-style: none; margin: 0; padding: 0; display: grid; }
.queue-list li {
  display: grid; grid-template-columns: 3.2em 1fr; gap: 2px 10px; align-items: baseline;
  padding: 10px 0; border-top: 1px solid var(--night-line); font-size: .95rem;
}
.q-bib { font-weight: 700; font-size: 1.1rem; grid-row: span 2; }
.q-state { font-size: .8rem; display: inline-flex; align-items: center; gap: 6px; }
.q-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.q-saved { color: var(--tempo-soft); }
.q-saved::before { background: var(--tempo-soft); }
.q-sent { color: #7fd6a8; }
.q-sent::before { background: #7fd6a8; }
.queue-foot { font-size: .88rem; color: var(--night-muted); border-top: 1px solid var(--night-line); padding-top: 10px; }
.queue-foot b { color: #fff; }

/* ---------- para quién ---------- */
.roles { display: grid; border-top: 2px solid var(--navy); }
.role { display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.role h3 { font: italic 800 clamp(1.7rem, 5vw, 2.4rem)/1 var(--display); color: var(--muted); }
.role h3 span { color: var(--navy); }
.role p { color: var(--muted); max-width: 40em; }

/* ---------- precio: los dorsales ---------- */
.bibs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bib {
  position: relative; display: grid; justify-items: center; text-align: center;
  /* el papel del dorsal con sus cuatro imperdibles */
  background:
    radial-gradient(circle at 14px 14px, var(--sheet) 0 3.5px, var(--line-strong) 3.5px 4.5px, transparent 5px),
    radial-gradient(circle at calc(100% - 14px) 14px, var(--sheet) 0 3.5px, var(--line-strong) 3.5px 4.5px, transparent 5px),
    radial-gradient(circle at 14px calc(100% - 14px), var(--sheet) 0 3.5px, var(--line-strong) 3.5px 4.5px, transparent 5px),
    radial-gradient(circle at calc(100% - 14px) calc(100% - 14px), var(--sheet) 0 3.5px, var(--line-strong) 3.5px 4.5px, transparent 5px),
    var(--paper);
  border: 1px solid var(--line-strong); border-radius: 4px;
  padding: 22px 10px 16px; box-shadow: 0 10px 22px -16px rgb(26 33 78 / .45);
}
.bib-top { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bib-n { font: italic 800 clamp(3.6rem, 15vw, 5.2rem)/.9 var(--display); color: var(--navy); letter-spacing: -.02em; }
.bib-unit { font-size: .82rem; color: var(--muted); }
.bib-price {
  margin-top: 10px; width: 100%; padding-top: 10px; border-top: 2px solid var(--tempo);
  font: 800 1.4rem/1 var(--font); color: var(--btn); letter-spacing: -.01em;
}
.bibs-more { margin-top: 14px; color: var(--muted); }
.bibs-more b { color: var(--navy); }

.price-grid { display: grid; gap: 28px; margin-top: 36px; }
.price-terms { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.price-terms li { color: var(--muted); padding-left: 18px; position: relative; }
.price-terms li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 2px; background: var(--tempo); }
.price-terms b { color: var(--navy); }
.price-how { display: grid; gap: 14px; align-content: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; }
.price-how h3 { font: italic 800 1.6rem/1 var(--display); }
.price-how ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--muted); }
.price-how li::marker { color: var(--tempo); font-weight: 700; }

/* calculadora del cobro */
.calc {
  display: grid; gap: 16px; margin-bottom: 28px; padding: 20px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r);
  box-shadow: 0 18px 36px -24px rgb(26 33 78 / .35);
}
.calc-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc-in label { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.calc-field { display: flex; align-items: center; gap: 6px; border: 2px solid var(--navy); border-radius: var(--r); padding: 0 10px; background: var(--paper); }
.calc-field span { font: 700 1.4rem/1 var(--font); color: var(--navy); }
.calc-field input {
  width: 100%; min-width: 0; min-height: 48px; border: 0; background: transparent;
  font: 700 1.5rem/1 var(--mono); color: var(--navy); font-variant-numeric: tabular-nums;
}
.calc-field input:focus { outline: none; }
.calc-field:focus-within { outline: 3px solid var(--ciclo); outline-offset: 2px; }
.calc-out { display: grid; gap: 2px; align-content: center; border-top: 2px solid var(--tempo); padding-top: 12px; }
.calc-label { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.calc-total { font: 800 clamp(2.4rem, 9vw, 3.4rem)/1 var(--font); color: var(--btn); letter-spacing: -.02em; }
.calc-detail { font-size: .9rem; color: var(--muted); }

/* ---------- corredor ---------- */
.runner-grid { display: grid; gap: 32px; align-items: center; }
.runner-grid > div:first-child { display: grid; gap: 16px; justify-items: start; }
.runner {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 20px; display: grid; gap: 16px; max-width: 520px; width: 100%; justify-self: center; min-width: 0;
  box-shadow: 0 24px 48px -28px rgb(26 33 78 / .35);
}
.runner-head { display: flex; gap: 14px; align-items: center; }
.runner-bib {
  font-size: 1.6rem; font-weight: 700; color: var(--navy); background: var(--paper);
  border: 2px solid var(--navy); border-radius: 4px; padding: .1em .45em;
}
.runner-name { font: italic 800 1.7rem/1 var(--display); color: var(--navy); }
.runner-cat { font-size: .85rem; color: var(--muted); margin-top: 3px; }
.runner-pos { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; border-block: 1px solid var(--line); padding-block: 12px; }
.runner-pos p { display: grid; gap: 2px; }
.runner-pos p:last-child { text-align: right; }
.runner-pos b { font: italic 800 1.8rem/1 var(--display); color: var(--navy); }
.runner-pos b.mono { font: 700 1.05rem/1.7 var(--mono); }
.runner-pos span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.splits { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.splits li { display: flex; justify-content: space-between; gap: 12px; }
.splits li span:first-child { color: var(--muted); }
.splits li:last-child { font-weight: 700; color: var(--navy); }
.runner-note { font-size: .76rem; color: var(--muted); }

/* ---------- preguntas ---------- */
.faq-grid { display: grid; gap: 8px; }
.faq { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 16px 0; font-weight: 600; color: var(--navy); min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 700 1.4rem/1 var(--mono); color: var(--tempo); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 44em; }

/* ---------- cierre ---------- */
.final { padding-block: 64px; border-bottom: 6px solid var(--tempo); }
.final-row { display: grid; gap: 20px; }
.final h2 { font-size: clamp(2.6rem, 9vw, 5rem); }
.final-actions { display: grid; gap: 16px; align-content: center; }
.final-actions > p { color: var(--muted); max-width: 30em; }

/* ---------- pie ---------- */
.site-footer { background: var(--paper); padding: 40px 0 24px; }
.footer-grid { display: grid; gap: 24px; }
.footer-brand { display: grid; gap: 10px; }
.footer-brand img { width: 140px; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 26em; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.footer-nav a { color: var(--ink); text-decoration: none; padding: .45em 0; font-size: .94rem; overflow-wrap: anywhere; }
.footer-nav a:hover { color: var(--link); }
.copy { margin-top: 24px; font-size: .82rem; color: var(--muted); }

/* ---------- página 404 ---------- */
.error-page { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.error-page > div { display: grid; gap: 14px; justify-items: center; }
.error-page .error-logo { margin: 0 auto 18px; }
.error-page .code { font: 700 clamp(3rem, 14vw, 6rem)/1 var(--mono); color: var(--tempo); margin: 0; letter-spacing: -.04em; }
.error-page h1 { font: italic 800 clamp(2rem, 7vw, 3rem)/1 var(--display); color: var(--navy); }
.error-page p { color: var(--muted); }

/* ---------- tableta ---------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .st-row { grid-template-columns: 2.1rem 3.6rem minmax(0, 1fr) auto auto; }
  .st-gap { display: block; min-width: 5.6rem; }
  .day-step { grid-template-columns: 9rem minmax(0, 1fr); }
  .day-proof { grid-column: 2; }
  .bibs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- escritorio ---------- */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 2px;
    padding: 0; background: none; border: 0; box-shadow: none;
  }
  .nav a:not(.btn) { padding: .5em .6em; white-space: nowrap; font-size: .95rem; }
  .nav .btn { margin: 0 0 0 10px; min-height: 42px; padding: .45em 1em; }
  .brand { flex-shrink: 0; }
  .brand img { width: 160px; }

  .hero { padding: 56px 0 80px; background: linear-gradient(90deg, var(--paper) 52%, var(--sheet) 52%); }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
  .sheet { transform: rotate(.6deg); }

  .section { padding-block: 104px; }
  .day-step { grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 18rem); align-items: start; }
  .day-proof { grid-column: 3; justify-self: stretch; }

  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile-waves { grid-column: span 2; }
  .tile-route { grid-column: span 4; }
  .tile-fix { grid-column: span 3; }
  .tile-more { grid-column: span 3; }

  .app-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; }
  .roles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 0; }
  .role { border-top: 2px solid var(--navy); border-bottom: 0; }

  .price-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .calc { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; padding: 26px 28px; }
  .calc-out { border-top: 0; border-left: 2px solid var(--tempo); padding: 0 0 0 28px; }
  .runner-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
  .final-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: end; }
  .footer-grid { grid-template-columns: 1fr 1.4fr; }
}

@media (min-width: 960px) and (max-width: 1099px) {
  .brand img { width: 132px; }
  .nav a:not(.btn) { font-size: .88rem; padding: .5em .4em; }
  .nav .btn { margin-left: 6px; padding: .45em .8em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sheet { transform: none !important; }
}

/* Escritorio angosto: la hoja queda estrecha; sin la diferencia, los nombres caben */
@media (min-width: 960px) and (max-width: 1199px) {
  .st-row { grid-template-columns: 2.1rem 3.4rem minmax(0, 1fr) auto; }
  .st-gap { display: none; }
}
