/* bienestar.la — capa de diseño "Organic" (crema y arena, terracota + salvia, Caprasimo sobre Figtree).
   Se carga DESPUÉS del CSS propio de cada página: con la misma especificidad, gana esta hoja.
   Los tokens viejos (--ink, --serif, --highlight…) se re-mapean a los nuevos para que el CSS inline
   ya horneado en cada nota herede la paleta sin re-renderizar nada. */

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;

  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;
  --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --font-heading: "Caprasimo", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);
  --gutter: clamp(20px, 4vw, 56px);

  /* tokens viejos → nuevos */
  --ink: var(--color-text);
  --ink-soft: var(--color-neutral-800);
  --paper: var(--color-bg);
  --paper-soft: var(--color-surface);
  --cream: var(--color-surface);
  --bg: var(--color-bg);
  --highlight: var(--color-accent-700);
  --highlight2: var(--color-accent-2-700);
  --muted: var(--color-neutral-700);
  --muted-soft: var(--color-neutral-400);
  --border: var(--color-neutral-300);
  --gold: var(--color-accent);
  --dark: var(--color-accent-2-800);
  --serif: var(--font-body);
  --sans: var(--font-body);
  --mono: var(--font-body);
  --maxw: 1280px;
  --readw: 720px;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
}
h1, h2, h3, h4,
.brand {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: -0.015em;
}
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
a:hover { color: var(--color-accent-700); }

.wrap, .narrow, .breadcrumb .wrap { max-width: var(--maxw); padding: 0 var(--gutter); }

/* foto "lavada": se asienta sobre el fondo cálido */
.card-img img, .hero-figure img, .inline-figure img, .post-body img {
  filter: saturate(0.6) contrast(0.85) brightness(1.1) opacity(0.94);
}

/* ── BARRA SUPERIOR ─────────────────────────────── */
.topbar {
  position: relative;
  background: var(--color-bg);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
}
.topbar-inner {
  position: relative;
  max-width: var(--maxw);
  padding: 20px var(--gutter);
  gap: 24px;
}
.topbar-inner::after {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0;
  border-bottom: 1.5px solid var(--color-neutral-300);
}
.brand { font-size: 24px; line-height: 1; color: var(--color-text); }
.brand .dot { color: var(--color-accent); font-style: normal; font-weight: 400; }
.nav { flex: 1; justify-content: center; gap: 2px; min-width: 0; }
.nav a {
  white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--color-text);
  padding: 8px 12px; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--color-surface); color: var(--color-text); }
.nav a.active { color: var(--color-accent-700); font-weight: 700; background: var(--color-surface); }
.nav a.active::after { display: none; }
.header-glossary {
  flex: none; font-family: var(--font-body); font-size: 14px; font-weight: 700;
  letter-spacing: 0; text-transform: none;
  padding: 9px 18px; border: 0; border-radius: 999px;
  background: var(--color-accent); color: var(--color-bg);
}
.header-glossary:hover { background: var(--color-accent-600); color: var(--color-bg); border-color: transparent; }
.nav-toggle { display: none; }
.nav-toggle .ico-cerrar { display: none; }

@media (max-width: 1060px) {
  .topbar-inner { flex-wrap: nowrap; gap: 10px; }
  .brand { margin-right: auto; font-size: 22px; }
  .header-glossary { order: 2; width: auto; height: auto; padding: 8px 14px; }
  .header-glossary span { display: inline; }
  .nav-toggle {
    order: 3; display: grid; place-items: center; width: 44px; height: 44px; flex: none;
    border-radius: 50%; background: var(--color-surface); color: var(--color-text); cursor: pointer;
  }
  .nav {
    order: 4; display: none; position: absolute; z-index: 60;
    left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
    width: auto; margin: 0; padding: 14px; flex-direction: column; gap: 4px;
    border: 0; border-radius: 28px; background: var(--color-bg); box-shadow: var(--shadow-lg);
  }
  .nav a {
    padding: 12px 16px; border: 0; border-radius: 999px;
    font-family: var(--font-body); font-size: 16px; font-weight: 600; letter-spacing: 0;
  }
  .nav-toggle-cb:checked ~ .nav { display: flex; }
  .nav-toggle-cb:checked ~ .nav-toggle .ico-menu { display: none; }
  .nav-toggle-cb:checked ~ .nav-toggle .ico-cerrar { display: block; }
}

