/* ==========================================================================
   sabroso.es — hoja de estilos v1.0
   Identidad: berenjena (--accent) y aceite verde (--hi) sobre papel de salvia;
   Young Serif para los títulos y Figtree para el texto.
   Semántica de color: --ok (bien), --warn (atención), --bad (alerta), --accent (marca),
   --hi (resalte: lo que está activo o es la cifra clave).
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-italic.woff2") format("woff2-variations");
  font-weight: 300 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-wght-italic.woff2") format("woff2-variations");
  font-weight: 300 900; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Young Serif";
  src: url("../fonts/young-serif-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #2a1f30;
  --ink-2: #554a5b;
  --ink-3: #74697a;
  --paper: #f3f5ec;
  --surface: #ffffff;
  --line: #dde2cf;
  --accent: #6a2c7a;
  --accent-soft: #efe3f2;
  --hi: #c8d93c;
  --hi-ink: #2a1f30;
  --ok: #2f7d32;
  --ok-soft: #e1f0dc;
  --warn: #b26b00;
  --warn-ink: #8a5000;
  --warn-soft: #fbecd2;
  --bad: #b8321f;
  --bad-soft: #fbe3de;
  --foot: #2b1733;

  --f-display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --f-text: "Figtree", "Segoe UI", system-ui, sans-serif;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --wrap: 1240px;
  --measure: 68ch;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1ecf3;
    --ink-2: #cdc2d2;
    --ink-3: #a395a9;
    --paper: #18121d;
    --surface: #231b29;
    --line: #3b3042;
    --accent: #d6a9e6;
    --accent-soft: #36223f;
    --hi: #d4e45a;
    --hi-ink: #18121d;
    --ok: #8fd18f;
    --ok-soft: #1d3320;
    --warn: #f0b54a;
    --warn-ink: #f0b54a;
    --warn-soft: #3a2c12;
    --bad: #ff9d8f;
    --bad-soft: #3d1d1a;
    --foot: #0f0a12;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.1rem/1.65 var(--f-text);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--paper); padding: .6em 1em; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
input, select, textarea, button { font: inherit; color: inherit; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  font: 650 1rem/1 var(--f-text);
  padding: .85em 1.25em;
  border-radius: 999px;
  text-decoration: none;
  background: var(--accent); color: #fff;
  border: 2px solid var(--accent);
  transition: background-color .15s, color .15s;
}
@media (prefers-color-scheme: dark) { .btn { color: var(--paper); } }
.btn:hover { background: transparent; color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-3); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ok:hover { color: var(--ok); }
.btn-hi { background: var(--hi); border-color: var(--hi); color: var(--hi-ink); }
.btn-hi:hover { background: transparent; color: var(--hi); }
button.btn[hidden] { display: none; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; color: var(--accent); }
.brand-name { font: 400 1.5rem/1 var(--f-display); letter-spacing: -.02em; margin: 0; }
.brand-name b { font-weight: 400; color: var(--ink-3); }
.nav-main { margin-left: auto; display: none; }
.nav-main ul { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-main a {
  display: block; padding: .5em .65em; border-radius: var(--r-s);
  color: var(--ink-2); text-decoration: none; font-size: 1rem; font-weight: 550; white-space: nowrap;
}
.nav-main a:hover { color: var(--ink); background: var(--surface); }
.nav-main a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -4px 0 var(--hi); border-radius: 0; }
.btn-test { display: none; padding: .7em 1.05em; font-size: .95rem; }
.nav-mobile { margin-left: auto; }
.nav-mobile summary {
  list-style: none; cursor: pointer; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary .icon { width: 24px; height: 24px; }
.nav-mobile .i-close, .nav-mobile[open] .i-open { display: none; }
.nav-mobile[open] .i-close { display: block; }
.nav-mobile nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: .5rem var(--gutter) 1.25rem; box-shadow: 0 18px 30px -20px rgba(42, 31, 48, .35);
  max-height: calc(100vh - 70px); overflow-y: auto;
}
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile li + li { border-top: 1px solid var(--line); }
.nav-mobile a { display: block; padding: .85rem 0; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.nav-mobile a[aria-current="page"] { font-weight: 700; color: var(--accent); }
@media (min-width: 1180px) {
  .nav-main, .btn-test { display: flex; }
  .nav-mobile { display: none; }
}

/* ---------- Migas y cabecera de página ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 1.4rem 0 0; padding: 0; font-size: .95rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.crumbs a { color: var(--ink-2); }
.page-head { max-width: 54rem; padding: clamp(1.4rem, 4vw, 2.8rem) 0 clamp(1.4rem, 3vw, 2.4rem); }
.page-head .lede { font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.55; color: var(--ink-2); max-width: 46rem; margin-bottom: 1.2rem; }
.page-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .95rem; color: var(--ink-3); margin: 0; }
.page-meta > * { display: inline-flex; align-items: center; gap: .4em; }
.page-meta a { color: var(--ink-2); }

/* ---------- Rejilla de artículo ---------- */
.article-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
.article-grid > * { min-width: 0; }
.toc { display: none; }
@media (min-width: 1000px) {
  .article-grid { grid-template-columns: 14rem minmax(0, 1fr); gap: 4rem; }
  .toc { display: block; position: sticky; top: 96px; align-self: start; font-size: .95rem; }
  .toc-title { font-family: var(--f-display); margin-bottom: .6rem; }
  .toc ol { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); }
  .toc li { margin: 0 0 .55rem; }
  .toc a { color: var(--ink-2); text-decoration: none; display: block; line-height: 1.35; }
  .toc a:hover, .toc a.is-active { color: var(--ink); }
  .toc a.is-active { font-weight: 700; box-shadow: -1.1rem 0 0 -0.95rem var(--accent); }
}
.prose { max-width: var(--measure); }
.prose-solo { margin-bottom: 3rem; }
.prose > h2 { margin-top: 2.4em; padding-top: .2em; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--ink-3); }
.prose .wide { max-width: none; width: 100%; }
@media (min-width: 1000px) { .prose .wide { width: min(100%, 54rem); } }

