/* DOSIS v4 — clínico: acero cepillado, vidrio y agua.
   Layout: rejilla editorial de 12 columnas (1240px), columna de lectura de 680px. Bordes finos y nítidos, sin trazo a mano.
   Tipo: grotesca ligera para titulares, Inter para texto, mono de laboratorio para etiquetas; la serif solo en la marca. */
:root {
  --paper: #F3F5F6; --stone: #E7EBED; --white: #FBFCFD; --ink: #12181B; --soft: #5B656B;
  --forest: #13232D; --forest-ink: #1D5F86; --on-forest: #E9EEF1;
  --cta: #1D5F86; --cta-hover: #237099; --on-cta: #F7FAFB;
  /* metal y vidrio (logo, lomos) */
  --st1: #F6F8F9; --st2: #AEB6BB; --st3: #E6EAEC; --st4: #7D878D; --st5: #D3D9DC;
  --glass1: rgba(255,255,255,0.96); --glass2: rgba(236,243,247,0.9); --glass3: rgba(198,216,227,0.92);
  --water1: #CFE4F0; --water2: #5E9CC2; --water3: #1D5F86;
  --disc-shadow: rgba(18,40,54,0.16); --disc-shadow2: rgba(18,40,54,0.08);
  /* tokens de uso */
  --bg: var(--paper); --sheet: var(--stone); --card: var(--white);
  --ink-deep: #000; --muted: var(--soft); --accent: var(--forest-ink);
  --pencil: color-mix(in srgb, var(--ink) 40%, transparent);
  --rule: color-mix(in srgb, var(--ink) 13%, transparent);
  --tint: color-mix(in srgb, var(--ink) 4%, transparent);
  --on-ink: var(--paper);
  --band: var(--forest); --on-band: var(--on-forest); --menu-bg: var(--forest); --on-menu: var(--on-forest);
  --solid-bg: #DDEFE6; --solid-fg: #14573A;
  --prom-bg: #FBF0D9; --prom-fg: #6B4A00;
  --exp-bg: #ECE9FA; --exp-fg: #4F3889;
  --pause-bg: #E4E7E9; --pause-fg: #4D5459;
  --warn-bg: #FBF3E3; --warn-line: rgba(150,100,20,0.3); --warn-fg: #5E4300;
  /* lomos */
  --steel: linear-gradient(90deg, var(--st4) 0%, var(--st1) 22%, var(--st2) 48%, var(--st3) 70%, var(--st4) 100%);
  --bk1: var(--steel); --bkf1: #12181B;
  --bk2: linear-gradient(90deg, #1A2227, #2E383E 40%, #1A2227); --bkf2: #E9EEF1;
  --bk3: linear-gradient(90deg, rgba(200,222,234,0.75), rgba(240,247,250,0.9) 45%, rgba(200,222,234,0.75)); --bkf3: #12181B;
  --bk4: linear-gradient(90deg, #102C3E, #1D4B66 45%, #102C3E); --bkf4: #E9EEF1;
  --bk5: linear-gradient(90deg, #E9EDEF, #FFFFFF 45%, #E9EDEF); --bkf5: #12181B;
  --bk6: linear-gradient(90deg, #1D5F86, #3C86B2 45%, #1D5F86); --bkf6: #F7FAFB;
  --shelf: #B8C1C6;
  /* tipo */
  --ff-d: 'Inter Tight', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --ff: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-m: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ff-logo: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-h: var(--ff-d);
  /* espacio y movimiento */
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 720ms;
  /* alias que usa el quiz */
  --ff-s: var(--ff-d); --border: var(--rule); --border-soft: var(--rule); --ink-strong: var(--ink-deep); --safe-bg: var(--sheet); --warn-border: var(--warn-line);
}
@media (min-width: 900px) { :root { --gut: max(48px, env(safe-area-inset-left, 0px)); --gut-r: max(48px, env(safe-area-inset-right, 0px)); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0B1418; --stone: #0F1B21; --white: #13222A; --ink: #E6ECEF; --soft: #9DAAB1;
  --forest: #08202D; --forest-ink: #7DB8D9; --on-forest: #E6ECEF; --cta: #7DB8D9; --cta-hover: #96C8E3; --on-cta: #0B1418; --ink-deep: #fff;
  --st1: #8D979D; --st2: #3C464C; --st3: #6E787E; --st4: #2A3237; --st5: #59636A;
  --glass1: rgba(40,62,74,0.95); --glass2: rgba(28,46,56,0.92); --glass3: rgba(18,32,40,0.95);
  --disc-shadow: rgba(0,0,0,0.5); --disc-shadow2: rgba(0,0,0,0.3);
  --solid-bg: rgba(110,200,160,0.15); --solid-fg: #A6DEC4; --prom-bg: rgba(233,162,59,0.16); --prom-fg: #F0C27A;
  --exp-bg: rgba(170,150,235,0.17); --exp-fg: #CDBEF5; --pause-bg: rgba(200,210,215,0.10); --pause-fg: #C3CCD1;
  --warn-bg: rgba(233,162,59,0.08); --warn-line: rgba(233,162,59,0.3); --warn-fg: #F0C27A;
  --bkf1: #0B1418; --shelf: #2A3A44; --sheen: 0.18;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --paper: #0B1418; --stone: #0F1B21; --white: #13222A; --ink: #E6ECEF; --soft: #9DAAB1;
  --forest: #08202D; --forest-ink: #7DB8D9; --on-forest: #E6ECEF; --cta: #7DB8D9; --cta-hover: #96C8E3; --on-cta: #0B1418; --ink-deep: #fff;
  --st1: #8D979D; --st2: #3C464C; --st3: #6E787E; --st4: #2A3237; --st5: #59636A;
  --glass1: rgba(40,62,74,0.95); --glass2: rgba(28,46,56,0.92); --glass3: rgba(18,32,40,0.95);
  --disc-shadow: rgba(0,0,0,0.5); --disc-shadow2: rgba(0,0,0,0.3);
  --solid-bg: rgba(110,200,160,0.15); --solid-fg: #A6DEC4; --prom-bg: rgba(233,162,59,0.16); --prom-fg: #F0C27A;
  --exp-bg: rgba(170,150,235,0.17); --exp-fg: #CDBEF5; --pause-bg: rgba(200,210,215,0.10); --pause-fg: #C3CCD1;
  --warn-bg: rgba(233,162,59,0.08); --warn-line: rgba(233,162,59,0.3); --warn-fg: #F0C27A;
  --bkf1: #0B1418; --shelf: #2A3A44; --sheen: 0.18;
  color-scheme: dark;
}
/* Variantes del mismo mood (solo para comparar en la vista previa) */
:root[data-palette="agua"] { /* más agua: azul pálido y azul profundo */
  --paper: #EEF4F7; --stone: #DFEAF0; --white: #F9FCFD; --ink: #0E1E28; --soft: #52656F;
  --forest: #0C2C40; --forest-ink: #1B6A96; --on-forest: #E6F0F5; --cta: #0C2C40; --cta-hover: #13405B; --on-cta: #F9FCFD;
  --water2: #4F98C4; --water3: #0C2C40; --shelf: #B3C7D2; color-scheme: light; }
:root[data-palette="cromo"] { /* más metal: plata, grafito y negro */
  --paper: #F2F2F1; --stone: #E5E6E6; --white: #FAFAFA; --ink: #111314; --soft: #5D6164;
  --forest: #1B1E20; --forest-ink: #3C4248; --on-forest: #EDEEEF; --cta: #111314; --cta-hover: #2A2E31; --on-cta: #FAFAFA;
  --water1: #DADDDF; --water2: #8A9298; --water3: #3C4248;
  --bk4: linear-gradient(90deg, #0E0F10, #2A2D30 45%, #0E0F10); --bk6: linear-gradient(90deg, #6C747A, #A7AFB4 45%, #6C747A); --bkf6: #111314;
  --shelf: #BDBFC0; color-scheme: light; }

/* Secciones oscuras: redefinen los tokens localmente */
.on-dark { --bg: var(--forest); --sheet: var(--forest); --card: color-mix(in srgb, var(--on-forest) 7%, var(--forest)); --ink: var(--on-forest); --muted: color-mix(in srgb, var(--on-forest) 72%, var(--forest));
  --accent: var(--cta); --pencil: color-mix(in srgb, var(--on-forest) 45%, transparent); --rule: color-mix(in srgb, var(--on-forest) 18%, transparent);
  --tint: color-mix(in srgb, var(--on-forest) 8%, transparent); background: var(--forest); color: var(--on-forest); }

/* ─── BASE ───────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ff); font-size: 16px; font-weight: 300; line-height: 1.7; color: var(--ink); background: var(--menu-bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 0.5px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 500; }
p { margin: 0 0 14px; }
.skip { position: absolute; left: -9999px; z-index: 60; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.col { max-width: 680px; }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 32px); }

/* ─── TIPOGRAFÍA ─────────────────────────────────────────────────────── */
.eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 400; }
.hand { font-family: var(--ff-d); font-style: italic; font-weight: 400; font-size: 21px; line-height: 1.35; color: var(--ink); }
h1, .h1 { font-family: var(--ff-d); font-weight: 500; font-size: clamp(40px, 7vw, 76px); line-height: 1.02; letter-spacing: -0.015em; margin: 0 0 20px; text-wrap: balance; }
h2, .h2 { font-family: var(--ff-d); font-weight: 500; font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 18px; text-wrap: balance; }
h3 { font-size: 16px; font-weight: 500; letter-spacing: 0.005em; margin: 0; line-height: 1.4; }
.lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; line-height: 1.7; }
.dose-num { font-family: var(--ff-d); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em; line-height: 1; }
.dose-unit { font-family: var(--ff-d); font-weight: 400; }

/* ─── TRAZO A LÁPIZ ──────────────────────────────────────────────────── */
.sk { position: relative; }
.sk-frame { position: absolute; inset: 0; pointer-events: none; color: var(--pencil); }
.sk-e { position: absolute; overflow: visible; }
.sk-h { left: 0; width: 100%; height: 8px; }
.sk-h:first-child { top: -4px; } .sk-h:nth-child(3) { bottom: -4px; }
.sk-v { top: 0; height: 100%; width: 8px; }
.sk-v:nth-child(2) { right: -4px; } .sk-v:nth-child(4) { left: -4px; }
.sk-underline { position: absolute; left: -2%; width: 104%; height: 12px; bottom: -8px; color: var(--accent); pointer-events: none; }
.sk-ring { position: absolute; left: -10%; top: -18%; width: 120%; height: 136%; color: var(--accent); pointer-events: none; }
.sk-arrow { color: var(--pencil); flex: none; }
.mark-u, .mark-r { position: relative; white-space: nowrap; }

/* ─── BOTONES ────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; border-radius: 8px; padding: 13px 26px; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer; border: none; text-decoration: none; transition: background 0.2s, transform 0.2s var(--ease); }
.btn-primary { background: var(--cta); color: var(--on-cta); }
.btn-primary:hover { background: var(--cta-hover); color: var(--on-cta); }
.btn-primary:active { transform: translateY(1px); }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.link-hand { position: relative; display: inline-block; font-size: 14px; font-weight: 400; text-decoration: none; padding: 6px 0; }
.link-hand .sk-underline { bottom: -2px; color: var(--pencil); transition: color 0.2s; }
.link-hand:hover .sk-underline { color: var(--accent); }

/* ─── BADGES ─────────────────────────────────────────────────────────── */
.badge { display: inline-block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; font-weight: 400; white-space: nowrap; line-height: 1.6; }
.b-solid { background: var(--solid-bg); color: var(--solid-fg); }
.b-promising { background: var(--prom-bg); color: var(--prom-fg); }
.b-experimental { background: var(--exp-bg); color: var(--exp-fg); }
.b-paused { background: var(--pause-bg); color: var(--pause-fg); }

/* ─── PÁGINA + MENÚ (la página se aparta) ────────────────────────────── */
.page { position: relative; z-index: 2; background: var(--bg); min-height: 100vh; transition: transform 0.7s var(--ease), border-radius 0.7s var(--ease); transform-origin: left center; }
.menu { position: fixed; inset: 0; z-index: 1; background: var(--menu-bg); color: var(--on-menu); visibility: hidden; transition: visibility 0s linear 0.7s; }
.menu-in { height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gut-r) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gut); max-width: 560px; overflow-y: auto; }
.menu-close { align-self: flex-start; background: none; border: 0; color: var(--on-menu); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; padding: 10px 0; display: inline-flex; gap: 10px; align-items: center; min-height: 44px; }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font-family: var(--ff-d); font-weight: 500; font-size: clamp(42px, 9vw, 64px); line-height: 1.12; text-decoration: none; color: var(--on-menu); display: flex; align-items: baseline; gap: 16px; opacity: 0; transform: translateX(-14px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), color 0.2s; }
.menu nav a small { font-family: var(--ff); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 400; opacity: 0.65; }
.menu nav a:hover { color: #fff; }
.menu-foot { font-size: 12.5px; opacity: 0.75; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.menu-foot a { color: var(--on-menu); text-decoration: none; }
body.menu-open .menu { visibility: visible; transition: visibility 0s; }
body.menu-open .menu nav a { opacity: 1; transform: none; }
body.menu-open .menu nav a:nth-child(2) { transition-delay: 0.06s; } body.menu-open .menu nav a:nth-child(3) { transition-delay: 0.12s; } body.menu-open .menu nav a:nth-child(4) { transition-delay: 0.18s; }
body.menu-open .page { transform: translateX(min(78vw, 560px)) scale(0.94); border-radius: 14px; overflow: hidden; height: 100vh; }
.page-shield { display: none; position: fixed; z-index: 3; top: 0; bottom: 0; right: 0; width: calc(100vw - min(78vw, 560px)); background: transparent; border: 0; cursor: pointer; }
body.menu-open .page-shield { display: block; }
body.menu-open { overflow: hidden; }

/* ─── BANDA DE AVISOS + CABECERA ─────────────────────────────────────── */
.notice { background: var(--band); color: var(--on-band); font-size: 12.5px; text-align: center; }
.notice .wrap { padding-block: 8px; }
.notice a { color: var(--on-band); text-underline-offset: 3px; }
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: box-shadow 0.3s; }
.hdr.scrolled { box-shadow: 0 0.5px 0 var(--rule); }
.hdr .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 12px; }
.menu-btn { justify-self: start; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); padding: 10px 4px 10px 0; min-height: 44px; }
.menu-btn .bars { display: grid; gap: 5px; width: 20px; }
.menu-btn .bars i { display: block; height: 1.2px; background: currentColor; border-radius: 1px; transition: transform 0.3s var(--ease); }
.menu-btn:hover .bars i:last-child { transform: scaleX(0.6); transform-origin: left; }
.logo { justify-self: center; display: inline-flex; align-items: center; gap: 10px; font-family: var(--ff-d); font-size: 17px; font-weight: 500; letter-spacing: 0.2em; color: var(--ink); white-space: nowrap; text-decoration: none; }
.logo:hover { color: var(--ink); }
.logo .sk-logo { width: 26px; height: 26px; }
.hdr-cta { justify-self: end; }
@media (max-width: 560px) { .hdr-cta .t-long { display: none; } .logo .word { display: none; } }
@media (min-width: 561px) { .hdr-cta .t-short { display: none; } }

/* ─── SECCIONES ──────────────────────────────────────────────────────── */
.sec { padding-block: clamp(64px, 9vw, 128px); }
.sec-sheet { background: var(--sheet); }
.sec-head { margin-bottom: clamp(32px, 4vw, 56px); }

/* ENTRADA DE LA PORTADA: pantalla en blanco → cae una gota de agua → ondas → se asientan dos anillos de acero
   sobre un disco de vidrio → la línea de acero entra desde la izquierda → se escribe D O S I S → lema → botón. */
.intro { min-height: calc(100svh - 92px); display: grid; place-items: center; align-content: center; gap: clamp(18px, 4vh, 40px); padding-block: 12px 36px; overflow: clip; text-align: center;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, var(--white) 0%, var(--paper) 70%); }
.intro-mark { display: block; width: min(86vw, 600px, 64svh); height: auto; overflow: visible; }
.im-disc { filter: drop-shadow(0 30px 50px var(--disc-shadow)) drop-shadow(0 6px 14px var(--disc-shadow2)); }
.im-sheen { fill-opacity: var(--sheen, 1); }
.im-ring, .im-ripple, .im-line { fill: none; transform-box: fill-box; transform-origin: center; }
.im-outer { stroke: var(--ink); stroke-width: 2.2; }
.im-inner { stroke: var(--ink); stroke-width: 1; opacity: 0.45; }
.im-line { stroke: var(--ink); stroke-width: 1.8; }
.im-ripple { stroke: var(--water2); stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: 0; }
.im-drop { fill: url(#dropFill); opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.im-word { font-family: var(--ff-logo); font-weight: 300; font-size: 96px; letter-spacing: 46px; fill: var(--ink); }
.im-tag { font-family: var(--ff-m); font-weight: 400; font-size: 15px; letter-spacing: 4px; fill: var(--soft); }
.intro-actions { display: grid; justify-items: center; gap: 16px; }
.intro-more { font-family: var(--ff-m); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 8px; }
.intro-more:hover { color: var(--ink); }

.js .im-drop { animation: imDrop 0.95s 0.3s both; }
.js .im-ripple { animation: imRipple 1.7s cubic-bezier(0.2, 0.6, 0.3, 1) both; }
.js .im-ripple.r1 { animation-delay: 0.86s; } .js .im-ripple.r2 { animation-delay: 1.02s; } .js .im-ripple.r3 { animation-delay: 1.18s; } .js .im-ripple.r4 { animation-delay: 1.36s; }
.js .im-outer { animation: imRing 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.05s both; }
.js .im-inner { animation: imRing 1.2s cubic-bezier(0.22, 1, 0.36, 1) 1.6s both; }
.js .im-disc, .js .im-sheen { animation: imFade 1.3s ease-out 1.9s both; }
.js .im-line { animation: imLine 0.95s cubic-bezier(0.16, 1, 0.3, 1) 2.55s both; }
.js .im-word tspan { animation: imType 0.12s linear both; }
.js .im-word tspan:nth-child(1) { animation-delay: 3.5s; } .js .im-word tspan:nth-child(2) { animation-delay: 3.68s; }
.js .im-word tspan:nth-child(3) { animation-delay: 3.86s; } .js .im-word tspan:nth-child(4) { animation-delay: 4.04s; }
.js .im-word tspan:nth-child(5) { animation-delay: 4.22s; }
.js .im-tag { animation: imReveal 0.9s ease-out 4.55s both; }
.js .intro-actions { animation: imUp 0.8s var(--ease) 5.1s both; }
.js .home .notice, .js .home .hdr { animation: imHdr 0.8s ease-out 5.1s both; }
@keyframes imDrop {
  0% { opacity: 0; transform: translateY(-480px) scale(0.85, 1.12); animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45); }
  8% { opacity: 1; }
  60% { opacity: 1; transform: translateY(0) scale(0.85, 1.15); animation-timing-function: ease-out; }
  72% { opacity: 0.8; transform: translateY(4px) scale(1.7, 0.32); }
  100% { opacity: 0; transform: translateY(6px) scale(2.2, 0.08); }
}
@keyframes imRipple { 0% { opacity: 0; transform: scale(0.03); } 3% { opacity: 0.7; } 100% { opacity: 0; transform: scale(1.3); } }
@keyframes imRing { 0% { opacity: 0; transform: scale(0.04); } 55% { opacity: 1; transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes imFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes imLine { 0% { opacity: 0; transform: translateX(-1500px); } 25% { opacity: 1; } 100% { opacity: 1; transform: translateX(0); } }
@keyframes imType { from { fill-opacity: 0; } to { fill-opacity: 1; } }
@keyframes imReveal { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: blur(0); } }
@keyframes imUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes imHdr { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
.intro.done *, .intro.done, body.intro-done .home .notice, body.intro-done .home .hdr { animation-duration: 1ms !important; animation-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) {
  .js .im-drop, .js .im-ripple { display: none; }
  .js .im-outer, .js .im-inner, .js .im-disc, .js .im-sheen, .js .im-line, .js .im-tag, .js .intro-actions, .js .home .notice, .js .home .hdr { opacity: 1 !important; transform: none !important; filter: none !important; visibility: visible !important; }
  .js .im-disc { filter: drop-shadow(0 30px 50px var(--disc-shadow)) drop-shadow(0 6px 14px var(--disc-shadow2)) !important; }
  .js .im-word tspan { fill-opacity: 1 !important; }
}

/* NI MÁS. NI MENOS. */
.hero { padding-block: clamp(56px, 8vw, 120px); align-items: end; row-gap: 28px; border-top: 0.5px solid var(--rule); }
.hero-text { grid-column: 1 / span 6; }
.hero-side { grid-column: 8 / span 5; display: grid; gap: 22px; justify-items: start; }
.hero .h1 { font-size: clamp(54px, 8.6vw, 112px); line-height: 0.96; margin: 0; }
.hero .h1 em { font-style: italic; font-weight: 400; }
.hero .lead { margin: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.hero-facts b { font-family: var(--ff-d); font-size: 24px; font-weight: 500; color: var(--ink); font-variant-numeric: lining-nums; margin-right: 6px; }

/* POR QUÉ EXISTE */
.story-q { grid-column: 1 / span 6; }
.story-a { grid-column: 8 / span 5; padding-top: 10px; }
@media (max-width: 860px) { .story-q, .story-a { grid-column: 1 / -1; } }
.story-q .h2 { font-size: clamp(34px, 5vw, 62px); }
.story-a p { font-size: 16.5px; }
.margin-note { margin-top: 26px; display: flex; align-items: center; gap: 10px; }
.margin-note .hand { transform: rotate(-2deg); }

/* EXPLORA POR OBJETIVO */
.goal-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.goal-tab { position: relative; background: transparent; border: 0.5px solid var(--rule); border-radius: 999px; padding: 9px 16px; font-size: 13px; color: var(--muted); cursor: pointer; min-height: 40px; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.goal-tab:hover { color: var(--ink); border-color: var(--pencil); }
.goal-tab[aria-selected="true"] { color: var(--on-ink); background: var(--ink); border-color: var(--ink); }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; margin-inline: -4px; overscroll-behavior-x: contain; }
@media (min-width: 1000px) { .shelf { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; } }
.dose-card { scroll-snap-align: start; position: relative; display: grid; gap: 14px; align-content: start; background: var(--card); padding: 22px 22px 20px; text-decoration: none; min-height: 236px; transition: transform 0.4s var(--ease); }
.dose-card:hover { transform: translateY(-3px); color: var(--ink); }
.dose-card:hover .sk-frame { color: var(--accent); }
.dose-card .tgt { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.dose-card h3 { font-size: 17px; }
.dose-card .dose-num { font-size: 44px; }
.dose-card .dose-unit { font-size: 22px; margin-left: 4px; }
.dose-card .when { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.dose-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; font-size: 12.5px; }
.panel-tab[hidden] { display: none; }
.shelf-more { margin-top: 20px; font-size: 13.5px; color: var(--muted); }

/* EJEMPLO ANOTADO */
.anno { align-items: start; row-gap: 28px; }
.anno-head { grid-column: 1 / span 4; }
.anno-card { grid-column: 5 / span 5; }
.anno-notes { grid-column: 10 / span 3; display: grid; gap: 64px; padding-top: 22px; list-style: none; margin: 0; padding-left: 0; }
@media (max-width: 1000px) { .anno-head { grid-column: 1 / -1; } .anno-card { grid-column: 1 / span 7; } .anno-notes { grid-column: 8 / span 5; } }
@media (max-width: 720px) { .anno-card, .anno-notes { grid-column: 1 / -1; } .anno-notes { gap: 16px; padding-top: 0; } }
.anno-notes li { display: flex; gap: 8px; align-items: flex-start; }
.anno-notes .num { font-family: var(--ff-h); font-size: 20px; color: var(--accent); line-height: 1.2; }
.result-card { background: var(--card); }
.result-card .in { padding: 24px; display: grid; gap: 16px; }
.title-row { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.title-row h3 { font-size: 17px; }
.why { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12.5px; background: var(--tint); border: 0.5px solid var(--rule); border-radius: 8px; padding: 3px 10px; line-height: 1.6; }
.cue { font-family: var(--ff-h); font-size: 18px; color: var(--accent); margin-right: 6px; }
.spec { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 14px; line-height: 1.6; }
.spec dt { color: var(--muted); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 3px; }
.spec dd { margin: 0; min-width: 0; }
@media (max-width: 440px) { .spec { grid-template-columns: minmax(0, 1fr); gap: 2px; } .spec dd { margin-bottom: 10px; } }
.warn { background: var(--warn-bg); border-top: 0.5px solid var(--warn-line); padding: 14px 24px 16px; }
.warn p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--warn-fg); }

/* CONFIANZA */
.trust-l { grid-column: 1 / span 5; }
.trust-r { grid-column: 7 / span 6; }
@media (max-width: 900px) { .trust-l, .trust-r { grid-column: 1 / -1; } }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin: 30px 0 0; }
.figures div { border-top: 0.5px solid var(--rule); padding-top: 14px; }
.figures b { display: block; font-family: var(--ff-d); font-weight: 500; font-size: clamp(40px, 5vw, 56px); line-height: 1; font-variant-numeric: lining-nums; margin-bottom: 6px; }
.figures span { font-size: 13.5px; color: var(--muted); }
.scale { display: grid; gap: 0; }
.scale-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 42px; gap: 16px; align-items: center; padding-block: 16px; border-bottom: 0.5px solid var(--rule); }
.scale-row:first-child { border-top: 0.5px solid var(--rule); }
.scale-row .sk-bar { width: 100%; height: 22px; color: var(--ink); display: block; }
.scale-row .n { font-family: var(--ff-d); font-size: 28px; line-height: 1; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.scale-row .def { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); margin: -4px 0 0; }
.promises { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; margin-top: clamp(56px, 7vw, 96px); }
@media (max-width: 1000px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .promises { grid-template-columns: minmax(0, 1fr); } }
.promise { padding-block: 18px; border-top: 0.5px solid var(--rule); }
.promise h3 { font-family: var(--ff-d); font-size: 24px; font-weight: 500; margin-bottom: 6px; }
.promise p { margin: 0; font-size: 14px; color: var(--muted); }

/* NOVEDADES */
.log { list-style: none; padding: 0; margin: 0; display: grid; }
.log li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 28px; padding-block: 22px; border-top: 0.5px solid var(--rule); }
.log li:last-child { border-bottom: 0.5px solid var(--rule); }
@media (max-width: 640px) { .log li { grid-template-columns: minmax(0, 1fr); } }
.log time { font-family: var(--ff-h); font-size: 18px; color: var(--accent); }
.log h3 { font-family: var(--ff-d); font-size: 25px; font-weight: 500; margin-bottom: 6px; line-height: 1.2; }
.log p { margin: 0; font-size: 15px; }
.watch { margin-top: 36px; }
.watch ul { margin: 10px 0 0; padding-left: 20px; }
.watch li { margin-bottom: 6px; }

/* BANDA FINAL */
.band { background: var(--band); color: var(--on-band); overflow: hidden; }
.band .wrap { padding-block: clamp(64px, 9vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
@media (max-width: 720px) { .band .wrap { grid-template-columns: minmax(0, 1fr); } }
.band h2 { color: var(--on-band); margin: 0 0 10px; font-size: clamp(36px, 6vw, 72px); }
.band p { margin: 0; opacity: 0.78; }
.band .btn { background: var(--cta); color: var(--on-cta); }
.band .btn:hover { background: var(--cta-hover); color: var(--on-cta); }
.band .sk-logo { width: 120px; color: var(--on-band); opacity: 0.85; }

/* FOOTER */
.ftr .wrap { padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .ftr .wrap { grid-template-columns: minmax(0, 1fr); } }
.ftr p { margin: 0 0 10px; }
.ftr .mantra { font-family: var(--ff-d); font-size: 26px; color: var(--ink); line-height: 1.2; }
.ftr nav { display: grid; gap: 6px; align-content: start; }
.ftr h2 { font-family: var(--ff); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 400; margin: 0 0 6px; color: var(--muted); }
.ftr a { color: var(--ink); text-decoration: none; }
.ftr a:hover { color: var(--accent); }

/* ─── GLOSARIO ───────────────────────────────────────────────────────── */
.g-head { padding-block: clamp(36px, 6vw, 80px) 28px; align-items: end; row-gap: 20px; }
.g-head .t { grid-column: 1 / span 7; }
.g-head .s { grid-column: 9 / span 4; }
@media (max-width: 860px) { .g-head .t, .g-head .s { grid-column: 1 / -1; } }
.search { position: relative; display: block; }
.search input { width: 100%; background: var(--card); border: 0; border-radius: 0; padding: 14px 16px; font-size: 15px; min-height: 50px; }
.search input:focus-visible { outline-offset: 4px; }
.search .sk-frame { color: var(--pencil); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 40px; }
.g-count { font-size: 13px; color: var(--muted); margin: -24px 0 28px; min-height: 1.4em; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1100px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 480px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.gallery .dose-card { min-height: 220px; }
@media (max-width: 760px) { .gallery .dose-card .dose-num { font-size: 36px; } }
.dose-card.paused { background: transparent; }
.dose-card.paused .dose-num { font-size: 22px; font-family: var(--ff-h); font-weight: 300; }
.g-sep { font-family: var(--ff-d); font-size: clamp(28px, 3.6vw, 40px); font-weight: 500; margin: 72px 0 8px; }
.g-sep + p { margin-bottom: 24px; }
.empty { padding: 28px 0; font-size: 15px; color: var(--muted); }

/* ─── FICHA ──────────────────────────────────────────────────────────── */
.f-hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 5vw, 72px); align-items: start; row-gap: 32px; }
.f-hero .t { grid-column: 1 / span 7; }
.f-hero .label { grid-column: 9 / span 4; }
@media (max-width: 900px) { .f-hero .t, .f-hero .label { grid-column: 1 / -1; } .f-hero .label { max-width: 460px; } }
.crumbs { font-size: 12.5px; color: var(--muted); margin: 0 0 28px; }
.crumbs a { color: var(--muted); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.label-card { background: var(--card); padding: 24px; }
.label-card .big { display: block; margin: 4px 0 6px; }
.label-card .dose-num { font-size: clamp(56px, 7vw, 76px); }
.label-card .dose-unit { font-size: clamp(26px, 3vw, 34px); margin-left: 6px; }
.label-card .per { font-family: var(--ff-h); font-size: 18px; color: var(--accent); }
.label-card .spec { margin-top: 18px; padding-top: 16px; border-top: 0.5px solid var(--rule); }
.f-body { padding-bottom: 72px; }
.f-body section { padding-block: 34px; border-top: 0.5px solid var(--rule); }
.f-body h2 { font-size: clamp(26px, 3.4vw, 34px); }
.goal-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.goal-list li { font-size: 13.5px; background: var(--tint); border: 0.5px solid var(--rule); border-radius: 8px; padding: 4px 11px; }
.studies { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 22px; counter-reset: st; }
.studies li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 12px; }
.studies li::before { counter-increment: st; content: counter(st); font-family: var(--ff-h); font-size: 22px; color: var(--accent); line-height: 1.3; }
.studies .use { display: block; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.studies p { margin: 0 0 4px; font-size: 15px; }
.studies .cite { font-size: 13.5px; }
.panel { padding: 16px 18px; font-size: 14.5px; line-height: 1.65; }
.panel p { margin: 0; }
.panel-warn { background: var(--warn-bg); color: var(--warn-fg); border-left: 2px solid var(--warn-line); }
.panel-info { background: var(--card); color: var(--ink); position: relative; }
.panel-pause { background: var(--pause-bg); color: var(--pause-fg); }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .related { grid-template-columns: minmax(0, 1fr); } .related .dose-card { min-height: 0; } }
.updated { font-size: 12.5px; color: var(--muted); }
.f-cta { display: flex; gap: 18px 24px; align-items: center; flex-wrap: wrap; }

/* ─── PROSA ──────────────────────────────────────────────────────────── */
.prose { padding-block: clamp(36px, 6vw, 80px) 88px; }
.prose h2 { margin-top: 56px; font-size: clamp(28px, 3.6vw, 38px); }
.prose h3 { margin: 26px 0 8px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 18px; }
.prose table { border-collapse: collapse; font-size: 14px; width: 100%; min-width: 440px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 0.5px solid var(--rule); vertical-align: top; }
.prose th { font-weight: 400; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pending { background: var(--warn-bg); color: var(--warn-fg); padding: 0 4px; }

.disclaimer { font-size: 12px; color: var(--muted); line-height: 1.65; border-top: 0.5px solid var(--rule); padding-top: 18px; margin-top: 40px; }
.disclaimer p { margin: 0 0 8px; }

/* ─── REVELADO AL ENTRAR EN PANTALLA (solo lo que empieza fuera) ─────── */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .rv { opacity: 1; transform: none; }
  body.menu-open .page { transform: none; border-radius: 0; }
  body.menu-open .page { visibility: hidden; }
}
.goal-tab[aria-pressed="true"] { color: var(--on-ink); background: var(--ink); border-color: var(--ink); }
/* Quiz: el círculo del logo se va cerrando con cada pregunta; la línea aparece al llegar al resultado */
.quiz-mark { display: inline-flex; align-items: center; gap: 10px; justify-self: end; }
.qmark { width: 34px; height: 34px; color: var(--ink); }
.qmark .q-track { opacity: 0.18; }
.qmark .q-ring { stroke-width: 1.6; stroke-dasharray: 100; stroke-dashoffset: calc((1 - var(--quiz-p, 0)) * 100); transition: stroke-dashoffset 0.6s var(--ease); }
.qmark .q-line { stroke-width: 1.6; opacity: 0; transition: opacity 0.4s; }
:root[style*="--quiz-p: 1.000"] .qmark .q-line { opacity: 1; }

/* Móvil: filtros en una fila desplazable y fichas compactas */
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 10px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .goal-tab { flex: none; }
  .gallery .dose-card { min-height: 0; padding: 18px; gap: 10px; }
}
/* Por debajo de 860px toda la rejilla editorial pasa a una columna */
@media (max-width: 860px) { .grid12 > * { grid-column: 1 / -1 !important; } }

/* ─── LIBRERÍA (glosario): una estantería a todo el ancho; la ficha sale junto al libro ─── */
.library { position: relative; }
.bookcase { display: flex; flex-wrap: wrap; align-items: stretch; row-gap: 0; padding: 26px 18px 0; background: var(--stone);
  border: 1px solid var(--rule); border-radius: 4px; box-shadow: inset 0 18px 30px -24px rgba(10,30,45,0.25); }
.shelf-sec { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 26px; position: relative; }
.shelf-sec + .shelf-sec::before { content: ''; position: absolute; left: 0; top: 30px; bottom: 54px; width: 1px; background: var(--rule); }
.books { display: flex; align-items: flex-end; gap: 4px; min-height: 352px; padding: 0 16px; border-bottom: 7px solid var(--shelf); box-shadow: 0 12px 16px -12px rgba(10,30,45,0.35); }
.shelf-label { font-family: var(--ff-m); font-size: 10.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 10px 0 0; padding-inline: 16px; }
.book { position: relative; flex: none; width: var(--bw); height: var(--bh); background: var(--bb); color: var(--bf); border-radius: 2px 2px 1px 1px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 14px 0 12px; text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.3s, filter 0.3s; transform-origin: bottom center; }
.book::before, .book::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; opacity: 0.3; }
.book::before { top: 9px; } .book::after { bottom: 34px; }
.book:hover, .book:focus-visible, .book.open { transform: translateY(-22px); color: var(--bf); }
.book:focus-visible { outline-offset: 4px; }
.book-title { writing-mode: vertical-rl; transform: rotate(180deg); line-height: 1; white-space: nowrap; overflow: hidden; max-height: calc(var(--bh) - 64px); }
.book-mark { width: 15px; height: 15px; flex: none; }
.book-mark circle, .book-mark line { stroke-width: 1.6; }
.book.paused { background: repeating-linear-gradient(-45deg, transparent 0 7px, rgba(0,0,0,0.07) 7px 9px), #CFD3D6; color: #3E4549; padding-top: 34px; }
.book.paused::after { bottom: auto; top: 18px; height: 8px; opacity: 1; background: #B8452E; }
.book.dim { opacity: 0.16; filter: grayscale(0.8); pointer-events: none; }

/* La ficha que sale del libro */
.peek { position: absolute; z-index: 20; width: min(340px, calc(100% - 8px)); background: var(--white); border: 1px solid var(--rule); border-radius: 4px;
  padding: 22px 22px 20px; box-shadow: 0 24px 50px -20px rgba(10,30,45,0.35), 0 4px 12px -6px rgba(10,30,45,0.15);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.98); transition: opacity 0.22s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s; pointer-events: none; }
.peek.on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.22s ease, transform 0.3s var(--ease), visibility 0s; pointer-events: auto; }
.peek[data-side="right"] { transform-origin: left center; } .peek[data-side="left"] { transform-origin: right center; }
.pk-name { font-family: var(--ff-d); font-weight: 300; font-size: 30px; line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; }
.pk-d { font-size: 14.5px; margin: 12px 0 14px; }
.peek .spec { font-size: 13px; gap: 4px 14px; margin: 0 0 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.peek .goal-list { margin: 0 0 18px; }
.peek .goal-list li { font-size: 12px; }
.peek .btn { min-height: 42px; padding: 10px 20px; }
@media (hover: none), (max-width: 760px) { .peek { display: none; } }
@media (max-width: 640px) {
  .bookcase { padding: 18px 6px 0; }
  .books { min-height: 0; padding: 0 10px; flex-wrap: wrap; row-gap: 10px; }
  .shelf-sec { min-width: 0; max-width: 100%; }
  .book { width: calc(var(--bw) * 0.84); }
  .shelf-sec + .shelf-sec::before { display: none; }
}


/* ─── v4 CLÍNICO: sin trazo a mano, bordes nítidos, etiquetas mono ───── */
.sk-frame, .sk-underline, .sk-ring, .sk-arrow { display: none !important; }
.sk { border: 1px solid var(--rule); border-radius: 4px; }
.dose-card { border-radius: 4px; transition: transform 0.4s var(--ease), border-color 0.25s, box-shadow 0.4s var(--ease); }
.dose-card:hover { border-color: var(--forest-ink); box-shadow: 0 14px 30px -18px var(--disc-shadow); }
.search.sk { border-radius: 2px; overflow: hidden; }
.search input { background: var(--white); }
.link-hand { border-bottom: 1px solid var(--pencil); padding: 4px 0 3px; transition: border-color 0.2s, color 0.2s; }
.link-hand:hover { border-color: var(--forest-ink); color: var(--forest-ink); }
.btn { border-radius: 2px; letter-spacing: 0.03em; }
h1, .h1, h2, .h2 { font-family: var(--ff-d); font-weight: 300; letter-spacing: -0.032em; }
.hero .h1 em { font-style: normal; font-weight: 300; color: var(--soft); }
.hand { font-family: var(--ff-d); font-style: normal; font-weight: 300; }
.eyebrow, .why, .spec dt, .tgt, .shelf-label, .studies .use, .crumbs, .prog-label, .group-title, .g-count, .ftr h2,
.dose-card .tgt, .label-card .per, .figures span, .hero-facts li, .scale-row .def, .menu-foot, .menu-close, .menu-btn, .notice {
  font-family: var(--ff-m); letter-spacing: 0.06em; }
.eyebrow, .why, .spec dt, .tgt, .shelf-label, .studies .use, .group-title, .ftr h2 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }
.hero-facts li, .figures span, .scale-row .def { font-size: 12px; letter-spacing: 0.02em; }
.label-card .per { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--forest-ink); }
.log time, .anno-notes .num, .cue, .studies li::before { font-family: var(--ff-m) !important; font-size: 12px !important; letter-spacing: 0.06em; color: var(--forest-ink); }
.studies li::before { content: counter(st, decimal-leading-zero); padding-top: 3px; }
.logo { font-family: var(--ff-logo); font-weight: 400; }
.ftr .mantra { font-family: var(--ff-d); font-weight: 300; letter-spacing: -0.02em; }
.figures b, .hero-facts b, .scale-row .n, .dose-num { font-family: var(--ff-d); font-weight: 300; letter-spacing: -0.03em; }
.promise h3, .log h3, .rule h3 { font-family: var(--ff-d); font-weight: 400; letter-spacing: -0.015em; }
.menu nav a { font-family: var(--ff-d); font-weight: 300; letter-spacing: -0.03em; }
.panel, .label-card, .result-card, .goal-list li, .chips li { border-radius: 4px; }
.panel-info.sk { background: var(--white); }
.scale-row .sk-bar { color: var(--forest-ink); height: 14px; }
.on-dark .scale-row .sk-bar { color: var(--on-forest); }
.goal-tab { border-radius: 2px; font-size: 12.5px; }
.badge { border-radius: 2px; }
.label-card { background: linear-gradient(180deg, var(--white), color-mix(in srgb, var(--white) 70%, var(--stone))); }
/* Lomos de acero, vidrio y agua */
.book { background: var(--bb); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.35); }
.book:hover, .book:focus-visible, .book.open { box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 16px 24px -12px rgba(10,30,45,0.4); }
.book-title { font-family: var(--ff-m); font-weight: 400; font-size: 12px; letter-spacing: 0.14em; }
.book::before, .book::after { opacity: 0.28; }
/* Quiz */
.opt, .card, .more-item, .stop-box, .empty, .tab, .btn-remove, .removed button { border-radius: 4px !important; }

