/* bienestar.la — capa de diseño "Editorial" (versión B, elegida el 17-nov-2026).
   Anton (títulos en mayúsculas) + Inter (texto) + Caprasimo (solo la marca), servidas desde /assets/fonts/.
   Paleta: la del sitio (crema, tinta, verdes, terracota).

   Se carga DESPUÉS del CSS propio de cada página (el que quedó horneado en cada nota): con la misma
   especificidad gana esta hoja. Los tokens viejos (--ink, --serif, --highlight…) se re-mapean para que
   ese CSS herede el diseño sin re-renderizar nada. Reemplaza a tema.css (capa "Organic"). */

@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/anton-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Caprasimo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/caprasimo-latin.woff2") format("woff2"); }

:root {
  --paper: #ffffff;
  --light: #f5ead8;
  --sand: #ebddc5;
  --ink: #201e1d;
  --deep: #272e1b;
  --moss: #56633f;
  --leaf: #e1eecc;
  --terra: #c67139;
  --terra-ink: #8c491a;            /* terracota oscuro: texto chico sobre blanco o crema (contraste AA) */
  --mute: #645c50;
  --line: rgba(32, 30, 29, .12);
  --r: 22px;
  --r2: 14px;
  --disp: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1280px;
  --pad: 24px;
  --topbar-h: 70px;

  /* tokens viejos → nuevos (los usa el CSS horneado en cada página) */
  --ink-soft: #474238;
  --paper-soft: var(--light);
  --cream: var(--light);
  --bg: var(--paper);
  --highlight: var(--terra-ink);
  --highlight2: var(--moss);
  --muted: var(--mute);
  --muted-soft: #c0b6a5;
  --border: #e3ddd3;
  --gold: var(--terra);
  --dark: var(--ink);
  --serif: var(--sans);
  --mono: var(--sans);
  --maxw: var(--wrap);
  --readw: 760px;
}

/* ── BASE ─────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; counter-reset: catsec; }
h1, h2, h3 { font-family: var(--disp); font-weight: 400; font-style: normal; font-synthesis: none; text-transform: uppercase; letter-spacing: .01em; line-height: 1; text-wrap: balance; color: inherit; }
h4 { font-family: var(--sans); letter-spacing: 0; color: inherit; }
a:hover { color: var(--terra-ink); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
::selection { background: rgba(198, 113, 57, .3); }
[hidden] { display: none !important; }
.wrap, .narrow, .breadcrumb .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -9999px; top: 16px; z-index: 99; padding: 8px 12px; background: #fff; color: var(--ink); font-weight: 600; }
.skip:focus { left: 16px; }
#contenido { display: block; scroll-margin-top: var(--topbar-h); }
[id] { scroll-margin-top: calc(var(--topbar-h) + 20px); }

.kicker { display: block; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.lead { font-size: 17px; line-height: 1.65; color: var(--mute); max-width: 64ch; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 100px;
  background: var(--ink); color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .25s, background-color .25s, color .25s;
}
.btn:hover { background: var(--terra-ink); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-outline:hover { background: #fff; color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }

.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 32px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(32px, 4vw, 52px); }
.sec-head .kicker { margin-bottom: 10px; }

/* aparición al hacer scroll: la clase la pone editorial.js solo a lo que está fuera de pantalla */
.rv-wait { opacity: 0; transform: translateY(30px); }
.rv-run { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }

/* ── BARRA SUPERIOR ───────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); min-height: var(--topbar-h); display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 20px; }
.brand { flex: none; font-family: "Caprasimo", Georgia, serif; font-size: 26px; font-weight: 400; font-style: normal; letter-spacing: -.015em; line-height: 1; color: var(--ink); text-decoration: none; text-transform: none; }
.brand .dot { color: var(--terra); font-style: normal; font-weight: 400; }
.nav-panel { display: flex; align-items: center; gap: 16px; min-width: 0; }
.nav { flex: none; display: flex; flex-wrap: nowrap; justify-content: flex-end; align-items: center; gap: 0; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 11px; border-radius: 0;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: rgba(32, 30, 29, .68); text-decoration: none; background: none;
}
.nav a::after, .nav a.active::after {
  content: ""; display: block; position: absolute; left: 11px; right: 11px; bottom: 6px; height: 2px;
  background: var(--terra); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s;
}
.nav a:hover, .nav a.active { color: var(--ink); background: none; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-glossary {
  flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 0; border-radius: 100px;
  background: var(--ink); color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .25s;
}
.header-glossary:hover { background: var(--terra-ink); color: #fff; border-color: transparent; }
.lang-switch { flex: none; display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 6px; color: rgba(32, 30, 29, .68); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="page"] { color: var(--terra-ink); }
.lang-switch span { color: var(--mute); }
.nav-toggle { display: none; }
.nav-toggle .ico-cerrar { display: none; }

@media (max-width: 1240px) {
  .topbar-inner { flex-wrap: nowrap; gap: 12px; padding: 0 var(--pad); }
  .brand { order: 0; margin-right: auto; font-size: 24px; }
  .nav-toggle {
    order: 3; display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 0;
    width: 44px; height: 44px; flex: none; border-radius: 100px; background: none; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); cursor: pointer;
  }
  .nav-panel {
    display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 60; flex-direction: column; align-items: stretch; gap: 14px;
    padding: 12px var(--pad) 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(32, 30, 29, .12);
    max-height: calc(100vh - var(--topbar-h)); overflow-y: auto;
  }
  .nav { order: 0; display: flex; position: static; width: auto; margin: 0; padding: 0; flex-direction: column; align-items: stretch; gap: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .nav a { min-height: 48px; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--ink); }
  .nav a::after, .nav a.active::after { display: none; }
  .nav a.active { color: var(--terra-ink); }
  .header-glossary { order: 0; align-self: flex-start; width: auto; height: auto; min-height: 44px; padding: 0 22px; background: var(--ink); }
  .header-glossary span { display: inline; }
  .lang-switch { order: 0; }
  .lang-switch a { min-height: 44px; padding: 0 10px; }
  .nav-toggle-cb:checked ~ .nav-panel { 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: 28px 0 0; font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.breadcrumb ol { justify-content: center; gap: 0; padding-left: 0; }
.breadcrumb a { color: var(--mute); }
.breadcrumb a:hover { color: var(--terra-ink); }
.breadcrumb span[aria-current="page"] { color: var(--mute); }
.breadcrumb span[aria-hidden="true"] { color: var(--mute); margin: 0 8px; opacity: .6; }
.breadcrumb li:last-child { max-width: 100%; }

/* ── TARJETAS ─────────────────────────────────────── */
.eyebrow, .section-label, .card-cat, .card .card-meta, .cat-badge { font-family: var(--sans); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.card { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: transform .35s; }
.card > * { display: block; }
.card:hover { transform: translateY(-6px); color: var(--ink); }
.card:hover h2, .card:hover h3, .card:hover h4 { color: var(--ink); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r2); background: var(--light); margin-bottom: 16px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-cat { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); margin-bottom: 8px; }
.card h2, .card h3, .card h4 { font-family: var(--disp); font-weight: 400; font-size: 24px; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; margin-bottom: 8px; }
.card p { font-size: 14px; line-height: 1.55; color: var(--mute); margin-bottom: 8px; }
.card .card-meta { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-top: auto; padding-top: 6px; }
.tag { border-radius: 100px; }

