/* ============================================================
   GAVIVITAMINA · Almanaque de la frutería
   ------------------------------------------------------------
   Un cuaderno impreso de puesto de mercado: papel, tinta,
   fruta dibujada a mano, sellos y cintas. Nada de blobs,
   cristales ni píldoras genéricas.

   El color vive en los tokens de :root (papel) y
   :root[data-theme="dark"] (mercado de noche).
   ============================================================ */

/* ---------- 1. Tokens: papel ---------- */
:root {
  color-scheme: light;

  --paper: #F4EAD7;
  --paper-2: #EDE0C6;
  --paper-3: #E3D3B3;
  --surface: #FBF5E7;
  --surface-2: #F6ECD8;
  --surface-3: #F1E4CB;

  --ink: #221A13;
  --ink-soft: #594C3E;
  --ink-muted: #7B6A54;
  --ink-faint: #AC9B80;

  --line: #2A2119;
  --line-soft: #C9B795;
  --line-strong: #8B7757;

  --accent: #D9491F;
  --accent-2: #EFA200;
  --on-accent: #1D1409;
  --leaf: #356B3B;
  --berry: #B02D3C;
  --plum: #7A3E65;
  --sky: #2E6E7E;

  --highlight-mark: #F7DE8B;
  --on-highlight: #221A13;
  --highlight-soft: #F7E9BE;

  --ok-bg: #DDEBD2;
  --ok-ink: #2E5D2E;

  --col-active: #F6E2A9;
  --col-active-head: #EFCF7E;
  --col-active-ink: #3B2C09;

  --sol-lipo-bg: #FBF0CF;
  --sol-lipo-line: #DCC27A;
  --sol-lipo-ink: #6B5410;
  --sol-hidro-bg: #E4F0F0;
  --sol-hidro-line: #9FC6C6;
  --sol-hidro-ink: #2C5E5E;

  --hard: #221A13;
  --hard-shadow: 4px 4px 0 var(--hard);

  --tape-1: rgba(239, 162, 0, .5);
  --tape-2: rgba(217, 73, 31, .32);
  --tape-3: rgba(53, 107, 59, .26);
  --tape-4: rgba(122, 62, 101, .24);

  --header-bg: rgba(244, 234, 215, .95);
  --modal-backdrop: rgba(34, 26, 19, .55);
  --focus: #C2431B;
  --scroll: #B9A98E;

  --footer-bg: #221A13;
  --footer-fg: #F4EAD7;
  --footer-soft: rgba(244, 234, 215, .66);
  --footer-faint: rgba(244, 234, 215, .42);
  --footer-line: rgba(244, 234, 215, .17);
  --footer-accent: #F5C461;

  --ticker-bg: #221A13;
  --ticker-fg: #F4EAD7;
  --ticker-faint: rgba(244, 234, 215, .55);

  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23594C3E' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  --max: 1240px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', 'Courier New', ui-monospace, monospace;
}

/* ---------- 1b. Tokens: mercado de noche ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;

  --paper: #15110C;
  --paper-2: #1B1610;
  --paper-3: #241D15;
  --surface: #1F1A13;
  --surface-2: #261F17;
  --surface-3: #2E261C;

  --ink: #F2E7D2;
  --ink-soft: #C7B69C;
  --ink-muted: #9C8B71;
  --ink-faint: #635443;

  --line: #5A4A34;
  --line-soft: #3B3023;
  --line-strong: #7C684A;

  --accent: #FF7A45;
  --accent-2: #F5C84A;
  --on-accent: #1C1207;
  --leaf: #9CCB72;
  --berry: #FF8B96;
  --plum: #D7A8CB;
  --sky: #8FC9D6;

  --highlight-mark: #F5C84A;
  --on-highlight: #221A13;
  --highlight-soft: #342A13;

  --ok-bg: #20301B;
  --ok-ink: #B7D9A1;

  --col-active: #33290F;
  --col-active-head: #4A3A12;
  --col-active-ink: #FFE7A6;

  --sol-lipo-bg: #2A2312;
  --sol-lipo-line: #5C4A1E;
  --sol-lipo-ink: #F0D68C;
  --sol-hidro-bg: #14282B;
  --sol-hidro-line: #2E565B;
  --sol-hidro-ink: #A8D8DD;

  --hard: #000;
  --hard-shadow: 4px 4px 0 #000;

  --tape-1: rgba(245, 200, 74, .28);
  --tape-2: rgba(255, 122, 69, .26);
  --tape-3: rgba(156, 203, 114, .2);
  --tape-4: rgba(215, 168, 203, .18);

  --header-bg: rgba(21, 17, 12, .95);
  --modal-backdrop: rgba(0, 0, 0, .72);
  --focus: #FFB07A;
  --scroll: #5B4C38;

  --footer-bg: #0B0906;
  --footer-fg: #F1E6D1;
  --footer-soft: rgba(241, 230, 209, .62);
  --footer-faint: rgba(241, 230, 209, .38);
  --footer-line: rgba(241, 230, 209, .15);
  --footer-accent: #F5C84A;

  --ticker-bg: #0B0906;
  --ticker-fg: #F1E6D1;
  --ticker-faint: rgba(241, 230, 209, .5);

  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C7B69C' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 620px at 94% -10%, var(--paper-2), transparent 62%),
    radial-gradient(780px 520px at -10% 14%, var(--surface-2), transparent 60%);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.02em;
  font-variation-settings: 'SOFT' 50, 'WONK' 1;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
em { font-style: italic; }

::selection {
  background: var(--highlight-mark);
  color: var(--on-highlight);
}

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
  border-radius: 1px;
}

.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;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Grano de papel */
.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .3;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .grain {
  opacity: .16;
  mix-blend-mode: screen;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.doodle { display: block; width: 100%; height: 100%; overflow: visible; }
.icon {
  width: 1em; height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Monograma para frutas que no tienen emoji */
.mono {
  display: inline-grid;
  place-items: center;
  width: 1.6em; height: 1.6em;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, var(--surface));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .62em;
  line-height: 1;
  letter-spacing: -.03em;
  color: color-mix(in srgb, var(--c) 60%, var(--ink));
}
.card__emoji .mono,
.ficha__emoji .mono {
  width: auto; height: auto;
  background: none;
  font-size: .8em;
}
.hero-tag__sticker .mono {
  width: auto; height: auto;
  background: none;
  font-size: .56em;
}
.ficha__emoji .mono { font-size: .72em; }
.pick__emoji .mono { font-size: .6em; }
.bowl__item .mono { font-size: .6em; }

.skip {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top .18s;
}
.skip:focus { top: 0; }

/* ---------- 3. Piezas de imprenta ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  padding: 5px 9px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 2px;
  box-shadow: 2px 2px 0 var(--line-soft);
  transform: rotate(-.8deg);
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.kicker span {
  color: var(--accent);
  font-size: .74rem;
  line-height: 1;
}

.stamp-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 20px;
  padding: 6px 11px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transform: rotate(-1.2deg);
}
.stamp-label span { color: var(--accent); font-size: .8rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--line);
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .16s, border-color .16s;
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.link-arrow .icon { width: 14px; height: 14px; }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 19px;
  border: 2px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--hard);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, background .16s, color .16s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--hard); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hard); }
.btn .icon { width: 16px; height: 16px; }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--accent);
}
.btn--primary:hover { box-shadow: 6px 6px 0 var(--accent); }

.btn--ghost { background: var(--surface); }

.btn--small {
  padding: 8px 13px;
  font-size: .8rem;
  box-shadow: 2px 2px 0 var(--hard);
}
.btn--small:hover { box-shadow: 4px 4px 0 var(--hard); }

.btn--mini {
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: .56rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--line-soft);
}
.btn--mini:hover { box-shadow: 3px 3px 0 var(--line-soft); }

.btn--stamp {
  padding: 9px 13px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 3px 3px 0 var(--hard);
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.btn--stamp .icon { width: 15px; height: 15px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--hard);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s, background .18s;
}
.icon-btn:hover { transform: rotate(-6deg); background: var(--surface-2); }
.icon-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--hard); }
.icon-btn .icon { width: 19px; height: 19px; stroke-width: 1.8; }

/* ---------- 5. Cabecera ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1.5px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 11px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand__stamp {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 3px;
  box-shadow: 3px 3px 0 var(--hard);
  transform: rotate(-3deg);
  transition: transform .2s;
  flex: none;
}
.brand:hover .brand__stamp { transform: rotate(2deg) scale(1.03); }
.brand__stamp .doodle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
}

.brand__text {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-variation-settings: 'SOFT' 50, 'WONK' 1;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.025em;
}
.brand__text em { font-style: italic; color: var(--accent); }
.brand__text small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: .46rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 19px;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 5px 0;
  font-size: .81rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .18s;
}
.nav a i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: .48rem;
  letter-spacing: .02em;
  color: var(--accent);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

/* Cinta de avisos */
.ticker {
  background: var(--ticker-bg);
  color: var(--ticker-fg);
  border-bottom: 1.5px solid var(--line);
}
.ticker__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 34px;
  min-height: 34px;
  overflow: hidden;
}
.ticker__tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding-right: 16px;
  border-right: 1px solid color-mix(in srgb, var(--ticker-fg) 22%, transparent);
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--footer-accent);
  white-space: nowrap;
}
.ticker__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .01em;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 1;
  transition: opacity .2s;
}
.ticker__text.is-changing { opacity: 0; }
.ticker__meta {
  flex: none;
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .14em;
  color: var(--ticker-faint);
  white-space: nowrap;
}