/* ═══ v5 · componentes visuales: iconos, medidor de evidencia, fichas ═══ */
.ico { width: 22px; height: 22px; flex: none; display: block; }
.ev-meter { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-m); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.ev-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.ev-bars i { display: block; width: 4px; border-radius: 1px; background: color-mix(in srgb, var(--ink) 16%, transparent); }
.ev-bars i:nth-child(1) { height: 5px; } .ev-bars i:nth-child(2) { height: 8.5px; } .ev-bars i:nth-child(3) { height: 12px; }
.ev-solid .ev-bars i.on { background: var(--solid-fg); }
.ev-promising .ev-bars i.on { background: var(--prom-fg); }
.ev-experimental .ev-bars i.on { background: var(--exp-fg); }
.ev-lg { font-size: 12px; gap: 12px; } .ev-lg .ev-bars { height: 22px; gap: 3px; }
.ev-lg .ev-bars i { width: 7px; } .ev-lg .ev-bars i:nth-child(1) { height: 9px; } .ev-lg .ev-bars i:nth-child(2) { height: 15px; } .ev-lg .ev-bars i:nth-child(3) { height: 22px; }

/* Ficha · cabecera */
.f-hero .badges { align-items: center; gap: 12px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.crumbs .ico { width: 15px; height: 15px; }
.label-card { position: relative; padding: 28px 26px 22px; border: 0.5px solid var(--rule); box-shadow: 0 1px 0 var(--rule), 0 18px 40px -28px rgba(10, 30, 45, 0.35); overflow: hidden; }
.label-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--bb); }
.label-card .dose-txt { font-size: 16px; margin: 8px 0 0; }
.facts { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 0.5px solid var(--rule); display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; }
.facts .ico { color: var(--accent); margin-top: 1px; }
.facts b { display: block; font-family: var(--ff-m); font-weight: 400; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.facts span { font-size: 14px; line-height: 1.5; }
.dose-full { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 16px 0 0; padding-top: 12px; border-top: 0.5px dashed var(--rule); }

/* Ficha · cuerpo con índice lateral */
.f-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-bottom: 80px; }
.f-rail { position: sticky; top: 96px; }
.f-rail ol { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; gap: 2px; border-left: 0.5px solid var(--rule); }
.f-rail li { counter-increment: r; }
.f-rail a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1.5px solid transparent; font-size: 13px; color: var(--muted); text-decoration: none; }
.f-rail a::before { content: counter(r, decimal-leading-zero); font-family: var(--ff-m); font-size: 10.5px; margin-right: 10px; opacity: .7; }
.f-rail a:hover, .f-rail a.on { color: var(--ink); border-left-color: var(--accent); }
.f-body { max-width: 760px; padding-bottom: 0; }
.f-body section { padding-block: 40px; border-top: 0.5px solid var(--rule); scroll-margin-top: 90px; }
.f-body section:first-child { border-top: 0; padding-top: 6px; }
.sec-n { font-family: var(--ff-m); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.f-body h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.f-body p { max-width: 40em; }
.big-p { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; }
@media (max-width: 900px) { .f-layout { grid-template-columns: minmax(0, 1fr); } .f-rail { display: none; } }

.goal-tiles { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.goal-tiles li { display: grid; gap: 14px; align-content: space-between; min-height: 104px; padding: 16px; background: var(--card); border: 0.5px solid var(--rule); font-size: 14px; line-height: 1.35; }
.goal-tiles .ico { width: 26px; height: 26px; color: var(--accent); }

.ev-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 18px; background: var(--card); border: 0.5px solid var(--rule); margin-bottom: 22px; }
.ev-head p { margin: 0; }
@media (max-width: 520px) { .ev-head { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.st-grid { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.st-card { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 18px 18px 16px; background: var(--card); border: 0.5px solid var(--rule); }
.st-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.st-year { font-family: var(--ff-d); font-weight: 300; font-size: 34px; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.st-use { font-family: var(--ff-m); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: right; line-height: 1.4; }
.st-card p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.st-cite { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; padding-top: 12px; border-top: 0.5px solid var(--rule); text-decoration: none; color: var(--ink); }
a.st-cite span { text-decoration: underline; text-decoration-thickness: 0.5px; text-underline-offset: 3px; }
.st-cite .ico { width: 16px; height: 16px; color: var(--accent); margin-top: 1px; }
.st-cite em { font-style: normal; color: var(--muted); }
.nota { margin: 26px 0 0; padding: 20px 22px; border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.nota .why { color: var(--accent); }
.nota p:last-child { margin: 0; font-size: 16px; line-height: 1.6; }

.checks, .cautions { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 44em; }
.checks li, .cautions li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; background: var(--card); border: 0.5px solid var(--rule); font-size: 15px; line-height: 1.55; }
.checks .ico { color: var(--solid-fg); }
.cautions li { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-fg); }
.cautions .ico { color: var(--warn-fg); width: 20px; height: 20px; margin-top: 1px; }

.rel-sec .sec-n { margin-bottom: 22px; }
.mini-shelf { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-end; padding: 22px 22px 0; background: linear-gradient(var(--tint), var(--tint)); border-bottom: 7px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.mini-book { display: grid; grid-template-columns: auto auto; gap: 0 14px; align-items: end; text-decoration: none; color: var(--ink); }
.mini-book .book { --bh: 170px !important; transform: none; transition: transform .4s var(--ease); grid-row: 1 / span 2; }
.mini-book:hover .book { transform: translateY(-10px); }
.mini-book .book-title { font-size: 11px; }
.mb-n { font-size: 14px; line-height: 1.3; max-width: 9em; align-self: end; }
.mini-book .ev-meter { margin: 6px 0 14px; }
.book-static { pointer-events: none; }
.f-cta { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; padding: 40px 0 8px; border-top: 0.5px solid var(--rule); }
/* ajustes ficha */
.f-body { max-width: 880px; }
.f-hero { padding-bottom: clamp(32px, 4vw, 56px); }
.checks, .cautions { gap: 0; border: 0.5px solid var(--rule); background: var(--card); }
.checks li, .cautions li { border: 0; border-top: 0.5px solid var(--rule); background: transparent; }
.checks li:first-child, .cautions li:first-child { border-top: 0; }
.cautions { background: var(--warn-bg); border-color: var(--warn-line); }
.cautions li { border-top-color: var(--warn-line); }
@media (max-width: 640px) {
  .mini-shelf { flex-wrap: nowrap; overflow-x: auto; gap: 22px; scroll-snap-type: x mandatory; }
  .mini-book { flex: none; scroll-snap-align: start; }
  .st-year { font-size: 28px; }
}
.back-res { margin-right: 14px; padding: 5px 12px 5px 9px; border: 0.5px solid var(--accent); border-radius: 999px; color: var(--accent) !important; }
.has-res .crumbs-lib .ico { display: none; }
.goal-tab { display: inline-flex; align-items: center; gap: 8px; }
.goal-tab .ico { width: 17px; height: 17px; color: var(--accent); }
.goal-tab[aria-pressed="true"] .ico { color: inherit; }
.peek .badges { align-items: center; gap: 10px; }
.mini-shelf, .mini-book, .ev-meter { position: relative; }

/* ═══ DOSIS v6 — editorial: blanco, tinta, filetes y cinco colores planos ═══
   Referencias: retícula de filetes (Farago), barras gruesas y tablas de datos (USPS), serif de contraste (July 01).
   Esta capa va después de site.css y redefine tokens y componentes. */
:root {
  --paper: #FFFFFF; --stone: #F3F3F1; --white: #FFFFFF; --ink: #111111; --soft: #5F5F5B;
  --forest: #111111; --forest-ink: #111111; --on-forest: #FFFFFF;
  --cta: #111111; --cta-hover: #000000; --on-cta: #FFFFFF;
  --bg: var(--paper); --card: var(--white); --accent: var(--ink); --muted: var(--soft);
  --rule: rgba(17, 17, 17, 0.14); --line: #111111;
  --band: #111111; --on-band: #FFFFFF; --menu-bg: #111111; --on-menu: #FFFFFF;
  /* cinco estantes */
  --f-base: #7FD1A6; --f-calma: #8EB7F4; --f-energia: #F5D23F; --f-cuerpo: #F49DBB; --f-equilibrio: #F6874F;
  --ink-on-color: #111111;
  --warn-bg: #FFF3E8; --warn-line: rgba(140, 70, 20, 0.35); --warn-fg: #6B3410;
  --solid-fg: #111111; --prom-fg: #111111; --exp-fg: #111111;
  --ff-serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --shelf: #111111;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #0F0F0F; --stone: #181818; --white: #161616; --ink: #F1F1EC; --soft: #A6A6A0;
  --forest: #000000; --on-forest: #F1F1EC; --cta: #F1F1EC; --cta-hover: #FFFFFF; --on-cta: #0F0F0F;
  --rule: rgba(241, 241, 236, 0.16); --line: #F1F1EC; --band: #000000; --on-band: #F1F1EC; --menu-bg: #000000;
  --warn-bg: rgba(246, 135, 79, 0.10); --warn-line: rgba(246, 135, 79, 0.35); --warn-fg: #F8B994;
  --solid-fg: #F1F1EC; --prom-fg: #F1F1EC; --exp-fg: #F1F1EC; --shelf: #F1F1EC;
} }
:root[data-theme="dark"] {
  --paper: #0F0F0F; --stone: #181818; --white: #161616; --ink: #F1F1EC; --soft: #A6A6A0;
  --forest: #000000; --on-forest: #F1F1EC; --cta: #F1F1EC; --cta-hover: #FFFFFF; --on-cta: #0F0F0F;
  --rule: rgba(241, 241, 236, 0.16); --line: #F1F1EC; --band: #000000; --on-band: #F1F1EC; --menu-bg: #000000;
  --warn-bg: rgba(246, 135, 79, 0.10); --warn-line: rgba(246, 135, 79, 0.35); --warn-fg: #F8B994;
  --solid-fg: #F1F1EC; --prom-fg: #F1F1EC; --exp-fg: #F1F1EC; --shelf: #F1F1EC;
}

/* ─── Base y tipo ─── */
body { font-weight: 400; }
h1, .h1, h2, .h2 { font-family: var(--ff-d); font-weight: 400; letter-spacing: -0.04em; }
.lead { font-weight: 400; }
mark { background: var(--fam, var(--f-energia)); color: var(--ink-on-color); padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lab { display: block; font-family: var(--ff-m); font-size: 10.5px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.eyebrow { font-family: var(--ff-m); }

/* ─── Botones: píldoras ─── */
.btn { border-radius: 999px; min-height: 46px; padding: 12px 24px; font-weight: 500; letter-spacing: 0; }
.btn-primary, .band .btn { background: var(--cta); color: var(--on-cta); }
.btn-primary:hover { background: var(--cta-hover); color: var(--on-cta); }
.pill { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-family: var(--ff-m); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ─── Cabecera ─── */
.notice { font-family: var(--ff-m); font-size: 11.5px; letter-spacing: 0.04em; }
.hdr { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid var(--line); }
.hdr.scrolled { box-shadow: none; }
.hdr-cta { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; text-decoration: none; font-size: 13.5px; line-height: 1.2; }
.hdr-cta:hover { background: var(--ink); color: var(--bg); }
.hdr-cta .sk-underline { display: none; }

/* ─── Intro: tinta plana, sin cristal ni acero ─── */
.im-disc, .im-sheen { display: none; }
.im-ripple { stroke: var(--ink); }
.im-drop { fill: var(--ink); }
.im-inner { stroke: var(--ink); }

/* ─── Medidor de evidencia en tinta ─── */
.ev-meter .ev-bars i.on { background: var(--ink); }
.ev-xl { display: grid; gap: 10px; justify-items: start; }
.ev-xl .ev-bars { height: 46px; gap: 5px; }
.ev-xl .ev-bars i { width: 12px; border-radius: 0; }
.ev-xl .ev-bars i:nth-child(1) { height: 18px; } .ev-xl .ev-bars i:nth-child(2) { height: 31px; } .ev-xl .ev-bars i:nth-child(3) { height: 46px; }
.ev-xl .ev-l { font-family: var(--ff-d); font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.035em; text-transform: none; line-height: 1; }

/* ─── Ledger: celdas con filete negro (Farago) ─── */
.ledger { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.ledger > * { background: var(--bg); padding: 14px 16px 16px; min-width: 0; }
.ledger b { font-weight: 500; font-size: 14px; }
@media (max-width: 760px) { .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ─── Marquee (USPS) ─── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); margin: clamp(48px, 6vw, 84px) 0; }
.mq-track { display: flex; width: max-content; animation: mq 60s linear infinite; }
.mq-track span { font-family: var(--ff-d); font-size: clamp(60px, 10.5vw, 156px); line-height: 1.08; letter-spacing: -0.045em; white-space: nowrap; padding-right: 0.22em; }
.mq-track .mq-sep { color: var(--fam, var(--ink)); }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }

/* ─── Collage ─── */
.collage { position: relative; aspect-ratio: 4 / 5; margin: 0; width: 100%; color: var(--ink); }
.cl-block { position: absolute; left: 12%; top: 13%; width: 60%; height: 68%; background: var(--fam); }
.cl-img { position: absolute; right: 0; top: 0; width: 76%; height: 90%; object-fit: contain; object-position: 50% 40%; mix-blend-mode: multiply; }
.cl-detail { position: absolute; left: 0; bottom: 3%; width: 40%; aspect-ratio: 1; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.cl-detail img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; transform: scale(1.7); transform-origin: 50% 26%; mix-blend-mode: multiply; }
.cl-mol { display: grid; place-items: center; background: var(--bg); }
.mol { width: 94%; height: auto; }
.mol text { font-family: var(--ff-m); font-size: 13px; fill: currentColor; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: var(--bg); stroke-width: 7px; stroke-linejoin: round; }
.mol .mol-mg { font-size: 19px; font-weight: 500; }
.cl-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.cl-t text { font-family: var(--ff-m); font-size: 10px; letter-spacing: 0.1em; fill: currentColor; }
.cl-latin { position: absolute; right: -2px; bottom: 16%; writing-mode: vertical-rl; font-family: var(--ff-serif); font-style: italic; font-size: 15px; line-height: 1; white-space: nowrap; }
.cl-type .cl-initial { position: absolute; left: 12%; top: 13%; width: 60%; height: 68%; display: grid; place-items: center; font-family: var(--ff-serif); font-size: clamp(130px, 17vw, 250px); line-height: 1; color: var(--ink-on-color); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cl-img, :root:not([data-theme="light"]) .cl-detail img, :root:not([data-theme="light"]) .tile6 img { filter: invert(1); mix-blend-mode: screen; } }
:root[data-theme="dark"] .cl-img, :root[data-theme="dark"] .cl-detail img, :root[data-theme="dark"] .tile6 img { filter: invert(1); mix-blend-mode: screen; }

/* ─── Ficha v6 ─── */
.f6 .lg-top { margin-top: clamp(20px, 3vw, 32px); }
.f6 .lg-top a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; font-weight: 500; }
.f6 .lg-top .ico { width: 15px; height: 15px; }
.f6 .back-res { margin-right: 12px; padding: 2px 10px 2px 8px; background: var(--ink); color: var(--bg) !important; border-radius: 999px; border: 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--fam); margin-right: 8px; vertical-align: 0; box-shadow: 0 0 0 1px var(--line); }
.f6-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(36px, 5vw, 72px) clamp(28px, 4vw, 48px); }
.f6-title h1 { margin: 0 0 22px; }
.f6-name { display: block; font-family: var(--ff-serif); font-weight: 400; letter-spacing: -0.025em; line-height: 0.9;
  font-size: min(156px, calc(1280px / var(--nl)), calc((100vw - 44px) / (var(--nl) * 0.62))); font-variation-settings: 'opsz' 96; text-wrap: balance; }
.f6-paren { display: block; font-family: var(--ff-d); font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -0.02em; margin-top: 14px; }
.f6-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 30em; margin: 0; }
.f6-tags { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
@media (max-width: 860px) { .f6-hero { grid-template-columns: minmax(0, 1fr); } .f6-hero .collage { max-width: 420px; justify-self: center; width: 92%; } }
.lg-spec .big { display: block; font-family: var(--ff-d); font-size: clamp(40px, 4.6vw, 62px); letter-spacing: -0.045em; line-height: 1; }
.lg-spec .big small { font-size: 0.4em; letter-spacing: 0; margin-left: 5px; }
.lg-spec .per { display: block; font-family: var(--ff-m); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 8px; }
.lg-spec .ic { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.lg-spec .ic .ico { width: 20px; height: 20px; }
.lg-spec .ic b { font-size: 15px; }
.lg-spec .txt { display: block; font-size: 14px; line-height: 1.5; }
.lg-dose { background: var(--fam) !important; color: var(--ink-on-color); }
.lg-dose .lab { color: inherit; opacity: 0.75; }
.lg-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

.f6-body { padding-bottom: 24px; }
.s6 { padding-bottom: clamp(48px, 6vw, 84px); scroll-margin-top: 90px; }
.s6-head { display: flex; align-items: baseline; gap: 14px; border-bottom: 6px solid var(--line); padding-bottom: 10px; margin-bottom: 28px; }
.s6-head h2 { font-size: clamp(19px, 1.8vw, 23px); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.s6-n { font-family: var(--ff-m); font-size: 11px; color: var(--muted); }
.p-big { font-family: var(--ff-d); font-size: clamp(22px, 2.3vw, 31px); line-height: 1.32; letter-spacing: -0.018em; max-width: 30em; margin: 0; }
.s6-intro { max-width: 40em; margin: 0 0 20px; }
.kick { display: block; font-family: var(--ff-m); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.lg-goals { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.lg-goals li { display: grid; gap: 26px; align-content: space-between; min-height: 116px; font-size: 15px; line-height: 1.35; }
.lg-goals .ico { width: 28px; height: 28px; }
.ev6 { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.ev6-l p { font-size: 13.5px; color: var(--muted); margin: 16px 0 0; max-width: 22em; }
@media (max-width: 760px) { .ev6 { grid-template-columns: minmax(0, 1fr); } }
.t6 { width: 100%; border-collapse: collapse; margin-top: clamp(32px, 4vw, 52px); border-top: 6px solid var(--line); font-size: 14.5px; }
.t6 th { text-align: left; font-weight: 500; font-size: 13px; padding: 12px 18px 12px 0; border-bottom: 1px solid var(--line); }
.t6 td { padding: 16px 18px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; line-height: 1.5; }
.t6-y { font-family: var(--ff-d); font-size: 30px; letter-spacing: -0.035em; line-height: 1 !important; width: 84px; }
.t6-u { font-family: var(--ff-m); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); width: 20%; }
.t6-s { width: 24%; font-size: 13px; }
.t6-s a { font-weight: 500; }
.t6-s span { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
@media (max-width: 720px) {
  .t6 thead { display: none; }
  .t6, .t6 tbody, .t6 tr, .t6 td { display: block; width: auto !important; }
  .t6 tr { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .t6 td { border: 0; padding: 0; }
  .t6-y { grid-row: span 3; }
}
.nota6 { margin-top: clamp(28px, 4vw, 44px); background: var(--fam); color: var(--ink-on-color); padding: 24px 26px 26px; max-width: 760px; }
.nota6 .lab { color: inherit; opacity: 0.75; }
.nota6 p { margin: 0; font-family: var(--ff-d); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; letter-spacing: -0.01em; }
.s6-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
@media (max-width: 760px) { .s6-pair { grid-template-columns: minmax(0, 1fr); } }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
.rows li:first-child { padding-top: 0; }
.rows .ico { width: 20px; height: 20px; margin-top: 1px; }
.rows-warn .ico { color: var(--f-equilibrio); }
.rel6 .mini-shelf { background: none; padding: 0; border-bottom: 6px solid var(--line); }
.cta6 { background: var(--fam); color: var(--ink-on-color); }
.cta6 .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-block: clamp(44px, 6vw, 80px); }
.cta6-t { font-family: var(--ff-d); font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.045em; line-height: 1; margin: 0; }
.cta6-t span { display: block; font-size: 0.32em; letter-spacing: -0.01em; margin-top: 12px; opacity: 0.8; }
.cta6 .btn-primary { background: #111; color: #fff; }
.f6-foot { padding-block: 28px 64px; }
.f6-foot .updated { font-size: 12px; color: var(--muted); max-width: 60em; }

/* ─── Librería: lomos planos por estante ─── */
.bookcase { background: none; padding: 26px 0 0; border: 0; box-shadow: none; }
.books { border-bottom: 6px solid var(--line); box-shadow: none; }
.shelf-sec + .shelf-sec::before { background: var(--rule); }
.book { border-radius: 0; box-shadow: inset 0 0 0 1px var(--line); }
.book:hover, .book:focus-visible, .book.open { box-shadow: inset 0 0 0 1px var(--line), 6px 6px 0 var(--line); }
.book-title { font-size: 11.5px; }
.peek { border: 1px solid var(--line); border-radius: 0; box-shadow: 8px 8px 0 var(--line); background: var(--bg); }
.goal-tab { border-radius: 999px; border-color: var(--line); color: var(--ink); }
.goal-tab[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.search input { border: 1px solid var(--line); border-radius: 999px; padding-inline: 20px; }
.search .sk-frame { display: none; }

/* ─── Portada ─── */
.mq-home { margin-top: 0; }
.home6 { padding-bottom: clamp(64px, 8vw, 120px); }
.home6-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.home6-t h2 { font-size: clamp(46px, 6.4vw, 96px); line-height: 0.96; letter-spacing: -0.05em; margin: 8px 0 24px; }
.home6-t p { font-size: clamp(17px, 1.4vw, 19px); max-width: 28em; margin: 0 0 26px; }
.home6-t .small { font-size: 13px; margin: 14px 0 0; }
.home6-art { position: relative; aspect-ratio: 400 / 440; margin: 0; color: var(--ink); }
.tile6 { position: absolute; background: var(--fam); overflow: hidden; }
.tile6 img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; display: block; }
.t-a { left: 24%; top: 7%; width: 46%; height: 58%; } .t-a img { object-position: 50% 25%; }
.t-b { right: 0; top: 36%; width: 33%; height: 40%; }
.t-c { left: 0; bottom: 0; width: 54%; height: 30%; } .t-c img { object-position: 50% 35%; }
.t-d { left: 0; top: 18%; width: 20%; height: 44%; } .t-d img { object-position: 12% 50%; }
.t-e { right: 6%; top: 3%; width: 12%; height: 24%; }
.h6-axis { position: absolute; top: 47%; left: -14%; right: -4%; height: 1px; background: var(--line); display: flex; justify-content: space-between; z-index: 2; }
.h6-axis i { font-style: normal; font-family: var(--ff-m); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--bg); padding: 0 10px; transform: translateY(-50%); height: max-content; }
@media (max-width: 860px) { .home6-grid { grid-template-columns: minmax(0, 1fr); } .h6-axis { left: 0; right: 0; } }
.lg-figs { margin-top: clamp(56px, 7vw, 96px); }
.lg-figs .big { display: block; font-family: var(--ff-d); font-size: clamp(42px, 5vw, 76px); letter-spacing: -0.05em; line-height: 1; margin-bottom: 14px; }
.lg-figs .lab { margin: 0; }

/* ─── Resultado del quiz: celdas cuadradas y filetes ─── */
.rc, .day, .tk, .more-item, .panel, .empty, .rc-tiles, .stop-box { border-radius: 0 !important; }
.rc, .day, .tk, .more-item { border: 1px solid var(--line) !important; }
.rc::before { width: 8px; }
.rc-tiles { border: 1px solid var(--line); background: var(--line); }
.opt { border-radius: 0; border: 1px solid var(--line); }
.opt[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.opt[aria-pressed="true"] .opt-desc { color: inherit; opacity: 0.75; }
.opt[aria-pressed="true"] .mark { background: var(--bg); border-color: var(--bg); }
.opt[aria-pressed="true"] .mark svg path { stroke: var(--ink); }
.res-head h1 em { color: inherit; }
.chips li, .rc-ficha, .seg { border-color: var(--line); }

/* ─── Pie ─── */
.ftr { background: var(--band); color: var(--on-band); }
.ftr a { color: inherit; }
/* ajustes v6.1 */
.lg-goals { background: none; border: 0; gap: 0; }
.lg-goals li { border: 1px solid var(--line); margin: 0 -1px -1px 0; background: var(--bg); }
.ftr, .ftr p, .ftr .mantra, .ftr h2 { color: var(--on-band); }
.ftr p, .ftr h2 { opacity: 0.72; }
.ftr .mantra { opacity: 1; font-family: var(--ff-serif); font-size: 30px; letter-spacing: -0.02em; }
.cl-latin { right: auto; left: 1%; top: 15%; bottom: auto; transform: rotate(180deg); }
.lg-spec .big { white-space: nowrap; font-size: clamp(34px, 3.7vw, 54px); }
.mol text { font-size: 15px; } .mol .mol-mg { font-size: 21px; }
.search { border: 0 !important; background: none; }

/* ═══ v6.2 · color en todas las páginas ═══ */
.serif { font-family: var(--ff-serif); font-weight: 400; letter-spacing: -0.02em; font-variation-settings: 'opsz' 96; }
/* Barra de control de color: los cinco estantes */
.cbar { display: flex; gap: 0; margin: 0 0 22px; }
.cbar span { display: grid; gap: 6px; }
.cbar i { display: block; width: 44px; height: 18px; background: var(--fam); }
.cbar em { font-style: normal; font-family: var(--ff-m); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-right: 8px; white-space: nowrap; }
@media (max-width: 520px) { .cbar i { width: 34px; } .cbar em { display: none; } }
.ftr .cbar { margin: 18px 0 22px; } .ftr .cbar em { color: inherit; opacity: 0.6; }

/* Cabecera de página */
.ph6 { padding-bottom: clamp(36px, 5vw, 64px); }
.ph6 .lg-top { margin-top: clamp(20px, 3vw, 32px); }
.ph6-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding-top: clamp(36px, 5vw, 72px); }
.ph6-t h1 { font-size: clamp(54px, 8.4vw, 132px); line-height: 0.92; letter-spacing: -0.05em; margin: 10px 0 26px; }
.ph6-t h1 .serif { letter-spacing: -0.025em; }
.ph6-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 30em; margin: 0; }
.ph6-art .collage { max-width: 440px; margin-left: auto; }
@media (max-width: 860px) { .ph6-grid { grid-template-columns: minmax(0, 1fr); } .ph6-art .collage { max-width: 340px; margin: 0 auto; } }

/* Qué es Dosis */
.story6-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); }
.story6-q { font-family: var(--ff-d); font-size: clamp(36px, 4.6vw, 68px); line-height: 1; letter-spacing: -0.045em; margin: 0; }
.story6-a p { font-size: 17px; max-width: 36em; margin: 0 0 16px; }
.story6-a .p-big { font-size: clamp(24px, 2.4vw, 32px); margin: 26px 0; }
@media (max-width: 760px) { .story6-grid { grid-template-columns: minmax(0, 1fr); } }
.shelves6 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 28px; }
.shelves6 li, .evl6 li, .blocks6 li, .tiers6 li { display: grid; gap: 10px; align-content: start; padding: 0 0 18px; }
.shelves6 .sw, .blocks6 .sw { display: block; height: clamp(90px, 10vw, 150px); background: var(--fam); margin-bottom: 6px; }
.shelves6 b, .blocks6 b, .tiers6 b { font-family: var(--ff-d); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; padding-inline: 16px; }
.shelves6 .n, .evl6 .n, .blocks6 .n { font-family: var(--ff-m); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-inline: 16px; }
.shelves6 .t, .evl6 .t, .blocks6 .t { font-size: 13.5px; line-height: 1.5; color: var(--muted); padding-inline: 16px; }
@media (max-width: 900px) { .shelves6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.evl6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.evl6 li { padding: 20px 0 22px; }
.evl6 .ev-meter { padding-inline: 16px; }
@media (max-width: 760px) { .evl6 { grid-template-columns: minmax(0, 1fr); } }
.s6 .lg-figs { margin-top: 28px; }
.promise6 li { padding: 0 18px 20px; border-top: 10px solid var(--fam); }
.promise6 h3 { font-family: var(--ff-d); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin: 18px 0 8px; }
.promise6 p { font-size: 14.5px; margin: 0; color: var(--muted); }
.anno6-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.anno6-grid > div > p { max-width: 30em; }
.anno6-grid .p-big { margin-bottom: 18px; }
@media (max-width: 960px) { .anno6-grid { grid-template-columns: minmax(0, 1fr); } }
.anno6-card { border: 1px solid var(--line); position: relative; }
.anno6-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--fam); }
.ac-head { display: flex; gap: 14px; align-items: flex-start; padding: 20px 20px 16px 28px; }
.ac-head h3 { font-family: var(--ff-d); font-size: 24px; font-weight: 400; letter-spacing: -0.02em; margin: 0 0 6px; }
.anno6-card .rc-n { font-family: var(--ff-d); font-size: 38px; line-height: 0.9; letter-spacing: -0.04em; }
.ac-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 14px 20px 14px 28px; border-top: 1px solid var(--rule); font-size: 14px; }
.ac-row p { margin: 0; line-height: 1.55; }
.ac-warn { background: var(--warn-bg); color: var(--warn-fg); }
.ac-warn .lab { color: inherit; }
.cue { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fam); color: var(--ink-on-color); font-family: var(--ff-m); font-size: 11px; flex: none; }
.anno6-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.anno6-notes li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; font-size: 15.5px; line-height: 1.45; }