/* ── MIGAS ─────────────────────────────────────── */
.breadcrumb {
  padding: 18px 0 0; font-family: var(--font-body); font-size: 13px;
  letter-spacing: 0; text-transform: none; color: var(--color-neutral-700);
}
.breadcrumb a { color: var(--color-neutral-700); }
.breadcrumb a:hover { color: var(--color-accent-700); }
.breadcrumb span[aria-current="page"] { color: var(--color-neutral-700); }
.breadcrumb span[aria-hidden="true"] { color: var(--color-neutral-400); margin: 0 6px; }

/* ── ETIQUETAS Y TARJETAS (comunes) ─────────────── */
.eyebrow, .section-label, .card-cat, .card .card-meta, .cat-badge {
  font-family: var(--font-body); letter-spacing: .08em;
}
.eyebrow { font-size: 12px; font-weight: 700; color: var(--color-accent-700); }
.section-label { font-size: 12px; font-weight: 700; color: var(--color-neutral-700); }
.section-label::after { display: none; }
.section-label a { background: none; color: var(--color-accent-700); }
.card { color: var(--color-text); }
.card:hover { transform: translateY(-3px); }
.card:hover h3, .card:hover h4 { color: var(--color-accent-700); }
.card-img { border-radius: 28px; background: var(--color-surface); }
.card-cat { font-size: 12px; font-weight: 700; color: var(--color-accent-700); }
.card h3 { font-family: var(--font-heading); font-weight: 400; font-size: 20px; line-height: 1.2; }
.card p { color: var(--color-neutral-800); }
.card .card-meta { font-size: 13px; letter-spacing: 0; color: var(--color-neutral-700); }
.card-featured h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.12; }
.tag { border-radius: 999px; }

/* ── HOME ──────────────────────────────────────── */
.hero { padding: clamp(24px, 5vw, 56px) 0 32px; border-bottom: 0; }
.hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
.hero-lead h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 400; line-height: 1.03; margin-bottom: 18px; }
.hero-lead h1 em { font-style: normal; font-weight: 400; color: var(--color-accent); }
.hero-lead p.dek { font-size: 18px; color: var(--color-neutral-800); max-width: 640px; }
.hero-lead .byline { font-family: var(--font-body); border-top: 0; padding-top: 0; gap: 8px; letter-spacing: 0; }
.hero-lead .byline span {
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  background: var(--color-accent-2-200); color: var(--color-accent-2-900);
}
.hero-side { border-left: 0; padding-left: 0; }
.hero-side h4 {
  font-family: var(--font-heading); font-size: 24px; font-weight: 400; letter-spacing: -0.015em;
  text-transform: none; color: var(--color-text); border-bottom: 0; padding-bottom: 0; margin-bottom: 12px;
}
.side-list { display: flex; flex-direction: column; gap: 10px; }
.side-list li {
  border-bottom: 0; padding: 12px 18px 12px 12px; border-radius: 24px; background: var(--color-surface);
  grid-template-columns: 44px 1fr; align-items: center; transition: background .15s ease;
}
.side-list li:hover { background: var(--color-neutral-300); }
.side-list .num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--color-bg); display: grid; place-items: center;
  font-family: var(--font-heading); font-style: normal; font-weight: 400; font-size: 18px; color: var(--color-accent);
}
.side-list a { font-family: var(--font-body); font-size: 15px; font-weight: 700; }
.side-list .side-meta { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--color-neutral-700); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { border-top: 0; padding-top: 0; }
}

.featured-band { padding: 48px 0 24px; }
.featured-grid { gap: 40px; }
.featured-grid .card-featured .card-img { border-radius: 32px; }
.featured-sidecol { gap: 12px; }
.featured-sidecol .card {
  grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 0 16px;
  padding: 10px; border-radius: 24px; background: var(--color-surface);
}
.featured-sidecol .card:hover { transform: none; background: var(--color-neutral-300); }
.featured-sidecol .card-img { border-radius: 18px; grid-row: 1 / span 4; }
.featured-sidecol .card h3 { font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0; }

.cat-section { padding: 80px 0 0; border-top: 0; }
.cat-header { margin-bottom: 24px; justify-content: flex-start; align-items: baseline; }
.cat-header h2 { font-size: clamp(28px, 3vw, 34px); font-weight: 400; gap: 14px; flex-wrap: wrap; }
.cat-header h2 .dot-cat { display: none; }
.cat-header h2 em {
  font-family: var(--font-body); font-size: 16px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--color-accent-2-700);
}
.cat-header .see-all {
  margin-left: auto; font-family: var(--font-body); font-size: 14px; font-weight: 700;
  letter-spacing: 0; text-transform: none; color: var(--color-accent-700); border-bottom: 0;
}
.cat-layout { gap: 28px 24px; }
.cat-layout .primary .card-img { border-radius: 240px 240px 32px 32px; }
.cat-layout .primary h3 { font-size: 26px; }
.cat-layout .sec .card-img { aspect-ratio: 1; border-radius: 50%; }
.cat-layout .sec h3 { font-family: var(--font-body); font-weight: 700; font-size: 16px; letter-spacing: 0; line-height: 1.3; }
.cat-list { border-top: 0; gap: 10px; padding-top: 0; }
.cat-list .card { padding: 14px 18px; border-bottom: 0; border-radius: 24px; background: var(--color-surface); }
.cat-list .card:hover { transform: none; background: var(--color-neutral-300); }
.cat-list h3 { font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0; }