/* Lo esencial */
.keypoints {
  background: var(--surface); border-radius: var(--r-m); padding: 1.3rem 1.5rem 1.1rem;
  border-left: 6px solid var(--hi); margin: 0 0 2.5rem;
}
.keypoints .kp-title { font-size: 1.2rem; margin: 0 0 .7rem; display: flex; align-items: center; gap: .5rem; }
.keypoints .kp-title .icon { color: var(--accent); width: 1.2em; height: 1.2em; }
.keypoints ul { list-style: none; padding: 0; margin: 0; }
.keypoints li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; }
.keypoints li::before { content: ""; position: absolute; left: .15rem; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); }

/* Avisos */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start;
  border-radius: var(--r-m); padding: 1.15rem 1.3rem; margin: 1.8rem 0;
  background: var(--accent-soft);
}
.callout > .icon { width: 1.5rem; height: 1.5rem; margin-top: .15rem; color: var(--accent); }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout ul { padding-left: 1.1em; margin: 0 0 .6em; }
.callout h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.callout-alert { background: var(--bad-soft); }
.callout-alert > .icon { color: var(--bad); }
.callout-ok { background: var(--ok-soft); }
.callout-ok > .icon { color: var(--ok); }

/* Tablas */
.table-wrap { overflow-x: auto; margin: 1.5rem 0 2rem; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 700; font-size: .95rem; background: color-mix(in srgb, var(--paper) 70%, var(--surface)); }
tbody tr:last-child > * { border-bottom: 0; }
tbody th { font-weight: 650; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.ok { color: var(--ok); font-weight: 700; }
td.mid { color: var(--warn-ink); font-weight: 700; }
td.bad { color: var(--bad); font-weight: 700; }

/* ---------- Infografías ---------- */
.ig {
  margin: 2rem 0 2.5rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-l);
  padding: clamp(1.1rem, 3vw, 2rem);
}
.ig > figcaption, .ig-caption { font-size: .93rem; color: var(--ink-3); margin-top: 1.1rem; line-height: 1.45; }
.ig-title { font-family: var(--f-display); font-size: 1.3rem; margin: 0 0 1.1rem; }
.ig svg text { font-family: var(--f-text); fill: var(--ink); }
.ig svg .t-muted { fill: var(--ink-3); }
.ig svg .t-display { font-family: var(--f-display); }

/* Pasos */
.steps { list-style: none; margin: 1.5rem 0 2rem; padding: 0; counter-reset: paso; display: grid; gap: .9rem; }
.steps > li { counter-increment: paso; position: relative; padding: 1.1rem 1.2rem 1.1rem 4.2rem; background: var(--surface); border-radius: var(--r-m); margin: 0; }
.steps > li::before { content: counter(paso); position: absolute; left: 1.1rem; top: 1rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font: 400 1.15rem/1 var(--f-display); background: var(--accent); color: #fff; }
.steps h3 { font-size: 1.1rem; margin: .15rem 0 .25rem; }
.steps p { margin: 0; }

/* Rejilla de iconos */
.icon-grid { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1.1rem 1.4rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.prose .icon-grid { padding-left: 0; }
.icon-grid > li { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .15rem .9rem; align-items: start; }
.icon-grid .ig-ico { grid-row: span 2; width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon-grid .ig-ico .icon { width: 1.4rem; height: 1.4rem; }
.icon-grid strong { display: block; line-height: 1.3; padding-top: .2rem; }
.icon-grid span.d { color: var(--ink-2); font-size: 1rem; line-height: 1.45; }
.icon-grid.tone-alert .ig-ico { background: var(--bad-soft); color: var(--bad); }
.icon-grid.tone-ok .ig-ico { background: var(--ok-soft); color: var(--ok); }
.icon-grid.tone-high .ig-ico { background: var(--warn-soft); color: var(--warn-ink); }

/* Comparativa */
.types { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.5rem 0 2rem; }
.type-card { background: var(--surface); border-radius: var(--r-m); padding: 1.3rem; display: flex; flex-direction: column; border-top: 5px solid var(--c, var(--accent)); }
.type-card h3 { margin-bottom: .25rem; }
.type-card .share { font: 400 2.1rem/1 var(--f-display); margin: .4rem 0 .1rem; color: var(--c, var(--accent)); }
.type-card .share-l { font-size: .92rem; color: var(--ink-3); margin-bottom: 1rem; }
.type-card dl { margin: 0 0 1rem; display: grid; gap: .55rem; font-size: 1rem; }
.type-card dt { font-weight: 700; font-size: .9rem; color: var(--ink-3); }
.type-card dd { margin: 0; line-height: 1.4; }
.type-card .more { margin-top: auto; font-weight: 700; }

/* Tarjetas de color por grupo */
.checkups { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0; }
.checkup { border-top: 6px solid var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 8%, var(--surface)); border-radius: var(--r-s); padding: 1rem 1.1rem; }
.checkup h4 { font-size: 1.1rem; margin: 0 0 .5rem; }
.checkup ul { list-style: none; padding: 0; margin: 0; font-size: 1rem; }
.checkup li { padding: .35rem 0; border-top: 1px solid color-mix(in srgb, var(--c, var(--accent)) 18%, transparent); margin: 0; }
.checkup li:first-child { border-top: 0; }
.checkup.c-accent { --c: var(--accent); } .checkup.c-warn { --c: var(--warn); } .checkup.c-bad { --c: var(--bad); } .checkup.c-ok { --c: var(--ok); }

/* Flujo */
.flow { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1.6rem; counter-reset: f; }
.prose .flow { padding: 0; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; } }
.flow > li { counter-increment: f; position: relative; background: var(--surface); border-radius: var(--r-m); padding: 1rem 1.1rem 1.1rem; margin: 0; }
.flow > li::before { content: counter(f); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #fff; font: 400 1.05rem/1 var(--f-display); margin-bottom: .6rem; }
.flow > li:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -1.3rem; width: 2px; height: 1rem; background: var(--ink-3); }
@media (min-width: 900px) { .flow > li:not(:last-child)::after { left: auto; right: -1.15rem; top: 1.9rem; bottom: auto; width: .9rem; height: 2px; } }
.flow strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; line-height: 1.2; margin-bottom: .35rem; }
.flow span { display: block; font-size: .98rem; color: var(--ink-2); line-height: 1.45; }