/* ---------- 6. Portada ---------- */
.hero {
  position: relative;
  padding: 72px 0 82px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr);
  align-items: center;
  gap: 42px;
}

.hero h1 {
  max-width: 13ch;
  margin: 0 0 24px;
  font-size: clamp(2.9rem, 5.9vw, 5rem);
  line-height: .94;
  letter-spacing: -.035em;
  font-weight: 600;
}
.hero h1 .marker {
  display: inline-block;
  margin-left: .08em;
  padding-bottom: .1em;
  font-style: italic;
  letter-spacing: -.04em;
  white-space: nowrap;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='12' viewBox='0 0 600 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5C98 2.5 192 2 300 4.5 405 7 501 6 598 1.8' fill='none' stroke='%23D9491F' stroke-width='4.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 10px;
}
:root[data-theme="dark"] .hero h1 .marker {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='12' viewBox='0 0 600 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8.5C98 2.5 192 2 300 4.5 405 7 501 6 598 1.8' fill='none' stroke='%23FF7A45' stroke-width='4.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.hero .lead {
  max-width: 46ch;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 1.04rem;
  line-height: 1.62;
}
.hero .lead strong { color: var(--ink); font-weight: 800; }

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.manifest {
  display: flex;
  max-width: 500px;
  margin: 36px 0 0;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
}
.manifest > div {
  display: flex;
  flex: 1;
  flex-direction: column-reverse;
  gap: 2px;
  padding: 12px 22px 12px 0;
}
.manifest > div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line-soft);
}
.manifest dt {
  font-family: var(--font-mono);
  font-size: .53rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.manifest dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  font-variation-settings: 'SOFT' 60, 'WONK' 1;
  line-height: 1;
}

/* Arte de la portada */
.hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
}
.hero__ghost {
  position: absolute;
  right: -34px;
  bottom: -26px;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 9rem);
  font-weight: 600;
  font-style: italic;
  line-height: .8;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--line-soft);
  opacity: .6;
  transform: rotate(-7deg);
  user-select: none;
  pointer-events: none;
}
.hero__doodles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero__doodle {
  position: absolute;
  display: block;
  width: var(--s, 64px);
  height: var(--s, 64px);
  transform: rotate(var(--rot, 0deg));
  animation: flotar 7s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.hero__doodle:nth-child(1) { bottom: 0; left: -4%; }
.hero__doodle:nth-child(2) { top: 0; right: 1%; }
.hero__doodle:nth-child(3) { bottom: 2%; right: 2%; }
.hero__doodle:nth-child(4) { top: 58%; left: 0; }
.hero__doodle .doodle {
  filter: drop-shadow(2px 3px 0 color-mix(in srgb, var(--hard) 14%, transparent));
}
@keyframes flotar {
  from { translate: 0 0; }
  to { translate: 0 -9px; }
}

.hero-tag {
  position: relative;
  z-index: 3;
  width: min(342px, 100%);
  margin: 0 0 0 auto;
  padding: 30px 26px 16px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 4px;
  box-shadow: 9px 9px 0 var(--hard);
  text-align: center;
  transform: rotate(2.2deg);
}
.hero-tag__tape {
  position: absolute;
  top: -13px;
  left: 24px;
  width: 94px;
  height: 26px;
  background: var(--tape-1);
  border: 1px solid color-mix(in srgb, var(--line) 18%, transparent);
  transform: rotate(-6deg);
  opacity: .92;
}
.hero-tag__hole {
  position: absolute;
  top: -8px;
  right: 28px;
  width: 14px; height: 14px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .28);
}
.hero-tag__kicker {
  margin: 0 0 2px;
  font-family: var(--font-mono);
  font-size: .54rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-tag__kicker span { color: var(--accent); }

.hero-tag__sticker {
  display: grid;
  place-items: center;
  width: 84px; height: 84px;
  margin: 10px auto 2px;
  background: color-mix(in srgb, var(--fruit, var(--accent-2)) 20%, var(--surface));
  border: 2px solid var(--line);
  border-radius: 50%;
  outline: 1.5px dashed var(--line-strong);
  outline-offset: 4px;
  font-size: 44px;
  line-height: 1;
  transform: rotate(-3deg);
}
.hero-tag__name {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.05;
}
.hero-tag__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-tag__unit {
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.hero-tag__value small {
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--ink-muted);
}
.hero-tag__note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1.5px dashed var(--line-soft);
  font-size: .79rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.hero-tag__serial {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: .47rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.stamp-badge {
  position: absolute;
  z-index: 4;
  top: -4px;
  left: -16px;
  width: 168px; height: 168px;
  color: var(--line);
  transform: rotate(-11deg);
  opacity: .88;
  mix-blend-mode: multiply;
  pointer-events: none;
}
:root[data-theme="dark"] .stamp-badge {
  mix-blend-mode: normal;
  color: var(--ink-muted);
  opacity: .8;
}
.stamp-badge__ring {
  fill: currentColor;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.stamp-badge__num {
  fill: currentColor;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 25px;
  font-weight: 600;
}
.stamp-badge__ed {
  fill: currentColor;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
}

/* ---------- 7. Friso de fruta surtida ---------- */
.frieze {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 12px 14px;
  padding: 17px 24px;
  background: var(--paper-2);
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  overflow: hidden;
}
.frieze__item {
  width: var(--s, 36px);
  height: var(--s, 36px);
  flex: none;
  color: var(--ink);
  transform: rotate(var(--r, 0deg));
}
.frieze:empty { display: none; }
.frieze__item .doodle { width: 100%; height: 100%; }
.frieze__sep {
  flex: none;
  font-size: .52rem;
  line-height: 1;
  color: var(--line-strong);
  opacity: .65;
}

/* ---------- 8. Secciones ---------- */
.section {
  position: relative;
  padding: 88px 0;
}
.section--tint {
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(0deg, transparent 0 43px, color-mix(in srgb, var(--ink) 3.2%, transparent) 43px 44px);
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
}

.section-head {
  position: relative;
  max-width: 940px;
  margin-bottom: 40px;
}
.section-head::after {
  content: attr(data-num);
  position: absolute;
  top: -.55em;
  right: -6px;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 7.5rem);
  font-style: italic;
  font-weight: 600;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--line-soft);
  opacity: .75;
  pointer-events: none;
}
.section-head h2 {
  position: relative;
  z-index: 1;
  max-width: 19ch;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.section-head__lead {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: .98rem;
}
.section-head__lead strong { color: var(--ink); font-weight: 800; }

/* ---------- 9. Controles (la pizarra) ---------- */
.controls {
  position: sticky;
  top: 82px;
  z-index: 30;
  margin-bottom: 28px;
  padding: 18px 20px 13px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 3px;
  box-shadow: 6px 6px 0 var(--hard);
}
.controls::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 22px;
  width: 96px;
  height: 24px;
  background: var(--tape-1);
  border: 1px solid color-mix(in srgb, var(--line) 18%, transparent);
  transform: rotate(-3deg);
  opacity: .85;
}

.controls__row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px 22px;
}
.ctrl-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ctrl-group__label {
  font-family: var(--font-mono);
  font-size: .52rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.segmented {
  display: inline-flex;
  overflow: hidden;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 2px;
}
.seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 12px;
  border: 0;
  border-right: 1.5px solid var(--line-soft);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: .79rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s, color .16s;
}
.seg:last-child { border-right: 0; }
.seg:hover { background: var(--surface); color: var(--ink); }
.seg.is-active {
  background: var(--ink);
  color: var(--paper);
}
.seg span { font-size: .95rem; }

