@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-vietnamese-332e6f66de.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext-5717f37059.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-e3a28eade2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/big-shoulders-display-vietnamese-4d97fd4730.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/big-shoulders-display-latin-ext-2239cea544.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/big-shoulders-display-latin-698f996092.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/big-shoulders-display-vietnamese-4d97fd4730.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/big-shoulders-display-latin-ext-2239cea544.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(../fonts/big-shoulders-display-latin-698f996092.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* xSwim, la web (v4, 22-11-2026): el sistema de los reels y los carruseles llevado a la web. Reglas: skill web-sin-ai-slop,
   docs/checklist.md y la marca de CLAUDE.md. Solo modo claro.
   Color con significado:
     --rope  amarillo corchera: la marca y los récords (WR, el récord vigente, la barra de lectura)
     --fast  azul: más rápido, el mejor de una fila, quién va primero
     --slow / --slow-t  naranja: más lento, lo que pierde alguien con el primero
     --red   rojo: los últimos 5 m de la corchera y el poyete (el final de la barra de lectura)
     --gold / --silver / --bronze: medallas, siempre con el puesto dentro
     gris = contexto, tinta = foco. El agua es el azul de la piscina de los reels (la pinta el motor de los reels, assets/kit.js).
   Lo común de todas las páginas está aquí (la barra, el pie, los filtros, los desplegables, las barras de desplazamiento);
   cada sección pone lo suyo en su propia hoja (assets/feed.css…). Cómo se usa cada pieza: docs/web-estilo.md, «Piezas comunes». */
:root {
  color-scheme: light;
  color-scheme: only light;
  --bg: #F4F7F8; --panel: #FFFFFF; --line: #D5DEE3; --soft: #E8EEF1;
  --ink: #0B2233; --text: #42566A; --muted: #6E7F8C; --grey: #B9C6CF;
  --rope: #F2C230; --fast: #1F5FBF; --fast-t: #DCE6F6; --slow: #E0612B; --slow-t: #B84516; --red: #C8102E;
  --gold: #E8B21C; --silver: #A9B4BE; --bronze: #C27C4A;
  --f-head: 'Archivo', system-ui, sans-serif; --f-body: 'Archivo', system-ui, sans-serif; --f-num: 'Big Shoulders Display', 'Archivo', sans-serif;
  --h-wght: 800; --h-case: none; --h-track: -0.04em; --h-wdth: 100; --h-lh: 0.95;
  --max: 1240px; --gut: clamp(16px, 4vw, 48px); --barh: 68px; --stick: var(--barh);   /* --stick: donde se pegan las barras fijas de cada página */
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.45, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: calc(100% * env(preferred-text-scale, 1));
  scroll-padding-top: 90px; scroll-padding-bottom: var(--bottom-ui, 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--fast); outline-offset: 3px; border-radius: 6px; }
.col, .wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num, .tm, .t { font-family: var(--f-num); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.muted { color: var(--muted); }
h1, h2, .h { font-family: var(--f-head); font-weight: var(--h-wght); text-transform: var(--h-case); letter-spacing: var(--h-track);
  font-variation-settings: "wdth" var(--h-wdth); line-height: var(--h-lh); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(46px, 7.6vw, 118px); }
h2 { font-size: clamp(34px, 4.8vw, 68px); }
h3 { font: 700 20px/1.25 var(--f-body); margin: 0; letter-spacing: -0.01em; }
h1 .lite, h2 .lite, .h .lite { font-weight: 300; }
.lead { font-size: clamp(18px, 1.55vw, 21px); color: var(--text); max-width: 36em; margin: 16px 0 0; }
.note { font-size: 15px; color: var(--muted); margin: 8px 0 0; max-width: 60em; }
.src { font-size: 13px; color: var(--muted); }
.mark { background: linear-gradient(transparent 12%, var(--rope) 12%, var(--rope) 92%, transparent 92%); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.crumbs { font: 600 14px var(--f-body); color: var(--muted); margin: 0 0 14px; }
.crumbs a { text-decoration: none; color: var(--fast); }
.more { font: 700 15px var(--f-body); text-decoration: none; color: var(--fast); white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.loading, .empty { color: var(--muted); }

/* ================================================================ la barra (Hugo, 24-11; docs/web-estilo.md, «Piezas comunes»)
   Ordenador y tableta (720 px o más): la cápsula de arriba, ajustada al logo, las cuatro secciones y la lupa, con el logo en la
   misma línea que el texto de la página. Al bajar se pliega al logo, en esa esquina (entre dos variantes, 24-11: plegada en el
   centro con la lupa tapaba el centro de las gráficas), y vuelve entera al subir o al pasar el ratón por él.
   Móvil: arriba solo el logo y la lupa, que se van al bajar, y las secciones abajo (.tabbar). */
.bar { position: fixed; z-index: 50; left: 0; right: 0; top: 12px; pointer-events: none; transition: transform .35s var(--ease); }
.logo { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font: 900 26px/1 var(--f-num); color: var(--ink); letter-spacing: 0; flex: none; }
.logo .x { width: 26px; height: 26px; border-radius: 6px; background: var(--rope); display: grid; place-items: center; font-size: 21px; padding-bottom: 2px; }
.bar .cap { pointer-events: auto; display: flex; align-items: center; width: fit-content; height: 52px; padding: 0 6px 0 18px;
  margin-left: max(12px, calc((100% - var(--max)) / 2 + var(--gut) - 19px));
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border: 1px solid rgba(213, 222, 227, .9); border-radius: 999px; box-shadow: 0 10px 34px -18px rgba(11, 34, 51, .35);
  transition: height .4s var(--ease), padding .4s var(--ease), margin .4s var(--ease); }
/* lo que se pliega: una rejilla de una columna que pasa de 1fr a 0fr (se anima en todos los navegadores) */
.bar .more { display: grid; grid-template-columns: 1fr; transition: grid-template-columns .45s var(--ease), opacity .3s; }
.bar .links { min-width: 0; overflow: hidden; display: flex; gap: 2px; }
.bar .links a:first-child { margin-left: 20px; } .bar .links a:last-child { margin-right: 12px; }   /* márgenes dentro: plegada mide 0 */
.bar .links a { text-decoration: none; font: 600 14px var(--f-body); color: var(--text); padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.bar .links a:hover, .bar .links a.on { background: var(--bg); color: var(--ink); }
.bar .links a:focus-visible { outline-offset: -3px; }
.findbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  color: var(--ink); cursor: pointer; flex: none; overflow: hidden; transition: border-color .2s, width .45s var(--ease), opacity .3s, border-width .45s; }
.findbtn:hover { border-color: var(--ink); }
.findbtn .ico { width: 17px; height: 17px; }
/* plegada: solo el logo, en el mismo sitio (margen + relleno no cambian); el ratón encima o el teclado dentro la abren */
.bar.fold .cap { height: 46px; padding: 0 14px; margin-left: max(12px, calc((100% - var(--max)) / 2 + var(--gut) - 15px)); }
.bar.fold .more { grid-template-columns: 0fr; opacity: 0; }
.bar.fold .findbtn { width: 0; opacity: 0; border-width: 0; }
.bar.fold .cap:hover, .bar.fold .cap:focus-within { height: 52px; padding: 0 6px 0 18px; margin-left: max(12px, calc((100% - var(--max)) / 2 + var(--gut) - 19px)); }
.bar.fold .cap:hover .more, .bar.fold .cap:focus-within .more { grid-template-columns: 1fr; opacity: 1; }
.bar.fold .cap:hover .findbtn, .bar.fold .cap:focus-within .findbtn { width: 40px; opacity: 1; border-width: 1px; }

/* el móvil: arriba, el logo y la lupa, cada uno en su cápsula, a 24 px del borde como el texto; al bajar se van */
@media (max-width: 719px) {
  .bar { top: 10px; }
  .bar .cap, .bar.fold .cap, .bar.fold .cap:hover, .bar.fold .cap:focus-within { width: auto; height: 46px; margin: 0 calc(var(--gut) - 14px); padding: 0;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; box-shadow: none; justify-content: space-between; pointer-events: none; }
  .bar .more { display: none; }
  .bar .logo, .bar .findbtn { pointer-events: auto; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border: 1px solid rgba(213, 222, 227, .9); box-shadow: 0 8px 26px -16px rgba(11, 34, 51, .4); }
  .bar .logo { height: 46px; padding: 0 13px; border-radius: 999px; }
  .bar .findbtn, .bar.fold .findbtn, .bar.fold .cap:hover .findbtn, .bar.fold .cap:focus-within .findbtn { width: 46px; height: 46px; opacity: 1; border-width: 1px; }
  .bar.fold:not(:focus-within) { transform: translateY(calc(-100% - 20px)); }
  /* ya bajando: una franja del color de la página detrás, que empalma con la barra fija de la página (que se pega en --stick) */
  .bar::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: var(--barh); background: rgba(244, 247, 248, .94);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); opacity: 0; transition: opacity .25s; }
  .bar.solid::before { opacity: 1; }
  .bar .cap { position: relative; }
  .bar.solid .logo { background: none; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .bar.solid .findbtn { box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--panel); }
}
main { min-height: 60vh; }
/* en el móvil, 24 px a cada lado en todas las páginas (docs/web-estilo.md, «El móvil») */
@media (max-width: 600px) { :root { --gut: 24px; } }
@media (max-width: 719px) { :root { --barh: 58px; } }

/* ---------- las secciones en el móvil: una cápsula abajo, al alcance del pulgar, como la barra de pestañas de una app.
   Cada sección con su pictograma y su nombre; la activa, en tinta sobre gris claro (entre dos variantes, 24-11: la activa en
   blanco sobre tinta, en una cápsula más corta, pesaba demasiado y dejaba menos sitio al dedo). Respeta la zona del iPhone, deja hueco al final de la página y se aparta cuando sube una
   hoja (filtros, desplegables, el buscador) o se escribe (html.sheet-up, html.typing; site.js). */
.tabbar { display: none; }
@media (max-width: 719px) {
  :root { --tabh: 64px; --tabgap: calc(10px + env(safe-area-inset-bottom)); --bottom-ui: calc(var(--tabh) + var(--tabgap) + 12px); }
  .tabbar { position: fixed; z-index: 55; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: var(--tabgap); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: var(--tabh);
    padding: 6px; background: rgba(255, 255, 255, .84); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border: 1px solid rgba(213, 222, 227, .9); border-radius: 999px; box-shadow: 0 12px 34px -14px rgba(11, 34, 51, .45);
    transition: transform .35s var(--ease), opacity .25s; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; border-radius: 999px;
    color: var(--muted); font: 600 11px/1 var(--f-body); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background .2s, color .2s; }
  .tabbar svg { width: 26px; height: 26px; }
  .tabbar svg [stroke] { stroke: currentColor; }   /* el agua del nadador: gris como el resto si no es la activa */
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on svg [stroke]:not([stroke="currentColor"]) { stroke: var(--fast); }
  .tabbar a.on { background: var(--soft); }
  html.sheet-up .tabbar, html.typing .tabbar { transform: translateY(calc(100% + var(--tabgap) + 8px)); opacity: 0; visibility: hidden; pointer-events: none; }
  /* el hueco al final: el pie termina por encima de la cápsula */
  footer.foot { padding-bottom: calc(var(--tabh) + var(--tabgap) + 22px); }
}
@media (max-width: 719px) and (max-height: 450px) and (orientation: landscape) {
  :root { --tabh: 48px; --tabgap: calc(6px + env(safe-area-inset-bottom)); }
  .tabbar { padding: 3px 6px; }
  .tabbar a { flex-direction: row; gap: 5px; }
  .tabbar svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) { .tabbar, .bar, .bar .cap, .bar .more, .findbtn { transition: none; } }

/* ================================================================ cabeceras de página */
.hero { padding: calc(var(--barh) + clamp(48px, 8vw, 110px)) 0 clamp(40px, 6vw, 80px); position: relative; }
@media (max-width: 900px) { .hero { padding-top: 130px; } }
.hero .lead { max-width: 40em; }
/* una franja de la piscina de los reels (la dibuja assets/scenes.js) */
/* las escenas de la piscina por capas (assets/scenes.js, hall): la sala quieta se desliza con la cámara, sin volver a pintarse */
.hall { position: absolute; inset: 0; overflow: hidden; background: #F4F7F8; contain: strict; }
.hall > * { position: absolute; left: 0; top: 0; }
.hall .h-floor, .hall .h-live { width: 100%; height: 100%; }
.hall .h-st { position: absolute; left: 0; top: 0; max-width: none; will-change: transform; }
.band { position: relative; height: clamp(170px, 22vw, 300px); overflow: hidden; }
.band > svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ================================================================ portadas (pool.js, XHERO): la final del 100 libre de París */
.hero-e { padding-top: calc(var(--barh) + 56px); }
.hero-e .grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-e .card { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(11, 34, 51, .45);
  aspect-ratio: 4 / 5; width: min(100%, calc((100vh - var(--barh) - 110px) * .8)); justify-self: center; }
@media (max-width: 900px) { .hero-e .grid { grid-template-columns: 1fr; } .hero-e .card { width: 100%; } }
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; font: 700 15px var(--f-body); text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; transition: transform .3s var(--spring), background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.solid { background: var(--ink); color: #fff; }

/* ================================================================ buscador */
.find { position: relative; max-width: 640px; }
.find .ico { position: absolute; left: 22px; top: 21px; width: 22px; height: 22px; color: var(--ink); z-index: 1; }
.find input { width: 100%; height: 64px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--panel); padding: 0 26px 0 58px; font: 500 19px var(--f-body); color: var(--ink);
  box-shadow: 0 18px 50px -30px rgba(11, 34, 51, .5); -webkit-appearance: none; appearance: none; }
.find input:focus { outline: none; box-shadow: 0 0 0 4px var(--fast-t), 0 18px 50px -30px rgba(11, 34, 51, .5); }
.results { list-style: none; margin: 8px 0 0; padding: 6px; position: absolute; left: 0; right: 0; z-index: 30; background: var(--panel); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(11, 34, 51, .45), 0 0 0 1px var(--line);
  max-height: min(60vh, 460px); overflow: auto; display: none; text-align: left; }
.results.open { display: block; animation: drop .25s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.results a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; text-decoration: none; }
.results a:hover, .results a.hi { background: var(--bg); }
.results .nm { font-weight: 700; }
.results .meta { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.results .empty { padding: 12px; }
.palette { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: 100dvh; margin: 0; border: 0;
  background: rgba(11, 34, 51, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 12vh var(--gut) 12px; padding-top: 12dvh; }
.palette[open] { animation: drop .2s var(--ease); }
.palette::backdrop { background: transparent; }
.palette .find { margin: 0 auto; }
.palette .results { position: static; max-height: min(60dvh, 460px); }
@media (max-width: 359px) {
  .results a { flex-wrap: wrap; gap: 4px 8px; }
  .results .meta { margin-left: 0; white-space: normal; }
}

/* ================================================================ caras y banderas */
.av { position: relative; display: inline-block; flex: none; border-radius: 50%; overflow: hidden; background: var(--soft); }
.av img { width: 100%; height: 100%; }
.fl { display: inline-flex; flex: none; width: 20px; height: 20px; border-radius: 5px; overflow: hidden; vertical-align: -4px; }
.fl img { width: 100%; height: 100%; }
.fl.txt { font: 700 10px var(--f-body); background: var(--soft); align-items: center; justify-content: center; width: auto; padding: 0 4px; }

/* ================================================================ secciones */
.sec { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(26px, 3.6vw, 50px); }
.sec-head p { color: var(--text); margin: 14px 0 0; max-width: 40em; font-size: 18px; }
@media (max-width: 700px) { .sec-head { flex-direction: column; align-items: start; gap: 12px; } }
.rv { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
html.still .rv { opacity: 1; transform: none; transition: none; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.seg { position: relative; display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; border: 0; background: none; font: 600 14px var(--f-body); color: var(--text); padding: 8px 15px; border-radius: 999px; cursor: pointer; transition: color .25s; white-space: nowrap; }
.seg button[aria-pressed="true"], .seg button.on { color: #fff; }
.seg .ind { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--ink); transition: left .45s var(--spring), width .45s var(--spring); }
.seg:not(.ready) button[aria-pressed="true"], .seg:not(.ready) button.on { background: var(--ink); }
.pick, .dd-pick { height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); padding: 0 38px 0 16px; font: 600 14px var(--f-body); color: var(--ink); -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B2233' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 14px 5px 5px; font: 600 14px var(--f-body); color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color .2s, transform .3s var(--spring); }
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.txt { padding: 7px 14px; }
.scroll-x { overflow-x: auto; }
.wr { display: inline-block; font: 900 15px/1 var(--f-num); background: var(--rope); color: var(--ink); padding: 4px 6px 3px; border-radius: 4px; position: relative; overflow: hidden; vertical-align: 4px; letter-spacing: 0; }
.wr::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .95), transparent); animation: shine 3.4s ease-in-out infinite; }
@keyframes shine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.pb { font: 800 11px/1 var(--f-body); color: var(--fast); border: 1.5px solid var(--fast); border-radius: 4px; padding: 2px 4px; margin-left: 6px; vertical-align: 3px; }
.showmore { margin-top: 18px; border: 1.5px solid var(--ink); background: none; border-radius: 999px; height: 46px; padding: 0 22px; font: 700 15px var(--f-body); cursor: pointer; }

/* ================================================================ filas (rankings, récords, listas) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rows > li { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 12px 6px; text-decoration: none; position: relative; transition: background .2s, padding .35s var(--ease); }
a.row:hover { background: var(--panel); padding-left: 14px; }
.row .rk { font: 900 34px/1 var(--f-num); color: var(--grey); text-align: center; }
.rows > li:nth-child(-n+3) .row .rk { color: var(--ink); }
.row .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.row .who b { display: block; font-weight: 700; font-size: 17px; }
.row .who small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.row .tm { font-size: 34px; line-height: 1; text-align: right; }
.row .tm small { display: block; font: 600 12px var(--f-body); color: var(--muted); margin-top: 4px; }
.row .av { width: 44px; height: 44px; }
.rows .gap { color: var(--slow-t); }
/* lo que pierde cada uno con el primero (naranja = más lento) */
.row:has(.gapbar) { grid-template-columns: 64px 1fr 22% auto; }
.gapbar { position: relative; height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.gapbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--slow); border-radius: 3px; opacity: .8; }
@media (max-width: 640px) { .row:has(.gapbar) { grid-template-columns: 40px 1fr auto; } .gapbar { display: none; } }
@media (max-width: 640px) { .row { grid-template-columns: 40px 1fr auto; gap: 10px; } .row .rk { font-size: 24px; } .row .tm { font-size: 26px; } .row .av { width: 36px; height: 36px; } }
/* el podio de un ranking: los tres primeros grandes, con su cara */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(10px, 2vw, 24px); align-items: end; margin-bottom: 40px; }
.podium a { text-decoration: none; text-align: center; display: flex; flex-direction: column; align-items: center; }
.podium .av { width: clamp(70px, 10vw, 130px); height: clamp(70px, 10vw, 130px); margin-bottom: 12px; box-shadow: 0 0 0 4px var(--panel); }
.podium b { font: 700 16px var(--f-body); }
.podium .tm { font-size: clamp(30px, 4vw, 52px); line-height: 1; margin-top: 4px; }
.podium .step { width: 100%; margin-top: 14px; border-radius: 14px 14px 0 0; display: grid; place-items: center; font: 900 clamp(34px, 5vw, 64px)/1 var(--f-num); color: var(--ink); transform-origin: bottom; }
.podium .p1 .step { height: 150px; background: var(--gold); } .podium .p2 .step { height: 105px; background: var(--silver); } .podium .p3 .step { height: 78px; background: var(--bronze); }
.podium > a:nth-child(2) { order: 0; }
.rv .step { transform: scaleY(0); transition: transform 1s var(--spring) .2s; } .rv.in .step { transform: none; }
.evlinks { display: flex; flex-wrap: wrap; gap: 8px; }
.evlinks a { text-decoration: none; font: 600 14px var(--f-body); border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 7px 14px; transition: background .2s, color .2s, border-color .2s; }
.evlinks a:hover { border-color: var(--ink); }
.evlinks a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.evlinks.small a { font-size: 13px; padding: 5px 11px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }

/* ================================================================ caras para entrar */
.quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 14px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick a { flex: none; width: 92px; text-align: center; text-decoration: none; font: 600 13px/1.25 var(--f-body); color: var(--text); }
.quick a .av { display: block; width: 72px !important; height: 72px !important; margin: 0 auto 8px; transition: transform .4s var(--spring), box-shadow .3s; }
.quick a:hover .av { transform: translateY(-6px) scale(1.06); box-shadow: 0 0 0 3px var(--rope); }
.quick.wrap { flex-wrap: wrap; overflow: visible; justify-content: flex-start; padding: 0; max-width: none; }

/* ================================================================ publicaciones (los reels se mueven al pasar el ratón) */
.reels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 18px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.reels.grid { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); overflow: visible; }
.reel { scroll-snap-align: start; text-decoration: none; display: block; perspective: 900px; }
.reel .pic { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: var(--soft); transition: transform .5s var(--spring), box-shadow .4s; transform-style: preserve-3d; }
/* los carruseles (4:5) en un marco del alto de los reels, para que los títulos queden a la misma altura */
.reel.car .pic { background: var(--panel); }
.reel.car .pic img { object-fit: contain; }
.reel .pic img, .reel .pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel:hover .pic { transform: translateY(-8px) rotateX(4deg); box-shadow: 0 30px 50px -28px rgba(11, 34, 51, .6); }
.reel .views { position: absolute; left: 10px; bottom: 10px; font: 800 12px var(--f-body); color: #fff; background: rgba(11, 34, 51, .78); border-radius: 999px; padding: 4px 9px; }
.reel .t { font: 700 15px/1.3 var(--f-body); margin-top: 12px; }
.reel .d { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ================================================================ cuenta atrás (el marcador de cristal de los reels) */
.count { display: flex; gap: clamp(8px, 1.4vw, 16px); }
.count > div { text-align: center; }
.count b { display: block; font: 900 clamp(60px, 8.5vw, 132px)/0.86 var(--f-num); font-variant-numeric: tabular-nums; color: var(--ink); background: var(--panel); border-radius: 18px; padding: 18px 16px 10px; min-width: 1.45em;
  box-shadow: inset 0 0 0 1px var(--line); }
.count span { display: block; margin-top: 10px; font: 700 12px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.count .tick b { animation: tick .5s var(--spring); }
@keyframes tick { 0% { transform: translateY(-10px); opacity: .3; } 100% { transform: none; opacity: 1; } }
.strip { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr; } }

/* ================================================================ la progresión que se dibuja sola (la ficha del nadador y los récords; el resto de la ficha, en assets/swimmer.css) */
/* la progresión que se dibuja sola */
.chart { position: relative; background: var(--panel); border-radius: 18px; padding: 18px 14px 10px; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .ax line { stroke: var(--soft); stroke-width: 1; }
.chart .ax text { font: 500 12px var(--f-body); fill: var(--muted); }
.chart .pbl { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.8s var(--ease); }
.chart.drawn .pbl { stroke-dashoffset: 0; }
.chart circle { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .4s var(--spring); }
.chart.drawn circle { transform: scale(1); }
.chart .lbl { font: 900 22px var(--f-num); fill: var(--ink); }
/* lo que dijo alguien: solo sus palabras, grandes */
.say { margin: 0 0 40px; padding: 0; max-width: 46em; }
.say q { display: block; font: 500 clamp(22px, 2.6vw, 34px)/1.3 var(--f-body); letter-spacing: -0.015em; quotes: '\201C' '\201D'; }
.say .ctx { font-size: 15px; color: var(--muted); margin: 10px 0 0; }
.say cite { display: block; margin-top: 12px; font: 600 14px var(--f-body); font-style: normal; color: var(--text); }
.say cite a { color: var(--fast); text-decoration: none; }

/* ================================================================ la carrera de París */
.racebox { position: relative; border-radius: 22px; overflow: hidden; background: var(--panel); }
.racebox .scene { position: relative; width: 100%; aspect-ratio: 16 / 10; }
.racebox .scene > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 760px) { .racebox .scene { aspect-ratio: 3 / 4; } }
.racebar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; flex-wrap: wrap; border-top: 1px solid var(--soft); }
.playbtn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .3s var(--spring); }
.playbtn:hover { transform: scale(1.06); }
.playbtn svg { width: 18px; height: 18px; }
.racebar input[type="range"] { flex: 1; min-width: 140px; accent-color: var(--ink); }
.racepick { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.splits { margin-top: clamp(40px, 6vw, 80px); }
.segtab { width: 100%; border-collapse: collapse; }
.segtab th { font: 700 12px var(--f-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: right; padding: 8px 10px; }
.segtab th:first-child { text-align: left; }
.segtab td { padding: 9px 10px; border-top: 1px solid var(--soft); text-align: right; font: 900 20px var(--f-num); font-variant-numeric: tabular-nums; }
.segtab td:first-child { text-align: left; font: 600 15px var(--f-body); }
.segtab td.fast { color: #fff; background: var(--fast); border-radius: 6px; }
.segtab td.slow { color: var(--slow-t); }

/* ================================================================ récords, países, Pekín, predicciones, calendario */
.cevs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 34px; }
.cev h3 { margin-bottom: 10px; }
.cev.hl { background: var(--panel); border-radius: 14px; padding: 12px; }

.stories { display: grid; gap: clamp(60px, 8vw, 110px); }
.story h3 { font-family: var(--f-head); font-weight: var(--h-wght); text-transform: var(--h-case); letter-spacing: var(--h-track); font-size: clamp(28px, 3.4vw, 46px); line-height: 1; }
.story .note { font-size: 17px; margin: 10px 0 22px; color: var(--text); }
.duelrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.duelrow a { text-decoration: none; background: var(--panel); border-radius: 18px; padding: 22px 18px 18px; text-align: center; position: relative; transition: transform .4s var(--spring), box-shadow .3s; }
.duelrow a:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -26px rgba(11, 34, 51, .5); }
.duelrow .av { width: 96px; height: 96px; margin: 0 auto 12px; }
.duelrow b { display: block; font-weight: 700; }
.duelrow .tm { font-size: 46px; line-height: 1; margin-top: 8px; display: block; }
.duelrow small { display: block; font: 600 13px var(--f-body); color: var(--muted); margin-top: 4px; }
.duelrow small.more-wr { color: var(--ink); margin-top: 10px; }
.duelrow .first .tm { color: var(--fast); }
.duelrow .gap { color: var(--slow-t); }
.predgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px 34px; }
.pred h3 { margin-bottom: 10px; }
.pred .line { display: grid; grid-template-columns: 1fr 48px 110px; gap: 4px 10px; align-items: center; font-size: 14px; padding: 6px 0 2px; }
.pred .line a { text-decoration: none; font-weight: 600; }
.pred .pct { font: 900 20px var(--f-num); text-align: right; }
.pred .res { text-align: right; color: var(--muted); }
.pred .res.p1 { color: var(--ink); font-weight: 700; }
.pred .pbar { grid-column: 1 / -1; height: 5px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.pred .pbar i { display: block; height: 100%; background: var(--fast); border-radius: 3px; }
.calib { display: grid; gap: 10px; max-width: 760px; }
.calib > div { display: grid; grid-template-columns: 80px 1fr 130px; gap: 14px; align-items: center; font-size: 14px; }
.calib .b2 { position: relative; height: 14px; background: var(--soft); border-radius: 7px; }
.calib .b2 i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--fast); border-radius: 7px; }
.calib .b2 u { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--ink); border-radius: 2px; }
.mrows .mrow { display: grid; grid-template-columns: 210px 1fr auto; gap: 18px; align-items: center; padding: 14px 4px; }
.mrow .dt { font: 900 26px var(--f-num); line-height: 1; }
.mrow .dt small { display: block; font: 600 12px var(--f-body); color: var(--muted); margin-top: 4px; }
.mrow b { font-weight: 700; } .mrow small { display: block; font-size: 13px; color: var(--muted); }
.mrow.big { background: var(--rope); border-radius: 14px; padding-left: 16px; padding-right: 16px; }
.mrow.big small { color: var(--ink); }
.mrow .lk { display: flex; gap: 12px; }
@media (max-width: 700px) { .mrows .mrow { grid-template-columns: 1fr; gap: 6px; } }
.prose { max-width: 42em; }
.prose h2 { font-size: clamp(26px, 3vw, 38px); margin: 42px 0 12px; }
.prose p { font-size: 18px; color: var(--text); }
.prose a { color: var(--fast); }