/* ---------- FAQ, relacionados, fuentes ---------- */
.faq, .related, .sources { max-width: 52rem; margin-top: 3.5rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.05rem 2.5rem 1.05rem 0; position: relative; font: 650 1.12rem/1.35 var(--f-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq-chev { position: absolute; right: .3rem; top: 1.2rem; transition: transform .2s; color: var(--ink-3); }
.faq details[open] .faq-chev { transform: rotate(180deg); }
.faq details p { color: var(--ink-2); padding-right: 1rem; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .related ul { grid-template-columns: repeat(3, 1fr); } }
.related a { display: flex; flex-direction: column; gap: .35rem; height: 100%; background: var(--surface); padding: 1.15rem 1.2rem; text-decoration: none; color: var(--ink); border-radius: var(--r-m); border-bottom: 4px solid transparent; }
.related a:hover { border-bottom-color: var(--hi); }
.rel-title { font: 400 1.18rem/1.25 var(--f-display); }
.rel-desc { font-size: .97rem; color: var(--ink-2); line-height: 1.45; }
.sources ol { font-size: .95rem; color: var(--ink-2); padding-left: 1.4em; }
.sources li { margin-bottom: .5em; }
.sources a { color: var(--ink-2); overflow-wrap: anywhere; }
.disclaimer { display: flex; gap: .8rem; max-width: 52rem; margin: 3rem 0 4rem; padding: 1.1rem 1.25rem; border-radius: var(--r-m); border: 1px dashed var(--ink-3); font-size: .97rem; color: var(--ink-2); }
.disclaimer .icon { width: 1.3rem; height: 1.3rem; margin-top: .15rem; }
.disclaimer p { margin: 0; }

/* ---------- Pie ---------- */
.site-footer { background: var(--foot); color: #d9cfdd; padding: 3.5rem 0 1.5rem; font-size: 1rem; }
.site-footer a { color: #f4eef6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.footer-brand .brand-name { color: #fff; font-size: 1.7rem; margin-bottom: .8rem; }
.footer-brand .brand-name b { color: #c8d93c; }
.footer-h { font: 400 1.1rem/1 var(--f-display); color: #fff; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.footer-sale { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding: 1.2rem 1.4rem; border: 1px solid #4a3352; border-radius: var(--r-m); background: #3a2143; }
.footer-sale p { margin: 0; color: #f4eef6; }
.site-footer .btn-sale { background: #c8d93c; border-color: #c8d93c; color: #2a1f30; text-decoration: none; }
.site-footer .btn-sale:hover { background: transparent; color: #c8d93c; text-decoration: none; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; border-top: 1px solid #4a3352; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .9rem; color: #b3a5b9; }
.footer-base p { margin: 0; }

/* ==========================================================================
   Portada
   ========================================================================== */
.hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.hero-grid { display: grid; gap: 2rem 3.5rem; align-items: start; }
.hero-grid > * { min-width: 0; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.35fr 1fr; } }
.hero h1 { font-size: clamp(2.7rem, 7.6vw, 5.4rem); line-height: .98; letter-spacing: -.03em; margin-bottom: 1.1rem; }
.hero .lede { font-size: clamp(1.12rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 36rem; }
.hero-search { display: flex; gap: .5rem; align-items: center; background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; padding: .35rem .35rem .35rem 1.1rem; max-width: 36rem; margin-top: 1.6rem; }
.hero-search .icon { color: var(--ink-3); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.08rem; padding: .55rem .2rem; outline: none; }
.hero-search:focus-within { outline: 3px solid var(--hi); outline-offset: 2px; }
.hero-quick { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1rem 0 0; padding: 0; font-size: .95rem; }
.hero-quick a { display: inline-flex; padding: .35em .85em; border-radius: 999px; background: var(--surface); color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); }
.hero-quick a:hover { border-color: var(--ink-3); color: var(--ink); }

/* Ficha «de temporada este mes» */
.season-card { background: var(--accent); color: #fff; border-radius: var(--r-l); padding: 1.6rem 1.6rem 1.4rem; position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { .season-card { background: #3d2347; } }
.season-card h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 0 0 .2rem; color: #fff; }
.season-card .sc-month { font: 400 clamp(3rem, 8vw, 4.6rem)/.9 var(--f-display); color: var(--hi); margin: 0 0 1rem; letter-spacing: -.03em; }
.season-card ul { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0 0 1.2rem; }
.season-card li { background: rgba(255, 255, 255, .14); border-radius: 999px; padding: .3em .8em; font-size: .97rem; }
.season-card a { color: #fff; font-weight: 700; }
.season-card .sc-ico { position: absolute; right: -12px; top: -14px; width: 120px; height: 120px; color: rgba(255, 255, 255, .08); }

/* Aparatos */
.appliances { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
.appliances a { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; align-items: center; background: var(--surface); border-radius: var(--r-m); padding: 1rem 1.1rem; color: var(--ink); text-decoration: none; border: 2px solid transparent; height: 100%; }
.appliances a:hover { border-color: var(--accent); }
.appliances .icon { grid-row: span 2; width: 2.2rem; height: 2.2rem; color: var(--accent); }
.appliances b { font: 400 1.2rem/1.1 var(--f-display); }
.appliances small { color: var(--ink-3); font-size: .9rem; }
.home-block { padding: clamp(2.2rem, 5vw, 3.8rem) 0; }
.home-block + .home-block { border-top: 1px solid var(--line); }
.paths-head, .rb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1.5rem; }
.paths-head h2, .rb-head h2 { margin: 0; }
.rb-head a, .paths-head a { font-weight: 650; }

/* Rutas por necesidad */
.path-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.path-list a { display: grid; grid-template-rows: auto auto 1fr auto; gap: .45rem; height: 100%; background: var(--surface); color: var(--ink); text-decoration: none; padding: 1.4rem 1.4rem 1.2rem; border-radius: var(--r-m); border-top: 5px solid var(--c); }
.path-list a:hover { background: color-mix(in srgb, var(--surface) 85%, var(--c)); }
.path-list .p-ico { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.path-list .p-ico .icon { width: 1.25rem; height: 1.25rem; }
.path-list h3 { font-size: 1.35rem; margin: .3rem 0 0; }
.path-list p { color: var(--ink-2); font-size: 1rem; margin: 0; line-height: 1.5; }
.path-list .p-for { font-size: .92rem; color: var(--ink-3); padding-top: .5rem; }

/* Franja del test */
.test-band { background: var(--ink); color: var(--paper); border-radius: var(--r-l); padding: clamp(1.8rem, 5vw, 3.2rem); display: grid; gap: 1.5rem; align-items: center; margin: 1rem 0 clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 860px) { .test-band { grid-template-columns: 1.5fr auto; } }
.test-band h2 { color: inherit; }
.test-band p { margin: 0; max-width: 38rem; opacity: .85; }
.test-band .btn { background: var(--hi); border-color: var(--hi); color: var(--hi-ink); justify-self: start; }
.test-band .btn:hover { background: transparent; color: var(--hi); }
.cook-scale { display: flex; gap: .4rem; margin-top: 1.3rem; flex-wrap: wrap; list-style: none; padding: 0; font-size: .9rem; }
.cook-scale li { padding: .3em .8em; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--paper) 35%, transparent); }

/* ==========================================================================
   Recetas: tarjetas y rejillas
   ========================================================================== */
.rgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.rc { margin: 0; }
.rc-link { display: flex; flex-direction: column; gap: .7rem; color: var(--ink); text-decoration: none; height: 100%; }
.rc-media { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: var(--r-m); overflow: hidden; background: color-mix(in srgb, var(--c) 16%, var(--surface)); }
.rc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
@media (prefers-reduced-motion: no-preference) { .rc-link:hover .rc-media img { transform: scale(1.04); } }
.rc-ph { color: var(--c); background:
    radial-gradient(circle at 20% 25%, color-mix(in srgb, var(--c) 14%, transparent) 0 18%, transparent 19%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--hi) 30%, transparent) 0 22%, transparent 23%),
    color-mix(in srgb, var(--c) 10%, var(--surface)); }
.rc-ph > .icon { width: 3.4rem; height: 3.4rem; opacity: .8; }
.rc-ap { position: absolute; left: .6rem; top: .6rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--surface); color: var(--c); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.rc-ap .icon { width: 1.15rem; height: 1.15rem; }
.rc-ph .rc-ap { display: none; }
.rc-body { display: flex; flex-direction: column; gap: .35rem; }
.rc-title { font: 400 1.18rem/1.22 var(--f-display); text-wrap: balance; }
.rc-link:hover .rc-title { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--hi); text-underline-offset: .2em; }
.rc-link:focus-visible { outline: none; }
.rc-link:focus-visible .rc-media { outline: 3px solid var(--accent); outline-offset: 3px; }
.rc-meta { display: flex; flex-wrap: wrap; gap: .2rem .9rem; font-size: .9rem; color: var(--ink-3); }
.rc-meta > span { display: inline-flex; align-items: center; gap: .3em; }
.rc-meta .rc-key { color: var(--ink); font-weight: 700; background: color-mix(in srgb, var(--hi) 55%, transparent); padding: 0 .45em; border-radius: 4px; }
.recipes-block { margin: 3.5rem 0 0; }
.article-main .recipes-block .rgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }

/* Filtros */
.rfilters { background: var(--surface); border-radius: var(--r-l); padding: clamp(1rem, 3vw, 1.5rem); margin-bottom: 1.6rem; }
.rf-search { display: flex; gap: .5rem; align-items: center; border: 2px solid var(--line); border-radius: 999px; padding: .3rem .3rem .3rem 1rem; background: var(--paper); }
.rf-search:focus-within { border-color: var(--accent); }
.rf-search .icon { color: var(--ink-3); }
.rf-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .55rem .2rem; outline: none; }
.rf-search .btn { padding: .7em 1.1em; }
.rf-row { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); margin-top: 1rem; }
.rf-row label { display: grid; gap: .25rem; font-size: .88rem; font-weight: 650; color: var(--ink-2); }
.rf-row select { width: 100%; padding: .55rem .6rem; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--paper); font-size: 1rem; font-weight: 400; color: var(--ink); }
.rf-allerg { margin-top: 1rem; }
.rf-allerg summary { cursor: pointer; font-weight: 650; display: inline-flex; gap: .4rem; align-items: center; color: var(--ink-2); }
.rf-checks { display: grid; gap: .3rem .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); margin-top: .7rem; font-size: .97rem; }
.rf-checks label { display: flex; gap: .5rem; align-items: center; cursor: pointer; }
.rf-checks input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.rresults { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1.2rem; }
.rcount { margin: 0; color: var(--ink-2); }
.rcount b { color: var(--ink); }
.chips-active { padding: 0; margin: 0; }
.chips-active a { background: color-mix(in srgb, var(--hi) 45%, var(--surface)); border-color: transparent; color: var(--ink); }
.pager-n { align-self: center; color: var(--ink-3); font-size: .95rem; }
.siblings { margin: 3rem 0 1rem; }
.siblings h2 { font-size: 1.3rem; }
.siblings .chips { flex-wrap: wrap; overflow: visible; }
.season-now { margin-bottom: 2rem; }
.season-now h2 { font-size: 1.35rem; }

/* ==========================================================================
   Ficha de receta
   ========================================================================== */
.recipe-body { margin-bottom: 2rem; }
.r-head { display: grid; gap: 1.6rem 3rem; padding: clamp(1.2rem, 3vw, 2.2rem) 0 clamp(1.6rem, 3vw, 2.6rem); align-items: start; }
@media (min-width: 960px) { .r-head { grid-template-columns: 1fr 1.05fr; } }
.r-intro h1 { margin-bottom: .6rem; }
.r-intro .lede { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.r-secs { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 1rem; padding: 0; font-size: .92rem; }
.r-secs a { display: inline-flex; align-items: center; gap: .35em; padding: .25em .75em; border-radius: 999px; text-decoration: none; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 12%, var(--surface)); font-weight: 650; }
@media (prefers-color-scheme: dark) { .r-secs a { color: var(--ink); } }
.r-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .9rem 1rem; margin: 1.2rem 0 1.4rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.r-facts > div { border-left: 3px solid var(--hi); padding-left: .7rem; }
.r-facts dt { font-size: .85rem; color: var(--ink-3); display: flex; align-items: center; gap: .35em; }
.r-facts dd { margin: .1rem 0 0; font: 400 1.25rem/1.1 var(--f-display); }
.r-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.r-photo { margin: 0; }
.r-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-l); display: block; background: var(--surface); }
.r-photo figcaption { font-size: .82rem; color: var(--ink-3); margin-top: .5rem; line-height: 1.4; }
.r-photo figcaption a { color: var(--ink-3); }
.r-ph { aspect-ratio: 4 / 3; border-radius: var(--r-l); display: grid; place-items: center; color: var(--c); background:
    radial-gradient(circle at 25% 30%, color-mix(in srgb, var(--c) 14%, transparent) 0 20%, transparent 21%),
    radial-gradient(circle at 80% 75%, color-mix(in srgb, var(--hi) 35%, transparent) 0 25%, transparent 26%),
    color-mix(in srgb, var(--c) 9%, var(--surface)); }