/* ── CATEGORÍA ─────────────────────────────────── */
.cat-hero {
  margin: 12px auto 0; max-width: calc(var(--maxw) - 2 * var(--gutter));
  padding: clamp(28px, 4vw, 48px) 0; border: 0; border-radius: 36px;
  background: var(--color-accent-2-200); color: var(--color-accent-2-900);
}
@media (max-width: 1280px) { .cat-hero { margin-left: var(--gutter); margin-right: var(--gutter); } }
.cat-hero .wrap { padding: 0 clamp(24px, 4vw, 48px); }
.cat-hero h1 { font-size: clamp(40px, 5.4vw, 62px); font-weight: 400; line-height: 1.02; color: var(--color-accent-2-900); }
.cat-hero .dek { font-size: 18px; color: var(--color-accent-2-900); max-width: 560px; }
.cat-hero .cat-meta { font-family: var(--font-body); letter-spacing: 0; text-transform: none; gap: 10px; }
.cat-hero .cat-meta span {
  font-size: 14px; font-weight: 700; padding: 9px 18px; border-radius: 999px;
  background: var(--color-bg); color: var(--color-accent-2-700);
}
.cat-hero .cat-meta span + span { background: var(--color-accent-2-700); color: var(--color-bg); }
.cat-featured { padding: 40px 0 16px; }
.cat-featured .card-featured {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(24px, 3vw, 40px);
  align-content: center; border-radius: 36px; overflow: hidden; background: var(--color-surface);
}
.cat-featured .card-featured:hover { transform: none; background: var(--color-neutral-300); }
.cat-featured .card-featured > * { grid-column: 2; margin-right: clamp(24px, 3vw, 40px); }
.cat-featured .card-featured > .card-img {
  grid-column: 1; grid-row: 1 / span 5; margin: 0; border-radius: 0; aspect-ratio: auto; min-height: 280px;
}
.cat-featured .card-featured > .card-cat { margin-top: clamp(24px, 3vw, 40px); align-self: end; }
.cat-featured .card-featured > .card-meta { margin-bottom: clamp(24px, 3vw, 40px); }
.cat-featured h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 400; line-height: 1.12; }
@media (max-width: 760px) {
  .cat-featured .card-featured { grid-template-columns: 1fr; }
  .cat-featured .card-featured > * { grid-column: 1; margin-left: 24px; margin-right: 24px; }
  .cat-featured .card-featured > .card-img { grid-row: auto; margin: 0; aspect-ratio: 16 / 10; min-height: 0; }
}
.cat-grid { padding: 64px 0 0; }
.cat-grid-header { border-bottom: 0; padding-bottom: 0; margin-bottom: 24px; }
.cat-grid-header h2 { font-size: clamp(28px, 3vw, 34px); font-weight: 400; }
.cluster-filters a {
  font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
  padding: 9px 16px; border: 0; border-radius: 999px; background: var(--color-surface); color: var(--color-text);
}
.cluster-filters a:hover, .cluster-filters a.active { background: var(--color-accent); color: var(--color-bg); }
.cat-grid-list { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; }
.cat-grid-list .card .card-img { aspect-ratio: 1.5; border-radius: 28px; }
.cat-grid-list .card h3 { font-size: 20px; line-height: 1.2; }
.cat-grid-list .card p { font-size: 14px; color: var(--color-neutral-800); }
.cat-grid-list .card-cat, .related-grid .card-cat {
  display: inline-block; font-size: 12px; letter-spacing: 0; text-transform: none;
  padding: 4px 10px; border-radius: 999px; background: var(--color-accent-200); color: var(--color-accent-900);
}
.pagination {
  border-top: 0; font-family: var(--font-body); font-size: 14px; letter-spacing: 0; text-transform: none;
}
.pagination a {
  padding: 12px 24px; border: 0; border-radius: 999px; background: var(--color-accent); color: var(--color-bg);
  font-family: var(--font-heading); font-size: 16px;
}
.pagination a:hover { background: var(--color-accent-600); color: var(--color-bg); }
.cat-empty-card { border: 0; border-radius: 36px; background: var(--color-surface); }
.cat-empty-card h2 { font-weight: 400; }
.cat-empty-btn { border-radius: 999px; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; text-transform: none; background: var(--color-accent); border-color: var(--color-accent); }

