/* =====================================================================================
   THE HYBRID REPUBLIC — Sistema visual v2
   VOICE   Marca deportiva premium: limpia, segura, con imagen a sangre (referencias: On, Nike).
   IDEA    Escaparate de campaña: blanco dominante, imagen protagonista, carruseles y botones píldora.
   COLOUR  Marca HR.: Deep Violet #1B0F3B (tinta), Electric Violet #7B4DFF (acción), Lilac #C9B5FF, Mist #F4F1FF.
   TYPE    Inter Tight (titulares, minúscula de frase, tracking negativo) + Inter (texto). Hero en mayúsculas.
   LAYOUT  Bandas a sangre, rejilla amplia, mucho aire, ángulos rectos en imagen y píldoras en acciones.
   ===================================================================================== */

:root {
  --ink: #1b0f3b;
  --violet: #7b4dff;
  --violet-2: #9f7bff;
  --violet-dark: #5a2fe6;
  --lilac: #c9b5ff;
  --mist: #f4f1ff;
  --hi: #c9b5ff;
  --bg: #ffffff;
  --surface: #f4f1ff;
  --line: rgba(27, 15, 59, 0.12);
  --line-strong: rgba(27, 15, 59, 0.85);
  --muted: #5e5873;
  --muted-dark: #b9b1d6;
  --display: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1440px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --header-h: 68px;
  --pill: 999px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--text); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--pill); font-weight: 600; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }
.hi { color: var(--violet); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.num, .result-big, .score-num, .race-day, .tool-metric .num, .kpis dd { font-variant-numeric: tabular-nums; }
.mt { margin-top: 56px; }
code { font: 0.88em/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--mist); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }

/* ---------- Tipografía ---------- */
.eyebrow { font: 500 0.875rem/1.3 var(--text); color: var(--muted); margin: 0 0 10px; }
.eyebrow-hi { color: var(--lilac); }
.section-title { font-size: clamp(2rem, 4.2vw, 3.5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.section-intro { max-width: 60ch; margin: 14px 0 0; font-size: 1.0625rem; color: var(--muted); }
.h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); letter-spacing: -0.03em; margin: 64px 0 20px; }
.h-small { font: 600 1rem/1.3 var(--text); margin: 0 0 14px; }
.lead { font-size: 1.125rem; max-width: 62ch; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.8125rem; color: var(--muted); margin: 0; }
.kicker { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 0 0 8px; font: 500 0.8125rem/1.3 var(--text); color: var(--muted); }
.kicker span + span::before { content: '·'; margin-right: 8px; }
.tag-demo, .tag-sponsored, .tag-past { background: var(--violet); color: #fff; padding: 2px 8px; border-radius: var(--pill); font-size: 0.6875rem; font-weight: 600; }
.tag-demo::before, .tag-sponsored::before, .tag-past::before { content: none !important; }

/* ---------- Botones (píldora) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1.5px solid var(--ink); border-radius: var(--pill); background: transparent; font: 500 1rem/1 var(--text); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--violet); border-color: var(--violet); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--violet); border-color: var(--violet); }
.btn-ghost { border-color: rgba(27, 15, 59, 0.3); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--lilac); border-color: var(--lilac); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn small { font-size: 0.75rem; opacity: .8; }
.arrow-link { font: 500 1rem/1.2 var(--text); text-decoration: underline; text-underline-offset: 5px; white-space: nowrap; }
.arrow-link:hover { color: var(--violet); }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 28px 0 4px; scrollbar-width: none; }
.chips a, .chip-btn { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--pill); font-size: 0.9375rem; text-decoration: none; background: #fff; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s; }
.chips a:hover, .chip-btn:hover { border-color: var(--ink); }
.chips a[aria-current], .chip-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Franja promocional ---------- */
.promo { background: var(--ink); color: #fff; overflow: hidden; height: 36px; display: flex; align-items: center; font-size: 0.8125rem; }
.promo-track { flex: none; display: flex; gap: 64px; width: max-content; animation: promo 50s linear infinite; padding-left: 64px; }
.promo a { flex: none; text-decoration: none; white-space: nowrap; }
.promo a:hover { text-decoration: underline; }
.promo:hover .promo-track { animation-play-state: paused; }
@keyframes promo { to { transform: translateX(-50%); } }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; height: var(--header-h); }
.brand { text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark { flex: none; width: 76px; height: auto; }
.logo-type { font: 700 0.75rem/1 var(--text); text-transform: uppercase; letter-spacing: 0.22em; white-space: nowrap; }
.logo-dot { color: var(--violet); }
.main-nav { justify-self: center; }
.main-nav ul { display: flex; gap: 2px; list-style: none; }
.main-nav a { display: block; padding: 10px 14px; font: 500 0.9844rem/1 var(--text); text-decoration: none; position: relative; border-radius: var(--pill); }
.main-nav ul a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .2s; }
.main-nav ul a:hover::after, .main-nav ul a[aria-current]::after { transform: scaleX(1); }
.main-nav ul a[aria-current]::after { background: var(--violet); }
.main-nav .nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.search-pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px 0 14px; border-radius: var(--pill); background: var(--mist); text-decoration: none; color: var(--muted); font-size: 0.9375rem; min-width: 170px; transition: background .2s; }
.search-pill:hover { background: #e9e3ff; color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; border-radius: 50%; color: inherit; cursor: pointer; }
.icon-btn:hover { background: var(--mist); }
.menu-btn { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.menu-open .burger { background: transparent; }
.menu-open .burger::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1180px) { .logo-type { display: none; } }
@media (max-width: 1020px) {
  .header-row { grid-template-columns: auto 1fr; }
  .menu-btn { display: inline-grid; }
  .main-nav { position: fixed; inset: calc(var(--header-h) + 36px) 0 0 0; background: #fff; padding: 16px var(--gutter) 40px; transform: translateX(100%); visibility: hidden; transition: transform .3s, visibility .3s; overflow-y: auto; }
  .menu-open .main-nav { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { font: 600 2rem/1.1 var(--display); letter-spacing: -0.03em; padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav ul a::after { display: none; }
  .main-nav .nav-cta { display: inline-flex; margin-top: 28px; color: #fff; }
  html.menu-lock { overflow: hidden; }
  .search-pill { min-width: 0; }
}
@media (max-width: 520px) { .search-pill span { display: none; } .search-pill { padding: 0 12px; } }

/* ---------- Migas ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; font-size: 0.8125rem; color: var(--muted); margin-bottom: 24px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.band-dark .crumbs ol, .tool-head .crumbs ol { color: var(--muted-dark); }

/* ---------- Bandas ---------- */
.band { padding-block: clamp(56px, 7vw, 104px); }
.band-tight { padding-block: clamp(40px, 5vw, 72px); }
.band-dark, .lab-band { background: var(--ink); color: #fff; }
.band-dark .section-intro, .band-dark .eyebrow, .lab-band .section-intro, .lab-band .eyebrow { color: var(--muted-dark); }
.band-soft, .band-off { background: var(--mist); }
.band-accent { background: var(--violet); color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3.5vw, 40px); }
.page-head { padding-block: 40px 0; }
.page-head .section-head { margin-bottom: 0; }
.page-head .section-title { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.045em; }
.page-head.band-dark { padding-bottom: 64px; }
.empty { padding: 32px; background: var(--mist); color: var(--muted); border-radius: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; min-height: min(calc(100vh - 104px), 860px); display: flex; align-items: flex-end; isolation: isolate; background: var(--ink); }
.hero-art, .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero.has-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27,15,59,0) 40%, rgba(27,15,59,.75)); }
.hero-inner { padding-block: 120px clamp(40px, 6vw, 80px); }
.hero-kicker { font: 500 1rem var(--text); color: var(--lilac); margin-bottom: 14px; }
.hero-title { font: 800 clamp(4rem, 12vw, 11rem)/0.86 var(--display); text-transform: uppercase; letter-spacing: -0.05em; margin-bottom: 24px; }
.hero-title .hi { color: var(--violet); }
.hero-sub { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-width: 42ch; color: rgba(255,255,255,.86); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Fila de disciplinas (como la fila de actividades de On) */
.activity { padding-block: 20px; border-bottom: 1px solid var(--line); }
.activity li { flex: none; }
.activity ul { display: flex; gap: 8px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.activity a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: var(--pill); background: var(--mist); text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.activity a:hover { background: var(--ink); color: #fff; }

/* ---------- The Hybrid Culture ---------- */
.culture { padding-block: clamp(72px, 10vw, 152px); text-align: center; }
.culture-inner { max-width: 1080px; display: grid; justify-items: center; }
.manifesto { font: 600 clamp(1.75rem, 3.8vw, 3.375rem)/1.1 var(--display); letter-spacing: -0.035em; margin-bottom: 28px; }
.manifesto span { color: var(--violet); }
.culture .lead { margin-inline: auto; margin-bottom: 32px; }

/* ---------- Tarjetas editoriales ---------- */
.cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist); }
.cover-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-label { position: absolute; left: 14px; top: 14px; font: 600 0.75rem/1 var(--text); color: var(--ink); background: #fff; padding: 7px 11px; border-radius: var(--pill); }
.card { display: grid; gap: 14px; align-content: start; }
.card-media { display: block; overflow: hidden; }
.card-media img, .card-media .cover { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media > * { transform: scale(1.03); }
.card-title { font-size: clamp(1.25rem, 1.6vw, 1.5rem); letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 8px; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-excerpt { color: var(--muted); margin-bottom: 10px; font-size: 0.9375rem; }
.card-feature .card-title { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.card-feature .card-media img, .card-feature .card-media .cover { aspect-ratio: 16 / 11; }
.card-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.card-row:last-child { border-bottom: 0; }
.card-row .card-media img, .card-row .card-media .cover { aspect-ratio: 1; }
.card-row .card-title { font-size: 1.25rem; }
.card-row .cover-label { display: none; }
.stories { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); }
.stories-side { display: grid; gap: 24px; align-content: start; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 20px; margin-top: 48px; }
.stories + .card-grid { padding-top: 48px; border-top: 1px solid var(--line); }
.section-head + .card-grid { margin-top: 0; }

/* Home: historia principal con texto sobre imagen + dos secundarias */
.stories-home { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; }
.stories-home .stories-side { grid-template-columns: 1fr; gap: 32px; }
.stories-home .stories-side .card-media .cover, .stories-home .stories-side .card-media img { aspect-ratio: 16 / 10; }
.story-hero-link { position: relative; display: block; height: 100%; min-height: 560px; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.story-hero-link > .cover, .story-hero-link > img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); object-fit: cover; }
.story-hero-link:hover > * :first-child, .story-hero-link:hover > .cover { transform: scale(1.03); }
.story-hero-link::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27,15,59,0) 35%, rgba(27,15,59,.85)); }
.story-hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 40px); }
.story-hero-body .kicker { color: rgba(255,255,255,.8); }
.story-hero-title { font-size: clamp(2rem, 3.6vw, 3.25rem); letter-spacing: -0.04em; margin-bottom: 12px; max-width: 18ch; }
.story-hero-body p { max-width: 52ch; color: rgba(255,255,255,.85); }
@media (max-width: 900px) { .stories, .stories-home { grid-template-columns: 1fr; } .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .story-hero-link { min-height: 480px; } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } .card-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; } .card-row .card-title { font-size: 1.125rem; } .card-row .meta { display: none; } .story-hero-link { min-height: 440px; } }