/* Novedades */
.log6 { list-style: none; margin: 0; padding: 0; }
.log6 li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); padding: 26px 0; border-bottom: 1px solid var(--rule); }
.log6 li:first-child { padding-top: 0; }
.log6 time { display: grid; align-content: start; }
.log6 .d { font-family: var(--ff-serif); font-size: clamp(56px, 6vw, 84px); line-height: 0.85; }
.log6 .m { font-family: var(--ff-m); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 8px; }
.log6 .tag { display: inline-block; background: var(--fam); color: var(--ink-on-color); font-family: var(--ff-m); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.log6 h3 { font-family: var(--ff-d); font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.15; margin: 12px 0 10px; }
.log6 p { margin: 0; max-width: 44em; }
@media (max-width: 600px) { .log6 li { grid-template-columns: 70px minmax(0, 1fr); } }
.watch6 { list-style: none; margin: 0; padding: 0; background: var(--f-equilibrio); color: var(--ink-on-color); }
.watch6 li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 18px 22px; border-top: 1px solid rgba(17, 17, 17, 0.25); font-size: 16px; }
.watch6 li:first-child { border-top: 0; }
.watch6 .ico { width: 20px; height: 20px; }

/* Cómo funciona */
.blocks6 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 30px 0 26px; }
.blocks6 .sw { height: 64px; }
.blocks6 b { font-size: 18px; }
@media (max-width: 900px) { .blocks6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cols6 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); }
.cols6 p { margin: 0 0 12px; }
@media (max-width: 760px) { .cols6 { grid-template-columns: minmax(0, 1fr); } }
.tiers6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiers6 li { padding: 0 0 20px; border-top: 10px solid var(--fam); }
.tiers6 .big { font-family: var(--ff-serif); font-size: clamp(72px, 8vw, 120px); line-height: 0.9; padding: 18px 16px 0; }
.tiers6 .dots { display: flex; gap: 6px; padding-inline: 16px; }
.tiers6 .dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--fam); box-shadow: inset 0 0 0 1px var(--line); }
.tiers6 .dots i.adv { background: var(--ink); }
.tiers6 p { margin: 0; padding-inline: 16px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 760px) { .tiers6 { grid-template-columns: minmax(0, 1fr); } }
.s6-after { max-width: 46em; margin: 22px 0 0; }
.rules6 li { font-size: 17px; }
.rules6 .ico { color: var(--f-base); }
.safety6 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.stop6 { background: var(--fam); color: var(--ink-on-color); padding: 22px 24px 24px; }
.stop6 .lab { color: inherit; opacity: 0.75; }
.stop6 .p-big { margin: 0 0 12px; }
.stop6 p:last-child { margin: 0; }
@media (max-width: 760px) { .safety6 { grid-template-columns: minmax(0, 1fr); } }

