/* Layout: strict hairline grid, lab-report brutalism. Chalk ground, ink rules, one competition-plate blue. */
:root {
  --bg: #eef0ec;        /* magnesium chalk */
  --surface: #f8f9f6;
  --ink: #121418;
  --mute: #555c64;
  --rule: rgba(18, 20, 24, .18);
  --accent: #2140d8;    /* 20 kg plate blue */
  --accent-ink: #ffffff;
  --mid: #9a6a00;
  --no: #b42318;

  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101216; --surface: #171a1f; --ink: #e9ece6; --mute: #9aa1a9;
    --rule: rgba(233, 236, 230, .16); --accent: #8098ff; --accent-ink: #0b0d12;
    --mid: #e2b33c; --no: #f0705f; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101216; --surface: #171a1f; --ink: #e9ece6; --mute: #9aa1a9;
  --rule: rgba(233, 236, 230, .16); --accent: #8098ff; --accent-ink: #0b0d12;
  --mid: #e2b33c; --no: #f0705f; color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--f-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 8px; }

.kicker {
  font: 500 .78rem/1 var(--f-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex; align-items: center; gap: .6rem;
}
.dot { width: .55rem; height: .55rem; background: var(--accent); display: inline-block; animation: blink 2.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.4rem;
  font: 600 .9rem/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; border: 2px solid var(--ink); cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: translateY(1px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding-inline: var(--gutter); min-height: 64px;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  font: 800 1.35rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
}
.brand i, .foot-brand i { font-style: normal; color: var(--accent); }
.brand-mark { width: 14px; height: 22px; background: var(--accent); box-shadow: 6px 0 0 var(--ink); margin-right: 6px; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a {
  font: 500 .8rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em;
  text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.is-active { border-bottom-color: var(--accent); }
.nav-cta { min-height: 40px; padding: .55rem 1rem; font-size: .78rem; }
@media (max-width: 900px) {
  .nav-inner { flex-wrap: wrap; row-gap: 0; padding-top: .7rem; }
  .nav-cta { margin-left: auto; }
  .nav-links {
    order: 3; flex-basis: 100%; margin: .4rem 0 0; gap: 1.2rem;
    overflow-x: auto; scrollbar-width: none; padding-bottom: .5rem;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  html { scroll-padding-top: 110px; }
}
@media (max-width: 520px) {
  .brand { font-size: 1.1rem; }
  .nav-cta { display: none; }
}

/* ---------- sections ---------- */
main:not(.article) > * { border-bottom: 2px solid var(--ink); }
.section { padding: clamp(56px, 9vw, 112px) var(--gutter); }
.section > * { max-width: var(--maxw); margin-inline: auto; }
.section-alt { background: var(--surface); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 {
  font: 900 clamp(2.4rem, 6.4vw, 5.2rem)/.92 var(--f-display);
  text-transform: uppercase; letter-spacing: -.005em; max-width: 16ch;
}
.section-lede { max-width: 62ch; color: var(--mute); font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 72px); align-items: start;
  border-bottom: 0;
}
.hero-head { grid-column: 1 / -1; display: grid; gap: 1.4rem; min-width: 0; }
.hero-copy { display: grid; gap: 1.6rem; min-width: 0; align-content: start; }
.hero-title {
  font: 900 clamp(2.5rem, 9.5vw, 8.4rem)/.86 var(--f-display);
  text-transform: uppercase; letter-spacing: -.01em;
}
.hero-title .line { display: block; }
.hero-title mark { background: var(--accent); color: var(--accent-ink); padding: 0 .08em; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* intro: line-by-line rise, visible at rest */
.hero-title .line { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.hero-title .line:nth-child(2) { animation-delay: .08s; }
.hero-title .line:nth-child(3) { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(.25em); opacity: .001; } }

/* facts label */
.facts {
  min-width: 0;
  border: 3px solid var(--ink); background: var(--surface);
  padding: 1rem 1.1rem 1.1rem;
  font-family: var(--f-body);
}
.facts-title { font: 900 2.4rem/1 var(--f-display); text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: .4rem; }
.facts-sub { font: 400 .78rem/1.4 var(--f-mono); color: var(--mute); padding: .45rem 0 .55rem; border-bottom: 10px solid var(--ink); }
.facts-list { margin: 0; }
.facts-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.facts-row-thick { border-bottom: 4px solid var(--ink); font-weight: 600; }
.facts-row dt { min-width: 0; }
.facts-row dd { margin: 0; font: 500 1rem/1.4 var(--f-mono); }
.facts-foot { font: 400 .72rem/1.4 var(--f-mono); color: var(--mute); padding-top: .6rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--ink); color: var(--bg); border-top: 2px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker span { font: 500 .8rem/1 var(--f-mono); letter-spacing: .06em; padding: .85rem 1.6rem; border-right: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- supplements table ---------- */
.sup-table { border-top: 2px solid var(--ink); }
.sup-row {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr) minmax(0, 1.5fr) minmax(0, 4fr) minmax(0, 1.4fr);
  gap: 1.25rem; align-items: start;
  padding: 1.4rem .75rem; border-bottom: 1px solid var(--ink);
  transition: background-color .15s, color .15s;
}
.sup-headrow {
  padding-block: .7rem;
  font: 500 .72rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute);
}
article.sup-row:hover { background: var(--ink); color: var(--bg); }
article.sup-row:hover .chip-yes { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.sup-name { font: 800 1.7rem/1 var(--f-display); text-transform: uppercase; }
.sup-dose { font: 400 .95rem/1.4 var(--f-mono); }
.sup-dose b { font-weight: 500; font-size: 1.15rem; }
.sup-find { min-width: 0; }
.sup-src { font: 500 .85rem/1.6 var(--f-mono); }
.sup-src a, .var-src a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.chip {
  display: inline-block; padding: .35rem .55rem;
  font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em;
  border: 2px solid currentColor; white-space: nowrap;
}
.chip-yes { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip-mid { color: var(--mid); }
.chip-no  { color: var(--no); text-decoration: line-through; }
article.sup-row:hover .chip-mid, article.sup-row:hover .chip-no { color: var(--bg); }

@media (max-width: 960px) {
  .sup-headrow { display: none; }
  .sup-row { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 1rem; padding-inline: 0; }
  .sup-name { grid-column: 1; }
  .sup-row > [role="cell"]:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: end; }
  .sup-dose, .sup-find, .sup-src { grid-column: 1 / -1; }
  article.sup-row:hover { background: transparent; color: inherit; }
}

/* ---------- forest plot ---------- */
.forest { margin: 0 auto; border: 2px solid var(--ink); background: var(--bg); padding: clamp(16px, 3vw, 32px); }
.forest-scroll { overflow-x: auto; }
.forest-svg { display: block; width: 100%; min-width: 560px; height: auto; }
.forest-svg text { fill: var(--ink); font-family: var(--f-mono); font-size: 12px; }
.f-grid line { stroke: var(--rule); stroke-width: 1; }
.f-zero { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 4 4; }
.f-axis line { stroke: var(--ink); stroke-width: 1.5; }
.f-axis text { text-anchor: middle; fill: var(--mute); }
.f-axis .f-axis-title { fill: var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.f-label { font-family: var(--f-body) !important; font-size: 14px !important; font-weight: 600; }
.forest-svg .f-meta { fill: var(--mute); font-size: 11.5px; }
.f-ci { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 240; stroke-dashoffset: 0; }
.f-pt { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.f-row-null .f-ci { stroke: var(--mute); }
.f-row-null .f-pt { fill: var(--surface); stroke: var(--ink); }
.forest figcaption { margin-top: 1rem; max-width: 70ch; color: var(--mute); font-size: .95rem; }
.forest.is-armed .f-ci { stroke-dashoffset: 240; }
.forest.is-armed .f-pt { opacity: 0; }
.forest.is-in .f-ci { transition: stroke-dashoffset 1s cubic-bezier(.2, .8, .2, 1); stroke-dashoffset: 0; }
.forest.is-in .f-pt { transition: opacity .3s .6s; opacity: 1; }
.forest.is-in .f-row:nth-of-type(2) .f-ci { transition-delay: .1s; }
.forest.is-in .f-row:nth-of-type(3) .f-ci { transition-delay: .2s; }
.forest.is-in .f-row:nth-of-type(4) .f-ci { transition-delay: .3s; }

/* ---------- training variables ---------- */
.vars { list-style: none; margin: 0 auto; padding: 0; border-top: 2px solid var(--ink); }
.var {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 4fr);
  gap: 1.5rem; align-items: start;
  padding-block: clamp(24px, 3.5vw, 40px);
  border-bottom: 1px solid var(--ink);
}
.var-label { font: 500 .8rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; padding-top: .55rem; }
.var-num { font: 900 clamp(2.2rem, 4vw, 3.4rem)/.9 var(--f-display); text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.var-body { display: grid; gap: 1rem; min-width: 0; max-width: 64ch; }
.var-src { font: 500 .85rem/1.6 var(--f-mono); }

.scale { display: grid; gap: .4rem; max-width: 460px; }
.scale-track { position: relative; height: 14px; border: 2px solid var(--ink); background: var(--bg); }
.scale-band { position: absolute; top: 0; bottom: 0; background: var(--accent); }
.scale-band-soft { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.scale-mark { position: absolute; top: -8px; bottom: -8px; width: 6px; margin-left: -3px; background: var(--accent); }
.scale-mark-ghost { background: var(--mute); width: 2px; margin-left: -1px; }
.scale-ticks { display: flex; justify-content: space-between; font: 400 .72rem/1 var(--f-mono); color: var(--mute); font-variant-numeric: tabular-nums; }
.scale-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font: 400 .74rem/1 var(--f-mono); color: var(--mute); }
.lg { width: 14px; height: 10px; background: var(--accent); display: inline-block; }
.lg-soft { background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px solid var(--accent); }
.lg + .lg, .scale-legend .lg:nth-of-type(2) { margin-left: .6rem; }

@media (max-width: 760px) {
  .var { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .var-label { padding-top: 0; }
}

/* ---------- calculator (inverted band) ---------- */
.section-ink { background: var(--ink); color: var(--bg); }
.section-ink .kicker { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); }
.calc-head { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); align-items: end; }
.calc-head > .kicker, .calc-head > h2 { grid-column: 1; }
.calc-head > p { grid-column: 1; }
.calc-head > .calc-input { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
.calc-head { display: grid; gap: 1rem; }
.calc-head h2 { font: 900 clamp(2.4rem, 6vw, 4.8rem)/.92 var(--f-display); text-transform: uppercase; }
.calc-head > p { max-width: 44ch; }
.calc-input { display: grid; gap: .7rem; margin-top: .6rem; }
.calc-input label { font: 500 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; }
.calc-field { display: flex; align-items: baseline; gap: .5rem; border-bottom: 3px solid var(--bg); max-width: 260px; }
.calc-field input {
  width: 100%; min-width: 0; background: transparent; border: 0; color: var(--bg);
  font: 900 4rem/1 var(--f-display); padding: .1rem 0; color-scheme: inherit;
}
.calc-field input:focus-visible { outline: none; }
.calc-field:focus-within { border-color: var(--accent); }
.calc-field span { font: 500 1rem/1 var(--f-mono); }
#peso-range { width: 100%; max-width: 360px; accent-color: var(--accent); }

.calc-out { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--bg); }
.calc-cell { padding: 1.2rem; display: grid; gap: .6rem; align-content: start; border-right: 2px solid var(--bg); }
.calc-cell:last-child { border-right: 0; }
.calc-cell dt { font: 500 .74rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; min-height: 2.6em; }
.calc-cell dd { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; font-variant-numeric: tabular-nums; }
.calc-cell dd span { font: 900 clamp(2.4rem, 4.4vw, 3.6rem)/.95 var(--f-display); }
.calc-cell dd small { font: 500 .85rem/1 var(--f-mono); }
.calc-cell p { font-size: .9rem; opacity: .82; }
.calc-note { grid-column: 1 / -1; font-size: .85rem; opacity: .75; max-width: 80ch; border-top: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); padding-top: 1rem; }
.bump { animation: bump .35s ease-out; }
@keyframes bump { 40% { color: var(--accent); } }

@media (max-width: 860px) {
  .calc-head { grid-template-columns: minmax(0, 1fr); }
  .calc-head > .calc-input { grid-column: 1; grid-row: auto; }
}
@media (max-width: 640px) {
  .calc-out { grid-template-columns: minmax(0, 1fr); }
  .calc-cell { border-right: 0; border-bottom: 2px solid var(--bg); }
  .calc-cell:last-child { border-bottom: 0; }
  .calc-cell dt { min-height: 0; }
}

/* ---------- myths ---------- */
.myths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.myth {
  padding: clamp(20px, 3vw, 36px); display: grid; gap: .9rem; align-content: start;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.myth-claim {
  font: 800 clamp(1.6rem, 3vw, 2.3rem)/1 var(--f-display); text-transform: uppercase;
}
.myth-claim::before {
  content: "✕ Mito"; display: block; margin-bottom: .7rem;
  font: 500 .72rem/1 var(--f-mono); letter-spacing: .1em; color: var(--no);
}
.myth a { font: 500 .85rem var(--f-mono); }
@media (max-width: 700px) { .myths { grid-template-columns: minmax(0, 1fr); } }

/* ---------- references ---------- */
.refs { list-style: none; margin: 0 auto; padding: 0; border-top: 2px solid var(--ink); }
.refs li {
  display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline;
  padding: .9rem 0; border-bottom: 1px solid var(--rule); font-size: .93rem;
}
.ref-n { font: 900 1.5rem/1 var(--f-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.refs a { font: 500 .8rem/1.4 var(--f-mono); white-space: nowrap; text-decoration: none; border: 1px solid var(--ink); padding: .35rem .5rem; }
.refs a:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 640px) {
  .refs li { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .refs a { grid-column: 2; justify-self: start; }
}

/* ---------- CTA ---------- */
.cta { background: var(--accent); color: var(--accent-ink); }
.cta-inner { display: grid; gap: 1.2rem; }
.cta-title { font: 900 clamp(3.2rem, 11vw, 9rem)/.85 var(--f-display); text-transform: uppercase; }
.cta-inner > p { max-width: 56ch; font-size: 1.1rem; }
.cta-form { display: flex; flex-wrap: wrap; gap: .75rem; max-width: 620px; margin-top: .5rem; }
.cta-form input {
  flex: 1 1 260px; min-width: 0; min-height: 52px; padding: .7rem 1rem;
  background: var(--accent-ink); color: var(--accent); border: 2px solid var(--accent-ink);
  font: 500 1rem var(--f-mono);
}
.cta-form input::placeholder { color: color-mix(in srgb, var(--accent) 60%, var(--accent-ink)); }
.cta-form input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.cta .btn-solid { background: var(--ink); color: var(--bg); border-color: var(--ink); min-height: 52px; }
.cta .btn-solid:hover { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.form-msg { flex-basis: 100%; font: 500 .9rem/1.4 var(--f-mono); min-height: 1.4em; }

/* ---------- footer ---------- */
.foot { padding: 40px var(--gutter) 56px; }
.foot-inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: .8rem; color: var(--mute); font-size: .9rem; }
.foot-brand { font: 800 1.6rem/1 var(--f-display); text-transform: uppercase; color: var(--ink); }
.foot-meta { font: 400 .78rem var(--f-mono); }

/* ---------- reveal (content visible at rest; JS arms only below-fold items) ---------- */
.reveal { transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s; }
.reveal.is-armed { transform: translateY(20px); opacity: 0; }
.reveal[data-split] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-duration: 160s; }
  .dot { animation: none; }
}

/* =====================================================================
   BLOG: tarjetas, artículos, páginas fijas
   ===================================================================== */
.nav-links a.is-current { border-bottom-color: var(--accent); }
.sup-name a { text-decoration: none; border-bottom: 3px solid var(--accent); }
.sup-name a:hover { color: var(--accent); }
article.sup-row:hover .sup-name a { border-bottom-color: var(--bg); color: inherit; }
.section-lede a { color: var(--ink); text-underline-offset: 3px; }

.section-head-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.section-head-row > div { display: grid; gap: 1rem; min-width: 0; }
@media (max-width: 600px) { .section-head-row { grid-template-columns: minmax(0, 1fr); justify-items: start; } }

.list-title { font: 900 clamp(2.8rem, 8vw, 6.4rem)/.9 var(--f-display); text-transform: uppercase; }
.group-h {
  font: 500 .8rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em;
  margin: 2.4rem auto 1rem; padding-bottom: .7rem; border-bottom: 2px solid var(--ink);
}
.group-h:first-of-type { margin-top: 0; }

/* cards */
.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink); border-left: 2px solid var(--ink);
}
.group-h + .cards { border-top: 0; }
.card {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: .9rem;
  padding: clamp(20px, 2.4vw, 28px);
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: var(--bg); transition: background-color .15s, color .15s;
}
.card-meta { display: flex; justify-content: space-between; gap: 1rem; font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.card-title { font: 800 clamp(1.5rem, 2.2vw, 1.9rem)/1.02 var(--f-display); text-transform: uppercase; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }   /* toda la tarjeta es clicable */
.card-dek { font-size: .95rem; color: var(--mute); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: .8rem; min-height: 1.8rem; }
.card-go { font: 600 .8rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; margin-left: auto; }
.card:hover { background: var(--ink); color: var(--bg); }
.card:hover .card-meta, .card:hover .card-dek { color: color-mix(in srgb, var(--bg) 75%, var(--ink)); }
.card:hover .chip-yes { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.card:hover .chip-mid, .card:hover .chip-no { color: var(--bg); }
.card:focus-within { outline: 3px solid var(--accent); outline-offset: -3px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* article */
.article { max-width: 820px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 96px); }
.article > * + * { margin-top: clamp(28px, 4vw, 44px); }
.art-head { display: grid; gap: 1.1rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font: 500 .74rem/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.art-title { font: 900 clamp(2.4rem, 6vw, 4.4rem)/.94 var(--f-display); text-transform: uppercase; }
.art-dek { font-size: clamp(1.1rem, 1.8vw, 1.28rem); line-height: 1.5; max-width: 60ch; }
.art-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem;
  padding-block: .8rem; border-block: 1px solid var(--ink);
  font: 400 .8rem/1.4 var(--f-mono); color: var(--mute); font-variant-numeric: tabular-nums;
}
.art-meta .chip { margin-left: auto; }

.tldr { border: 3px solid var(--ink); background: var(--surface); padding: 1.2rem 1.4rem 1.3rem; }
.tldr-h { font: 900 1.6rem/1 var(--f-display); text-transform: uppercase; padding-bottom: .6rem; border-bottom: 6px solid var(--ink); }
.tldr ul { list-style: none; margin: 0; padding: 0; }
.tldr li { padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; }
.tldr li:last-child { border-bottom: 0; padding-bottom: 0; }
.tldr li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: .7rem; height: .7rem; background: var(--accent); }

.prose { font-size: 1.08rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font: 800 clamp(1.8rem, 3.4vw, 2.5rem)/1 var(--f-display); text-transform: uppercase; margin-top: 2em; padding-top: .8rem; border-top: 2px solid var(--ink); }
.prose h3 { font: 600 1.2rem/1.3 var(--f-body); margin-top: 1.6em; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose b { font-weight: 600; }
.cite { font: 500 .78em/1 var(--f-mono); text-decoration: none !important; color: var(--accent) !important; white-space: nowrap; }
.cite:hover { text-decoration: underline !important; }

.table-wrap { overflow-x: auto; }
.evtable { width: 100%; border-collapse: collapse; font-size: .95rem; }
.evtable th { text-align: left; font: 500 .72rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); padding: .6rem .8rem .6rem 0; border-bottom: 2px solid var(--ink); }
.evtable td { padding: .7rem .8rem .7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.evtable td.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.evtable tbody tr:last-child td { border-bottom: 2px solid var(--ink); }

.note { border-left: 6px solid var(--accent); background: var(--surface); padding: 1rem 1.2rem; font-size: 1rem; }
.disclaimer { font-size: .9rem; color: var(--mute); border-top: 1px solid var(--rule); padding-top: 1rem; }
.art-sub { font: 900 clamp(1.8rem, 3.4vw, 2.4rem)/1 var(--f-display); text-transform: uppercase; margin-bottom: 1rem; }
.art-refs .refs li { font-size: .88rem; }
.art-related .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .art-related .cards { grid-template-columns: minmax(0, 1fr); } }
:target { scroll-margin-top: 90px; }
.refs li:target { background: color-mix(in srgb, var(--accent) 14%, transparent); }

.page .prose h2:first-child { margin-top: 0; }
.ph { background: color-mix(in srgb, var(--mid) 25%, transparent); color: var(--ink); padding: 0 .2em; font-family: var(--f-mono); font-size: .9em; }
.contact-mail { font-size: 1.3rem; }

/* footer */
.foot-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--rule); }
.foot-about { display: grid; gap: .8rem; align-content: start; max-width: 46ch; }
.foot-nav { display: grid; gap: .45rem; align-content: start; }
.foot-nav a { text-decoration: none; color: var(--ink); font-size: .92rem; }
.foot-nav a:hover { color: var(--accent); text-decoration: underline; }
.foot-h { font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-bottom: .3rem; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: minmax(0, 1fr); } }
.group-h span { color: var(--accent); margin-left: .4rem; }
.group-jump { display: flex; flex-wrap: wrap; gap: .6rem; }
.group-jump a { font: 500 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; border: 1px solid var(--ink); padding: .55rem .7rem; }
.group-jump a:hover { background: var(--ink); color: var(--bg); }
.group-h { scroll-margin-top: 110px; }

/* autor + tabla de veredictos */
.author-box { border: 2px solid var(--ink); padding: 1.1rem 1.3rem; display: grid; gap: .6rem; background: var(--surface); }
.author-h { font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.author-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font: 500 .82rem/1.4 var(--f-mono); }
.author-links a { text-underline-offset: 3px; }
.art-meta a { color: inherit; }
a.chip { text-decoration: none; }
.vt { margin-bottom: .6rem; }
.vt td:first-child a { font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.vt td:nth-child(2) { white-space: nowrap; }
.vt-sum { color: var(--mute); font-size: .9rem; }
.vt-note { font-size: .88rem; color: var(--mute); margin-bottom: 1rem; }
.vt-note a { color: var(--ink); }

/* =====================================================================
   v20261014: menú desplegable, buscador, calculadora de calorías
   ===================================================================== */
/* mega menu (solo escritorio) */
.nav-drop { position: static; display: flex; }
.nav-drop .caret { font-size: .7em; margin-left: .15rem; display: inline-block; transition: transform .15s; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility 0s .15s; z-index: 60;
}
.mega-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1.6rem var(--gutter) 1.8rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.1fr); gap: 1.6rem;
}
.mega-h { display: block; font: 800 1.15rem/1.1 var(--f-display) !important; text-transform: uppercase; letter-spacing: .01em !important; text-decoration: none; padding: 0 0 .5rem !important; margin-bottom: .6rem; border-bottom: 2px solid var(--ink) !important; }
.mega-h:hover { color: var(--accent); }
.mega ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.mega li a { display: block; font: 400 .95rem/1.35 var(--f-body) !important; text-transform: none !important; letter-spacing: 0 !important; text-decoration: none; padding: .3rem 0 !important; border-bottom: 0 !important; }
.mega li a:hover { color: var(--accent); }
.mega-side { background: var(--surface); padding: 1rem; border: 2px solid var(--ink); align-self: start; display: grid; gap: .8rem; }
.mega-side p { font-size: .9rem; color: var(--mute); }
.mega-side .btn { font-size: .75rem; }
@media (min-width: 901px) {
  .nav-drop:hover .mega, .nav-drop:focus-within .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-drop:hover .caret, .nav-drop:focus-within .caret { transform: rotate(180deg); }
}
@media (max-width: 900px) { .mega, .nav-drop .caret { display: none; } }

/* buscador */
.sbox { display: grid; gap: .8rem; max-width: 820px; }
.sbox-field { display: flex; align-items: center; border: 3px solid var(--ink); background: var(--surface); }
.sbox-field:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.sbox-ico { font-size: 1.6rem; padding: 0 .2rem 0 .9rem; color: var(--mute); }
.sbox-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: 500 1.2rem/1.2 var(--f-body); padding: 1rem .8rem; outline: none;
}
.sbox-field input::placeholder { color: var(--mute); }
.sbox-hint { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font: 400 .8rem/1 var(--f-mono); color: var(--mute); }
.sbox-hint button { font: 500 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); padding: .45rem .6rem; cursor: pointer; }
.sbox-hint button:hover { background: var(--ink); color: var(--bg); }
.sbox-count { font: 400 .8rem/1 var(--f-mono); color: var(--mute); min-height: 1em; }
.sbox-results { display: grid; gap: 1rem; }
.sbox-empty { color: var(--mute); }
.scard { border: 2px solid var(--ink); background: var(--bg); padding: clamp(16px, 2.4vw, 24px); display: grid; gap: .7rem; }
.scard-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.scard h3 { font: 900 clamp(1.8rem, 4vw, 2.4rem)/1 var(--f-display); text-transform: uppercase; }
.scard h3 a { text-decoration: none; }
.scard-dek { color: var(--mute); }
.scard-h { font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .12em; }
.scard ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.scard li::marker { color: var(--accent); }
.scard .btn { justify-self: start; }
#buscar { scroll-margin-top: 110px; }

/* calculadora de calorías y macros */
.mcalc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.mc-in { border: 0; margin: 0; padding: 0; display: grid; gap: 1.2rem; min-width: 0; }
.mc-lab { display: block; font: 500 .74rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin-bottom: .45rem; }
.mc-seg { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.mc-seg .mc-lab { flex-basis: 100%; margin-bottom: 0; }
.mc-seg label { display: inline-flex; align-items: center; gap: .4rem; border: 2px solid var(--ink); padding: .55rem .8rem; cursor: pointer; font-weight: 500; }
.mc-seg label:has(input:checked) { background: var(--ink); color: var(--bg); }
.mc-seg input { accent-color: var(--accent); }
.mc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.mc-f { display: flex; align-items: baseline; gap: .4rem; border-bottom: 3px solid var(--ink); }
.mc-f:focus-within { border-color: var(--accent); }
.mc-f input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 900 2.2rem/1.1 var(--f-display); padding: .1rem 0; outline: none; }
.mc-f i { font: 500 .85rem var(--f-mono); font-style: normal; color: var(--mute); }
.mc-sel select { width: 100%; font: 500 1rem var(--f-body); padding: .7rem .6rem; border: 2px solid var(--ink); border-radius: 0; background: var(--surface); color: var(--ink); }
.mc-out { border: 3px solid var(--ink); background: var(--surface); padding: clamp(16px, 2.6vw, 28px); display: grid; gap: 1.1rem; position: sticky; top: 90px; }
.mc-k { display: block; font: 500 .72rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.mc-big { display: block; font: 900 clamp(3rem, 7vw, 4.4rem)/1 var(--f-display); font-variant-numeric: tabular-nums; margin: .3rem 0; }
.mc-big b { color: var(--accent); }
.mc-sub { font-size: .85rem; color: var(--mute); }
.mc-macros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.mc-m { padding: .8rem .6rem 0 0; display: grid; gap: .25rem; }
.mc-v { font: 900 1.9rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.mc-n { font: 400 .72rem/1.3 var(--f-mono); color: var(--mute); }
.mc-bar { display: flex; height: 12px; border: 2px solid var(--ink); }
.mc-bar span { display: block; height: 100%; transition: width .25s; }
#mc-bp { background: var(--accent); }
#mc-bg { background: var(--mid); }
#mc-bh { background: color-mix(in srgb, var(--ink) 35%, transparent); }
.mc-note { font-size: .9rem; min-height: 1.2em; }
.mc-how { max-width: 820px; margin-top: clamp(32px, 5vw, 56px); }
.mc-how .refs li { font-size: .85rem; }
@media (max-width: 860px) {
  .mcalc { grid-template-columns: minmax(0, 1fr); }
  .mc-out { position: static; }
}
@media (max-width: 420px) {
  .mc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mc-f input { font-size: 1.8rem; }
}
.section > .sbox { max-width: var(--maxw); }
.sbox > * { max-width: 820px; }
.nav-only-m { display: none; }
@media (max-width: 520px) { .nav-only-m { display: inline-block; } }