/* ---------- Carruseles ---------- */
.rail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.rail-ctrl { display: flex; gap: 8px; flex: none; }
.rail-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mist); color: var(--ink); cursor: pointer; font-size: 1.125rem; transition: background .2s, opacity .2s; }
.rail-btn:hover:not(:disabled) { background: #e2d9ff; }
.rail-btn:disabled { opacity: .35; cursor: default; }
.lab-band .rail-btn { background: rgba(255,255,255,.1); color: #fff; }
.lab-band .rail-btn:hover:not(:disabled) { background: rgba(255,255,255,.2); }
.rail-track { display: flex; gap: 16px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding-bottom: 8px; scrollbar-width: none; margin-bottom: 32px; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track > li { flex: 0 0 clamp(260px, 30vw, 440px); scroll-snap-align: start; }

/* Train smarter */
.disc { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.disc .cover-art { z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.disc:hover .cover-art { transform: scale(1.04); }
.disc::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 50%, rgba(27,15,59,.7)); }
.disc-body { position: absolute; inset: auto 0 0 0; padding: 24px; display: grid; gap: 6px; }
.disc-name { font: 700 clamp(2rem, 3vw, 2.75rem)/1 var(--display); letter-spacing: -0.04em; }
.disc-line { color: rgba(255,255,255,.85); font-size: 0.9375rem; }
.disc-count { justify-self: start; margin-top: 8px; font-size: 0.8125rem; font-weight: 600; background: #fff; color: var(--ink); padding: 6px 12px; border-radius: var(--pill); }
.disc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }

/* ---------- Hybrid Lab ---------- */
.on-dark { color: #fff; }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.rail-track.tools { display: flex; }
.tool { background: rgba(255,255,255,.06); border-radius: 4px; transition: background .2s; }
.tool:hover { background: rgba(255,255,255,.1); }
.tool > a, .tool-soon { display: flex; flex-direction: column; height: 100%; min-height: 360px; padding: 28px; text-decoration: none; color: #fff; }
.tool-idx { font: 500 0.8125rem var(--text); color: var(--muted-dark); }
.tool-metric { margin: 40px 0 32px; }
.tool-metric .num { display: block; font: 700 clamp(3rem, 5vw, 4.25rem)/0.95 var(--display); letter-spacing: -0.05em; color: var(--lilac); }
.tool-metric small { font-size: 0.8125rem; color: var(--muted-dark); }
.tool-name { font-size: 1.5rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.tool p { color: rgba(255,255,255,.72); font-size: 0.9375rem; flex: 1; }
.tool .arrow-link { align-self: flex-start; margin-top: 8px; }
.tool > a:hover .arrow-link { color: var(--lilac); }
.tool-soon { opacity: .55; min-height: 220px; }
.tool-soon .tool-name { font-size: 1.25rem; margin-top: 24px; }
.tool-status { font-size: 0.75rem; font-weight: 600; color: var(--lilac); }
.tools-compact .tool > a { min-height: 300px; }
.tools-compact .tool-metric { margin: 24px 0; }
.lab-disclaimer { margin-top: 40px; color: var(--muted-dark); max-width: 70ch; font-size: 0.9375rem; }
@media (max-width: 1000px) { .tools:not(.rail-track) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .disc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tools:not(.rail-track) { grid-template-columns: 1fr; } .rail-ctrl { display: none; } .rail-track > li { flex-basis: 82vw; } }

/* ---------- Gear: tarjetas tipo escaparate ---------- */
.gear-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; }
.gear-rail > li { flex-basis: clamp(240px, 24vw, 340px); }
.pcard { display: grid; gap: 14px; align-content: start; }
.pcard-media { display: block; }
.pcard-ph { position: relative; aspect-ratio: 1; background: var(--mist); overflow: hidden; display: grid; place-items: center; transition: background .3s; }
.pcard:hover .pcard-ph { background: #ebe4ff; }
.product-art { width: 78%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pcard:hover .product-art { transform: translateY(-4px) rotate(-2deg); }
.pcard-ph.big { aspect-ratio: 1; }
.ph-note { position: absolute; left: 16px; bottom: 14px; right: 16px; font-size: 0.8125rem; color: var(--muted); }
.pcard-title { font: 600 1.125rem/1.25 var(--text); letter-spacing: -0.01em; margin-bottom: 4px; }
.pcard-title a { text-decoration: none; }
.pcard-title a:hover { text-decoration: underline; }
.pcard-brand { display: block; font: 500 0.8125rem/1.4 var(--text); color: var(--muted); }
.pcard-profile { font-size: 0.875rem; color: var(--muted); margin-bottom: 10px; }
.method { display: inline-flex; align-items: center; gap: 8px; font: 600 0.75rem/1 var(--text); padding: 7px 12px; border-radius: var(--pill); background: var(--mist); color: var(--ink); white-space: nowrap; }
.method-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lilac); }
.method-tested { background: var(--ink); color: #fff; }
.method-tested .method-dot { background: var(--violet-2); }
.method-documental .method-dot { background: var(--violet); }
.method-specs { background: transparent; border: 1px dashed rgba(27,15,59,.35); color: var(--muted); }
.method-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.method-legend li { background: var(--mist); padding: 24px; border-radius: 4px; }
.method-legend p { margin: 14px 0 0; font-size: 0.9375rem; color: var(--muted); }
.cat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
.cat-tiles a { display: grid; gap: 10px; align-content: end; min-height: 220px; padding: 28px; text-decoration: none; height: 100%; background: var(--mist); border-radius: 4px; transition: background .25s, color .25s; }
.cat-tiles a:hover { background: var(--ink); color: #fff; }
.cat-tiles a:hover .cat-tile-intro { color: var(--muted-dark); }
.cat-tile-name { font: 700 1.875rem/1 var(--display); letter-spacing: -0.04em; }
.cat-tile-intro { font-size: 0.9375rem; color: var(--muted); }
.cat-tile-count { justify-self: start; font-size: 0.75rem; font-weight: 600; background: #fff; color: var(--ink); padding: 5px 10px; border-radius: var(--pill); }
.cmp-list { list-style: none; border-top: 1px solid var(--line); }
.cmp-list a { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.cmp-list a:hover .cmp-title { color: var(--violet); }
.cmp-title { font: 600 1.375rem/1.2 var(--display); letter-spacing: -0.02em; }
.cmp-sum { color: var(--muted); max-width: 70ch; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 32px; }
.filter-row .h-small { margin: 0 8px 0 0; }
.criteria { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 16px; }
.criteria summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.criteria ul { margin: 12px 0 12px 20px; }
@media (max-width: 1000px) { .gear-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cat-tiles, .method-legend { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cat-tiles, .method-legend { grid-template-columns: 1fr; } .cat-tiles a { min-height: 160px; } }

/* Ficha de producto */
.demo-banner { margin: 20px 0 0; padding: 14px 20px; background: var(--mist); border-radius: 4px; font-size: 0.9375rem; border-left: 4px solid var(--violet); }
.product-head { padding-block: 32px 64px; }
.product-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.product-media { position: sticky; top: calc(var(--header-h) + 24px); }
.product-info .kicker { margin-bottom: 4px; }
.product-title { font-size: clamp(2.25rem, 4vw, 3.5rem); letter-spacing: -0.045em; line-height: 1; margin-bottom: 18px; }
.product-title .pcard-brand { font-size: 1rem; letter-spacing: 0; margin-bottom: 8px; }
.product-sum { font-size: 1.0625rem; color: var(--muted); }
.method-box { padding: 20px; margin: 24px 0; background: var(--mist); border-radius: 4px; }
.method-box p { margin: 12px 0 0; font-size: 0.9375rem; }
.facts { display: grid; margin: 0 0 28px; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.875rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.facts small { color: var(--muted); font-weight: 400; }
.facts-grid { grid-template-columns: 1fr 1fr; column-gap: 32px; margin-top: 40px; }
.offers { display: grid; gap: 10px; }
.offers .btn { width: 100%; }
.cmp-table .offers .btn, .sticky-offers .offers .btn { width: auto; }
.aff-note { font-size: 0.8125rem; color: var(--muted); margin-top: 16px; max-width: 60ch; }
.product-body { padding-bottom: 80px; max-width: 980px; }
.product-body > section:first-child { margin-top: 24px; }
.scores { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; }
.score-total { background: var(--ink); color: #fff; padding: 24px; border-radius: 4px; align-self: start; }
.score-num { display: block; font: 700 4.5rem/0.9 var(--display); letter-spacing: -0.05em; color: var(--lilac); }
.score-of { font-size: 0.8125rem; color: var(--muted-dark); }
.score-list { list-style: none; display: grid; gap: 20px; }
.score-row { display: flex; justify-content: space-between; font-weight: 600; }
.score-row .num { font: 700 1.25rem/1 var(--display); }
.bar { height: 6px; background: var(--mist); margin: 10px 0 8px; border-radius: var(--pill); overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ink), var(--violet)); border-radius: var(--pill); }
.score-note { font-size: 0.875rem; color: var(--muted); margin: 0; }
.no-score { padding: 24px; background: var(--mist); border-radius: 4px; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 34%; font-weight: 500; color: var(--muted); }
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.verdict-col { background: var(--mist); padding: 22px; border-radius: 4px; }
.verdict-col ul { list-style: none; display: grid; gap: 8px; }
.verdict-col li { padding-left: 24px; position: relative; }
.verdict-col li::before { content: '–'; position: absolute; left: 0; color: var(--muted); }
.verdict-col.yes li::before { content: '✓'; color: var(--violet); font-weight: 700; }
.verdict-col.no li::before { content: '×'; font-weight: 700; }
.sticky-offers { display: none; }
@media (max-width: 860px) {
  .product-grid, .scores, .verdict, .facts-grid { grid-template-columns: 1fr; }
  .product-media { position: static; }
  .facts > div { grid-template-columns: 9em minmax(0, 1fr); }
  .sticky-offers { display: block; position: sticky; bottom: 0; margin: 32px calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
  .sticky-offers .offers { display: flex; overflow-x: auto; }
}

/* Comparativa */
.cmp-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp-table th, .cmp-table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp-table thead th { font: 600 1.125rem/1.2 var(--display); border-bottom: 2px solid var(--ink); }
.cmp-table tbody th { font-weight: 500; font-size: 0.9375rem; color: var(--muted); width: 22%; }
.cmp-table .btn { min-height: 40px; font-size: .875rem; padding: 0 14px; }
.diffs { list-style: none; display: grid; gap: 0; }
.diffs li { padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); position: relative; }
.diffs li::before { content: ''; position: absolute; left: 0; top: 25px; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.profiles { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profiles li { background: var(--mist); padding: 22px; border-radius: 4px; }
.profile-who { font-weight: 600; margin-bottom: 6px; }
.profile-pick { font: 600 1.25rem var(--display); margin-bottom: 6px; }
.profile-pick a { color: var(--violet); }
@media (max-width: 640px) { .profiles { grid-template-columns: 1fr; } }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 24px; }
.prose table, .res-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td, .res-table th, .res-table td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th, .res-table thead th { border-bottom: 2px solid var(--ink); font-weight: 600; font-size: 0.8125rem; }
.res-table .num, .res-table th.num { text-align: right; white-space: nowrap; padding-right: 0; padding-left: 12px; }

/* ---------- Artículo ---------- */
.article-head { padding-block: 32px 40px; }
.article-title { font-size: clamp(2.5rem, 5.4vw, 4.75rem); letter-spacing: -0.045em; line-height: 1; max-width: 20ch; margin-bottom: 20px; }
.article-dek { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); max-width: 58ch; color: var(--muted); }
.byline { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.875rem; color: var(--muted); margin-top: 24px; }
.byline a { color: var(--ink); font-weight: 600; }
.article-media .cover, .article-media img { aspect-ratio: 21 / 9; width: 100%; object-fit: cover; }
.article-media .cover-label { top: auto; bottom: 16px; left: 16px; }
.credit { font-size: 0.75rem; color: var(--muted); margin-top: 8px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr); gap: 48px; padding-block: 56px 80px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 0.875rem; color: var(--muted); text-decoration: none; }
.toc li a:hover { color: var(--ink); border-left-color: var(--violet); }
.takeaways { background: var(--mist); padding: 28px; margin-bottom: 44px; border-radius: 4px; }
.takeaways .h-small { color: var(--violet); }
.takeaways ul { list-style: none; display: grid; gap: 10px; }
.takeaways li { padding-left: 24px; position: relative; }
.takeaways li::before { content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); }
.prose { font-size: 1.0625rem; line-height: 1.75; max-width: 70ch; }
.prose h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); letter-spacing: -0.035em; margin: 2em 0 .6em; line-height: 1.1; }
.prose h3 { font-size: 1.3125rem; letter-spacing: -0.02em; margin: 1.6em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--violet); }
.prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 3px solid var(--violet); background: var(--mist); font-size: 0.9375rem; }
.prose blockquote p:last-child { margin: 0; }
.prose a { color: var(--violet-dark); text-decoration-color: rgba(123,77,255,.4); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 600; }
.faq, .sources { margin-top: 64px; max-width: 70ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 300; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 18px; color: var(--muted); }
.sources ol { padding-left: 1.4em; display: grid; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.sources a { overflow-wrap: anywhere; }
.method-note { margin-top: 40px; font-size: 0.875rem; color: var(--muted); }
@media (max-width: 1080px) { .article-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); } }
@media (max-width: 800px) { .article-grid { grid-template-columns: 1fr; gap: 0; padding-top: 32px; } .toc { position: static; margin-bottom: 32px; } .article-media .cover { aspect-ratio: 4 / 3; } }

/* ---------- Race calendar ---------- */
.races { list-style: none; display: grid; gap: 8px; }
.race-link { display: grid; grid-template-columns: 8rem minmax(0, 1fr) auto 44px; gap: 24px; align-items: center; padding: 20px 24px; background: var(--mist); border-radius: 4px; text-decoration: none; transition: background .2s, color .2s; }
.band-soft .race-link, .band-off .race-link { background: #fff; }
.race-link:hover { background: var(--ink) !important; color: #fff; }
.race-link:hover .race-place, .race-link:hover .race-verified, .race-link:hover .race-disc { color: var(--muted-dark); }
.race-date { display: grid; }
.race-day { font: 700 2.25rem/1 var(--display); letter-spacing: -0.04em; white-space: nowrap; }
.race-month { font-size: 0.875rem; font-weight: 500; }
.race-main { display: grid; gap: 4px; }
.race-disc { font-size: 0.8125rem; font-weight: 600; color: var(--violet); }
.race-name { font: 600 1.375rem/1.15 var(--display); letter-spacing: -0.02em; }
.race-place { font-size: 0.875rem; color: var(--muted); }
.race-verified { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.race-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); }
.race-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; align-items: end; padding: 24px; background: var(--mist); border-radius: 4px; margin-bottom: 24px; }
.race-count { font-weight: 600; margin-bottom: 14px; }
.race-note { margin-top: 48px; max-width: 70ch; font-size: 0.9375rem; color: var(--muted); }
.event-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.event-date-big { background: var(--ink); color: #fff; padding: 24px 28px; text-align: center; min-width: 9rem; border-radius: 4px; }
.event-date-big span { display: block; font: 700 4.5rem/0.9 var(--display); letter-spacing: -0.05em; color: var(--lilac); }
.event-date-big small { font-size: 0.9375rem; font-weight: 500; text-transform: capitalize; }
.event-head + .wrap { padding-bottom: 80px; }
@media (max-width: 860px) { .race-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .race-link { grid-template-columns: 5rem minmax(0, 1fr); gap: 4px 16px; padding: 18px; }
  .race-day { font-size: 1.75rem; }
  .race-name { font-size: 1.1875rem; }
  .race-verified { grid-column: 2; }
  .race-arrow { display: none; }
  .event-grid { grid-template-columns: 1fr; }
  .event-date-big { justify-self: start; }
}

/* ---------- Formularios ---------- */
.field { display: grid; gap: 8px; }
.field label, .seg legend, .skills legend { font-weight: 600; font-size: 0.875rem; }
input[type=text], input[type=email], input[type=search], input:not([type]), input[inputmode], select, textarea { width: 100%; min-height: 50px; padding: 10px 16px; font-size: 1rem; background: #fff; border: 1px solid rgba(27,15,59,.25); border-radius: 4px; appearance: none; transition: border-color .2s, box-shadow .2s; }
select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
input:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(123,77,255,.18); outline: none; }
.field-sm select { min-height: 46px; }
.hint { font-size: 0.8125rem; color: var(--muted); margin: 0; }
.hint a { color: var(--violet-dark); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend { margin-bottom: 10px; }
.seg-row { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--mist); border-radius: var(--pill); }
.seg-row label { flex: 1 1 auto; position: relative; }
.seg-row input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-row span { display: grid; place-items: center; min-height: 42px; padding: 0 14px; font-weight: 500; font-size: 0.9375rem; text-align: center; border-radius: var(--pill); white-space: nowrap; transition: background .2s, color .2s; }
.seg-row input:checked + span { background: var(--ink); color: #fff; }
.seg-row input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--violet); min-height: 32px; }
.field-range label { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.field-range output { font-weight: 500; color: var(--violet-dark); }
.skills { display: grid; gap: 18px; padding: 22px; background: var(--mist); border-radius: 4px; }
.skills legend { float: left; width: 100%; margin-bottom: 4px; }
.field-pair { align-items: start; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------- Herramientas ---------- */
.tool-head { background: var(--ink); color: #fff; padding-block: 40px 72px; position: relative; overflow: hidden; }
.tool-head::after { content: ''; position: absolute; right: -10%; bottom: -60%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(123,77,255,.55), transparent); pointer-events: none; }
.tool-head .wrap { position: relative; z-index: 1; }
.tool-head .section-title { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -0.045em; }
.tool-head .section-intro { color: var(--muted-dark); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); padding-block: 56px 80px; align-items: start; }
.tool-form { display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.tool-form > .btn { justify-self: start; }
.tool-result { min-height: 300px; }
.result-hero { background: var(--ink); color: #fff; padding: clamp(24px, 3vw, 40px); border-radius: 4px 4px 0 0; position: relative; overflow: hidden; }
.result-hero::after { content: ''; position: absolute; right: -20%; top: -40%; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(123,77,255,.5), transparent); }
.result-label { font-size: 0.875rem; color: var(--muted-dark); margin: 0 0 10px; position: relative; }
.result-big { font: 700 clamp(3.5rem, 8vw, 6.5rem)/0.9 var(--display); letter-spacing: -0.05em; color: var(--lilac); margin: 0 0 12px; position: relative; }
.result-range { margin: 0; color: rgba(255,255,255,.8); position: relative; }
.stackbar { display: flex; height: 60px; margin: 0 0 28px; gap: 2px; }
.stackbar .sb:last-child { border-radius: 0 0 4px 0; }
.stackbar .sb:first-child { border-radius: 0 0 0 4px; }
.sb { display: flex; flex-direction: column; justify-content: center; padding: 0 12px; overflow: hidden; white-space: nowrap; font-size: 0.75rem; }
.sb b { font-weight: 600; font-size: 0.8125rem; }
.sb i { font-style: normal; font-variant-numeric: tabular-nums; }
.sb-run { background: var(--violet); color: #fff; }
.sb-st { background: var(--lilac); color: var(--ink); }
.sb-rox { background: var(--mist); color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0 0 28px; }
.kpis div { padding: 16px; background: var(--mist); border-radius: 4px; }
.kpis dt { font-size: 0.8125rem; color: var(--muted); }
.kpis dd { margin: 6px 0 0; font: 700 1.625rem/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.pace-band .seg-run td:first-child { font-weight: 600; }
.pace-band .seg-station td { color: var(--muted); }
.pace-band .seg-run td:nth-child(4) { font-weight: 700; color: var(--violet-dark); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.result-warn { font-size: 0.8125rem; color: var(--muted); border-left: 3px solid var(--violet); padding-left: 12px; }
.tool-error { padding: 16px 20px; background: #fff0f3; border-radius: 4px; color: #8a1238; font-weight: 600; }
.splits summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.week { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.day { background: var(--mist); padding: 16px 14px; border-radius: 4px; display: flex; flex-direction: column; gap: 6px; border-top: 4px solid transparent; }
.day-name { font-size: 0.8125rem; font-weight: 600; color: var(--muted); margin: 0; }
.day-session { font: 600 1.0625rem/1.15 var(--display); letter-spacing: -0.015em; margin: 0; }
.day-meta { display: flex; flex-direction: column; font-size: 0.75rem; color: var(--muted); margin: 0; }
.day-detail { font-size: 0.8125rem; margin: 0; }
.day-strength { border-top-color: var(--ink); }
.day-endurance { border-top-color: var(--lilac); }
.day-mixed { border-top-color: var(--violet); }
.day.is-hard .day-session::after { content: ' ●'; color: var(--violet); font-size: .6em; vertical-align: middle; }
.day-rest { background: transparent; border: 1px dashed var(--line); border-top-width: 4px; border-top-style: solid; }
.method-doc { background: #fff; padding: clamp(24px, 4vw, 48px); border-radius: 4px; }
.method-doc h3 { font-size: 1.25rem; }
@media (max-width: 1100px) { .week { grid-template-columns: 1fr; } .day { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 4px 16px; border-top: 0; border-left: 4px solid transparent; } .day-strength { border-left-color: var(--ink); } .day-endurance { border-left-color: var(--lilac); } .day-mixed { border-left-color: var(--violet); } .day > :not(.day-name) { grid-column: 2; } .day-name { grid-row: span 3; } .day-meta { flex-direction: row; gap: 12px; } }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } .tool-form { position: static; } }
@media (max-width: 480px) { .field-pair { grid-template-columns: 1fr; } .sb i { display: none; } }

/* ---------- Newsletter ---------- */
.newsletter { padding-block: clamp(64px, 8vw, 112px); position: relative; overflow: hidden; isolation: isolate; }
.newsletter::before { content: ''; position: absolute; inset: auto -10% -70% 40%; aspect-ratio: 1; z-index: -1; background: radial-gradient(closest-side, rgba(201,181,255,.55), transparent); }
.nl-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.newsletter .eyebrow { color: rgba(255,255,255,.8); }
.nl-title { font-size: clamp(2.25rem, 5vw, 4.25rem); letter-spacing: -0.045em; line-height: 1; margin-bottom: 18px; }
.nl-text { max-width: 52ch; color: rgba(255,255,255,.88); }
.nl-row { display: flex; gap: 8px; padding: 6px; background: #fff; border-radius: var(--pill); }
.nl-row input { border: 0; border-radius: var(--pill); min-height: 48px; color: var(--ink); }
.nl-row input:focus { box-shadow: none; }
.nl-row .btn { min-height: 48px; }
.nl-legal { font-size: 0.8125rem; margin: 12px 0 0; color: rgba(255,255,255,.85); }
.nl-status { font-weight: 600; margin: 8px 0 0; min-height: 1.5em; }
.nl-points { list-style: none; display: grid; gap: 12px; margin-top: 32px; padding-bottom: 32px; }
.nl-points li { background: var(--mist); padding: 16px 20px; border-radius: 4px; }
@media (max-width: 800px) { .nl-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 420px) { .nl-row { flex-direction: column; border-radius: 12px; } }

/* ---------- Búsqueda ---------- */
.search-form { display: flex; gap: 8px; margin-top: 28px; padding: 6px; background: var(--mist); border-radius: var(--pill); }
.search-form input { min-height: 56px; font-size: 1.125rem; border: 0; background: transparent; border-radius: var(--pill); }
.search-form input:focus { box-shadow: none; }
.search-form .btn { min-height: 56px; }
.search-suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; font-size: 0.875rem; color: var(--muted); padding-bottom: 8px; }
.search-results { list-style: none; }
.search-results a { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.sr-type { font-size: 0.8125rem; font-weight: 600; color: var(--violet); }
.sr-title { font: 600 1.375rem/1.2 var(--display); letter-spacing: -0.02em; }
.sr-desc { color: var(--muted); font-size: 0.9375rem; }
.search-results a:hover .sr-title { text-decoration: underline; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #fff; padding-block: 80px 32px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding-bottom: 56px; }
.footer-logo { display: inline-block; color: #fff; }
.footer-lockup { width: 200px; height: auto; }
.footer-claim { font: 600 1.5rem/1.2 var(--display); letter-spacing: -0.02em; margin: 24px 0 10px; }
.footer-brand .muted { color: var(--muted-dark); max-width: 36ch; font-size: 0.9375rem; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-h { font: 600 0.875rem var(--text); color: #fff; margin-bottom: 14px; letter-spacing: 0; }
.footer-cols ul { list-style: none; display: grid; gap: 2px; }
.footer-cols a, .footer-cols .linklike { text-decoration: none; font-size: 0.9375rem; display: inline-block; padding: 6px 0; color: var(--muted-dark); }
.footer-cols a:hover, .footer-cols .linklike:hover { color: #fff; }
.footer-wordmark { font: 800 clamp(2.5rem, 9.4vw, 9.25rem)/0.85 var(--display); letter-spacing: -0.06em; color: rgba(201,181,255,.14); margin: 0 0 24px; white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.8125rem; color: var(--muted-dark); }
.footer-bottom p { margin: 0; max-width: 70ch; }
.social { display: flex; gap: 16px; list-style: none; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Consentimiento ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 520px; margin-inline: auto; background: #fff; color: var(--ink); padding: 20px; border-radius: 12px; box-shadow: 0 12px 40px rgba(27,15,59,.18); display: grid; gap: 14px; }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 0.9375rem; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* ---------- 404 ---------- */
.nf { padding-block: 140px; }
.nf .hero-title { font-size: clamp(3.5rem, 10vw, 8rem); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

@media print {
  .site-header, .promo, .site-footer, .newsletter, .consent, .tool-form, .crumbs, .result-actions { display: none !important; }
  .tool-grid { display: block; }
  .result-hero { background: #fff; color: #000; border: 2px solid #000; }
  .result-big { color: #000; }
}

/* ---------- Producto: nota y prueba ---------- */
.pcard-score { margin: 0 0 4px; font-size: 0.8125rem; color: var(--muted); }
.pcard-score span { font: 700 1.125rem var(--display); color: var(--ink); margin-right: 2px; }
.tested-line { display: flex; gap: 10px; align-items: baseline; margin: 20px 0 24px; padding: 14px 18px; background: var(--mist); border-radius: 4px; font-size: 0.9375rem; }
.tested-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); transform: translateY(-1px); }

/* ---------- Asesoramiento ---------- */
.chip-svc { background: var(--violet) !important; color: #fff !important; border-color: var(--violet) !important; }
.chip-svc:hover { background: var(--ink) !important; border-color: var(--ink) !important; }
.svc-cta { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.svc-cta::before { content: ''; position: absolute; right: -15%; top: -80%; width: 60%; aspect-ratio: 1; z-index: -1; background: radial-gradient(closest-side, rgba(123,77,255,.6), transparent); }
.svc-cta-inner { display: grid; grid-template-columns: minmax(0, 7fr) auto; gap: 32px; align-items: end; padding-block: clamp(48px, 6vw, 80px); }
.svc-cta .eyebrow { color: var(--lilac); }
.svc-cta-title { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.04em; margin-bottom: 12px; }
.svc-cta p { color: rgba(255,255,255,.8); margin: 0; }
.svc-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc-card { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.svc-card .cover-art { z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.svc-card:hover .cover-art { transform: scale(1.04); }
.svc-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27,15,59,.05) 30%, rgba(27,15,59,.82)); }
.svc-card-body { position: absolute; inset: auto 0 0 0; padding: clamp(20px, 3vw, 36px); display: grid; gap: 8px; justify-items: start; }
.svc-card-kicker { font-size: 0.8125rem; font-weight: 600; color: var(--lilac); }
.svc-card-title { font: 700 clamp(1.625rem, 2.8vw, 2.5rem)/1.05 var(--display); letter-spacing: -0.04em; max-width: 16ch; }
.svc-card-text { color: rgba(255,255,255,.85); max-width: 44ch; margin-bottom: 8px; }
.svc-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.svc-hero > .cover-art { z-index: -2; }
.svc-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27,15,59,.25), rgba(27,15,59,.85)); }
.svc-hero-inner { padding-block: 40px clamp(48px, 6vw, 88px); }
.svc-hero .crumbs ol { color: rgba(255,255,255,.75); }
.svc-title { font: 800 clamp(2.75rem, 7vw, 6rem)/0.95 var(--display); letter-spacing: -0.05em; max-width: 16ch; margin-bottom: 20px; }
.svc-hero .hero-sub { max-width: 60ch; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.svc-who { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-who li { padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); position: relative; font-size: 1.0625rem; }
.svc-who li::before { content: '✓'; position: absolute; left: 0; top: 16px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--violet); color: #fff; font-size: .75rem; font-weight: 700; }
.svc-includes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.svc-includes li { background: #fff; padding: 28px; border-radius: 4px; }
.svc-includes h3 { font-size: 1.25rem; letter-spacing: -0.025em; margin-bottom: 10px; }
.svc-includes p { margin: 0; color: var(--muted); }
.svc-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.svc-steps li { border-top: 2px solid var(--ink); padding-top: 18px; }
.svc-step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mist); color: var(--violet); font: 700 1.125rem var(--display); margin-bottom: 18px; }
.svc-steps h3 { font-size: 1.25rem; letter-spacing: -0.025em; margin-bottom: 8px; }
.svc-steps p { color: var(--muted); margin: 0; }
.svc-plans { list-style: none; display: grid; max-width: 920px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.svc-plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px 28px; background: rgba(255,255,255,.06); border-radius: 4px; }
.svc-plan.is-highlight { background: var(--violet); }
.svc-plan-tag { position: absolute; top: 20px; right: 20px; background: #fff; color: var(--ink); font-size: 0.75rem; font-weight: 600; padding: 5px 10px; border-radius: var(--pill); }
.svc-plan h3 { font-size: 1.5rem; letter-spacing: -0.03em; }
.svc-price { font: 700 2.5rem/1 var(--display); letter-spacing: -0.04em; margin: 0; color: var(--lilac); }
.svc-plan.is-highlight .svc-price { color: #fff; }
.svc-price small { font: 500 1rem var(--text); color: rgba(255,255,255,.7); margin-left: 4px; }
.svc-plan ul { list-style: none; display: grid; gap: 10px; flex: 1; }
.svc-plan li { padding-left: 24px; position: relative; color: rgba(255,255,255,.88); }
.svc-plan li::before { content: '✓'; position: absolute; left: 0; color: var(--lilac); font-weight: 700; }
.svc-plan.is-highlight li::before { color: #fff; }
.svc-plan .btn { align-self: flex-start; }
.faq-flush { margin-top: 0; }
.lead-form { display: grid; gap: 18px; background: #fff; padding: clamp(24px, 3vw, 40px); border-radius: 4px; }
.lead-form textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.lead-form > .btn { justify-self: start; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--violet); flex: none; }
.svc-disclaimer { margin-top: 20px; max-width: 48ch; }
.svc-cross { display: grid; gap: 6px; padding: 32px; background: var(--mist); border-radius: 4px; text-decoration: none; }
.svc-cross .eyebrow { margin: 0; }
.svc-cross-title { font: 700 clamp(1.5rem, 3vw, 2.25rem)/1.1 var(--display); letter-spacing: -0.035em; }
.svc-cross:hover .svc-cross-title { color: var(--violet); }
@media (max-width: 1000px) { .svc-includes, .svc-plans { grid-template-columns: 1fr 1fr; } .svc-steps { grid-template-columns: 1fr 1fr; gap: 28px 16px; } }
@media (max-width: 760px) { .svc-cta-inner, .svc-grid, .svc-cards { grid-template-columns: 1fr; } .svc-card { aspect-ratio: 4 / 5; } }
@media (max-width: 560px) { .svc-includes, .svc-plans, .svc-steps { grid-template-columns: 1fr; } }

/* ---------- Estado de fecha ---------- */
.dstatus { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; padding: 5px 10px; border-radius: var(--pill); white-space: nowrap; }
.dstatus::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dstatus-official { background: var(--ink); color: #fff; }
.dstatus-official::before { background: var(--lilac); }
.dstatus-secondary { background: #fff; color: var(--violet-dark); box-shadow: inset 0 0 0 1px rgba(123,77,255,.4); }
.dstatus-pending { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.race-link:hover .dstatus-secondary, .race-link:hover .dstatus-pending { background: #fff; }
.race-day-tbd { font-size: 1.125rem !important; letter-spacing: -0.01em !important; }
.event-when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.event-date-big.is-tbd span { color: var(--muted-dark); }
.event-note { border-left: 3px solid var(--violet); }
@media (max-width: 640px) { .race-link .dstatus { grid-column: 2; justify-self: start; } }

/* Fechas que cambian de mes: cifra más compacta para que no se monte sobre el nombre */
.race-date { min-width: 0; overflow: hidden; }
.race-day-x { font-size: 1.75rem !important; }
.race-day-x + .race-month { white-space: nowrap; }
.race-date { overflow: visible; }
@media (max-width: 640px) { .race-link { grid-template-columns: 6rem minmax(0, 1fr) !important; } .race-day { font-size: 1.625rem !important; } .race-day-x { font-size: 1.25rem !important; } .race-day-x + .race-month { white-space: normal; font-size: 0.75rem; line-height: 1.3; } }
.race-day.race-day-tbd { font-size: 1.125rem !important; white-space: normal; line-height: 1.1; }

/* El menú móvil oculto (desplazado a la derecha) no debe generar scroll horizontal */
html, body { overflow-x: clip; }
/* backdrop-filter convierte la cabecera en contenedor de los elementos fixed y encogía el menú móvil */
@media (max-width: 1020px) {
  .site-header { backdrop-filter: none; background: #fff; }
  .main-nav { justify-self: stretch; top: var(--nav-top, calc(var(--header-h) + 36px)) !important; }
}

/* ---------- Fotos de producto ---------- */
.pcard-media img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--mist); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pcard-media { overflow: hidden; }
.pcard:hover .pcard-media img { transform: scale(1.03); }
.gallery { display: grid; gap: 12px; }
.gallery-main { margin: 0; background: var(--mist); }
.gallery-main img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.gallery-thumb { display: block; width: 84px; padding: 0; border: 2px solid transparent; background: var(--mist); cursor: pointer; border-radius: 4px; overflow: hidden; transition: border-color .2s; }
.gallery-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--lilac); }
.gallery-thumb.is-active { border-color: var(--ink); }
.gallery-thumb:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
@media (max-width: 600px) { .gallery-thumb { width: 64px; } }

/* Portada con foto: texto blanco sobre la zona oscura de la izquierda */
.hero.has-photo { background: #0b0908; }
.hero.has-photo .hero-photo { object-position: 72% 50%; }
.hero.has-photo::after { background: linear-gradient(90deg, rgba(8,6,12,.78) 0%, rgba(8,6,12,.45) 38%, rgba(8,6,12,0) 65%), linear-gradient(180deg, rgba(8,6,12,0) 55%, rgba(8,6,12,.7)); }
.hero.has-photo .hero-title, .hero.has-photo .hero-sub { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
@media (max-width: 700px) {
  .hero.has-photo .hero-photo { object-position: 90% 50%; }
  .hero.has-photo::after { background: linear-gradient(180deg, rgba(8,6,12,.15) 0%, rgba(8,6,12,.35) 45%, rgba(8,6,12,.85) 100%); }
}

/* Marca en la portada */
.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; }
.hero-lockup { display: block; width: clamp(150px, 16vw, 230px); height: auto; margin-bottom: clamp(20px, 3vw, 32px); filter: drop-shadow(0 2px 16px rgba(0,0,0,.35)); }

/* Train smarter: fotos de disciplina */
.disc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.disc:hover .disc-photo { transform: scale(1.04); }
.disc:has(.disc-photo)::after { background: linear-gradient(180deg, rgba(8,6,12,0) 45%, rgba(8,6,12,.82)); }

/* ---------- Nutrition: fichas, comparativa y aviso */
.nutri-note { background: var(--lilac-50, #F4F1FF); border-left: 4px solid #7B4DFF; border-radius: 12px; padding: 1.25rem 1.5rem; margin: 2.5rem 0; }
.nutri-note h2 { margin: 0 0 .5rem; }
.nutri-note ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .95rem; }
.nutri-cmp th[scope="row"] { white-space: nowrap; }
.nutri-cmp th[scope="row"] a { text-decoration: none; color: inherit; }
.nutri-cmp th[scope="row"] a:hover { color: #7B4DFF; }
.nutri-cmp .pcard-brand { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.nutri-cmp td { min-width: 9rem; font-size: .92rem; }
.nutri-cmp td:last-child { min-width: 4rem; text-align: center; }
.nutri-cmp thead th { font-size: .95rem; }
.nutri-cmp tbody th { width: auto; color: var(--ink); }