/* ================================================================ pie */
/* Hugo, 23-11: una sola línea (los otros «no cumplen la función de un pie»). Arriba el logo, las secciones e Instagram; debajo,
   pequeño, de dónde salen los datos y lo legal. En el móvil: el logo e Instagram en una línea, las secciones debajo y lo
   pequeño al final; cada enlace con 44 px de alto para el dedo. */
.foot { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); padding: 22px 0 calc(22px + env(safe-area-inset-bottom)); color: var(--ink); }
.foot a { text-decoration: none; }
.fline { display: flex; align-items: center; gap: 4px 30px; flex-wrap: wrap; }
.fline nav { display: flex; gap: 0 24px; flex-wrap: wrap; }
.fline nav a, .fline .ig, .fsmall nav a { display: inline-flex; align-items: center; min-height: 44px; }
.fline nav a { font: 600 15px var(--f-body); color: var(--text); }
.fline .ig { margin-left: auto; gap: 8px; font: 600 15px var(--f-body); color: var(--text); }
.fline nav a:hover, .fline .ig:hover, .fsmall nav a:hover { color: var(--ink); }
.fsmall { display: flex; align-items: center; justify-content: space-between; gap: 0 30px; flex-wrap: wrap; margin-top: 6px; }
.fsmall .src { margin: 0; font-size: 13px; color: var(--muted); flex: 1 1 420px; padding: 10px 0; }
.fsmall nav { display: flex; gap: 0 20px; flex-wrap: wrap; }
.fsmall nav a { font: 600 13px var(--f-body); color: var(--muted); }
@media (max-width: 760px) {
  .fline nav { order: 3; width: 100%; gap: 0 22px; }
  .fline .ig span { display: none; }
  .fline .ig { width: 44px; justify-content: center; margin-right: -12px; }
  .fsmall { flex-direction: column-reverse; align-items: start; margin-top: 0; }
  .fsmall .src { flex: none; }
}