.r-ph > .icon { width: 5rem; height: 5rem; opacity: .75; }
.r-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .r-grid { grid-template-columns: minmax(19rem, 25rem) minmax(0, 1fr); gap: 4rem; align-items: start; } }
.r-ing { background: var(--surface); border-radius: var(--r-l); padding: 1.4rem 1.4rem 1.2rem; }
.r-ing-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.r-ing-head h2 { margin: 0; font-size: 1.6rem; }
.servings { display: inline-flex; align-items: center; gap: .2rem; border: 1px solid var(--line); border-radius: 999px; padding: .2rem; background: var(--paper); }
.srv-btn { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--accent); }
.srv-btn:hover { background: var(--accent); color: #fff; }
.srv-btn:disabled { opacity: .35; cursor: default; background: var(--surface); color: var(--ink-3); }
.srv-n { min-width: 6.5rem; text-align: center; font-size: .95rem; }
.srv-n b { font: 400 1.25rem/1 var(--f-display); }
.srv-fixed { margin: 0; color: var(--ink-3); font-size: .95rem; }
.ing-list { list-style: none; margin: 0; padding: 0; }
.ing-list li { border-top: 1px solid var(--line); margin: 0; }
.ing-list label { display: flex; gap: .7rem; align-items: baseline; padding: .55rem 0; cursor: pointer; line-height: 1.4; }
.ing-list input { accent-color: var(--ok); width: 1.05rem; height: 1.05rem; flex: none; transform: translateY(.15rem); }
.ing-list label:has(input:checked) > span { text-decoration: line-through; color: var(--ink-3); }
.ing-list .q { font-weight: 750; font-variant-numeric: tabular-nums; }
.ing-list .q.is-changed { background: color-mix(in srgb, var(--hi) 55%, transparent); border-radius: 3px; padding: 0 .15em; }
.r-allerg, .r-nutri { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 2px solid var(--line); }
.r-allerg h3, .r-nutri h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.al-list { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0 0 .5rem; padding: 0; }
.al-list li { font-size: .9rem; font-weight: 700; padding: .2em .7em; border-radius: 999px; background: var(--warn-soft); color: var(--warn-ink); }
.al-none { margin: 0 0 .4rem; font-weight: 600; color: var(--ok); }
.al-note { font-size: .85rem; color: var(--ink-3); margin: .5rem 0 0; line-height: 1.45; }
.r-nutri dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; margin: 0; font-size: .95rem; }
.r-nutri dl > div { display: flex; justify-content: space-between; gap: .5rem; padding: .35rem 0; border-bottom: 1px dotted var(--line); }
.r-nutri dt { color: var(--ink-2); }
.r-nutri dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-nutri .nu-big { flex-direction: column; gap: 0; border-bottom: 0; padding-bottom: .6rem; }
.r-nutri .nu-big dd { font: 400 1.5rem/1.1 var(--f-display); }
.r-nutri .nu-big.is-key dd { background: color-mix(in srgb, var(--hi) 55%, transparent); align-self: start; padding: 0 .25em; border-radius: 4px; }
.r-main > h2 { margin-top: .2rem; }
.r-steps { list-style: none; counter-reset: rs; margin: 0 0 2rem; padding: 0; max-width: 46rem; }
.r-steps li { counter-increment: rs; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); margin: 0; }
.r-steps li::before { content: counter(rs); font: 400 2.1rem/1 var(--f-display); color: var(--accent); }
.r-steps li:target { background: color-mix(in srgb, var(--hi) 25%, transparent); }
.r-steps p { margin: 0; font-size: 1.12rem; line-height: 1.6; }
.r-tip { display: flex; gap: .6rem; align-items: flex-start; font-size: 1rem; color: var(--ink-2); max-width: 46rem; }
.r-tip .icon { color: var(--accent); margin-top: .2rem; width: 1.3rem; height: 1.3rem; }
.r-credit { display: flex; gap: .8rem; max-width: 46rem; margin: 2rem 0; padding: 1rem 1.2rem; border-radius: var(--r-m); background: var(--surface); font-size: .95rem; color: var(--ink-2); }
.r-credit .icon { width: 1.3rem; height: 1.3rem; margin-top: .15rem; color: var(--accent); }
.r-credit p { margin: 0; }