/* ── HOME ─────────────────────────────────────────── */
.hero {
  position: relative; display: flex; align-items: flex-end; min-height: 620px; margin: 16px var(--pad) 0; padding: 0; border: 0;
  border-radius: var(--r); overflow: hidden; background: var(--deep); color: #fff;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: bl-kb 20s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32, 30, 29, .35) 0%, rgba(32, 30, 29, .86) 100%); }
@keyframes bl-kb { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero .hero-grid { position: relative; display: block; width: 100%; max-width: var(--wrap); padding: 64px var(--pad) 56px; }
.hero-lead { display: flex; flex-direction: column; align-items: flex-start; max-width: 820px; }
.hero-lead h1 { font-size: clamp(44px, 6.6vw, 88px); font-weight: 400; line-height: 1; letter-spacing: .01em; color: #fff; max-width: 14ch; margin: 0; }
.hero-lead h1 em { font-style: normal; font-weight: 400; color: inherit; }
.hero-lead p.dek { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .88); max-width: 60ch; margin: 22px 0 28px; }
.hero-lead .byline {
  order: -1; display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0 0 18px; padding: 0; border: 0;
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.hero-lead .byline span { padding: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; font-weight: inherit; }
.hero-lead .byline span + span::before { content: "· "; }
/* portada renderizada con la plantilla anterior (lista de últimos dentro del héroe): se sigue leyendo */
.hero .hero-side { border: 0; margin-top: 36px; padding: 0; max-width: 820px; }
.hero .hero-side h4 { border: 0; padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.hero .side-list li { border-bottom: 1px solid rgba(255, 255, 255, .25); padding: 10px 0; background: none; border-radius: 0; }
.hero .side-list .num { font-family: var(--disp); font-style: normal; font-weight: 400; font-size: 22px; color: #fff; width: auto; height: auto; background: none; }
.hero .side-list a { font-family: var(--sans); font-size: 15px; font-weight: 600; color: #fff; }
.hero .side-list .side-meta { font-family: var(--sans); color: rgba(255, 255, 255, .8); }

.intro { padding: 72px 0 40px; }
.intro-in { max-width: 980px; }
.intro h2 { font-size: clamp(36px, 5vw, 64px); margin: 12px 0 18px; }
.stats { display: flex; flex-wrap: wrap; gap: 24px 48px; margin-top: 36px; }
.stat { display: flex; flex-direction: column; max-width: 170px; font-size: 13px; line-height: 1.4; color: var(--mute); text-decoration: none; }
.stat strong { font-family: var(--disp); font-weight: 400; font-size: 52px; line-height: 1; color: var(--ink); }
a.stat:hover strong { color: var(--terra-ink); }

.latest-sec { padding: 24px 0 40px; }
.latest-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.latest-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .3s; }
.latest-list li:hover { padding-left: 12px; }
.latest-list .n { font-family: var(--disp); font-size: 28px; line-height: 1; color: var(--terra); }
.latest-list a { font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); text-decoration: none; }
.latest-list a:hover { color: var(--terra-ink); }
.latest-list .m { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }

.ncards-sec { padding: 40px 0 64px; }
.ncards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ncard { position: relative; display: flex; flex-direction: column; min-height: 380px; border-radius: var(--r); overflow: hidden; background: var(--deep); color: #fff; text-decoration: none; transition: transform .35s; }
.ncard:hover { transform: translateY(-6px); color: #fff; }
.ncard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .8s, opacity .4s; }
.ncard:hover img { transform: scale(1.06); opacity: .4; }
.ncard .num { position: relative; align-self: flex-start; margin: 22px; padding: 6px 10px; border-radius: 6px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.ncard-body { position: relative; display: block; margin-top: auto; padding: 48px 22px 22px; background: linear-gradient(0deg, rgba(32, 30, 29, .9), transparent); }
.ncard strong { display: block; font-family: var(--disp); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; }
.ncard em { display: block; font-style: normal; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .85); margin: 8px 0 12px; }
.ncard .more { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ncards .ncard:nth-child(even) { background: var(--light); color: var(--ink); }
.ncards .ncard:nth-child(even):hover { color: var(--ink); }
.ncards .ncard:nth-child(even) img { opacity: .35; }
.ncards .ncard:nth-child(even):hover img { opacity: .25; }
.ncards .ncard:nth-child(even) .ncard-body { background: linear-gradient(0deg, rgba(245, 234, 216, .97) 55%, transparent); }
.ncards .ncard:nth-child(even) em { color: var(--ink-soft); }
.ncards .ncard:nth-child(even) .num { background: var(--ink); color: #fff; }

.featured-band { padding: 48px 0; }
.section-label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.section-label::after { display: none; }
.featured-band .sec-head .section-label { margin-bottom: 10px; }
.featured-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.featured-grid .card-featured .card-img { aspect-ratio: 16 / 10; margin-bottom: 16px; border-radius: var(--r2); }
.card-featured h3 { font-size: 34px; line-height: 1.02; margin-bottom: 10px; }
.card-featured p { font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
.featured-sidecol { display: flex; flex-direction: column; gap: 14px; padding-top: 0; }
.featured-sidecol .card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: stretch; padding: 0; border-radius: 0; background: none; }
.featured-sidecol .card:hover { transform: translateY(-3px); background: none; }
.featured-sidecol .card-img { aspect-ratio: auto; min-height: 100px; height: 100%; margin: 0; border-radius: var(--r2); grid-row: auto; }
.featured-sidecol .card h3 { font-family: var(--disp); font-weight: 400; font-size: 18px; line-height: 1.08; letter-spacing: .01em; margin-bottom: 6px; }
.featured-sidecol .card .card-cat { font-size: 11px; margin-bottom: 6px; }
.featured-sidecol .card .card-meta { font-size: 11px; }

.cat-section { padding: 48px 0; border-top: 0; counter-increment: catsec; }
.cat-section.alt { background: var(--light); }
.cat-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 32px; margin-bottom: 28px; }
.cat-header h2 { display: block; font-family: var(--disp); font-size: clamp(32px, 4vw, 52px); font-weight: 400; letter-spacing: .01em; line-height: 1; }
.cat-header h2::before { content: counter(catsec, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--ink); }
.cat-header h2 .dot-cat { display: none; }
.cat-header h2 em { display: block; margin-top: 8px; font-family: var(--sans); font-size: 14px; font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--mute); }
.cat-header h2 em .sep { display: none; }
.cat-header .see-all {
  display: inline-flex; align-items: center; min-height: 46px; margin: 0; padding: 0 22px; border: 0; border-radius: 100px; box-shadow: inset 0 0 0 1.5px var(--ink);
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); transition: background-color .25s, color .25s;
}
.cat-header .see-all::after { content: none; }
.cat-header .see-all:hover { background: var(--ink); color: #fff; transform: none; }
.cat-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cat-layout .primary { grid-row: auto; grid-column: auto; }
.cat-layout .primary .card-img, .cat-layout .sec .card-img { aspect-ratio: 16 / 10; margin-bottom: 16px; border-radius: var(--r2); }
.cat-layout .primary h3, .cat-layout .sec h3 { font-family: var(--disp); font-weight: 400; font-size: 24px; line-height: 1.05; letter-spacing: .01em; margin-bottom: 8px; }
.cat-layout .primary p { font-size: 14px; }
.cat-list { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0; margin-top: 18px; padding-top: 0; border-top: 1px solid var(--line); align-self: start; }
.cat-list .card { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; transition: padding .3s; }
.cat-list .card:last-child, .cat-list .card:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
.cat-list .card:hover { transform: none; padding-left: 10px; background: none; }
.cat-list .card-cat { font-size: 11px; letter-spacing: .12em; margin: 0; }
.cat-list h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.35; letter-spacing: 0; text-transform: none; margin: 0; }
.cat-list .card .card-meta { font-size: 11px; margin: 0; padding: 0; }

/* ── CATEGORÍA ────────────────────────────────────── */
.cat-hero { margin: 0; max-width: none; padding: 24px 0 24px; border: 0; border-radius: 0; background: none; color: var(--ink); text-align: center; }
.cat-hero .wrap { display: flex; flex-direction: column; align-items: center; max-width: 948px; padding: 0 var(--pad); }
.cat-hero h1 { font-family: var(--disp); font-size: clamp(44px, 7vw, 96px); font-weight: 400; line-height: 1; letter-spacing: .01em; color: var(--ink); margin: 0; }
.cat-hero .dek { font-size: 17px; line-height: 1.65; color: var(--mute); max-width: 64ch; margin: 18px auto 0; }
.cat-hero .cat-meta { order: -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; margin: 0 0 14px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.cat-hero .cat-meta span { padding: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; font-weight: inherit; }
.cat-hero .cat-meta span + span { background: none; color: inherit; }
.cat-hero .cat-meta span + span::before { content: "· "; }
.cat-featured { padding: 24px 0 48px; }
.cat-featured .card-featured {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: 32px;
  padding: 12px; border-radius: var(--r); overflow: visible; background: var(--light);
}
.cat-featured .card-featured:hover { background: var(--light); transform: translateY(-6px); }
.cat-featured .card-featured > * { grid-column: 2; margin-left: 0; margin-right: 20px; }
.cat-featured .card-featured > .card-img { grid-column: 1; grid-row: 1 / -1; aspect-ratio: auto; min-height: 340px; margin: 0; border-radius: var(--r2); }
.cat-featured .card-featured > .card-cat { grid-row: 2; margin-top: 0; align-self: auto; }
.cat-featured .card-featured > .card-cat::before { content: "Destacado · "; color: var(--ink); }
.cat-featured .card-featured > h2 { grid-row: 3; font-size: clamp(30px, 3.6vw, 48px); line-height: 1; margin-bottom: 12px; }
.cat-featured .card-featured > p { grid-row: 4; font-size: 16px; }
.cat-featured .card-featured > .card-meta { grid-row: 5; margin-top: 0; margin-bottom: 0; }
.cat-grid { padding: 0 0 72px; }
.cat-grid-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px 32px; margin-bottom: 28px; padding-bottom: 0; border-bottom: 0; }
.cat-grid-header h2 { font-family: var(--disp); font-size: clamp(32px, 4vw, 52px); font-weight: 400; }
.cat-grid-header h2 a { color: inherit; }
.cluster-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.cluster-filters a, .chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 100px; box-shadow: inset 0 0 0 1.5px var(--line);
  background: #fff; color: var(--ink); font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s;
}
.cluster-filters a:hover, .cluster-filters a.active, .chip:hover, .chip.is-on { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip small { font-size: inherit; opacity: .7; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cat-grid-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.cat-grid-list .card .card-img { aspect-ratio: 16 / 10; margin-bottom: 16px; border-radius: var(--r2); }
.cat-grid-list .card h3 { font-size: 24px; line-height: 1.05; margin-bottom: 8px; }
.cat-grid-list .card p { font-size: 14px; line-height: 1.55; color: var(--mute); margin-bottom: 8px; }
.cat-grid-list .card-cat, .related-grid .card-cat { display: block; padding: 0; border-radius: 0; background: none; color: var(--terra-ink); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.cat-grid > .wrap > .dek { color: var(--mute); max-width: 64ch; }
.cat-grid > .wrap > .dek a { color: var(--terra-ink); text-decoration: underline; }
.pagination { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pagination a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 100px; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; }
.pagination a:hover { background: var(--terra-ink); color: #fff; }
.cat-empty-card { border: 0; border-radius: var(--r); background: var(--light); }
.cat-empty-card h2 { font-family: var(--disp); font-weight: 400; }
.cat-empty-eyebrow { font-family: var(--sans); font-weight: 600; color: var(--terra-ink); }
.cat-empty-dek { font-family: var(--sans); color: var(--mute); }
.cat-empty-btn { border-radius: 100px; font-family: var(--sans); font-weight: 600; background: var(--ink); border-color: var(--ink); }

/* ── ARTÍCULO ─────────────────────────────────────── */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; background: var(--terra); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.post {
  max-width: var(--wrap); margin: 0 auto; padding: 16px var(--pad) 56px;
  display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 56px; row-gap: 0; justify-content: start;
}
.post > * { grid-column: 2; min-width: 0; max-width: 760px; }
.post > .post-hero, .post > .post-related { grid-column: 1 / -1; max-width: none; }
.post > .post-toc { grid-column: 1; grid-row: 2 / span 40; align-self: start; position: sticky; top: calc(var(--topbar-h) + 18px); max-height: calc(100vh - var(--topbar-h) - 36px); overflow-y: auto; }
.post:not(:has(> .post-toc)) { grid-template-columns: minmax(0, 1fr); max-width: 948px; }
.post:not(:has(> .post-toc)) > * { grid-column: 1; max-width: none; }
.post:not(:has(> .post-toc)) > .post-body, .post:not(:has(> .post-toc)) > .post-faq, .post:not(:has(> .post-toc)) > .post-footer, .post:not(:has(> .post-toc)) > .steps-note { max-width: 760px; }

.post-hero { display: block; margin: 0 auto 48px; text-align: center; }
.post-hero .eyebrow { display: block; margin: 0 0 14px; padding: 0; border-radius: 0; background: none; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.post-hero .eyebrow a { color: var(--terra-ink); }
.post-hero h1 { max-width: 960px; margin: 0 auto; font-family: var(--disp); font-size: clamp(36px, 5.6vw, 72px); font-weight: 400; line-height: 1; letter-spacing: .01em; }
.post-hero .dek { max-width: 66ch; margin: 20px auto; font-size: 17px; line-height: 1.65; color: var(--mute); }
.post-hero .byline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; margin: 20px 0 0; padding: 0; border: 0; font-family: var(--sans); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.post-hero .byline a { font-weight: 700; color: var(--ink); text-decoration: none; }
.post-hero .byline a:hover { color: var(--terra-ink); }
.hero-figure { margin: 32px 0 0; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--r); background: var(--light); }
.hero-figure figcaption { padding: 8px 4px 0; font-family: var(--sans); font-size: 13px; letter-spacing: 0; color: var(--mute); }
.page-ficha .hero-figure img { aspect-ratio: 16 / 9; }

.post-toc { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.post-toc h4 { margin-bottom: 12px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.post-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.post-toc li { margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.4; }
.post-toc a { display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; color: var(--mute); text-decoration: none; transition: color .2s, border-color .2s; }
.post-toc a:hover, .post-toc a.is-on { color: var(--ink); border-left-color: var(--terra); }

.steps-note { margin: 0 0 16px; color: var(--terra-ink); }
.post-body { font-family: var(--sans); font-size: 18px; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
.post-body p { margin: 0 0 18px; }
.post-body hr { border: 0; height: 1px; background: var(--line); margin: 36px 0; }
.post-body > hr:first-child { display: none; }
.post-body h2 { font-family: var(--disp); font-size: 34px; font-weight: 400; line-height: 1.05; letter-spacing: .01em; margin: 48px 0 14px; }
.post-body > h2:first-child, .post-body > hr:first-child + h2 { margin-top: 0; }
.post-body h3 { font-family: var(--sans); font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; margin: 30px 0 10px; }
.post-body h4 { font-family: var(--sans); font-size: 18px; font-weight: 700; margin: 24px 0 8px; }
.post-body h3[id^="paso-"], .post-body h3[id^="passo-"] { padding: 6px 0 6px 16px; border-left: 4px solid var(--terra); }
.paso-n { display: inline-block; margin-right: 12px; padding: 6px 10px; border-radius: 6px; background: var(--ink); color: #fff; font-family: var(--disp); font-weight: 400; font-size: 12px; line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; vertical-align: 3px; }
.post-body a { color: var(--terra-ink); text-decoration: underline; text-decoration-color: rgba(140, 73, 26, .35); text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: var(--terra-ink); }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 22px; }
.post-body li { margin: 6px 0; padding-left: 0; }
.post-body li::marker { color: var(--terra-ink); font-weight: 700; }
.post-body strong { font-weight: 700; }
.post-body blockquote { margin: 28px 0; padding: 20px 24px; border: 0; border-left: 4px solid var(--terra); border-radius: 0 var(--r2) var(--r2) 0; background: var(--light); color: var(--ink); font-style: normal; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--light); }
.post-body img { height: auto; margin: 0; border-radius: var(--r2); }
.post-body table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; line-height: 1.5; }
.post-body th { text-align: left; padding: 10px; border: 0; border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-ink); vertical-align: bottom; }
.post-body td { padding: 10px; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.inline-figure { margin: 32px 0; }
.inline-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r2); }
.inline-figure figcaption { padding: 8px 0 0; font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--mute); }
.exercise-video { margin: 8px 0 24px; }
.video-embed { border-radius: var(--r2); background: var(--ink); box-shadow: none; }
.video-embed__meta { font-size: 13px; color: var(--mute); }
.video-embed__label { font-family: var(--sans); font-weight: 700; color: var(--mute); }
.video-embed__meta a { color: var(--terra-ink); font-weight: 600; text-decoration: none; }
.video-embed__dur { color: var(--mute); }
sup.cita { font-size: 12px; font-weight: 700; line-height: 0; margin-left: 1px; }
sup.cita a, .post-body sup, .post-body sup a { color: var(--terra-ink); font-weight: 700; text-decoration: none; }
sup.cita a:hover { text-decoration: underline; }

/* preguntas frecuentes: acordeón (lo arma editorial.php al hornear) o lista abierta (HTML original) */
.post-faq { margin-top: 48px; padding-top: 0; border-top: 0; }
.post-faq h2 { font-family: var(--disp); font-size: 34px; font-weight: 400; letter-spacing: .01em; margin-bottom: 16px; }
.post-faq dl, .faq-list { display: block; }
.faq-item { padding: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item dt, .faq-item summary { font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: 0; margin: 0; padding: 18px 0; }
.faq-item summary { display: flex; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 26px; font-weight: 400; line-height: 1; color: var(--terra-ink); transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--terra-ink); }
.faq-item dd, .faq-item .faq-a { margin: 0; padding: 0 0 20px; font-size: 16px; line-height: 1.65; color: var(--mute); }
.faq-item dt { padding-bottom: 8px; }

.citations { margin-top: 48px; padding-top: 0; border-top: 0; }
.citations h3 { margin-bottom: 12px; font-family: var(--disp); font-size: 28px; font-weight: 400; letter-spacing: .01em; text-transform: uppercase; color: var(--ink); }
.citations ol { display: block; list-style: decimal; margin: 0; padding-left: 22px; }
.citations li { display: list-item; margin: 8px 0; font-size: 14px; line-height: 1.5; color: var(--mute); overflow-wrap: anywhere; }
.citations li::marker { color: var(--terra-ink); font-weight: 700; }
.citations a { padding: 0; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(32, 30, 29, .3); text-underline-offset: 3px; }
.citations a:hover { color: var(--terra-ink); }
.citations li:target { color: var(--ink); }
.citations li:target a { color: var(--terra-ink); font-weight: 600; }
.cit-kind { font-family: var(--sans); font-size: 12px; color: var(--mute); }
.disclaimer { margin-top: 24px; padding: 24px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; font-size: 13px; line-height: 1.6; color: var(--mute); }
.disclaimer a { color: var(--terra-ink); text-decoration: underline; }

.post-related { margin-top: 72px; padding-top: 0; border-top: 0; }
.post-related .kicker { margin-bottom: 10px; }
.post-related h3 { margin-bottom: 28px; font-family: var(--disp); font-size: clamp(32px, 4vw, 52px); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; color: var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.related-grid .card { display: flex; padding: 0; border-radius: 0; background: none; }
.related-grid .card:hover { transform: translateY(-6px); background: none; }
.related-grid .card-img { aspect-ratio: 16 / 10; margin: 0 0 16px; border-radius: var(--r2); }
.related-grid .card-cat { margin-bottom: 8px; }
.related-grid h4 { font-family: var(--disp); font-size: 24px; font-weight: 400; line-height: 1.05; letter-spacing: .01em; text-transform: uppercase; margin-bottom: 8px; }

/* clips de ejercicio de Vitruvio dentro de las notas (video mudo en loop; se reproduce solo a la vista) */
.vitruvio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; margin: 8px 0 28px; }
.vitruvio-clip { margin: 0; }
.vitruvio-sola { max-width: 640px; margin: 8px 0 20px; }
.vitruvio-aviso { margin: -4px 0 28px; font-size: 13px; line-height: 1.4; color: var(--mute); }
.vitruvio-clip video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: var(--r2); background: #8c8c8e; }
.vitruvio-clip figcaption { padding: 8px 2px 0; font-size: 14px; line-height: 1.35; color: var(--mute); }

/* ── FICHA DE PRODUCTO ────────────────────────────── */
.ficha-summary { margin: 0 0 36px; padding: 30px; border: 0; border-radius: var(--r); background: var(--light); }
.ficha-summary > .kicker { margin-bottom: 8px; }
.ficha-summary__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.ficha-id { display: flex; flex-direction: column; gap: 0; }
.ficha-brand, .ficha-name { font-family: var(--disp); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.ficha-brand { color: var(--ink); }
.ficha-name { color: var(--terra-ink); }
.ficha-subtype { margin-top: 8px; font-size: 14px; color: var(--mute); }
.ficha-rating { display: flex; flex-direction: column; align-items: flex-end; gap: 0; text-align: right; }
.ficha-rating .stars { font-size: 20px; line-height: 1; letter-spacing: .08em; color: var(--terra); }
.ficha-rating__num { margin-top: 6px; font-family: var(--disp); font-weight: 400; font-size: 52px; line-height: 1; color: var(--ink); }
.ficha-rating__num small { font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--mute); }
.ficha-rating__label { font-size: 13px; color: var(--mute); }
.ficha-specs { width: 100%; margin-top: 0; border-collapse: collapse; font-size: 14px; }
.ficha-specs th, .ficha-specs td { padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ficha-specs th { width: 42%; padding-right: 12px; font-weight: 600; color: var(--mute); }
.ficha-certs { margin-top: 18px; gap: 8px; }
.ficha-certs__label { font-size: 13px; color: var(--mute); }
.badge { padding: 5px 12px; border: 0; border-radius: 100px; background: var(--leaf); color: var(--deep); font-size: 12px; font-weight: 600; }
.ficha-lab { margin: 36px 0; }
.ficha-lab h2, .ficha-verdict h2 { font-family: var(--disp); font-size: 30px; font-weight: 400; letter-spacing: .01em; margin: 0 0 14px; }
.ficha-lab__table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; }
.ficha-lab__table th, .ficha-lab__table td { padding: 12px; border: 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ficha-lab__table thead th { background: none; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.ficha-lab__table a { color: var(--terra-ink); text-decoration: underline; }
.ficha-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 36px 0; }
.proscons { padding: 24px; border: 0; border-radius: var(--r); }
.proscons h3 { margin: 0 0 12px; font-family: var(--disp); font-weight: 400; font-size: 24px; letter-spacing: .01em; text-transform: uppercase; }
.proscons ul { margin: 0; padding-left: 18px; font-size: 15px; }
.proscons li { margin: 8px 0; }
.proscons--pro { border: 0; background: var(--leaf); color: var(--deep); }
.proscons--con { border: 0; background: var(--light); color: var(--ink); }
.ficha-verdict { margin: 0 0 36px; padding: 30px; border-radius: var(--r); background: var(--deep); color: #fff; }
.ficha-verdict h2 { color: #fff; }
.ficha-verdict p { margin: 0 0 12px; color: rgba(255, 255, 255, .88); }
.ficha-verdict p:last-child { margin-bottom: 0; }
.ficha-verdict .ficha-bestfor { font-size: 19px; font-weight: 600; line-height: 1.45; color: var(--leaf); opacity: 1; }
.ficha-verdict .ficha-availability { font-size: 14px; opacity: 1; }
.ficha-verdict a { color: var(--leaf); }
.post-body h2 .h2-ic, .ficha-lab h2 .h2-ic { color: var(--moss); }
.ficha-verdict h2 .h2-ic { color: var(--leaf); }
.h2-banner { border: 0; border-radius: var(--r2); background: var(--light); }

/* ── PÁGINAS FIJAS (metodología, política, privacidad, contacto, acerca de, autor, 404) ─ */
.static-hero { padding: 72px 0 32px; border-bottom: 0; text-align: center; }
.static-hero .wrap { max-width: 948px; }
.static-hero .eyebrow { margin-bottom: 0; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.static-hero h1 { margin: 12px 0 18px; font-family: var(--disp); font-size: clamp(48px, 8vw, 110px); font-weight: 400; line-height: 1; letter-spacing: .01em; }
.static-hero .dek { max-width: 64ch; margin: 0 auto; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--mute); }
.static-hero .stamp { margin-top: 16px; font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.static-hero .stats { justify-content: center; gap: 24px 48px; margin-top: 28px; font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--mute); }
.static-hero .stats span { display: flex; flex-direction: column; align-items: center; max-width: 160px; padding: 0; border-radius: 0; background: none; color: var(--mute); font-size: 13px; font-weight: 400; line-height: 1.4; }
.static-hero .stats strong { font-family: var(--disp); font-weight: 400; font-size: 52px; line-height: 1; color: var(--ink); }

.author-hero { padding: 72px 0 32px; border-bottom: 0; text-align: center; }
.author-hero .wrap { display: block; max-width: 948px; }
.author-avatar { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 100px; background: var(--ink); color: #fff; font-family: var(--disp); font-size: 44px; font-weight: 400; }
.author-hero .eyebrow { margin-bottom: 0; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--terra-ink); }
.author-hero h1 { margin: 12px 0 18px; font-family: var(--disp); font-size: clamp(44px, 7vw, 96px); font-weight: 400; line-height: 1; letter-spacing: .01em; }
.author-hero .role { font-family: var(--sans); font-size: 17px; color: var(--mute); }

.method-body, .static-body, .pol-body, .legal-body, .author-body { padding: 24px 0 80px; }
.method-body .wrap, .static-body .wrap, .pol-body .wrap, .legal-body .wrap, .author-body .wrap { max-width: 868px; }
.method-body h2, .static-body h2, .pol-body h2, .legal-body h2, .author-body h2,
.method-body h2.section, .legal-body h2.section { font-family: var(--disp); font-size: 30px; font-weight: 400; line-height: 1.05; letter-spacing: .01em; margin: 48px 0 14px; }
.method-body h2.section .num, .legal-body h2.section .num {
  display: inline-block; width: auto; height: auto; margin-right: 12px; padding: 0; border-radius: 0; background: none;
  font-family: var(--disp); font-size: inherit; color: var(--terra); vertical-align: baseline;
}
.method-body h3, .legal-body h3 { font-family: var(--sans); font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.method-body p, .method-body li, .static-body p, .static-body li, .pol-body p, .pol-body li, .legal-body p, .legal-body li, .author-body p, .author-body li { font-family: var(--sans); font-size: 18px; line-height: 1.75; }
.method-body a, .static-body a, .pol-body a, .legal-body a, .author-body a { color: var(--terra-ink); }
.toc { margin: 0 0 36px; padding: 20px 24px; border: 0; border-radius: var(--r2); background: var(--light); }
.toc h2 { margin: 0 0 8px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.toc ol { font-family: var(--sans); font-size: 15px; line-height: 1.6; }
.toc a { color: var(--ink); }
.sources-table { border: 0; font-size: 15px; }
.sources-table th { background: none; border-bottom: 1px solid var(--ink); font-family: var(--sans); font-weight: 700; color: var(--terra-ink); }
.sources-table td { border-bottom: 1px solid var(--line); }
.sources-table td:first-child { font-family: var(--sans); font-weight: 700; }
.sources-table .weight { background: var(--light); color: var(--ink); font-family: var(--sans); font-weight: 700; }
.pipeline-step { border: 1px solid var(--line); border-radius: var(--r2); background: #fff; padding: 18px 22px; }
.pipeline-step::before { font-family: var(--disp); font-weight: 400; font-size: 26px; color: var(--terra); }
.pipeline-step h4 { font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.pipeline-step p { color: var(--mute); }
.callout { border: 0; border-left: 4px solid var(--terra); border-radius: 0 var(--r2) var(--r2) 0; padding: 20px 24px; background: var(--light); }
.hard-rules { border: 0; border-radius: var(--r); background: var(--ink); color: #fff; padding: 26px 28px; }
.hard-rules h3 { font-family: var(--sans); font-weight: 700; color: var(--terra); }
.hard-rules li, .hard-rules p { color: rgba(255, 255, 255, .9); }
.hard-rules a { color: #fff; }
.tier { border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--r2); background: #fff; padding: 18px 22px; margin: 0 0 12px; }
.tier h3 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); margin: 0 0 6px; }
.tier p { color: var(--mute); }
.pillar { border: 1px solid var(--line); border-radius: var(--r2); background: #fff; padding: 20px 22px; }
.pillar h3 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.pillar p { color: var(--mute); }
.contact-card { border: 0; border-left: 0; border-radius: var(--r); background: var(--ink); color: #fff; padding: 30px; text-align: center; }
.contact-card .label { font-family: var(--sans); font-weight: 600; color: rgba(255, 255, 255, .75); }
.contact-card .email { font-family: var(--disp); font-size: clamp(24px, 5vw, 34px); font-weight: 400; letter-spacing: .02em; color: #fff; }
.contact-card .email a, .static-body .contact-card a { color: #fff; text-decoration: none; }
.contact-card .email a:hover { color: var(--terra); }
.static-body .contact-card p { margin: 0; color: rgba(255, 255, 255, .85) !important; }   /* el párrafo trae color en línea */
.mailto-list li { border: 1px solid var(--line); border-radius: var(--r2); background: #fff; padding: 16px 20px; font-family: var(--sans); font-size: 15px; }
.mailto-list strong { font-family: var(--sans); font-weight: 700; color: var(--terra-ink); }
.social-links { gap: 10px; }
.social-links a, .static-body .social-links a { padding: 8px 16px; border: 0; border-radius: 100px; box-shadow: inset 0 0 0 1.5px var(--ink); background: none; color: var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.social-links a:hover, .static-body .social-links a:hover { background: var(--ink); color: #fff; border-color: transparent; }
.social-links svg { color: inherit; }

/* 404 */
.err { padding: 80px 0 110px; }
.err .cta { justify-content: center; margin-top: 24px; }
.big404 { display: flex; justify-content: center; gap: 4px; margin: 0; font-family: var(--disp); font-size: clamp(120px, 22vw, 260px); line-height: 1; color: var(--ink); }
.big404 span { display: inline-block; animation: bl-drop 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.big404 span:nth-child(2) { animation-delay: .12s; color: var(--terra); }
.big404 span:nth-child(3) { animation-delay: .24s; }
@keyframes bl-drop { from { opacity: 0; transform: translateY(-70px); } to { opacity: 1; transform: none; } }

/* ── GLOSARIO ─────────────────────────────────────── */
.glosario-body { padding: 24px 0 72px; }
.glosario-body .wrap { max-width: var(--wrap); }
.gl-toc { justify-content: center; gap: 8px; padding: 0; margin: 0 0 14px; }
.gl-toc a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 0; border-radius: 100px; box-shadow: inset 0 0 0 1.5px var(--line);
  background: #fff; color: var(--ink); font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.gl-toc a:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); border-color: transparent; }
.gl-filter { position: static; display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0 0 36px; padding: 0; border: 0; border-radius: 0; background: none; }
.gl-search { width: 100%; max-width: 560px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 100px; box-shadow: inset 0 0 0 1.5px var(--ink); background: #fff; }
.gl-search:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--terra); }
.gl-search input { font-family: var(--sans); font-size: 16px; }
.gl-search input::placeholder { font-style: normal; color: var(--mute); }
.gl-search .gl-count { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--mute); }
.gl-search .gl-clear { border-radius: 100px; }
.gl-az { justify-content: center; gap: 2px; margin-top: 0; }
.gl-az button { width: auto; min-width: 34px; height: 34px; padding: 0 6px; border: 0; border-radius: 100px; background: transparent; color: var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 700; }
.gl-az button:hover:not(:disabled):not(.active) { background: var(--light); color: var(--ink); }
.gl-az button.active { background: var(--ink); color: #fff; }
.gl-az button:disabled { background: transparent; color: #b9b1a4; border-color: transparent; }
.gl-az .gl-az-all { padding: 0 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.gl-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.gl-section.hidden { display: none; }
.gl-section-head { grid-column: 1 / -1; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; padding-bottom: 0; border-bottom: 0; }
.gl-section-head h2 { font-family: var(--disp); font-size: clamp(32px, 4vw, 52px); font-weight: 400; letter-spacing: .01em; }
.gl-section-head .count { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.gl-entry { display: block; margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r2); background: #fff; transition: background-color .3s; }
.gl-entry:last-child { border: 1px solid var(--line); }
.gl-entry:hover, .gl-entry:target { background: var(--light); }
.gl-entry .gl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.gl-entry .gl-head h3 { font-family: var(--disp); font-size: 24px; font-weight: 400; letter-spacing: .01em; margin: 0; }
.gl-entry .gl-head .gl-cat { flex: none; display: inline-flex; align-items: center; min-height: 26px; margin: 0; padding: 0 8px; border-radius: 100px; box-shadow: inset 0 0 0 1.5px var(--line); background: #fff; color: var(--ink); font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.gl-entry .gl-body p.def { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--mute); }
.gl-entry .exercise-video, .gl-entry .vitruvio-sola { margin-top: 12px; }
.gl-entry .video-embed { border-radius: var(--r2); }
.gl-entry .gl-body .gl-related { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.gl-entry .gl-body .gl-related .gl-related-label { margin-bottom: 6px; font-family: var(--sans); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--terra-ink); }
.gl-entry .gl-body .gl-related ul { gap: 0; }
.gl-entry .gl-body .gl-related a { padding: 4px 0; border: 0; border-radius: 0; background: none; font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--deep); }
.gl-entry .gl-body .gl-related a:hover { background: none; color: var(--terra-ink); }
.gl-entry .gl-body .gl-related .gl-meta { font-family: var(--sans); font-weight: 400; color: var(--mute); }
.gl-entry .gl-body .gl-related .empty { font-family: var(--sans); font-size: 14px; font-style: normal; color: var(--mute); }
.gl-empty { font-family: var(--sans); font-style: normal; color: var(--mute); }

/* ── PIE (fuentes + cinta + por qué distinto + aviso + pie del sitio) ─ */
.sources { margin-top: 72px; padding: 72px 0 56px; background: var(--deep); color: #fff; }
.sources .sec-head { display: block; margin-bottom: 28px; }
.sources .sec-head h2 { margin-bottom: 12px; color: #fff; }
.sources .lead { color: rgba(255, 255, 255, .8); }
.src-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.src-list li { margin: 0; padding: 24px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r2); transition: background-color .3s; }
.src-list li:hover { background: rgba(255, 255, 255, .06); }
.src-list .num { display: inline-block; margin-bottom: 14px; padding: 4px 8px; border-radius: 6px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.src-list strong { display: block; margin-bottom: 8px; font-family: var(--disp); font-weight: 400; font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.src-list p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.sources .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.sources .btn-ghost:hover { background: #fff; color: var(--ink); }
.marq { overflow: hidden; padding: 12px 0; background: var(--terra); color: #fff; }
.marq-in { display: flex; width: max-content; animation: bl-marq 36s linear infinite; font-family: var(--disp); font-size: 24px; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; }
.marq-in span { position: relative; padding: 0 32px; white-space: nowrap; }
.marq-in span::after { content: "✦"; position: absolute; right: -8px; font-size: 14px; }
@keyframes bl-marq { to { transform: translateX(-33.333%); } }
.method { padding: 72px 0; }
.method-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.method h2 { font-size: clamp(36px, 5vw, 64px); }
.method-txt p { margin: 0 0 16px; font-size: 17px; line-height: 1.65; color: var(--mute); }
.method-txt p:last-child { margin-bottom: 0; }
.disc { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--pad) 40px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--mute); }
.disc strong { color: var(--ink); }
.footer { margin: 0; padding: 56px 0 28px; background: var(--ink); color: #fff; }
.fgrid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer .brand { color: #fff; }
.fbrand p { max-width: 40ch; margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.fsocial { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fsocial a { padding: 6px 12px; border-radius: 100px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); color: #fff; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.fsocial a:hover { background: #fff; color: var(--ink); }
.fcol h4 { margin: 0 0 10px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terra); }
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li { margin: 0; }
.fcol a { display: inline-block; padding: 5px 0; color: #fff; font-size: 14px; text-decoration: none; }
.fcol a:hover { color: var(--terra); }
.fbottom { margin: 36px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 12px; color: rgba(255, 255, 255, .65); }

/* ── ADAPTACIÓN ───────────────────────────────────── */
@media (max-width: 1100px) {
  .src-list, .ncards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-layout, .cat-grid-list, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-grid { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { min-height: 520px; margin: 12px 12px 0; }
  .post { display: block; padding-top: 8px; }
  .post > *, .post:not(:has(> .post-toc)) > *, .post:not(:has(> .post-toc)) > .post-body, .post:not(:has(> .post-toc)) > .post-faq, .post:not(:has(> .post-toc)) > .post-footer { max-width: none; }
  .post > .post-toc { position: static; max-height: none; overflow: visible; margin: 0 0 32px; padding: 20px 24px; border-radius: var(--r2); background: var(--light); }
  .post-hero { margin-bottom: 32px; }
  .method-in { grid-template-columns: 1fr; gap: 20px; }
  .cat-featured .card-featured { display: flex; flex-direction: column; }
  .cat-featured .card-featured > * { margin: 0 12px; }
  .cat-featured .card-featured > .card-img { width: 100%; min-height: 0; aspect-ratio: 16 / 9; margin: 0 0 20px; }
  .cat-featured .card-featured > .card-meta { margin-bottom: 14px; }
  .ficha-proscons, .gl-section { grid-template-columns: 1fr; }
  .cat-list .card { grid-template-columns: 1fr; gap: 4px; }
  .latest-list li { grid-template-columns: 50px minmax(0, 1fr); }
  .latest-list .m { grid-column: 2; }
  .ficha-rating { align-items: flex-start; text-align: left; }
}
@media (max-width: 640px) {
  :root { --pad: 16px; }
  .cat-layout, .cat-grid-list, .related-grid, .src-list, .ncards, .fgrid { grid-template-columns: 1fr; }
  .hero .hero-grid { padding: 40px 16px 32px; }
  .hero-figure img, .page-ficha .hero-figure img { aspect-ratio: 16 / 9; border-radius: var(--r2); }
  .featured-sidecol .card { grid-template-columns: 112px minmax(0, 1fr); }
  .ncard { min-height: 300px; }
  .post-body { font-size: 17px; }
  .post-body h2, .post-faq h2 { font-size: 30px; }
  .post-body table, .ficha-lab__table { display: block; overflow-x: auto; }
  .ficha-summary, .ficha-verdict { padding: 22px 18px; }
  .ficha-brand, .ficha-name { font-size: 26px; }
  .intro { padding: 48px 0 24px; }
  .sources { margin-top: 48px; padding: 48px 0 40px; }
  .method { padding: 48px 0; }
  .static-hero, .author-hero { padding: 48px 0 24px; }
  .gl-entry { padding: 18px; }
  .gl-entry .gl-head { flex-wrap: wrap; }
  .breadcrumb li:last-child { display: none; }
  .breadcrumb li:nth-last-child(2) span[aria-hidden="true"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv-wait { opacity: 1; transform: none; }
}