/* ── ARTÍCULO ──────────────────────────────────── */
.post {
  max-width: var(--maxw);
  padding: 24px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 720px);
  column-gap: 64px;
  justify-content: start;
}
.post > * { grid-column: 2; min-width: 0; }
.post > .post-hero { grid-column: 1 / -1; }
.post > .post-related { grid-column: 1 / -1; }
.post > .post-toc {
  grid-column: 1; grid-row: 2 / span 40; align-self: start;
  position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto;
}

.post-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: 48px; align-items: end; margin-bottom: 56px;
}
.post-hero > * { grid-column: 1; }
.post-hero > .hero-figure { grid-column: 2; grid-row: 1 / span 6; align-self: end; margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 1.3; object-fit: cover; border-radius: 240px 240px 32px 32px; background: var(--color-surface); }
.hero-figure figcaption { padding: 8px 4px 0; font-family: var(--font-body); font-size: 13px; letter-spacing: 0; color: var(--color-neutral-700); }
.post-hero .eyebrow {
  justify-self: start; font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0; text-transform: none; padding: 5px 12px; border-radius: 999px;
  background: var(--color-accent-200); color: var(--color-accent-900); margin-bottom: 18px;
}
.post-hero .eyebrow a { color: var(--color-accent-900); }
.post-hero h1 { font-size: clamp(34px, 4.4vw, 48px); font-weight: 400; line-height: 1.06; letter-spacing: -0.015em; margin-bottom: 18px; }
.post-hero .dek { font-size: 18px; line-height: 1.6; color: var(--color-neutral-800); margin-bottom: 20px; }
.post-hero .byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
  font-family: var(--font-body); font-size: 14px; letter-spacing: 0; color: var(--color-neutral-700);
  padding: 0; border: 0; margin: 0;
}
.post-hero .byline .author { display: flex; align-items: center; gap: 12px; flex-basis: 100%; color: var(--color-text); }
.post-hero .byline .author::before {
  content: "b"; width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--color-accent-2-600); color: var(--color-bg);
  font-family: var(--font-heading); font-size: 18px;
}
.post-hero .byline a { color: var(--color-text); font-weight: 700; text-decoration: none; }
.post-hero .byline > * + *:not(.author)::before { content: "·"; margin-right: 12px; color: var(--color-neutral-400); }
.post-hero .byline > .author + *::before { content: none; }
.post-hero .byline .author { margin-bottom: 4px; }

@media (max-width: 960px) {
  .post { display: block; padding-top: 16px; }
  .post-hero { display: flex; flex-direction: column; align-items: stretch; margin-bottom: 32px; }
  .post-hero .eyebrow { align-self: flex-start; }
  .post-hero > .hero-figure { order: 9; margin-top: 28px; }
  .hero-figure img { border-radius: 160px 160px 28px 28px; }
  .post > .post-toc { position: static; max-height: none; overflow: visible; margin: 0 0 32px; padding: 22px 24px; border-radius: 28px; background: var(--color-surface); }
}

.post-toc { background: none; border: 0; border-radius: 0; padding: 0; margin: 0; }
.post-toc h4 {
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--color-neutral-700); margin-bottom: 12px;
}
.post-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; display: flex; flex-direction: column; gap: 10px; }
.post-toc li {
  counter-increment: toc; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px;
  font-family: var(--font-body); font-size: 14px; line-height: 1.35; margin: 0;
}
.post-toc li::before {
  content: counter(toc); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--color-surface); color: var(--color-text);
}
.post-toc li:hover::before { background: var(--color-accent); color: var(--color-bg); }
.post-toc a { color: var(--color-text); padding-top: 3px; }
.post-toc a:hover { color: var(--color-accent-800); }
@media (max-width: 960px) { .post-toc li::before { background: var(--color-bg); } }