/* ==========================================================================
   Noticias (estilo Discover)
   ========================================================================== */
.news-section { padding: clamp(2.2rem, 5vw, 3.8rem) 0; border-top: 1px solid var(--line); }
.news-body { margin-bottom: 4rem; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 1rem; margin: 0 0 1rem; list-style: none; scrollbar-width: thin; }
.chips a { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .97rem; }
.chips a:hover { border-color: var(--ink-3); color: var(--ink); }
.chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.feed { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); margin: 0; }
.card:hover { border-color: var(--ink-3); }
.card-media { aspect-ratio: 16 / 9; background: var(--accent-soft); overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media.ph { display: grid; place-items: center; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 12%, var(--surface)); aspect-ratio: 16 / 7; }
@media (min-width: 900px) { .card-media.ph { aspect-ratio: 16 / 9; } }
.card-media.ph svg.icon { width: 3.2rem; height: 3.2rem; opacity: .85; }
.card-media.ph .ph-wave { position: absolute; inset: auto 0 18% 0; width: 100%; height: 40%; opacity: .45; }
.card-body { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-src { display: flex; align-items: center; gap: .5rem; font-size: .88rem; color: var(--ink-3); }
.card-src .pub { font-weight: 700; color: var(--ink-2); max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card h3 { font: 400 1.15rem/1.28 var(--f-display); margin: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.card p { font-size: .98rem; color: var(--ink-2); margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; gap: .6rem; margin-top: auto; padding-top: .3rem; font-size: .88rem; color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .2em .65em; border-radius: 99px; background: color-mix(in srgb, var(--c, var(--accent)) 13%, var(--surface)); color: var(--c, var(--accent)); font-weight: 700; font-size: .82rem; }
.lang { font-weight: 700; border: 1px solid var(--line); border-radius: 4px; padding: 0 .3em; font-size: .78rem; }
@media (min-width: 900px) {
  .feed > .card.is-lead { grid-column: span 2; grid-row: span 2; }
  .feed > .card.is-lead .card-media { aspect-ratio: 16 / 10; }
  .feed > .card.is-lead h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.15; }
  .feed > .card.is-lead p { -webkit-line-clamp: 4; font-size: 1.05rem; }
}
.feed-empty { background: var(--surface); border: 1px dashed var(--ink-3); border-radius: var(--r-l); padding: 1.6rem 2rem; max-width: 40rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin: 2.2rem 0 0; }
.news-meta { font-size: .95rem; color: var(--ink-3); margin: -0.5rem 0 1.2rem; }

/* ==========================================================================
   Test
   ========================================================================== */
.quiz { max-width: 46rem; }
.quiz fieldset { border: 0; background: var(--surface); border-radius: var(--r-m); padding: 1.2rem 1.3rem 1rem; margin: 0 0 1rem; }
.quiz legend { font: 400 1.2rem/1.3 var(--f-display); padding: 0; float: left; width: 100%; margin-bottom: .8rem; }
.quiz legend + * { clear: both; }
.quiz .hint { font-size: .95rem; color: var(--ink-3); margin: .2rem 0 .8rem; }
.opts { display: grid; gap: .5rem; }
@media (min-width: 640px) { .opts { grid-template-columns: 1fr 1fr; } }
.opts label { display: flex; align-items: center; gap: .7rem; cursor: pointer; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--paper); line-height: 1.3; }
.opts label:hover { border-color: var(--ink-3); }
.opts .pts { display: none; }
.opts input { accent-color: var(--accent); width: 1.15rem; height: 1.15rem; flex: none; margin: 0; }
.opts label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.opts label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.result { position: sticky; bottom: 0; z-index: 5; margin-top: 1.5rem; background: var(--ink); color: var(--paper); border-radius: var(--r-m) var(--r-m) 0 0; padding: 1.1rem 1.3rem; }
.result-row { display: flex; align-items: center; gap: 1rem; }
.result-score { display: none; }
.result-level { font: 400 1.5rem/1.2 var(--f-display); }
.result p { margin: .6rem 0 0; opacity: .88; font-size: 1.02rem; }
.result-meter { height: .55rem; border-radius: 99px; background: linear-gradient(90deg, #8fd18f, #c8d93c 35%, #d6a9e6 65%, #a65cbf); position: relative; margin-top: .9rem; }
.result-meter i { position: absolute; top: -.35rem; width: 4px; height: 1.25rem; border-radius: 2px; background: var(--paper); transform: translateX(-50%); left: var(--pos, 0%); transition: left .3s; box-shadow: 0 0 0 2px var(--ink); }
.quiz button.btn { cursor: pointer; }
.result:focus { outline: none; }
.result.is-final { position: static; border-radius: var(--r-m); }
.result .pending { opacity: .7; }
.profiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin: 1.4rem 0 2rem; }
.profiles article { background: var(--surface); border-radius: var(--r-m); padding: 1.1rem 1.2rem; }
.profiles h3 { margin-bottom: .3rem; }
.profiles p { font-size: .97rem; color: var(--ink-2); margin: 0; }

/* ==========================================================================
   Herramientas
   ========================================================================== */
.tools-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.tools-list a { display: grid; gap: .5rem; height: 100%; padding: 1.4rem; background: var(--surface); border-radius: var(--r-m); text-decoration: none; color: var(--ink); border-bottom: 4px solid transparent; }
.tools-list a:hover { border-bottom-color: var(--hi); }
.tools-list .icon { width: 2rem; height: 2rem; color: var(--accent); }
.tools-list b { font: 400 1.3rem/1.2 var(--f-display); }
.tools-list span { color: var(--ink-2); font-size: 1rem; }
.tool { background: var(--surface); border-radius: var(--r-l); padding: clamp(1.1rem, 3vw, 1.8rem); margin: 0 0 2rem; max-width: 50rem; }
.tool h2 { font-size: 1.5rem; }
.tool-row { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); align-items: end; }
.tool label { display: grid; gap: .3rem; font-size: .92rem; font-weight: 650; color: var(--ink-2); }
.tool input, .tool select, .tool textarea { width: 100%; padding: .6rem .7rem; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--paper); font-size: 1.05rem; font-weight: 400; color: var(--ink); }
.tool textarea { min-height: 9rem; font-family: var(--f-text); line-height: 1.5; resize: vertical; }
.tool input:focus, .tool select:focus, .tool textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tool-out { margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: var(--r-m); background: color-mix(in srgb, var(--hi) 28%, var(--surface)); font-size: 1.05rem; }
.tool-out b.big { display: block; font: 400 2rem/1.1 var(--f-display); }
.tool-out p { margin: .3rem 0 0; }
.tool-out:empty { display: none; }
.tool-out pre { white-space: pre-wrap; font: inherit; margin: 0; }
.tool .note { font-size: .9rem; color: var(--ink-3); margin: .8rem 0 0; }
.hc-rows { display: grid; gap: .6rem; margin: 0 0 .8rem; }
.hc-row { display: grid; gap: .5rem; grid-template-columns: minmax(0, 1fr) 6.5rem 2.6rem; align-items: center; }
.hc-row .hc-x { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.hc-total { display: grid; gap: .3rem 1.4rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }

/* Menú semanal */
.week { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; }
.week > li { background: var(--surface); border-radius: var(--r-m); padding: 1rem 1.1rem; margin: 0; }
.week h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.week dl { margin: 0; display: grid; gap: .5rem; }
.week dt { font-size: .82rem; color: var(--ink-3); font-weight: 650; }
.week dd { margin: 0; line-height: 1.35; }
.week dd a { color: var(--ink); text-decoration: none; font-weight: 600; }
.week dd a:hover { text-decoration: underline; text-decoration-color: var(--hi); text-decoration-thickness: 2px; }
.shop { columns: 2 15rem; column-gap: 2rem; background: var(--surface); border-radius: var(--r-l); padding: 1.3rem 1.5rem; margin: 1rem 0 2rem; }
.shop h3 { font-size: 1.1rem; margin: 0 0 .4rem; break-after: avoid; }
.shop ul { list-style: none; margin: 0 0 1.1rem; padding: 0; break-inside: avoid; }
.shop li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border-bottom: 1px dotted var(--line); font-size: .98rem; }
.shop li span:last-child { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.menu-controls { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin: 0 0 1rem; }
.menu-controls label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 650; color: var(--ink-2); }
.menu-controls select { padding: .55rem .7rem; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); font-size: 1rem; }