/* etiqueta flotante */
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: #fff; font: 500 13px/1.4 var(--f-body); padding: 8px 11px; border-radius: 10px; display: none; max-width: min(280px, calc(100vw - 16px)); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.tip b { font: 900 18px var(--f-num); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .rv { opacity: 1; transform: none; }
}

/* la sección que sigue a una cabecera no repite el aire ni la línea */
.hero + .sec { padding-top: 0; border-top: 0; }

/* rankings: una tarjeta por prueba con el más rápido de siempre */
.evcards { display: grid; gap: 8px; }
.evcard { display: grid; grid-template-columns: 82px 52px 1fr auto; gap: 14px; align-items: center; text-decoration: none; padding: 10px 14px; border-radius: 14px; background: var(--panel); transition: transform .35s var(--spring), box-shadow .3s; }
.evcard:hover { transform: translateX(6px); box-shadow: 0 16px 30px -24px rgba(11, 34, 51, .6); }
.evcard .evn { font: 700 15px var(--f-body); }
.evcard .who b { display: block; font-weight: 700; font-size: 15px; }
.evcard .who small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.evcard .tm { font-size: 30px; line-height: 1; }
@media (max-width: 640px) { .evcard { grid-template-columns: 64px 40px 1fr auto; gap: 10px; } .evcard .av { width: 40px !important; height: 40px !important; } .evcard .tm { font-size: 24px; } }
/* países: el primero grande, cinco filas y el resto al abrir */
.cfirst { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; text-decoration: none; padding: 8px 0 12px; border-bottom: 2px solid var(--ink); }
.cfirst b { display: block; font-weight: 700; }
.cfirst small { color: var(--muted); font-size: 13px; }
.cfirst .tm { font-size: 34px; line-height: 1; color: var(--fast); }
.cev:not(.open) .ctab tr:nth-child(n+5) { display: none; }
.cmore { margin-top: 8px; border: 0; background: none; font: 700 14px var(--f-body); color: var(--fast); cursor: pointer; padding: 4px 0; }
.medtot > div:not(.g):not(.s):not(.b) b { color: var(--ink); }
/* las publicaciones: los carruseles con el mismo alto que los reels, la imagen entera */