.post-body { font-family: var(--font-body); font-size: 17px; line-height: 1.72; color: var(--color-text); }
.post-body p { margin-bottom: 1.15em; }
.post-body hr { display: none; }
.post-body h2 { font-size: clamp(28px, 3vw, 34px); font-weight: 400; line-height: 1.15; margin: 1.9em 0 .6em; scroll-margin-top: 24px; }
.post-body > h2:first-child, .post-body > hr:first-child + h2 { margin-top: 0; }
.post-body h3 { font-size: 24px; font-weight: 400; line-height: 1.2; margin: 1.6em 0 .55em; scroll-margin-top: 24px; }
.post-body h4 { font-family: var(--font-body); font-weight: 700; font-size: 18px; letter-spacing: 0; margin: 1.4em 0 .4em; }
.post-body a { color: var(--color-accent-700); text-decoration-color: var(--color-accent-300); text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: var(--color-accent-700); }
.post-body ul, .post-body ol { margin: 0 0 1.2em 1.3em; }
.post-body li { margin-bottom: .45em; padding-left: .2em; }
.post-body li::marker { color: var(--color-accent); font-weight: 700; }
.post-body strong { font-weight: 700; }
.post-body blockquote {
  margin: 1.4em 0; padding: 20px 24px; border: 0; border-radius: 28px;
  background: var(--color-accent-2-200); color: var(--color-accent-2-900); font-style: normal; font-size: 16px;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--color-surface); border-radius: 8px; }
.post-body img { border-radius: 28px; }
.post-body sup, .post-body sup a { color: var(--color-accent-700); font-weight: 700; font-size: 12px; text-decoration: none; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; line-height: 1.45; }
.post-body th {
  text-align: left; padding: 0 14px 10px 0; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--color-neutral-700); border: 0;
}
.post-body td { padding: 14px 14px 14px 0; vertical-align: top; border: 0; border-top: 1px solid var(--color-neutral-300); }
.post-body td:first-child { font-weight: 600; }
@media (max-width: 640px) { .post-body table { display: block; overflow-x: auto; } }
.inline-figure img { border-radius: 28px; }
.inline-figure figcaption { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--color-neutral-700); }
.exercise-video { margin: 8px 0 24px; }
.video-embed { border-radius: 28px; background: var(--color-neutral-800); box-shadow: none; }
.video-embed__meta { font-size: 13px; color: var(--color-neutral-700); }
.video-embed__label { font-family: var(--font-body); font-weight: 700; color: var(--color-neutral-700); }
.video-embed__meta a { color: var(--color-accent-700); font-weight: 600; text-decoration: none; }
.video-embed__dur { color: var(--color-neutral-700); }

.post-faq { margin-top: 2.4em; padding-top: 0; border-top: 0; }
.post-faq h2 { font-size: clamp(28px, 3vw, 34px); font-weight: 400; margin-bottom: 18px; }
.post-faq dl { gap: 10px; }
.faq-item { padding: 18px 22px; border: 0; border-radius: 28px; background: var(--color-surface); }
.faq-item dt { font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: 0; margin-bottom: 8px; }
.faq-item dd { font-size: 15px; line-height: 1.6; color: var(--color-neutral-800); }

.citations { margin-top: 2.4em; padding-top: 0; border-top: 0; }
.citations h3 {
  font-family: var(--font-heading); font-size: 26px; font-weight: 400; letter-spacing: -0.015em;
  text-transform: none; color: var(--color-text); margin-bottom: 16px;
}
.citations ol { list-style: none; padding: 0; counter-reset: cita; display: flex; flex-direction: column; gap: 8px; }
.citations li {
  counter-increment: cita; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start;
  font-size: 14px; line-height: 1.5; margin: 0; color: var(--color-neutral-800);
}
.citations li::before {
  content: counter(cita); grid-row: 1 / span 3; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: var(--color-surface); color: var(--color-accent-700);
}
.citations li > * { grid-column: 2; }
.citations a { padding-top: 5px; color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-neutral-400); text-underline-offset: 3px; }
.cit-kind { font-family: var(--font-body); font-size: 12px; color: var(--color-neutral-700); }
.disclaimer {
  margin-top: 1.6em; padding: 20px 24px; background: none; border: 1.5px solid var(--color-neutral-300);
  border-radius: 24px; font-size: 14px; line-height: 1.6; color: var(--color-neutral-800);
}

.post-related { margin-top: 88px; padding-top: 0; border-top: 0; }
.post-related h3 {
  font-family: var(--font-heading); font-size: clamp(26px, 3vw, 32px); font-weight: 400; letter-spacing: -0.015em;
  text-transform: none; color: var(--color-text); margin-bottom: 20px;
}
.related-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.related-grid .card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; align-items: center; align-content: center;
  padding: 10px 18px 10px 10px; border-radius: 32px; background: var(--color-surface);
}
.related-grid .card:hover { transform: none; background: var(--color-neutral-300); }
.related-grid .card > * { grid-column: 2; }
.related-grid .card-img { grid-column: 1; grid-row: 1 / span 3; aspect-ratio: 1; border-radius: 50%; margin: 0; }
.related-grid .card-cat { justify-self: start; margin-bottom: 6px; }
.related-grid h4 { font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.3; margin-bottom: 4px; }
@media (max-width: 720px) { .related-grid { grid-template-columns: 1fr; } }