/* Páginas legales */
.prose6-body { max-width: 760px; padding-bottom: 72px; }
.prose6-body .s6-head { margin-top: 40px; }
.prose6-body .s6-head:first-child { margin-top: 0; }
.prose6-body ul { padding-left: 18px; }

/* Menú: un punto de color por destino */
.mdot { display: inline-block; width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--fam); margin-right: 0.35em; vertical-align: 0.18em; }

/* Quiz: cada bloque con su color */
.qblock { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ff-m); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 14px; padding: 4px 12px 4px 6px; border: 1px solid var(--line); border-radius: 999px; }
.qblock i { width: 12px; height: 12px; border-radius: 50%; background: var(--qfam, var(--ink)); box-shadow: 0 0 0 1px var(--line); }
.prog-bar { background: var(--qfam, var(--ink)) !important; }
.qmark .q-ring { color: var(--qfam, var(--ink)); }
.opt[aria-pressed="true"] { box-shadow: inset 6px 0 0 var(--qfam, var(--ink)); }
.cbar em { display: none; }
.cbar i { width: 40px; height: 14px; }
.qhead { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.qhead .qblock { margin: 0; }
.qnum { display: grid; place-items: center; width: 64px; height: 64px; background: var(--qfam, var(--ink)); color: var(--ink-on-color); font-family: var(--ff-serif); font-size: 38px; line-height: 1; transition: background 0.3s; }
/* moléculas dibujadas con RDKit: trazo constante sea cual sea la escala */
.mol.rd { width: 86%; height: auto; overflow: visible; }
.mol.rd path[style*="fill:none"] { stroke-width: 1.4px !important; vector-effect: non-scaling-stroke; }
.cl-type .cl-detail { z-index: 2; }

/* ─── Dónde encontrarlo (ficha) ─── */
.shop6 .s6-intro { max-width: 46em; }
.shop-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.shop-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 220px 180px; grid-template-areas: "store prod take go" "store fit fit go"; border-bottom: 1px solid var(--line); }
.shop-row > * { min-width: 0; }
.sh-store { grid-area: store; border-right: 1px solid var(--line); padding: 18px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sh-tag { display: inline-block; background: var(--ink); color: var(--bg); font-family: var(--ff-m); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1; padding: 5px 8px 4px; white-space: nowrap; }
.sh-ship { font-size: 12px; line-height: 1.4; color: var(--muted); }
.sh-prod { grid-area: prod; padding: 18px 18px 8px; }
.sh-prod .lab { margin-bottom: 6px; }
.sh-prod h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 4px; }
.sh-unit { font-size: 13.5px; line-height: 1.45; color: var(--muted); margin: 0; }
.sh-take { grid-area: take; padding: 18px 18px 8px; border-left: 1px solid var(--rule); }
.sh-take .lab { margin-bottom: 6px; }
.sh-take b { display: block; font-family: var(--ff-serif); font-weight: 400; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.sh-take .sh-na { font-family: inherit; font-size: 13.5px; color: var(--muted); }
.sh-fit { grid-area: fit; display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; margin: 4px 18px 18px; font-size: 13.5px; line-height: 1.5; }
.sh-fit p { margin: 0; }
.sh-fit b { font-weight: 500; }
.sh-fit .ico { width: 18px; height: 18px; margin-top: 1px; }
.shop-row.partial .sh-fit { background: var(--warn-bg); color: var(--warn-fg); padding: 10px 12px; }
.shop-row.partial .sh-fit .ico { color: var(--f-equilibrio); }
.shop-row .sh-go { grid-area: go; align-self: center; justify-self: end; margin: 18px; }
.sh-go { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 13.5px; font-weight: 500; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap; background: var(--bg); transition: background .15s, color .15s; }
.sh-go:hover, .sh-go:focus-visible { background: var(--ink); color: var(--bg); }
.sh-aff { font-family: var(--ff-m); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid currentColor; padding: 2px 5px 1px; margin-right: 2px; }
.sh-disc { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: 60em; }
.sh-disc a { color: inherit; }
@media (max-width: 860px) {
  .shop-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "store go" "prod prod" "take take" "fit fit"; }
  .sh-store { border-right: 0; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 10px; padding: 16px 0 6px; }
  .sh-prod { padding: 8px 0 6px; }
  .sh-take { border-left: 0; padding: 6px 0 8px; }
  .sh-take b { font-size: 17px; }
  .sh-fit { margin: 4px 0 16px; }
  .shop-row .sh-go { margin: 16px 0 6px; padding: 9px 14px; }
}