.controls__tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-left: auto;
}
.field {
  position: relative;
  display: flex;
  align-items: center;
}
.field__icon {
  position: absolute;
  left: 10px;
  width: 15px; height: 15px;
  color: var(--ink-muted);
  pointer-events: none;
}
.field input {
  width: 188px;
  padding: 8px 10px 8px 32px;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .7rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder {
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: .79rem;
}
.field input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--line-soft);
}
.field input:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; }

.field--select select {
  appearance: none;
  -webkit-appearance: none;
  padding: 8px 29px 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  background: var(--surface) var(--chevron) no-repeat right 9px center;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .64rem;
  cursor: pointer;
  transition: border-color .15s;
}
.field--select select:hover { border-color: var(--line-strong); }
.field--select select:focus { outline: none; border-color: var(--ink); box-shadow: 2px 2px 0 var(--line-soft); }

.chips-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px dashed var(--line-soft);
}
.chips__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.chips-row .chips { flex: 1; min-width: 0; margin: 0; }

.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 3px 2px 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}
.chips::-webkit-scrollbar { height: 5px; }
.chips::-webkit-scrollbar-thumb { background: var(--scroll); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 5px 8px;
  border: 1.5px solid var(--line-soft);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .57rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.chip:nth-child(3n) { transform: rotate(.9deg); }
.chip:nth-child(4n) { transform: rotate(-.8deg); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip__dot {
  width: 6px; height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--c);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: 2px 2px 0 var(--c);
  transform: rotate(0);
}
.chip[aria-pressed="true"] .chip__dot {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--paper) 30%, transparent);
}

.controls__hint {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: .55rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.controls__hint span { color: var(--accent); margin-right: 4px; }

/* ---------- 10. Nota destacada ---------- */
.insight {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 30px;
  padding: 14px 18px;
  background: var(--highlight-soft);
  border: 1.5px solid var(--line);
  border-radius: 2px;
  box-shadow: 4px 4px 0 var(--line-soft);
  font-size: .89rem;
  line-height: 1.5;
  color: var(--ink);
  transform: rotate(-.3deg);
}
.insight::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 30px;
  width: 76px;
  height: 20px;
  background: var(--tape-2);
  border: 1px solid color-mix(in srgb, var(--line) 14%, transparent);
  transform: rotate(-4deg);
  opacity: .9;
}
.insight__mark {
  flex: none;
  padding: 5px 7px;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: .92rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  transform: rotate(2deg);
}
.insight > span:last-child { position: relative; }
.insight strong { font-weight: 800; color: var(--ink); }

/* ---------- 11. Tarjetas de alimento ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  padding-top: 4px;
}

.card {
  --fruit: #E4572E;
  --fruit-soft: #E4572E22;
  position: relative;
  isolation: isolate;
  padding: 18px 16px 13px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--hard-shadow);
  transition: transform .18s, box-shadow .18s;
}
.card:nth-child(4n + 1) { transform: rotate(-.3deg); }
.card:nth-child(4n + 3) { transform: rotate(.35deg); }
.card:hover {
  transform: translate(-2px, -2px) rotate(0);
  box-shadow: 7px 7px 0 var(--hard);
}
.card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px;
  height: 8px;
  background: var(--fruit);
  border: 2px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  border-radius: 3px 3px 0 0;
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
.card__emoji {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  background: color-mix(in srgb, var(--fruit) 18%, var(--surface));
  border: 1.5px solid var(--line);
  border-radius: 50%;
  outline: 1.5px dashed var(--line-strong);
  outline-offset: 3px;
  font-size: 27px;
  line-height: 1;
  transform: rotate(-5deg);
  transition: transform .18s;
}
.card:hover .card__emoji { transform: rotate(4deg) scale(1.04); }
.card__rank {
  padding: 2px 5px;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .53rem;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  transform: rotate(2deg);
}
.card__name {
  margin-top: 14px;
  font-size: 1.3rem;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.card__meta {
  min-height: 1.2em;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: .53rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.card__value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 10px;
  line-height: 1;
}
.card__num {
  font-family: var(--font-display);
  font-size: 2.55rem;
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.card__unit {
  font-family: var(--font-mono);
  font-size: .64rem;
  color: var(--ink-muted);
}
.card__vrn {
  margin-top: 5px;
  font-size: .71rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.card__vrn strong {
  padding: 0 3px;
  background: var(--highlight-mark);
  color: var(--on-highlight);
  font-weight: 800;
}
.card__vrn .spark { display: none; }

.card__bar {
  position: relative;
  height: 9px;
  margin-top: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1.5px solid var(--line-soft);
}
.card__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 17px, color-mix(in srgb, var(--ink) 13%, transparent) 17px 18px);
  pointer-events: none;
}
.card__bar span {
  display: block;
  height: 100%;
  background: var(--fruit);
  border-right: 1.5px solid var(--line);
  transition: width .5s cubic-bezier(.22, 1, .36, 1);
}
.card__tags {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1.5px dashed var(--line-soft);
  font-family: var(--font-mono);
  font-size: .51rem;
  letter-spacing: .07em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.card__tags::before {
  content: 'También · ';
  color: var(--ink-faint);
}
.card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: .52rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color .15s;
}
.card__cta .icon { width: 12px; height: 12px; }
.card:hover .card__cta { color: var(--accent); }

.card__open {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%; height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.card__open:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: -5px;
  border-radius: 2px;
}

.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 28px 20px;
  background: var(--surface);
  border: 1.5px dashed var(--line-strong);
  border-radius: 2px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.empty[hidden] { display: none; }

/* ---------- 12. Tablas (el libro de cuentas) ---------- */
.table-card {
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 3px;
  box-shadow: 6px 6px 0 var(--hard);
}
.table-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 2px solid var(--line);
}
.table-card__title {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink);
}

.table-wrap {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}
.table-wrap[hidden] { display: none; }
.table-wrap::-webkit-scrollbar { height: 8px; width: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--scroll); }

body.sin-scroll { overflow: hidden; }

.datatable {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: .8rem;
}
.datatable caption { text-align: left; }

.datatable thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 9px 12px;
  background: var(--ink);
  color: var(--paper);
  border-left: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}