/* ── PÁGINAS FIJAS (metodología, glosario, autores…) ─ */
.static-hero { padding: clamp(32px, 5vw, 64px) 0 32px; border-bottom: 0; }
.static-hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--color-accent-700); }
.static-hero h1 { font-size: clamp(44px, 6.5vw, 76px); font-weight: 400; line-height: 1; letter-spacing: -0.015em; }
.static-hero .dek { font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--color-neutral-800); max-width: 680px; }
.static-hero .stamp { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; color: var(--color-neutral-700); }
.static-hero .stats { gap: 10px; font-family: var(--font-body); letter-spacing: 0; text-transform: none; }
.static-hero .stats span {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 16px; border-radius: 999px;
  background: var(--color-accent-2-200); color: var(--color-accent-2-900); font-size: 13px; font-weight: 600;
}
.static-hero .stats strong { font-family: var(--font-heading); font-weight: 400; font-size: 18px; color: var(--color-accent-2-700); }

.method-body h2.section { font-family: var(--font-heading); font-size: clamp(26px, 3vw, 32px); font-weight: 400; }
.method-body h2.section .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; vertical-align: 6px;
  background: var(--color-accent); color: var(--color-bg); font-family: var(--font-heading); font-size: 17px;
}
.method-body h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.method-body p, .method-body li { font-family: var(--font-body); font-size: 17px; line-height: 1.72; }
.method-body a { color: var(--color-accent-700); }
.toc { border: 0; border-radius: 28px; background: var(--color-surface); padding: 22px 26px; }
.toc h2 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--color-neutral-700); }
.toc ol { font-family: var(--font-body); font-size: 15px; }
.toc a { color: var(--color-text); }
.sources-table { border: 0; font-size: 15px; }
.sources-table th { background: none; font-family: var(--font-body); font-weight: 700; color: var(--color-neutral-700); border-bottom: 0; }
.sources-table td { border-bottom: 0; border-top: 1px solid var(--color-neutral-300); }
.sources-table td:first-child { font-family: var(--font-body); font-weight: 700; }
.sources-table .weight { font-family: var(--font-body); font-weight: 700; background: var(--color-accent-200); color: var(--color-accent-900); }
.pipeline-step { border: 0; border-radius: 28px; background: var(--color-surface); padding: 18px 22px; }
.pipeline-step::before { font-family: var(--font-heading); font-weight: 400; color: var(--color-accent); }
.pipeline-step h4 { font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.callout { border: 0; border-radius: 28px; padding: 20px 24px; background: var(--color-accent-2-200); color: var(--color-accent-2-900); }
.hard-rules { border: 1.5px solid var(--color-accent-300); border-radius: 32px; background: var(--color-accent-100); }
.hard-rules h3 { font-family: var(--font-body); font-weight: 700; color: var(--color-accent-700); }
.social-links a { border: 0; border-radius: 999px; background: var(--color-surface); font-family: var(--font-body); font-weight: 600; }
.social-links svg { color: var(--color-accent-700); }

/* glosario */
.glosario-body .wrap { max-width: 960px; }
.gl-toc a {
  font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
  padding: 8px 16px; border: 0; border-radius: 999px; background: var(--color-surface); color: var(--color-text);
}
.gl-toc a:hover { background: var(--color-accent); color: var(--color-bg); border-color: transparent; }
.gl-filter {
  position: sticky; top: 0; z-index: 20; border: 0; border-radius: 0; background: var(--color-bg); padding: 14px 0;
}
.gl-search { padding: 12px 20px; border: 0; border-radius: 999px; background: var(--color-surface); }
.gl-search:focus-within { background: var(--color-surface); box-shadow: 0 0 0 2px var(--color-accent); }
.gl-search input { font-family: var(--font-body); font-size: 15px; }
.gl-search input::placeholder { font-style: normal; color: var(--color-neutral-700); }
.gl-search .gl-count { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--color-neutral-700); }
.gl-search .gl-clear { border-radius: 50%; background: var(--color-bg); }
.gl-az { gap: 4px; margin-top: 12px; }
.gl-az button {
  width: auto; min-width: 34px; height: 34px; padding: 0 8px; border: 0; border-radius: 999px;
  background: var(--color-surface); font-family: var(--font-body); font-size: 13px; font-weight: 700;
}
.gl-az button:hover:not(:disabled):not(.active) { background: var(--color-neutral-300); color: var(--color-text); }
.gl-az button.active { background: var(--color-accent); color: var(--color-bg); }
.gl-az button:disabled { background: transparent; color: var(--color-neutral-400); }
.gl-az .gl-az-all { font-size: 13px; letter-spacing: 0; text-transform: none; padding: 0 14px; }
.gl-section-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 18px; justify-content: flex-start; }
.gl-section-head h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 400; }
.gl-section-head .count { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--color-accent-2-700); }
.gl-entry {
  border: 0; border-radius: 28px; background: var(--color-surface);
  padding: 24px clamp(20px, 3vw, 32px); margin-bottom: 10px; grid-template-columns: 220px minmax(0, 1fr);
}
.gl-entry:last-child { border: 0; }
.gl-entry .gl-head h3 { font-size: 22px; font-weight: 400; }
.gl-entry .gl-head .gl-cat {
  display: inline-block; margin-top: 6px; font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0; text-transform: none; padding: 4px 10px; border-radius: 999px;
  background: var(--color-accent-2-200); color: var(--color-accent-2-900);
}
.gl-entry .gl-body p.def { font-family: var(--font-body); font-size: 16px; }
.gl-entry .video-embed { border-radius: 24px; }
.gl-entry .gl-body .gl-related .gl-related-label { font-family: var(--font-body); font-weight: 700; letter-spacing: .06em; color: var(--color-neutral-700); }
.gl-entry .gl-body .gl-related a {
  border: 0; border-radius: 999px; background: var(--color-bg); font-family: var(--font-body); font-size: 14px; font-weight: 600; padding: 9px 16px;
}
.gl-entry .gl-body .gl-related a:hover { background: var(--color-neutral-300); color: var(--color-accent-800); }
.gl-entry .gl-body .gl-related .gl-meta { font-family: var(--font-body); font-weight: 400; color: var(--color-neutral-700); }
.gl-entry .gl-body .gl-related .empty { font-family: var(--font-body); font-style: normal; }
.gl-empty { font-family: var(--font-body); font-style: normal; }
@media (max-width: 720px) { .gl-entry { grid-template-columns: 1fr; } }