/* ─── Dónde encontrarlo (resultado del quiz) ─── */
details.shop-info { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: -6px; }
details.shop-info > summary { cursor: pointer; font-size: 13px; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; }
details.shop-info > summary::-webkit-details-marker { display: none; }
details.shop-info > summary::after { content: '+'; color: var(--muted); margin-left: auto; }
details.shop-info[open] > summary::after { content: '–'; }
.sh-count { font-family: var(--ff-m); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.shop-mini { list-style: none; margin: 14px 0 4px; padding: 0; border-top: 1px solid var(--line); }
.shop-mini li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.shop-mini li:last-child { border-bottom: 1px solid var(--line); }
.sm-main { display: grid; gap: 6px; min-width: 0; justify-items: start; }
.sm-name { margin: 0; font-size: 14px; line-height: 1.4; }
.sm-name b { font-weight: 500; display: block; }
.sm-name span { font-size: 12.5px; color: var(--muted); }
.sm-take { margin: 0; font-size: 13px; }
.sm-take .lab { display: inline; margin: 0 8px 0 0; font-size: 9.5px; }
.sm-fit { margin: 0; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; font-size: 12.5px; line-height: 1.5; }
.sm-fit .ico { width: 16px; height: 16px; margin-top: 1px; }
.sm-fit b { font-weight: 500; }
.shop-mini li.partial .sm-fit { background: var(--warn-bg); color: var(--warn-fg); padding: 8px 10px; }
.shop-mini li.partial .sm-fit .ico { color: var(--f-equilibrio); }
.shop-mini .sh-go { padding: 9px 13px; font-size: 12.5px; }
.sm-none { font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
@media (max-width: 600px) { .shop-mini li { grid-template-columns: minmax(0, 1fr); } .shop-mini .sh-go { justify-self: start; } }
.sh-go.sh-nolink { border-style: dashed; color: var(--muted); cursor: default; }
.sh-go.sh-nolink:hover { background: var(--bg); color: var(--muted); }
.sh-tier { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--ff-m); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.sh-tier b { font-family: var(--ff-m); font-weight: 400; letter-spacing: 0.02em; }
.sh-tier[data-t="media"] b, .sh-tier[data-t="economica"] b { color: var(--ink); }
.shop-row .sh-store .sh-tier { margin-top: 4px; }
.shop-mini .sh-tier { margin-top: 2px; }
@media (max-width: 860px) { .shop-row .sh-store .sh-tier { flex-basis: 100%; margin: 2px 0 0; } }

/* ── Guías por objetivo (SEO): enlaces a las guías, tabla de activos y objetivos enlazados en la ficha ── */
.hub-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); border-top: 1px solid var(--line); }
.hub-links li { border-bottom: 1px solid var(--rule); }
.hub-links a { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 0; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.3; }
.hub-links a:hover span, .hub-links a:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.hub-links .ico { width: 22px; height: 22px; flex: none; }
.hubs6 { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }
.hubs6 .s6-intro, .hubs-g { margin-top: 0; }
.hubs-g { margin-top: clamp(40px, 6vw, 72px); }
.hub-t .hub-n a { font-family: var(--ff-d); font-size: 22px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.hub-t .hub-n a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hub-t .hub-n .pill { display: table; margin-top: 10px; }
.hub-t .hub-n { width: 24%; }
.hub-t .hub-e { width: 14%; }
.hub-t .hub-d { width: 24%; }
.hub-p { max-width: 64ch; }
.hub6 .updated { margin-top: 40px; }
.lg-goals li:has(.lg-goal-a) { padding: 0; }
.lg-goal-a { display: grid; gap: 26px; align-content: space-between; height: 100%; min-height: inherit; padding: inherit; color: inherit; text-decoration: none; }
.lg-goals li:has(.lg-goal-a) .lg-goal-a { padding: 14px 16px 16px; }
.lg-goal-a:hover span, .lg-goal-a:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .hub-t thead { display: none; }
  .hub-t tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .hub-t td { display: block; width: auto !important; padding: 0; border: 0; }
  .hub-t td:nth-child(3), .hub-t td:nth-child(4) { grid-column: 1 / -1; }
}

/* Selector de idioma, arriba a la derecha */
.hdr-r { justify-self: end; display: flex; align-items: center; gap: 16px; min-width: 0; }
.hdr-r .hdr-cta, .hdr-r .quiz-mark { justify-self: auto; }
.lang { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-m); font-size: 12px; letter-spacing: 0.12em; line-height: 1; }
.lang a, .lang .on { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 2px; text-decoration: none; }
.lang a { color: var(--muted); }
.lang a:hover, .lang a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang .on { color: var(--ink); font-weight: 500; }
.lang .sep { color: var(--muted); opacity: 0.6; }
@media (max-width: 560px) { .hdr-r { gap: 10px; } .lang { gap: 4px; font-size: 11.5px; letter-spacing: 0.08em; } }
/* En el quiz, en móvil, mientras se responden preguntas: el progreso manda y el selector se oculta (sigue en el menú). */
.prog-label { white-space: nowrap; }
@media (max-width: 560px) { .hdr-r:has(#prog-wrap:not([hidden])) .lang { display: none; } }