/* ==========================================================================
   Infografías del sitio
   ========================================================================== */
.plate { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 680px) { .plate { grid-template-columns: minmax(14rem, 18rem) 1fr; } }
.plate svg { width: 100%; height: auto; }
.plate-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.plate-legend li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .2rem .7rem; margin: 0; }
.plate-legend i { width: 1.1rem; height: 1.1rem; border-radius: 4px; margin-top: .25rem; }
.plate-legend b { display: block; }
.plate-legend span { color: var(--ink-2); font-size: .97rem; line-height: 1.4; }
.cal { overflow-x: auto; position: relative; }
.cal table { font-size: .9rem; min-width: 34rem; }
.cal th, .cal td { padding: .3rem .25rem; border-bottom: 1px solid var(--line); }
.cal thead th { text-align: center; font-size: .8rem; background: transparent; }
.cal tbody th { font-weight: 600; white-space: nowrap; padding-right: .7rem; }
.cal td { text-align: center; }
.cal td i { display: block; height: .95rem; border-radius: 3px; background: color-mix(in srgb, var(--line) 50%, transparent); }
.cal td.on i { background: var(--ok); }
.cal td.now { background: color-mix(in srgb, var(--hi) 25%, transparent); }
.cal td.on.now i { background: var(--accent); }
.cal .grp th { padding-top: .9rem; font-family: var(--f-display); font-weight: 400; font-size: 1rem; }
.al-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.al-grid li { margin: 0; }
.al-grid a, .al-grid span.al-i { display: flex; gap: .6rem; align-items: center; padding: .7rem .8rem; border-radius: var(--r-s); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 600; height: 100%; }
.al-grid a:hover { background: var(--accent-soft); }
.al-grid .icon { width: 1.5rem; height: 1.5rem; color: var(--warn-ink); }
.al-grid small { display: block; font-weight: 400; color: var(--ink-3); font-size: .82rem; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.prose .bars { padding: 0; }
.bars li { margin: 0; display: grid; grid-template-columns: minmax(7rem, 12rem) 1fr; gap: .3rem 1rem; align-items: center; }
@media (max-width: 560px) { .bars li { grid-template-columns: 1fr; } }
.bars .b-label { font-weight: 650; line-height: 1.3; }
.bars .b-track { position: relative; height: 2.2rem; background: color-mix(in srgb, var(--line) 45%, var(--surface)); border-radius: 999px; overflow: hidden; }
.bars .b-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c, var(--accent)); border-radius: 999px; }
.bars .b-val { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.hc-tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.hc-tiles li { margin: 0; background: var(--paper); border-radius: var(--r-s); padding: .7rem .8rem; }
.hc-tiles b { display: block; font: 400 1.45rem/1.1 var(--f-display); color: var(--accent); }
.hc-tiles span { font-size: .93rem; color: var(--ink-2); line-height: 1.3; display: block; }
.batch { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); }
.batch li { margin: 0; border-radius: var(--r-s); padding: .8rem .8rem; background: var(--paper); font-size: .93rem; line-height: 1.35; }
.batch li b { display: block; font: 400 1.1rem/1.2 var(--f-display); margin-bottom: .3rem; }
.batch li.cook { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .batch li.cook { background: #3d2347; } }
.temp-table td:nth-child(2), .temp-table td:nth-child(3) { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ==========================================================================
   Utilidades
   ========================================================================== */
.list-links { list-style: none; padding: 0; display: grid; gap: .6rem; }
.list-links a { font-size: 1.15rem; font-weight: 700; }
.two-col { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; } }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 0 0 1rem; }
.pill-row li { margin: 0; padding: .35em .85em; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .97rem; }
.small-note { font-size: .93rem; color: var(--ink-3); margin: .8rem 0 0; }
.regions { list-style: none; padding: 0; margin: 1.2rem 0 2rem; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.regions li { margin: 0; }
.regions a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .75rem .9rem; border-radius: var(--r-s); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; height: 100%; }
.regions a:hover { box-shadow: inset 0 -3px 0 var(--hi); }
.regions small { color: var(--ink-3); font-weight: 400; white-space: nowrap; }
.months { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8rem), 1fr)); }
.months li { margin: 0; }
.months a { display: block; text-align: center; padding: .7rem .5rem; border-radius: var(--r-s); background: var(--surface); color: var(--ink); text-decoration: none; font: 400 1.1rem/1.2 var(--f-display); }
.months a[aria-current="true"] { background: var(--accent); color: #fff; }
.months small { display: block; font: 400 .8rem/1.3 var(--f-text); color: inherit; opacity: .75; }

@media print {
  .site-header, .site-footer, .toc, .related, .hero-cta, .btn, .crumbs, .recipes-block, .servings, .disclaimer, .r-secs, .faq { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .r-head, .r-grid { display: block; }
  .r-photo { max-width: 9cm; margin: 0 0 .5cm; }
  .r-ing { position: static; max-height: none; overflow: visible; padding: 0; }
  .ig, .keypoints, .r-steps li { break-inside: avoid; }
  a { color: #000; }
}