/* ================================================================ páginas de consulta (nadadores, rankings, récords, países; web/pages.py)
   Hugo, 22-11: al abrir se ve contenido. La cabecera es una línea: el título pequeño, al lado lo que cambia la vista
   (piscina, sexo) y debajo los filtros. */
.ph { padding: calc(var(--barh) + 40px) 0 14px; }
@media (max-width: 900px) { .ph { padding-top: 92px; } }
.ph .crumbs { margin-bottom: 8px; }
.ph-top { display: flex; align-items: end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.ph h1 { font-size: clamp(32px, 3.6vw, 50px); display: flex; align-items: center; gap: 14px; }
.ph-sub { margin: 6px 0 0; color: var(--text); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.ph-r { display: flex; gap: 8px; flex-wrap: wrap; }
.sec.tight { padding: 8px 0 clamp(50px, 6vw, 90px); border-top: 0; }
.ph + .sec { border-top: 0; }
.h3 { font: 700 18px/1.25 var(--f-body); letter-spacing: -0.01em; margin: 0 0 12px; text-transform: none; }
.h3 .lite { font-weight: 400; color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.fnote { font-size: 14px; color: var(--muted); }
.pick, .dd-pick { height: 40px; }
/* pestañas que son enlaces (otra página): la misma píldora negra que los segmentados */
.seg.nav a, .seg.nav .off { position: relative; z-index: 1; font: 600 14px var(--f-body); color: var(--text); padding: 7px 14px; border-radius: 999px; text-decoration: none; white-space: nowrap; transition: color .25s; }
.seg.nav a[aria-current="page"], .seg.nav a.hot { color: #fff; }
.seg.nav:not(.ready) a[aria-current="page"] { background: var(--ink); }
.seg.nav .off { color: var(--grey); }
.seg button { padding: 7px 14px; }
/* en el móvil, 40 px de alto para el dedo (docs/web-estilo.md, «El móvil») */
@media (max-width: 719px), (pointer: coarse) { .seg button, .seg.nav a, .seg.nav .off { min-height: 40px; display: inline-flex; align-items: center; } }
/* la fila de pruebas: una píldora por prueba, la actual en tinta; en el móvil se desliza */
.evstrip { display: flex; gap: 4px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.evstrip::-webkit-scrollbar { display: none; }
.evstrip a { flex: none; text-decoration: none; font: 600 14px var(--f-body); color: var(--text); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s; }
.evstrip a:hover { border-color: var(--ink); }
.evstrip a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
/* el podio de una prueba, más bajo: la lista empieza a la vista */
.podium.sm { margin: 10px 0 26px; max-width: 760px; }
.podium.sm .av { width: clamp(60px, 7vw, 92px); height: clamp(60px, 7vw, 92px); margin-bottom: 8px; }
.podium.sm .tm { font-size: clamp(26px, 3vw, 38px); }
.podium.sm .step { margin-top: 10px; font-size: clamp(26px, 3.4vw, 40px); }
.podium.sm .p1 .step { height: 74px; } .podium.sm .p2 .step { height: 52px; } .podium.sm .p3 .step { height: 38px; }
.rows .row .av { width: 40px; height: 40px; }
.row { padding: 9px 6px; }
.row .rk { font-size: 28px; }
.row .tm { font-size: 30px; }

/* el índice de rankings: todas las pruebas, mujeres y hombres al lado */
.rtab { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rtab th { text-align: left; font: 700 13px var(--f-body); color: var(--muted); padding: 0 10px 8px; }
.rtab thead th { border-bottom: 2px solid var(--ink); }
.rtab thead th:first-child { width: 104px; }
.rtab tbody th { font: 700 15px var(--f-body); color: var(--ink); padding: 0 10px 0 4px; vertical-align: middle; }
.rtab td { padding: 3px 4px; border-bottom: 1px solid var(--soft); }
.rc { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 6px 10px; border-radius: 10px; text-decoration: none; transition: background .2s; }
a.rc:hover { background: var(--panel); }
.rc .who { min-width: 0; }
.rc .who b { display: block; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc .who small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.rc .who .fl { width: 16px; height: 16px; border-radius: 4px; }
.rc .tm { font-size: 28px; line-height: 1; }
.rc.none { display: block; min-height: 52px; }
@media (max-width: 700px) {
  .rtab thead { display: none; }
  .rtab tbody th { width: 72px; font-size: 14px; }
  #rix[data-g="F"] .rtab .gM, #rix[data-g="M"] .rtab .gF { display: none; }
  .rc { gap: 10px; padding: 6px 4px; } .rc .tm { font-size: 24px; }
}

/* los países: una lista que se ordena y se busca */
.clist-h, .clist a { display: grid; grid-template-columns: 34px 26px minmax(0, 1.2fr) minmax(0, 1fr) 150px 80px; gap: 12px; align-items: center; }
.clist-h { font: 700 12px var(--f-body); color: var(--muted); padding: 0 4px 6px; border-bottom: 2px solid var(--ink); }
.clist-h span:last-child { text-align: right; }
.clist { list-style: none; margin: 0; padding: 0; }
.clist a { padding: 7px 4px; border-bottom: 1px solid var(--soft); text-decoration: none; transition: background .2s; }
.clist a:hover { background: var(--panel); }
.clist .rk { font: 900 18px var(--f-num); color: var(--muted); text-align: right; }
.clist .cn { font-weight: 700; }
.clist .star { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); min-width: 0; }
.clist .star > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clist .sw { text-align: right; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.md3 { display: flex; gap: 4px; }
.md { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 13px; font: 900 15px var(--f-num); color: var(--ink); font-variant-numeric: tabular-nums; }
.md.G { background: var(--gold); } .md.S { background: var(--silver); } .md.B { background: var(--bronze); }
.ph-sub .md { height: 22px; min-width: 26px; font-size: 13px; }
@media (max-width: 700px) {
  .clist-h { display: none; }
  .clist a { grid-template-columns: 26px 24px 1fr auto; gap: 8px; }
  .clist .star, .clist .sw { display: none; }
}
.sfind { position: relative; max-width: 620px; margin-top: 12px; }
.sfind .ico { position: absolute; left: 18px; top: 50%; margin-top: -10px; color: var(--ink); }
.sfind input { width: 100%; height: 56px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--panel); padding: 0 22px 0 50px; font: 500 18px var(--f-body); color: var(--ink); -webkit-appearance: none; appearance: none; }
.sfind input:focus { outline: none; box-shadow: 0 0 0 4px var(--fast-t); }
.sfind.small { margin-top: 0; width: min(360px, 100%); }
.sfind.small input { height: 44px; font-size: 15px; }

/* nadadores: los resultados en la página, cada uno con su mejor puesto de siempre */
.srow { grid-template-columns: 1fr auto !important; }
.srow.hi { background: var(--panel); }
.srow .best { display: flex; align-items: center; gap: 12px; text-align: right; }
.srow .best .tm { font-size: 28px; }
.srow .best small { font-size: 12px; color: var(--muted); line-height: 1.3; min-width: 92px; text-align: left; }
.srow .best small b { color: var(--ink); }
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px 8px; }
.faces a { text-decoration: none; text-align: center; font: 600 13px/1.25 var(--f-body); color: var(--text); }
.faces a .av { display: block; margin: 0 auto 6px; transition: transform .35s var(--spring), box-shadow .3s; }
.faces a:hover .av { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--rope); }
.faces a[hidden] { display: none; }
#sfaces { margin-top: 8px; }
[hidden] { display: none !important; }


/* en el móvil: menos aire arriba en los rankings y los récords */
@media (max-width: 640px) {
  .row .who small .mt { display: none; }
  .podium.sm { gap: 8px; } .podium.sm .av { width: 58px; height: 58px; } .podium.sm b { font-size: 14px; }
  .podium.sm .p1 .step { height: 48px; } .podium.sm .p2 .step { height: 34px; } .podium.sm .p3 .step { height: 26px; }
  .filters .pick, .filters .dd-pick { flex: 1 1 140px; min-width: 0; }
  .ph-sub { font-size: 14px; }
}
.cev h3 a { text-decoration: none; } .cev h3 a:hover { color: var(--fast); }

/* ================================================================ barra de filtros (docs/web-estilo.md, «Filtros»; Hugo, 23-11: la D)
   Siempre en una línea: el filtro principal en pestañas de texto a la izquierda; a la derecha, como mucho una ficha con menú
   y el botón de filtros con el número de los puestos; el resto, en la hoja. La interfaz, en assets/fbar.js. */
.fbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: nowrap; min-width: 0; }
.fbar .fright { display: flex; gap: 8px; align-items: center; flex: none; }
.ftabs { display: flex; gap: clamp(14px, 4.4vw, 22px); min-width: 0; }
.ftabs button { border: 0; background: none; padding: 6px 0; font: 800 clamp(19px, 5.6vw, 22px)/1 var(--f-head); letter-spacing: -0.02em; color: var(--grey);
  cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; min-height: 40px; transition: color .2s, border-color .2s; }
.ftabs button { position: relative; }
.ftabs button::after { content: ''; position: absolute; inset: -2px -8px; }   /* «All» es corto: el dedo acierta igual */
.ftabs button:hover { color: var(--text); }
.ftabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
/* los móviles más estrechos (320 px): las pestañas y la ficha más juntas, para que todo siga en una línea */
@media (max-width: 359px) {
  main { overflow-wrap: anywhere; }
  .ftabs { gap: 12px; overflow-x: auto; scrollbar-width: none; padding-block: 3px; margin-block: -3px; }
  .ftabs button { flex: none; font-size: 17px; }
  .ftabs button:focus-visible { outline-offset: -2px; }
  .fchip select, .fchip .dd { padding: 0 26px 0 12px; font-size: 13px; max-width: 150px; } .fchip .chev { right: 10px; }
  .find input { font-size: 16px; padding-left: 52px; } .find .ico { left: 20px; }
}
/* una ficha con su menú: un <select> que site.js cambia por nuestro desplegable (abajo, «desplegables»); en tinta si filtra algo */
.fchip { position: relative; flex: none; display: inline-flex; align-items: center; }
.fchip select, .fchip .dd { appearance: none; -webkit-appearance: none; height: 40px; max-width: 200px; padding: 0 32px 0 15px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font: 600 14px var(--f-body); cursor: pointer; text-overflow: ellipsis; }
.fchip select:hover, .fchip .dd:hover { border-color: var(--ink); }
.fchip .chev { position: absolute; right: 13px; pointer-events: none; color: var(--ink); }
.fchip.on select, .fchip.on .dd { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip.on .chev { color: #fff; }
/* el botón de los demás filtros; el número, cuántos hay puestos */
.fbtn { position: relative; flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.fbtn:hover { border-color: var(--ink); }
.fbtn .n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink);
  color: #fff; font: 700 11px/18px var(--f-body); text-align: center; }
.fbtn .n:empty { display: none; }
/* la hoja: sube desde abajo en el móvil; en el ordenador, una ventana pequeña en el centro */
dialog.sheet { border: 0; padding: 0; margin: 0; max-width: none; width: 100%; position: fixed; inset: auto 0 0 0; background: var(--panel); color: var(--ink);
  border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px -10px rgba(11, 34, 51, .3);
  max-height: calc(100% - 16px); max-height: calc(100dvh - max(16px, env(safe-area-inset-top))); overscroll-behavior: contain; }
dialog.sheet[open] { animation: sheetup .32s var(--ease); }
@keyframes sheetup { from { transform: translateY(100%); } }
dialog.sheet::backdrop { background: rgba(11, 34, 51, .35); }
.sheet .in { padding: 10px var(--gut) calc(20px + env(safe-area-inset-bottom)); }
.sheet .in:focus { outline: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h3 { font: 800 20px var(--f-head); letter-spacing: -0.02em; margin: 0 0 6px; }
.sheet .r { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; border-bottom: 1px solid var(--soft); }
.sheet .r > span { font: 600 16px var(--f-body); }
.sheet .r .fchip { margin-left: auto; }
.sheet .end { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.sheet .reset { border: 0; background: none; color: var(--fast); font: 600 15px var(--f-body); cursor: pointer; padding: 10px 0; }
.sheet .go { border: 0; background: var(--ink); color: #fff; font: 700 15px var(--f-body); padding: 13px 22px; border-radius: 999px; cursor: pointer; }
@media (min-width: 901px) {
  dialog.sheet { inset: 0; margin: auto; width: 400px; height: fit-content; border-radius: 18px; }
  dialog.sheet[open] { animation: none; }
  .sheet .in { padding: 22px 26px; }
  .sheet .grab { display: none; }
}
@media (max-width: 900px) and (max-height: 450px) and (orientation: landscape) {
  dialog.sheet { max-height: 82vh; max-height: 82dvh; }
}
@media (prefers-reduced-motion: reduce) { dialog.sheet[open] { animation: none; } }

/* portada: las predicciones de Pekín y la newsletter (23-11). Un correo y un botón en una fila */
.predict .strip, .weekly .strip { align-items: end; grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 900px) { .predict .strip, .weekly .strip { grid-template-columns: minmax(0, 1fr); } }
.predict .count b { font-size: clamp(38px, 5.6vw, 88px); padding: 14px 12px 8px; border-radius: 14px; }
@media (max-width: 600px) { .predict .count { gap: 8px; } .predict .count b { font-size: clamp(34px, 10.5vw, 44px); padding: 10px 6px 6px; border-radius: 12px; min-width: 1.5em; } }
.predict h2, .weekly h2 { font-size: clamp(34px, 4.6vw, 64px); }
.predict .note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.mailrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; max-width: 560px; }
.weekly .mailrow { margin-top: 0; width: min(100%, 480px); }
.mailrow input { flex: 1 1 220px; min-width: 0; height: 48px; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 20px; font: 500 16px var(--f-body); background: var(--panel); color: var(--ink); }
.mailrow input:focus { border-color: var(--ink); outline: none; }
.mailrow .ok { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 600px) { .mailrow .btn { width: 100%; justify-content: center; } }

/* ================================================================ barras fijas que no tapan (Hugo, 23-11)
   Una barra pegada arriba (la de filtros, las pestañas de una ficha) se esconde al bajar y vuelve al subir. La pone site.js
   (X.autohide) en las que llevan data-autohide y en la barra de filtros común si está pegada. */
.ah { transition: transform .35s var(--ease); }
.ah.ah-off { transform: translateY(var(--ah-y, -120%)); }
/* pegada, tapa con su mismo fondo lo que queda por encima (por detrás de la barra de arriba): ni contenido asomando ni huecos */
.ah.ah-stuck::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: calc(var(--stick) + 2px); background: inherit; pointer-events: none; }

/* ================================================================ barras de desplazamiento: nuestras, nunca las del navegador
   (Hugo, 23-11). Finas, en tinta clara, más oscuras al cogerlas; sin flechas. Firefox no deja dibujarlas: allí, solo el color. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb { background: rgba(11, 34, 51, .2); border: 3px solid transparent; background-clip: padding-box; border-radius: 999px; min-height: 44px; min-width: 44px; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(11, 34, 51, .42); }
::-webkit-scrollbar-thumb:active { background-color: var(--ink); }
/* las listas que se deslizan dentro de la página, más finas que la de la página */
* ::-webkit-scrollbar { width: 10px; height: 10px; }
@supports not selector(::-webkit-scrollbar) { html, * { scrollbar-width: thin; scrollbar-color: rgba(11, 34, 51, .28) transparent; } }

/* ================================================================ desplegables (Hugo, 23-11: nuestros, no los del navegador)
   site.js cambia cada <select> por un botón (.dd) y una lista (.ddm); el <select> se queda escondido y sigue mandando (su valor,
   su evento change), así ninguna página cambia su código. En el ordenador la lista cae bajo el botón; en el móvil sube desde
   abajo como la hoja de filtros, con filas grandes para el dedo. Con teclado: flechas, Inicio, Fin, letras, Intro y Esc. */
select.dd-native { display: none !important; }
.dd { display: inline-flex; align-items: center; text-align: left; cursor: pointer; color: var(--ink); white-space: nowrap; }
.dd .v { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dd[aria-expanded="true"] { border-color: var(--ink); }
.dd:disabled { opacity: .5; cursor: default; }
.ddm { position: fixed; inset: auto; margin: 0; padding: 6px; border: 0; z-index: 95; min-width: 180px; max-width: min(360px, calc(100vw - 24px));
  background: var(--panel); color: var(--ink); border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -22px rgba(11, 34, 51, .5);
  display: none; overflow: hidden; }
.ddm.open, .ddm:popover-open { display: flex; flex-direction: column; }
.ddm.open:not(.sheetish) { animation: drop .2s var(--ease); }
.ddm .ddh { display: none; }
.ddm ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; }
.ddm li { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 40px; padding: 8px 12px; border-radius: 10px;
  font: 600 15px/1.25 var(--f-body); cursor: pointer; scroll-margin: 6px; }
.ddm li.act { background: var(--bg); }
.ddm li[aria-selected="true"] { color: var(--ink); font-weight: 800; }
.ddm li .ok { width: 16px; height: 16px; flex: none; opacity: 0; color: var(--ink); }
.ddm li[aria-selected="true"] .ok { opacity: 1; }
.ddm li[aria-disabled="true"] { color: var(--grey); cursor: default; }
.ddm li.grp { min-height: 0; padding: 12px 12px 4px; font: 700 12px var(--f-body); color: var(--muted); cursor: default; }
/* en el móvil: una hoja que sube desde abajo, con el nombre del filtro arriba */
.ddm.sheetish { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: none; min-width: 0; max-height: 72vh !important;
  max-height: 72dvh !important;
  border-radius: 20px 20px 0 0; padding: 10px 12px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px -10px rgba(11, 34, 51, .3);
  animation: sheetup .3s var(--ease); }
.ddm.sheetish::before { content: ''; flex: none; width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.ddm.sheetish .ddh { display: block; flex: none; font: 800 20px var(--f-head); letter-spacing: -0.02em; margin: 0 12px 6px; }
.ddm.sheetish li { min-height: 52px; font-size: 17px; border-bottom: 1px solid var(--soft); border-radius: 0; }
.ddm.sheetish li.act { background: none; }
.ddm::backdrop { background: transparent; }
.ddm.sheetish::backdrop { background: rgba(11, 34, 51, .35); }
.ddscrim { position: fixed; inset: 0; z-index: 94; background: rgba(11, 34, 51, .35); }
@media (prefers-reduced-motion: reduce) { .ddm.open, .ddm.sheetish { animation: none; } }

@media (forced-colors: active) {
  :focus-visible { outline-color: Highlight; }
  :is(.find, .sfind, .mailrow) input:focus-visible, .ddm li.act { outline: 2px solid Highlight; outline-offset: -2px; }
  .tabbar a.on, .btn.solid, dialog.sheet, .ddm, .tip { border: 1px solid ButtonText; }
  .palette { background: Canvas; }
  .fbar .ftabs button { border-bottom-color: transparent; }
  .fbar .ftabs button.on { border-bottom-color: Highlight; }
}