.datatable thead th:first-child {
  left: 0;
  z-index: 5;
  border-left: 0;
  text-align: left;
}
.datatable thead th .u {
  display: block;
  font-size: .49rem;
  letter-spacing: .02em;
  text-transform: none;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

.datatable tbody th {
  position: sticky;
  left: 0;
  z-index: 2;
  padding: 9px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
  font-size: .77rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}
.datatable tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .68rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.datatable tbody tr:hover th,
.datatable tbody tr:hover td { background: var(--surface-2); }

.datatable .fruit-cell { display: flex; align-items: center; gap: 7px; }
.datatable .fruit-cell span:first-child { font-size: 1.1rem; line-height: 1; }
.datatable .fruit-cell small {
  display: block;
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: .47rem;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.datatable .col-active {
  background: var(--col-active) !important;
  color: var(--col-active-ink) !important;
  box-shadow: inset 2px 0 0 var(--accent);
}
.datatable thead th.col-active {
  background: var(--col-active-head) !important;
  color: var(--col-active-ink) !important;
}
.datatable .zero { color: var(--ink-faint); }

.table-card__foot {
  padding: 9px 16px;
  background: var(--surface-2);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: .51rem;
  line-height: 1.65;
  color: var(--ink-muted);
}
.table-scroll-hint {
  display: none;
  padding: 7px 14px;
  background: var(--accent-2);
  border-bottom: 1.5px solid var(--line);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: .54rem;
  letter-spacing: .05em;
}

/* ---------- 13. Podio (el escaparate) ---------- */
.podio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 44px;
}
.podio {
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--line);
}
.podio__row {
  --fruit: #E4572E;
  position: relative;
  display: grid;
  grid-template-columns: 76px 52px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 15px 4px;
  border-bottom: 1.5px solid var(--line-soft);
  transition: background .16s;
}
.podio__row:hover { background: var(--surface-2); }
.podio__row--1 {
  margin-inline: -14px;
  padding-inline: 14px;
  background: var(--highlight-soft);
  border-bottom: 2px solid var(--line);
  box-shadow: inset 4px 0 0 var(--fruit);
}
.podio__row--1::after {
  content: 'hoy lidera';
  position: absolute;
  top: -9px;
  right: 8px;
  padding: 2px 6px;
  background: var(--accent);
  border: 1px solid var(--line);
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: .44rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  transform: rotate(1.5deg);
}
.podio__rank {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.podio__rank small {
  font-family: var(--font-mono);
  font-size: .44rem;
  font-style: normal;
  letter-spacing: .1em;
  color: var(--ink-muted);
}
.podio__row--1 .podio__rank { color: var(--accent); }
.podio__medal { font-size: 1.35rem; text-align: center; }
.podio__num {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.podio__emoji { font-size: 1.7rem; line-height: 1; text-align: center; }
.podio__main { min-width: 0; }
.podio__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.podio__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.podio__val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.podio__val small {
  font-family: var(--font-mono);
  font-size: .55rem;
  font-weight: 400;
  color: var(--ink-muted);
}
.podio .bar {
  height: 6px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}
.podio .bar span {
  display: block;
  height: 100%;
  background: var(--fruit);
  border-right: 1.5px solid var(--line);
}
.podio__pct {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: .51rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.aside-note {
  position: relative;
  padding: 22px 20px 18px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 2px;
  box-shadow: 5px 5px 0 var(--hard);
  transform: rotate(.8deg);
}
.aside-note__stamp {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 7px;
  border: 1.5px dashed var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}
.aside-note__doodle {
  width: 64px; height: 64px;
  margin-bottom: 12px;
  color: var(--ink);
}
.podio__note {
  margin-bottom: 14px;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.aside-note__sign {
  font-family: var(--font-display);
  font-size: .8rem;
  font-style: italic;
  color: var(--ink-muted);
}

/* ---------- 14. Juego: la mesa de la cocina ---------- */
.game {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.game__panel {
  position: relative;
  padding: 18px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--hard-shadow);
}
.game__panel--bowl { transform: rotate(-.3deg); }
.game__panel--picker { display: flex; flex-direction: column; }
.game__panel--vits { grid-column: 1 / -1; }

.game__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.game__head h3 {
  font-size: 1.13rem;
  letter-spacing: -.015em;
}
.game__badge {
  padding: 2px 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .48rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.game__hint {
  font-family: var(--font-mono);
  font-size: .48rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: right;
  color: var(--ink-muted);
}

.bowl {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 3px;
  min-height: 168px;
  padding: 26px 18px 30px;
  overflow: hidden;
  background: var(--surface-2);
  border: 2px solid var(--line);
  border-radius: 8px 8px 46% 46% / 8px 8px 34% 34%;
}
.bowl::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 6%; right: 6%;
  height: 12px;
  border: 1.5px solid var(--line-soft);
  border-radius: 50%;
  opacity: .6;
}
.bowl::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1.4px);
  background-size: 9px 9px;
  opacity: .5;
  pointer-events: none;
}
.bowl__empty {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: .53rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transform: rotate(-2deg);
}
.bowl__item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: flex-start;
  gap: 1px;
  font-size: calc(25px + var(--n, 1) * 5px);
  line-height: 1;
  transform: rotate(calc((var(--i) - 2) * 4deg));
  animation: pop .25s cubic-bezier(.22, 1.4, .5, 1);
  filter: drop-shadow(1px 2px 0 rgba(0, 0, 0, .14));
}
.bowl__item small {
  margin-top: -2px;
  padding: 0 3px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .48rem;
  line-height: 1.3;
}
@keyframes pop {
  from { scale: .5; opacity: 0; }
  to { scale: 1; opacity: 1; }
}

.game__count {
  margin: 10px 0 8px;
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.game__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}
.game__stat { padding-top: 6px; border-top: 1.5px solid var(--line); }
.game__stat span {
  display: block;
  font-family: var(--font-mono);
  font-size: .48rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.game__stat strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}

.sugar { margin-top: 10px; }
.sugar__track {
  position: relative;
  height: 11px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
}
.sugar__mark {
  position: absolute;
  top: 0; bottom: 0;
  left: 58.33%;
  z-index: 2;
  width: 2px;
  background: var(--ink);
  opacity: .5;
}
.sugar__track span {
  display: block;
  height: 100%;
  background: var(--leaf);
  transition: width .35s, background .3s;
}
.sugar__msg {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: .51rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.sugar--baja .sugar__track span { background: #4E8B45; }
.sugar--media .sugar__track span { background: #D8A21B; }
.sugar--alta .sugar__track span { background: #D9772B; }
.sugar--muyalta .sugar__track span { background: #B02D3C; }
.sugar--baja .sugar__msg { color: #3D6B37; }
.sugar--media .sugar__msg { color: #8A5A00; }
.sugar--alta .sugar__msg { color: #A8521A; }
.sugar--muyalta .sugar__msg { color: #B3261E; }
:root[data-theme="dark"] .sugar--baja .sugar__msg { color: #9CCB72; }
:root[data-theme="dark"] .sugar--media .sugar__msg { color: #F2C14E; }
:root[data-theme="dark"] .sugar--alta .sugar__msg { color: #FFB07A; }
:root[data-theme="dark"] .sugar--muyalta .sugar__msg { color: #FF9E94; }

.game__medal {
  margin-top: 12px;
  padding: 8px 10px;
  background: var(--highlight-soft);
  border: 1.5px dashed var(--line);
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  transform: rotate(-.4deg);
}
.game__reto {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: .51rem;
  line-height: 1.65;
  color: var(--ink-muted);
}
.game__reto.is-done { color: var(--ok-ink); font-weight: 500; }
.game__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.game__note {
  font-family: var(--font-mono);
  font-size: .49rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

.picker__filter {
  align-self: flex-start;
  margin-bottom: 10px;
}
.picker__filter .seg {
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}
.picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(224px, 1fr));
  gap: 0 18px;
  max-height: 560px;
  padding-right: 4px;
  overflow-y: auto;
  border-top: 1.5px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--scroll) transparent;
}
.picker::-webkit-scrollbar { width: 7px; }
.picker::-webkit-scrollbar-thumb { background: var(--scroll); }
.picker__title {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin: 10px 0 2px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid var(--line);
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
}
.picker__title span { font-size: .46rem; color: var(--ink-muted); }
.pick {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  background: transparent;
  border-bottom: 1px dotted var(--line-soft);
  transition: background .15s;
}
.pick.is-active {
  background: var(--highlight-soft);
  box-shadow: inset 2px 0 0 var(--c);
}
.pick__emoji { font-size: 21px; line-height: 1; text-align: center; }
.pick__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.pick__info strong {
  overflow: hidden;
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pick__info small {
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .46rem;
  letter-spacing: .02em;
  color: var(--ink-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pick__controls {
  display: flex;
  align-items: center;
  gap: 3px;
}
.pick__btn {
  display: grid;
  place-items: center;
  width: 23px; height: 23px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font-size: .82rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.pick__btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.pick__btn:disabled { opacity: .25; cursor: not-allowed; }
.pick__qty {
  min-width: 14px;
  font-family: var(--font-mono);
  font-size: .6rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.game__vits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px 28px;
}
.gvit {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
}
.gvit__name {
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.gvit__bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}
.gvit__bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  z-index: 2;
  border-left: 1px dashed var(--line-strong);
  opacity: .8;
}
.gvit__bar span {
  display: block;
  height: 100%;
  background: var(--c);
  transition: width .35s cubic-bezier(.22, 1, .36, 1);
}
.gvit__pct {
  font-family: var(--font-mono);
  font-size: .52rem;
  text-align: right;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.gvit--full .gvit__name { color: var(--ink); }
.gvit--full .gvit__pct { color: var(--leaf); }
.game__foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
  font-family: var(--font-mono);
  font-size: .49rem;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ---------- 15. Manual (la cartilla) ---------- */
.manual-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.manual-tabs [hidden] { display: none; }

.manual-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  margin-bottom: 12px;
}
.manual-legend__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: 24px;
  padding: 11px 24px 11px 0;
  border-right: 1px solid var(--line-soft);
}
.manual-legend__item:last-child { border-right: 0; margin-right: 0; }
.manual-legend__item b {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.manual-legend__item span { font-size: .7rem; color: var(--ink-muted); }
.manual-legend__note {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: .51rem;
  letter-spacing: .04em;
  color: var(--ink-muted);
}
.manual-legend__note b { color: var(--ink-soft); font-weight: 500; }

.manual-table { margin-bottom: 36px; }

.mantable { min-width: 720px; table-layout: fixed; }
.mantable thead th:nth-child(1) { width: 36%; }
.mantable thead th:nth-child(2) { width: 21%; }
.mantable thead th:nth-child(3) { width: 25%; }
.mantable thead th:nth-child(4) { width: 18%; }
.mantable .unit { font-size: .54rem; color: var(--ink-muted); font-weight: 400; }
.mantable .alt {
  display: block;
  margin-top: 1px;
  font-size: .48rem;
  font-weight: 400;
  color: var(--ink-muted);
}
.mantable .sin-ul {
  display: inline-block;
  padding: 2px 6px;
  background: var(--ok-bg);
  color: var(--ok-ink);
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: .53rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.semaforo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.semaforo i {
  width: 6px; height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.semaforo--rojo { background: #F7E4E0; border-color: #D9A39D; color: #A3231B; }
.semaforo--ambar { background: #FBF0CB; border-color: #DCC582; color: #8A5A00; }
.semaforo--verde { background: #E3EFD6; border-color: #A9C79A; color: #2F6B32; }
:root[data-theme="dark"] .semaforo--rojo { background: #3B1D19; border-color: #6B3530; color: #FFA79C; }
:root[data-theme="dark"] .semaforo--ambar { background: #3A2C0E; border-color: #6B5620; color: #F5C96B; }
:root[data-theme="dark"] .semaforo--verde { background: #1B3520; border-color: #325C3A; color: #9BE38C; }

.manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  counter-reset: esp;
}
.manual-grid[data-wide="si"] > .man:last-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  grid-template-areas:
    "head  head"
    "func  func"
    "stats toma"
    "stats exceso"
    "more  more";
  align-content: start;
  column-gap: 26px;
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}
.manual-grid[data-wide="si"] > .man:last-child .man__head { grid-area: head; }
.manual-grid[data-wide="si"] > .man:last-child .man__func { grid-area: func; }
.manual-grid[data-wide="si"] > .man:last-child .man__stats { grid-area: stats; }
.manual-grid[data-wide="si"] > .man:last-child .man__toma { grid-area: toma; }
.manual-grid[data-wide="si"] > .man:last-child .man__exceso { grid-area: exceso; }
.manual-grid[data-wide="si"] > .man:last-child .man__more { grid-area: more; margin-top: 4px; }

.man {
  --c: #E4572E;
  --ul-bg: var(--surface-2);
  --ul-line: var(--line-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  counter-increment: esp;
  padding: 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-top: 5px solid var(--c);
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--line-soft);
  transition: transform .18s, box-shadow .18s;
}
.man:hover { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--hard); }
.man::before {
  content: 'ESP. ' counter(esp, decimal-leading-zero);
  position: absolute;
  top: 9px;
  right: 11px;
  font-family: var(--font-mono);
  font-size: .44rem;
  letter-spacing: .14em;
  color: var(--ink-faint);
}

.man__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-right: 50px;
}
.man__emoji {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px; height: 38px;
  background: color-mix(in srgb, var(--c) 14%, var(--surface));
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
}
.man__title h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.1;
}
.man__title p {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: .51rem;
  line-height: 1.4;
  color: var(--ink-muted);
}
.man__sol {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: .44rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--ink-soft);
}
.man__sol--lipo {
  background: var(--sol-lipo-bg);
  border-color: var(--sol-lipo-line);
  color: var(--sol-lipo-ink);
}
.man__sol--hidro {
  background: var(--sol-hidro-bg);
  border-color: var(--sol-hidro-line);
  color: var(--sol-hidro-ink);
}
.man__sol--min { background: var(--surface-3); color: var(--ink-soft); }

.man__estado { font-weight: 500; }
.man__estado--rojo { color: #B3261E; }
.man__estado--ambar { color: #8A5A00; }
.man__estado--verde { color: #2F7D34; }
:root[data-theme="dark"] .man__estado--rojo { color: #FF9E94; }
:root[data-theme="dark"] .man__estado--ambar { color: #F2C14E; }
:root[data-theme="dark"] .man__estado--verde { color: #9BE38C; }

.man__func {
  margin-bottom: 12px;
  color: color-mix(in srgb, var(--c) 55%, var(--ink));
  font-family: var(--font-display);
  font-size: .88rem;
  font-style: italic;
  line-height: 1.35;
}

.man__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.man__stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 9px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}
.man__stat--ul { background: var(--ul-bg); border-color: var(--ul-line); }
.man__stat--none { background: var(--ok-bg); border-color: transparent; }
.man__label {
  font-family: var(--font-mono);
  font-size: .46rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.man__stat strong {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.05;
}
.man__stat strong small {
  font-family: var(--font-mono);
  font-size: .53rem;
  font-weight: 400;
  color: var(--ink-muted);
}
.man__per { font-family: var(--font-mono); font-size: .46rem; color: var(--ink-muted); }
.man__stat--none strong,
.man__stat--none .man__per { color: var(--ok-ink); }
.man__no { font-size: .95rem; }

.man__alt {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: .48rem;
  line-height: 1.55;
  color: var(--ink-muted);
}
.man__toma,
.man__exceso {
  margin-bottom: 7px;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.man__exceso { font-size: .73rem; margin-bottom: 10px; }
.man__toma b,
.man__exceso b { color: var(--ink); font-weight: 800; }

.man__more {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed var(--line-soft);
  font-size: .72rem;
}
.man__more summary {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: .48rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
}
.man__more summary::-webkit-details-marker { display: none; }
.man__more summary::before {
  content: '+';
  display: inline-grid;
  place-items: center;
  width: 15px; height: 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1;
}
.man__more[open] summary::before { content: '−'; }
.man__more p {
  margin-top: 6px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Lipo / hidro */
.solubles {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 2px solid var(--line);
}
.solubles__head { max-width: 680px; margin-bottom: 22px; }
.solubles__head h3 {
  margin-bottom: 8px;
  font-size: 1.6rem;
  font-weight: 600;
}
.solubles__head p { color: var(--ink-soft); font-size: .9rem; }
.solubles__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.solubles__card {
  --sol-dot: var(--accent-2);
  padding: 18px;
  background: var(--sol-lipo-bg);
  border: 1.5px solid var(--sol-lipo-line);
}
.solubles__card--lipo { --sol-dot: var(--accent-2); }
.solubles__card--hidro {
  --sol-dot: var(--sky);
  background: var(--sol-hidro-bg);
  border-color: var(--sol-hidro-line);
}
.solubles__card h4 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 1.18rem;
  font-weight: 600;
}
.solubles__card h4 span {
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.solubles__card ul { display: grid; gap: 7px; }
.solubles__card li {
  position: relative;
  padding-left: 14px;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.solubles__card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px; height: 5px;
  background: var(--sol-dot);
  transform: rotate(45deg);
}

.solubles__table-wrap { margin-top: 18px; overflow-x: auto; }
.solubles__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: .8rem;
}
.solubles__table th,
.solubles__table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}
.solubles__table thead th {
  background: var(--surface-2);
  border-bottom: 1.5px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.solubles__table tbody th { width: 24%; font-weight: 700; }
.solubles__table td { color: var(--ink-soft); }

.solubles__tips {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1.5px dashed var(--line);
}
.solubles__tips-title {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.solubles__tips ul {
  display: grid;
  gap: 5px;
  padding-left: 18px;
  list-style: square;
  font-size: .8rem;
  color: var(--ink-soft);
}

.manual-callout {
  position: relative;
  margin: 40px 0 10px;
  padding: 26px 28px;
  background: var(--highlight-soft);
  border: 1.5px solid var(--line);
  box-shadow: 5px 5px 0 var(--line-soft);
  transform: rotate(-.25deg);
}
.manual-callout::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 38px;
  width: 84px;
  height: 22px;
  background: var(--tape-3);
  border: 1px solid color-mix(in srgb, var(--line) 14%, transparent);
  transform: rotate(-3deg);
}
.manual-callout__kicker {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: .53rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.manual-callout h3 {
  margin-bottom: 8px;
  font-size: 1.5rem;
  font-weight: 600;
}
.manual-callout p {
  margin-top: 8px;
  font-size: .89rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.manual-callout strong { color: var(--ink); }

.manual-rules__title {
  margin: 38px 0 14px;
  font-size: 1.5rem;
  font-weight: 600;
}
.manual-rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 24px;
  padding-top: 8px;
  border-top: 2px solid var(--line);
}
.rule {
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line-soft);
}
.rule__num {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  line-height: 1;
}
.rule h4 {
  margin-bottom: 4px;
  font-size: 1.02rem;
  font-weight: 600;
}
.rule p { font-size: .78rem; line-height: 1.5; color: var(--ink-soft); }

.vit-note {
  max-width: 720px;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: .52rem;
  line-height: 1.75;
  color: var(--ink-muted);
}
.vit-note a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 2px;
}
.vit-note--fuentes { margin-top: 12px; }

/* ---------- 16. Curiosidades ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 24px;
}
.fact {
  position: relative;
  margin-top: 8px;
  padding: 20px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  box-shadow: 3px 3px 0 var(--line-soft);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .2s, box-shadow .2s;
}
.fact::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  width: 70px;
  height: 20px;
  background: var(--tape, var(--tape-1));
  border: 1px solid color-mix(in srgb, var(--line) 14%, transparent);
  transform: translateX(-50%) rotate(var(--tape-rot, -3deg));
  opacity: .92;
}
.fact:hover {
  z-index: 2;
  transform: rotate(0) translateY(-3px);
  box-shadow: 6px 6px 0 var(--hard);
}
.fact:first-child {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 24px;
  grid-column: 1 / -1;
  padding: 26px 30px;
  background: var(--highlight-soft);
  box-shadow: 4px 4px 0 var(--hard);
}
.fact__emoji {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font-size: 23px;
}
.fact:first-child .fact__emoji {
  width: 104px; height: 104px;
  margin: 0 auto;
  font-size: 54px;
}
.fact__deco {
  width: 132px;
  height: 132px;
  justify-self: center;
  color: var(--ink);
  transform: rotate(-8deg);
}
.fact__deco .doodle { width: 100%; height: 100%; }
.fact h3 {
  margin-bottom: 6px;
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}
.fact:first-child h3 { font-size: 1.6rem; }
.fact p { font-size: .84rem; line-height: 1.55; color: var(--ink-soft); }
.fact:first-child p { max-width: 62ch; font-size: .92rem; }

/* ---------- 17. Pie (la contraportada) ---------- */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--footer-bg);
  color: var(--footer-fg);
  border-top: 2px solid var(--line);
}
.footer__frieze {
  padding: 26px 24px 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--footer-line);
  opacity: .92;
}
.footer .frieze__item { color: var(--footer-fg); }
.footer .frieze__sep { color: var(--footer-faint); }

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .9fr;
  gap: 36px;
  padding-block: 48px 38px;
}
.footer__brand {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.footer__brand-doodle {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: -4px;
}
.footer__brand b { color: var(--footer-accent); font-style: italic; font-weight: 600; }
.footer__title {
  margin-bottom: 8px;
  color: var(--footer-accent);
  font-family: var(--font-mono);
  font-size: .53rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer__text {
  font-size: .79rem;
  line-height: 1.65;
  color: var(--footer-soft);
}
.footer__text a {
  color: var(--footer-fg);
  text-decoration: underline;
  text-decoration-color: var(--footer-accent);
  text-underline-offset: 2px;
}
.footer__seal {
  display: inline-block;
  margin-top: 16px;
  padding: 3px 7px;
  border: 1px dashed color-mix(in srgb, var(--footer-accent) 65%, transparent);
  color: var(--footer-accent);
  font-family: var(--font-mono);
  font-size: .46rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}
.footer__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 15px;
  border-top: 1px solid var(--footer-line);
}
.footer__nav-title {
  margin-right: 4px;
  color: var(--footer-accent);
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer__nav a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: var(--footer-soft);
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .15s, border-color .15s;
}
.footer__nav a i {
  margin-right: 4px;
  color: var(--footer-accent);
  font-style: normal;
}
.footer__nav a:hover {
  color: var(--footer-fg);
  border-color: var(--footer-accent);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 15px 17px;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-faint);
  font-family: var(--font-mono);
  font-size: .48rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer__barcode {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 17px;
  flex: none;
}
.footer__barcode i {
  display: block;
  width: 2px;
  background: color-mix(in srgb, var(--footer-fg) 55%, transparent);
}
.footer__barcode i:nth-child(3n) { width: 4px; }
.footer__barcode i:nth-child(4n) { width: 1px; }
.footer__barcode i:nth-child(5n) { width: 3px; }

/* ---------- 18. Ficha (modal) ---------- */
.modal {
  width: min(660px, calc(100vw - 24px));
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.modal::backdrop {
  background: var(--modal-backdrop);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal[open] { animation: aparecer .24s cubic-bezier(.22, 1, .36, 1); }
.modal:focus-visible { outline: none; }
@keyframes aparecer {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__inner {
  position: relative;
  max-height: min(88vh, 820px);
  overflow: auto;
  padding: 26px 26px 22px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 3px;
  box-shadow: 9px 9px 0 var(--hard);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  padding: 0;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 2px;
  font-size: .78rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.modal__close:hover { background: var(--ink); color: var(--paper); }

.ficha__serial {
  margin-bottom: 6px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .49rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ficha__head {
  --fruit: #E4572E;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 4px 40px 16px 0;
  border-bottom: 1.5px solid var(--line);
}
.ficha__head::after {
  content: '✂';
  position: absolute;
  right: 0;
  bottom: -8px;
  padding-left: 6px;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: .66rem;
}
.ficha__emoji {
  display: grid;
  place-items: center;
  flex: none;
  width: 76px; height: 76px;
  background: color-mix(in srgb, var(--fruit) 18%, var(--surface));
  border: 2px solid var(--line);
  border-radius: 50%;
  outline: 1.5px dashed var(--line-strong);
  outline-offset: 4px;
  font-size: 40px;
  transform: rotate(-3deg);
}
.ficha__name {
  margin-bottom: 5px;
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1;
}
.ficha__sub {
  font-family: var(--font-mono);
  font-size: .51rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ficha__hook {
  position: relative;
  margin: 18px 0 20px;
  padding: 12px 14px 12px 18px;
  background: var(--highlight-soft);
  border-left: 3px solid var(--accent);
  font-size: .89rem;
  line-height: 1.55;
  color: var(--ink);
  transform: rotate(-.3deg);
}
.ficha__hook strong { font-weight: 800; }

.ficha__table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}
.ficha__table + .ficha__table { margin-top: 20px; }
.ficha__table caption {
  padding-bottom: 6px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: .5rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ficha__table th,
.ficha__table td {
  padding: 7px 6px;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ficha__table thead th {
  border-bottom: 1.5px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: .48rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ficha__table th:first-child,
.ficha__table td:first-child { text-align: left; }
.ficha__table tbody th { font-size: .73rem; font-weight: 700; }
.ficha__table tbody th > span { display: inline-flex; align-items: center; gap: 6px; }
.ficha__table tbody th i {
  width: 7px; height: 7px;
  flex: none;
  border-radius: 50%;
}
.ficha__table tbody td {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .65rem;
  white-space: nowrap;
}
.ficha__table .u { font-size: .51rem; color: var(--ink-muted); }
.ficha__full { font-weight: 400; color: var(--ink-muted); }
.ficha__table tr.is-active th,
.ficha__table tr.is-active td {
  background: var(--col-active);
  color: var(--col-active-ink);
}
.ficha__table .pct {
  display: inline-block;
  min-width: 42px;
  padding: 1px 5px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .53rem;
}
.ficha__table .pct--over {
  background: var(--ok-bg);
  border-color: transparent;
  color: var(--ok-ink);
}
.ficha__foot {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .49rem;
  line-height: 1.65;
  color: var(--ink-muted);
}
.ficha__curio {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1.5px dashed var(--line-soft);
  font-size: .81rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.ficha__curio span { font-size: 1rem; }

/* ---------- 19. Ajuste de lectura ----------
   La microtipografía se queda para sellos y etiquetas.
   Todo lo que hay que leer sube un punto para no forzar la vista. */
.kicker { font-size: .63rem; }
.stamp-label { font-size: .62rem; }
.link-arrow { font-size: .65rem; }
.nav a { font-size: .82rem; }
.nav a i { font-size: .5rem; }
.ticker__tag { font-size: .57rem; }
.ticker__text { font-size: .69rem; }
.ticker__meta { font-size: .52rem; }
.hero .lead { font-size: 1.05rem; }
.hero-tag__kicker { font-size: .57rem; }
.hero-tag__unit { font-size: .85rem; }
.hero-tag__value small { font-size: .62rem; }
.hero-tag__note { font-size: .82rem; }
.hero-tag__serial { font-size: .49rem; }
.manifest dt { font-size: .56rem; }
.section-head__lead { font-size: 1rem; }
.ctrl-group__label { font-size: .56rem; }
.seg { font-size: .81rem; }
.field input { font-size: .73rem; }
.field input::placeholder { font-size: .8rem; }
.field--select select { font-size: .67rem; }
.chips__label { font-size: .53rem; }
.chip { font-size: .6rem; }
.controls__hint { font-size: .59rem; }
.insight { font-size: .92rem; }
.card__rank { font-size: .56rem; }
.card__meta { font-size: .56rem; }
.card__unit { font-size: .67rem; }
.card__vrn { font-size: .75rem; }
.card__tags { font-size: .55rem; }
.card__cta { font-size: .55rem; }
.empty { font-size: .72rem; }
.table-card__title { font-size: .65rem; }
.datatable thead th { font-size: .58rem; }
.datatable thead th .u { font-size: .52rem; }
.datatable tbody th { font-size: .79rem; }
.datatable tbody td { font-size: .7rem; }
.table-card__foot { font-size: .55rem; }
.table-scroll-hint { font-size: .57rem; }
.podio__rank small { font-size: .47rem; }
.podio__pct { font-size: .54rem; }
.aside-note__stamp { font-size: .53rem; }
.podio__note { font-size: .85rem; }
.game__badge { font-size: .51rem; }
.game__hint { font-size: .51rem; }
.game__count { font-size: .59rem; }
.game__stat span { font-size: .51rem; }
.game__reto { font-size: .58rem; }
.game__note { font-size: .56rem; }
.pick { padding: 8px 4px; }
.pick__info strong { font-size: .78rem; }
.pick__info small { font-size: .52rem; }
.pick__btn { width: 25px; height: 25px; }
.gvit__name { font-size: .55rem; }
.gvit__pct { font-size: .56rem; }
.game__foot { font-size: .55rem; }
.manual-legend__item span { font-size: .73rem; }
.manual-legend__note { font-size: .57rem; }
.semaforo { font-size: .55rem; }
.man__title p { font-size: .54rem; }
.man__sol { font-size: .5rem; }
.man__label { font-size: .51rem; }
.man__per { font-size: .51rem; }
.man__alt { font-size: .55rem; }
.man__toma { font-size: .79rem; }
.man__exceso { font-size: .76rem; }
.man__more { font-size: .74rem; }
.man__more summary { font-size: .51rem; }
.solubles__card li { font-size: .82rem; }
.solubles__table { font-size: .82rem; }
.solubles__table thead th { font-size: .53rem; }
.solubles__tips ul { font-size: .82rem; }
.vit-note { font-size: .58rem; }
.fact p { font-size: .86rem; }
.fact:first-child p { font-size: .93rem; }
.footer__title { font-size: .56rem; }
.footer__text { font-size: .82rem; }
.footer__seal { font-size: .49rem; }
.footer__bottom { font-size: .54rem; }
.ficha__serial { font-size: .52rem; }
.ficha__sub { font-size: .54rem; }
.ficha__table thead th { font-size: .51rem; }
.ficha__table tbody td { font-size: .67rem; }
.ficha__table .pct { font-size: .55rem; }
.ficha__foot { font-size: .56rem; }
.ficha__curio { font-size: .82rem; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1120px) {
  .nav { gap: 13px; }
  .nav a { font-size: .77rem; }
  .hero__grid { gap: 30px; }
  .hero h1 { font-size: clamp(2.6rem, 4.8vw, 3.7rem); }
  .stamp-badge { width: 146px; height: 146px; left: -8px; }
  .hero__ghost { right: -18px; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .hero { padding: 54px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 16px; }
  .hero h1 { font-size: clamp(2.9rem, 6.2vw, 4.4rem); }
  .hero__copy { max-width: 720px; }
  .hero__art { min-height: 500px; margin-top: 8px; }
  .hero-tag { margin-inline: auto; }
  .hero__ghost { right: 2%; bottom: -10px; font-size: 7rem; }
  .stamp-badge { left: 8%; }
  .section-head::after { right: 0; font-size: 6rem; }
  .podio-layout { grid-template-columns: 1fr; gap: 30px; }
  .aside-note { max-width: 420px; }
  .game { grid-template-columns: 1fr; }
  .game__panel--bowl { width: 100%; max-width: 560px; margin-inline: auto; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__inner > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .section-head::after { display: none; }
  .section-head h2 { max-width: 24ch; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls { top: 78px; }
  .controls__tools { margin-left: 0; flex: 1 1 100%; }
  .field { flex: 1; }
  .field input { width: 100%; }
  .field--select { flex: 0 1 auto; }
  .manual-legend__item { margin-right: 18px; padding-right: 18px; }
  #tabla .table-scroll-hint { display: block; }
}

@media (max-width: 760px) {
  .controls { position: static; }
  .manual-table { display: none; }
  .table-scroll-hint { display: block; }
  .solubles__cards { grid-template-columns: 1fr; }
  .manual-grid[data-wide="si"] > .man:last-child {
    display: flex;
    flex-direction: column;
    max-width: none;
  }
  .fact:first-child { grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 22px; }
  .fact:first-child .fact__emoji { width: 84px; height: 84px; font-size: 44px; }
  .fact__deco { display: none; }
  .hero__doodle:nth-child(1) { width: 82px; height: 82px; left: -2%; bottom: -6px; }
  .hero__doodle:nth-child(2) { width: 50px; height: 50px; top: -8px; right: 2%; }
  .hero__doodle:nth-child(3),
  .hero__doodle:nth-child(4) { display: none; }
  .controls::before { display: none; }
  .frieze { justify-content: center; }
  .stamp-badge { width: 132px; height: 132px; top: -14px; left: 0; }
  .picker { max-height: 440px; }
  .ticker__meta { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-inline: 18px; }
  .section { padding: 58px 0; }
  .hero { padding: 40px 0 52px; }
  .hero h1 { max-width: none; font-size: clamp(2.4rem, 10.5vw, 2.9rem); }
  .hero h1 .marker { margin-left: 0; font-size: .82em; }
  .hero .lead { font-size: .98rem; }
  .hero__actions { gap: 14px; }
  .manifest > div { padding-right: 14px; }
  .manifest > div + div { padding-left: 14px; }
  .manifest dd { font-size: 1.7rem; }
  .hero__art { min-height: 0; margin-top: 0; padding-top: 22px; padding-bottom: 74px; align-items: flex-start; }
  .hero__doodle:nth-child(1) { width: 62px; height: 62px; left: 0; bottom: 0; }
  .hero__doodle:nth-child(2) { top: auto; right: 0; bottom: 2px; width: 46px; height: 46px; }
  .hero__ghost { display: none; }
  .stamp-badge { left: 2%; width: 118px; height: 118px; }
  .hero-tag { padding: 26px 20px 14px; transform: rotate(1.4deg); }
  .hero-tag__sticker { width: 72px; height: 72px; font-size: 38px; }
  .hero-tag__value { font-size: 2.5rem; }
  .ticker__inner { height: auto; min-height: 34px; padding-block: 5px; }
  .ticker__text { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }
  .ticker__tag { align-self: center; }
  .section-head h2 { font-size: clamp(1.9rem, 8vw, 2.5rem); }
  .facts { grid-template-columns: 1fr; }
  .fact:first-child { grid-template-columns: 1fr; gap: 10px; }
  .fact:first-child .fact__emoji { width: 64px; height: 64px; font-size: 34px; margin: 0 0 4px; }
  .fact:first-child h3 { font-size: 1.35rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__barcode { display: none; }
  .manual-rules { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .manual-rules__title { font-size: 1.3rem; }
  .frieze__item:nth-child(n + 17),
  .frieze__sep:nth-child(n + 16) { display: none; }
}

@media (max-width: 560px) {
  .brand__text small { display: none; }
  .brand__stamp { width: 40px; height: 40px; }
  .brand__stamp .doodle { width: 27px; height: 27px; }
  .brand__text { font-size: 1.2rem; }
  .btn__label { display: none; }
  .btn--stamp { width: 40px; height: 40px; padding: 0; }
  .btn--stamp .icon { width: 17px; height: 17px; }
  .topbar__inner { gap: 12px; padding-block: 9px; }
  .ticker__tag { font-size: .48rem; letter-spacing: .12em; padding-right: 10px; }
  .ticker__text { font-size: .58rem; }
  .ctrl-group { width: 100%; }
  .segmented { width: 100%; }
  .seg { flex: 1; padding: 9px 6px; font-size: .76rem; }
  .controls__tools { flex-direction: column; align-items: stretch; }
  .field--select { flex: 0 0 auto; }
  .controls__hint { font-size: .61rem; }
  .table-card__foot { font-size: .58rem; }
  .chips-row { flex-wrap: wrap; gap: 6px 10px; }
  .chips-row .chips { flex-basis: 100%; }
  .grid { grid-template-columns: 1fr; }
  .card__num { font-size: 2.3rem; }
  .podio__row { grid-template-columns: 52px 38px minmax(0, 1fr); gap: 10px; padding: 12px 2px; }
  .podio__row--1 { padding-inline: 10px; margin-inline: -10px; }
  .podio__rank { font-size: 1.5rem; }
  .podio__emoji { font-size: 1.4rem; }
  .podio__name { font-size: 1rem; }
  .podio__val { font-size: .95rem; }
  .game__panel { padding: 15px; }
  .gvit { grid-template-columns: 46px minmax(0, 1fr) 38px; }
  .picker { grid-template-columns: 1fr; }
  .picker__filter { width: 100%; }
  .picker__filter .seg { padding: 7px 5px; font-size: .7rem; }
  .pick__btn { width: 30px; height: 30px; }
  .manual-grid { grid-template-columns: 1fr; }
  .manual-tabs { gap: 8px; }
  .manual-tabs .segmented { width: 100%; }
  .manual-legend { gap: 0; }
  .manual-legend__item { width: 100%; margin-right: 0; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .manual-legend__item:last-child { border-bottom: 0; }
  .solubles { padding-top: 24px; }
  .manual-callout { padding: 22px 18px; }
  .manual-rules { grid-template-columns: 1fr; }
  .modal__inner { padding: 20px 16px 18px; }
  .ficha__emoji { width: 60px; height: 60px; font-size: 32px; }
  .ficha__name { font-size: 1.5rem; }
  .ficha__table { font-size: .72rem; }
  .ficha__table th, .ficha__table td { padding: 6px 3px; }
  .ficha__table tbody td { font-size: .6rem; }
  .ficha__full { display: none; }
  .footer__inner { padding-block: 38px 30px; }
  .frieze { gap: 12px; padding: 14px 18px; }
  .manual-table { display: none; }
}

@media (max-width: 430px) {
  .hero-tag { width: 100%; }
  .stamp-badge { display: none; }
  .hero__art { min-height: 0; }
  .manifest { flex-wrap: wrap; }
  .manifest > div { flex: 1 1 33%; padding-right: 10px; }
  .manifest > div + div { padding-left: 10px; }
  .manifest dd { font-size: 1.5rem; }
  .hero__actions .btn { width: 100%; }
  .hero__actions { align-items: stretch; }
  .hero__actions .link-arrow { align-self: flex-start; }
  .btn--primary { width: 100%; }
  .fact { padding: 18px; }
  .aside-note { padding: 18px; }
  .aside-note__doodle { width: 52px; height: 52px; }
  .table-card__bar { padding: 9px 12px; }
}

@media (max-width: 480px) {
  .ticker__inner { flex-wrap: wrap; gap: 1px 8px; padding-block: 6px; }
  .ticker__tag { width: 100%; padding-right: 0; border-right: 0; font-size: .52rem; letter-spacing: .14em; }
  .ticker__text { flex-basis: 100%; font-size: .64rem; line-height: 1.45; }
  .frieze { gap: 8px 10px; padding: 14px 18px; }
  .frieze__item { width: 32px; height: 32px; }
  .frieze__item:nth-child(n + 11),
  .frieze__sep:nth-child(n + 10) { display: none; }
}

/* ---------- 21. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