/* ── PIE (fuentes + por qué distinto + aviso + footer) ─ */
.pie { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.pie .sources-disclaimer { background: none; border: 0; padding: 80px 0 0; display: flex; flex-direction: column; gap: 20px; }
.sd-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.sd-head h2 { font-size: clamp(28px, 3vw, 34px); margin: 0; }
.sd-head p { margin: 0; font-size: 16px; color: var(--color-neutral-800); }
.pie .sources-list {
  list-style: none; margin: 0; padding: 0; max-width: none; counter-reset: fuente;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
}
.pie .sources-list li {
  counter-increment: fuente; margin: 0; padding: 24px; border-radius: 28px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--color-accent-2-200); color: var(--color-accent-2-900);
  font-family: var(--font-body); font-size: 14px; line-height: 1.5;
}
.pie .sources-list li::before {
  content: counter(fuente); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-accent-2-700); color: var(--color-bg); font-family: var(--font-heading); font-size: 16px;
}
.pie .sources-list strong { font-size: 17px; font-weight: 700; }
.sd-link { align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--color-accent-700); }
.pie .methodology-strip {
  margin: 64px 0 0; padding: clamp(28px, 4vw, 48px); border: 0; border-radius: 36px;
  background: var(--color-accent-2-800); color: var(--color-accent-2-100);
  display: flex; flex-wrap: wrap; gap: 32px 48px;
}
.ms-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; }
.ms-text h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); color: var(--color-bg); }
.pie .methodology-strip p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--color-accent-2-100); }
.pie .methodology-strip .sources-process { font-size: 14px; line-height: 1.6; color: var(--color-accent-2-200); border: 0; padding: 0; }
.pie .methodology-strip .tags {
  flex: 1 1 300px; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; align-content: center;
}
.pie .methodology-strip .tag {
  padding: 16px 20px; border: 0; border-radius: 999px; text-align: center;
  background: var(--color-accent-2-700); color: var(--color-bg);
  font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.pie .sources-disclaimer-bottom {
  margin: 32px 0 0; padding: 20px 24px; border-radius: 24px; background: var(--color-surface);
  font-family: var(--font-body); font-size: 14px; font-style: normal; line-height: 1.6; color: var(--color-neutral-800);
}
.pie .sources-disclaimer-bottom strong { color: var(--color-text); }
footer.site-footer { background: none; color: var(--color-text); margin: 0; padding: 64px 0 40px; }
.footer-inner {
  max-width: none; display: flex; flex-wrap: wrap; gap: 40px; padding: 0; border: 0;
}
.footer-brand { flex: 2 1 280px; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand { color: var(--color-text); font-size: 24px; }
.footer-brand .brand .dot { color: var(--color-accent); }
.footer-brand p { margin: 0; font-size: 14px; color: var(--color-neutral-800); }
.footer-social { margin: 0; gap: 8px; }
.footer-social a {
  width: auto; height: auto; padding: 8px 14px; border: 0; border-radius: 999px;
  background: var(--color-surface); color: var(--color-text); font-size: 13px; font-weight: 600;
}
.footer-social a:hover { background: var(--color-neutral-300); color: var(--color-text); border-color: transparent; }
.footer-col { flex: 1 1 160px; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--color-neutral-700); margin-bottom: 12px;
}
.footer-col a { font-size: 14px; color: var(--color-text); }
.footer-col a:hover { color: var(--color-accent-700); }
.footer-bottom {
  max-width: none; margin-top: 40px; padding: 0; font-family: var(--font-body); font-size: 13px;
  letter-spacing: 0; color: var(--color-neutral-700);
}

/* Títulos: el CSS inline de cada página los fija con var(--serif) (ahora Figtree); acá vuelven a Caprasimo. */
.hero-lead h1, .cat-header h2, .cat-grid-header h2, .cat-featured h2, .cat-hero h1, .card h3, .card-featured h3,
.post-hero h1, .post-body h2, .post-body h3, .post-faq h2, .static-hero h1, .gl-section-head h2, .gl-entry .gl-head h3,
.method-body h2.section, .cat-empty-card h2, .cat-layout .primary h3 {
  font-family: var(--font-heading); font-weight: 400; font-synthesis: none;
}
.cat-list { align-content: start; align-self: start; }
.cat-list .card { align-self: start; }

/* ── FICHAS DE PRODUCTO ────────────────────────── */
/* El producto se muestra tal cual: sin foto lavada. */
.page-ficha .hero-figure img, .page-ficha .post-body img { filter: none; }
.ficha-summary { border: 0; border-radius: 28px; padding: 24px 28px; background: var(--color-surface); }
.ficha-brand { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--color-neutral-700); }
.ficha-name { font-family: var(--font-heading); font-weight: 400; font-size: 24px; letter-spacing: -0.015em; }
.ficha-subtype, .ficha-rating__label, .ficha-certs__label { color: var(--color-neutral-700); }
.ficha-rating .stars { color: var(--color-accent); }
.ficha-rating__num { font-family: var(--font-heading); font-weight: 400; font-size: 26px; color: var(--color-accent-700); }
.ficha-rating__num small { color: var(--color-neutral-700); font-family: var(--font-body); }
.ficha-specs th, .ficha-specs td { border-bottom: 0; border-top: 1px solid var(--color-neutral-300); padding: 10px 4px; }
.ficha-specs th { color: var(--color-neutral-700); }
.badge { border: 0; background: var(--color-accent-2-200); color: var(--color-accent-2-900); padding: 4px 10px; }
.ficha-lab__table th, .ficha-lab__table td { border: 0; border-top: 1px solid var(--color-neutral-300); }
.ficha-lab__table thead th { background: none; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-neutral-700); border-top: 0; }
.proscons { border: 0; border-radius: 28px; padding: 20px 24px; }
.proscons h3 { font-family: var(--font-body); font-weight: 700; font-size: 16px; letter-spacing: 0; }
.proscons--pro { border: 0; background: var(--color-accent-2-200); color: var(--color-accent-2-900); }
.proscons--con { border: 0; background: var(--color-accent-200); color: var(--color-accent-900); }
.ficha-verdict { border-radius: 36px; padding: clamp(24px, 3vw, 36px); background: var(--color-accent-2-800); color: var(--color-accent-2-100); }
.ficha-verdict h2 { font-family: var(--font-heading); font-weight: 400; color: var(--color-bg); }
.ficha-verdict a { color: var(--color-accent-300); }
.post-body h2 .h2-ic, .ficha-lab h2 .h2-ic { color: var(--color-accent-2-700); }
.ficha-verdict h2 .h2-ic { color: var(--color-accent-300); }
.h2-banner { border: 0; border-radius: 28px; background: var(--color-surface); }

/* citas: superíndice enlazado a la fuente; la fuente apuntada se resalta */
sup.cita { font-size: 12px; font-weight: 700; line-height: 0; margin-left: 1px; }
sup.cita a { color: var(--color-accent-700); text-decoration: none; }
sup.cita a:hover { text-decoration: underline; }
.citations li { scroll-margin-top: 24px; }
.citations li:target::before { background: var(--color-accent); color: var(--color-bg); }
.citations li:target a { color: var(--color-accent-800); font-weight: 600; }
