/*
Theme Name: Gaceta — Marjorie Acevedo Galindo
Theme URI: https://example.com
Author: Daniel Savin
Description: Tema editorial para la marca personal de Marjorie Acevedo Galindo, abogada laboralista. Dirección «Gaceta»: publicación jurídica contemporánea. Blog «Criterio Laboral» sin autoría visible en las entradas. Sin dependencias de plugins.
Version: 1.5.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marjorie-gaceta
Tags: editorial, blog, one-column, custom-menu, translation-ready
*/

/* BUILD: gaceta-1.5.0-schema
   Para comprobar qué hoja está sirviendo el sitio, abre la URL de style.css
   y busca esta línea. Si no aparece, estás viendo una versión cacheada. */

/* ═══════════════════════════════════════════════════════════
   Dirección A · «Gaceta»
   Portado desde 03-wireframes/_styles.css (v3).
   5 tokens de color · Newsreader (display) + Inter (texto).
   ═══════════════════════════════════════════════════════════ */

:root {
  --paper:   #F7F4ED;
  --paper-2: #EFEADF;
  --ink:     #1B1917;
  --accent:  #7A2230;
  --muted:   #6B6355;

  --rule:      color-mix(in srgb, var(--ink) 15%, transparent);
  --rule-soft: color-mix(in srgb, var(--ink) 7%, transparent);
  --ghost:     color-mix(in srgb, var(--ink) 17%, transparent);

  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-hero: clamp(46px, 7.4vw, 124px);
  --t-h2:   clamp(30px, 4.4vw, 66px);
  --t-h3:   clamp(22px, 2.4vw, 33px);
  --t-body: clamp(16.5px, 1.1vw, 18px);
  --t-sm:   15px;
  --t-xs:   12.5px;
  --t-label: 11px;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 40px;
  --s5: 72px; --s6: 112px; --s7: 180px;

  --pad-x: clamp(24px, 6vw, 104px);
  --max: 1360px;
  --read: 62ch;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-body); line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Salto al contenido — accesibilidad */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--paper); padding: 14px 22px; font-size: var(--t-sm);
}
.skip-link:focus { left: 0; }

/* ═══ Layout ═══ */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(80px, 11vw, var(--s7)); }
.section--tight { padding-block: clamp(56px, 7vw, var(--s6)); }
.section--alt { background: var(--paper-2); }
.section--ruled { border-top: 1px solid var(--rule); }

.g12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.2vw, 36px); }
.c-margin { grid-column: 1 / 4; }
.c-main   { grid-column: 4 / 12; }
.c-wide   { grid-column: 4 / 13; }
.c-half-l { grid-column: 1 / 7; }
.c-half-r { grid-column: 7 / 13; }
.c-full   { grid-column: 1 / -1; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 88px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.4vw, 52px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.6vw, 40px); }
.read { max-width: var(--read); }

/* ═══ Tipografía ═══ */
.hero-title { font-family: var(--display); font-weight: 300; font-size: var(--t-hero); line-height: 0.99; letter-spacing: -0.035em; }
.h2 { font-family: var(--display); font-weight: 300; font-size: var(--t-h2); line-height: 1.03; letter-spacing: -0.03em; }
.h3 { font-family: var(--display); font-weight: 300; font-size: var(--t-h3); line-height: 1.14; letter-spacing: -0.02em; }
.display { font-family: var(--display); font-weight: 300; letter-spacing: -0.025em; line-height: 1.05; }
.accent { color: var(--accent); }
em.accent { font-style: italic; }
.label { font-size: var(--t-label); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.prose { max-width: var(--read); }
.prose p + p { margin-top: 1.05em; }
.prose strong { font-weight: 600; }
.muted { color: var(--muted); }
.sm { font-size: var(--t-sm); line-height: 1.6; }
.dropcap::first-letter {
  font-family: var(--display); float: left; font-size: 4.6em; line-height: 0.78;
  padding-right: 0.09em; margin-top: 0.07em; font-weight: 300; color: var(--accent);
}
.sec-n { font-family: var(--display); font-weight: 200; font-size: clamp(34px, 4.4vw, 76px); line-height: 0.9; color: var(--ghost); letter-spacing: -0.03em; }
.sec-n small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 14px; font-weight: 500; }
.sec-n-wrap { position: sticky; top: 104px; }

/* ═══ Cabecera ═══ */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.admin-bar .site-header { top: 32px; }
.admin-bar .sec-n-wrap { top: 136px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { max-width: var(--max); margin: 0 auto; padding: 18px var(--pad-x); display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 2vw, 40px); }
.site-header__inner > .brand, .site-header__inner > .btn { flex-shrink: 0; }
.brand { font-family: var(--display); font-size: 20px; letter-spacing: -0.015em; white-space: nowrap; }
/* Solo el primer nivel es fila: si esta regla alcanzara a .sub-menu, el
   desplegable se convertiría en otra fila y rompería el ancho. */
.site-nav { min-width: 0; }
.site-nav > ul {
  display: flex; flex-wrap: wrap; column-gap: clamp(18px, 1.9vw, 30px); row-gap: 6px;
  font-size: var(--t-sm); justify-content: flex-end;
}
/* Un menú largo se reparte en varias líneas en vez de empujar el CTA fuera
   de la página. Con los 4 apartados previstos nunca llega a envolver. */
.site-nav > ul > li > a { white-space: nowrap; }
.site-nav a { position: relative; padding-bottom: 2px; display: inline-block; }
.site-nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.site-nav a:hover::after, .site-nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
/* Submenús de la cabecera — se abren con hover y con :focus-within,
   así que funcionan con teclado sin JS. */
.site-nav .menu-item-has-children { position: relative; }
/* Indicador de desplegable.
   Chevron dibujado con bordes en vez del carácter ▾: el glifo se renderiza
   distinto en cada fuente y en Newsreader/Inter salía como un punto suelto.
   Va en ::before porque ::after ya lo ocupa el subrayado del enlace.
   Gira 180° al abrirse, que es la señal que la gente reconoce. */
.site-nav .menu-item-has-children > a { padding-right: 17px; }
.site-nav .menu-item-has-children > a::before {
  content: ''; position: absolute; right: 1px; top: 50%;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-72%) rotate(45deg);
  opacity: .5;
  transition: transform .38s var(--ease), opacity .3s var(--ease);
}
.site-nav .menu-item-has-children:hover > a::before,
.site-nav .menu-item-has-children:focus-within > a::before,
.site-nav .menu-item-has-children > a[aria-expanded="true"]::before {
  transform: translateY(-25%) rotate(-135deg);
  opacity: 1;
  color: var(--accent);
}
/* El subrayado no invade el hueco del chevron. */
.site-nav .menu-item-has-children > a::after { width: calc(100% - 17px); }
/* Al abrirse, el apartado padre se marca como activo. */
.site-nav .menu-item-has-children:hover > a,
.site-nav .menu-item-has-children:focus-within > a { color: var(--accent); }
.site-nav .menu-item-has-children:hover > a::after,
.site-nav .menu-item-has-children:focus-within > a::after { transform: scaleX(1); transform-origin: left; }
.site-nav .sub-menu {
  position: absolute; top: 100%; left: -18px; min-width: 262px; z-index: 60;
  background: var(--paper); border: 1px solid var(--ink);
  padding: 10px 0; margin-top: 13px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 10%, transparent);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  display: block;
}
.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu li { display: block; }
.site-nav .sub-menu a { display: block; padding: 9px 22px; font-size: var(--t-sm); white-space: nowrap; }
.site-nav .sub-menu a::after { display: none; }
.site-nav .sub-menu a:hover { background: var(--paper-2); color: var(--accent); }
/* Puente invisible para que el ratón no pierda el desplegable al bajar. */
.site-nav .menu-item-has-children::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 16px; }

.nav-toggle { display: none; background: none; border: 1px solid var(--ink); padding: 9px 16px; font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

/* ═══ Botones y enlaces ═══ */
.btn { display: inline-block; padding: 15px 30px; font-size: var(--t-sm); border: 1px solid var(--ink); background: transparent; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s; cursor: pointer; text-align: center; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--sm { padding: 10px 19px; font-size: var(--t-xs); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.link-arrow { font-size: var(--t-sm); border-bottom: 1px solid var(--rule); padding-bottom: 3px; transition: border-color .3s, color .3s; white-space: nowrap; display: inline-block; }
.link-arrow:hover { border-bottom-color: var(--accent); color: var(--accent); }

/* ═══ Hero ═══ */
.hero { padding-block: clamp(72px, 11vw, 168px) clamp(48px, 7vw, 96px); }
.hero .hero-title { max-width: 15ch; }
.hero__sub { margin-top: clamp(32px, 4vw, 52px); max-width: 44ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: color-mix(in srgb, var(--ink) 78%, transparent); }
.hero__ctas { margin-top: clamp(36px, 4.5vw, 56px); }

/* ═══ Pie de imprenta ═══ */
.colophon { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.colophon__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.colophon__i { padding: clamp(24px, 3vw, 40px) var(--s3) clamp(24px, 3vw, 40px) 0; border-right: 1px solid var(--rule); }
.colophon__i:last-child { border-right: none; }
.colophon__i:not(:first-child) { padding-left: var(--s3); }
.colophon__n { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 2.7vw, 42px); line-height: 1; letter-spacing: -0.02em; }
.colophon__c { font-size: var(--t-xs); color: var(--muted); margin-top: 10px; line-height: 1.45; }

/* ═══ Cita a sangre ═══ */
.bleed { padding-block: clamp(80px, 12vw, 190px); text-align: center; }
.bleed p { font-family: var(--display); font-weight: 300; font-size: clamp(27px, 4.6vw, 72px); line-height: 1.1; letter-spacing: -0.032em; max-width: 17ch; margin: 0 auto; }
.bleed em { font-style: italic; color: var(--accent); }
.bleed--left { text-align: left; }
.bleed--left p { margin: 0; }

/* ═══ Índice de pilares ═══ */
.pillars { border-top: 1px solid var(--ink); }
.pillar { position: relative; display: grid; grid-template-columns: 72px 1fr 1.25fr 40px; gap: clamp(20px, 3vw, 48px); padding: clamp(26px, 3.2vw, 42px) 0; border-bottom: 1px solid var(--rule); align-items: baseline; transition: padding-left .45s var(--ease); }
.pillar:hover { padding-left: 14px; }
.pillar::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.pillar:hover::after { transform: scaleX(1); }
.pillar__n { font-family: var(--display); font-size: 18px; color: var(--muted); }
.pillar__t { font-family: var(--display); font-weight: 300; font-size: clamp(23px, 2.3vw, 34px); line-height: 1.12; letter-spacing: -0.025em; }
.pillar__d { font-size: var(--t-sm); color: color-mix(in srgb, var(--ink) 72%, transparent); }
.pillar__go { font-size: 20px; color: var(--ghost); justify-self: end; transition: transform .45s var(--ease), color .35s; }
.pillar:hover .pillar__go { transform: translateX(8px); color: var(--accent); }

/* ═══ Tarjetas ═══ */
.card { border-top: 1px solid var(--ink); padding-top: var(--s3); display: block; }
.card__k { font-size: var(--t-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.card__t { font-family: var(--display); font-weight: 300; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.16; letter-spacing: -0.02em; margin-top: var(--s2); transition: color .3s; }
.card__d { font-size: var(--t-sm); color: color-mix(in srgb, var(--ink) 72%, transparent); margin-top: var(--s2); }
.card__m { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s3); }
a.card:hover .card__t { color: var(--accent); }
.card__q { font-family: var(--display); font-style: italic; font-weight: 300; font-size: clamp(19px, 1.75vw, 25px); line-height: 1.24; letter-spacing: -0.015em; }

/* ═══ Cronología ═══ */
.timeline { border-top: 1px solid var(--ink); }
.tl-row { display: grid; grid-template-columns: 210px 1fr; gap: clamp(20px, 3vw, 48px); padding: clamp(18px, 2.2vw, 28px) 0; border-bottom: 1px solid var(--rule); }
.tl-row__y { font-family: var(--display); font-size: clamp(19px, 1.7vw, 25px); line-height: 1.15; }
.tl-row__t { font-size: var(--t-sm); color: color-mix(in srgb, var(--ink) 76%, transparent); }
.tl-row__t strong { font-weight: 600; color: var(--ink); }
.timeline--prog { position: relative; }
.timeline--prog::before { content: ''; position: absolute; left: -22px; top: 0; width: 1px; height: 100%; background: var(--accent); transform: scaleY(var(--prog, 0)); transform-origin: top; }

/* ═══ Figura ═══ */
.figure__ph { background: var(--paper-2); border: 1px solid var(--rule); display: grid; place-items: center; text-align: center; padding: var(--s4); font-size: var(--t-label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); line-height: 2.1; }
.figure__ph--portrait { aspect-ratio: 4 / 5; }
.figure__cap { font-size: var(--t-xs); color: var(--muted); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); line-height: 1.5; }

/* ═══ Destacado y listas ═══ */
.callout { border: 1px solid var(--ink); padding: clamp(28px, 3.4vw, 48px); }
.callout__label { margin-bottom: var(--s3); }
.elist { border-top: 1px solid var(--ink); }
.elist li { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); display: flex; gap: 16px; }
.elist li::before { content: '—'; color: var(--ghost); flex-shrink: 0; }

/* ═══ Tabla ═══ */
.ba { width: 100%; border-collapse: collapse; }
.ba th { text-align: left; font-size: var(--t-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-bottom: var(--s3); border-bottom: 1px solid var(--ink); }
.ba td { padding: clamp(20px, 2.4vw, 30px) var(--s4) clamp(20px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--rule); font-size: var(--t-sm); vertical-align: top; }
.ba td:first-child { color: var(--muted); }
.ba td:last-child { padding-right: 0; }

/* ═══ FAQ ═══ */
.faq { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: clamp(20px, 2.4vw, 30px) 48px clamp(20px, 2.4vw, 30px) 0; position: relative; font-family: var(--display); font-weight: 400; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.28; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--ghost); transition: transform .4s var(--ease), color .3s; }
.faq__item[open] .faq__q::after { transform: translateY(-50%) rotate(45deg); color: var(--accent); }
.faq__a { padding: 0 72px var(--s4) 0; font-size: var(--t-sm); color: color-mix(in srgb, var(--ink) 76%, transparent); max-width: 62ch; }
.faq__a p + p { margin-top: 0.9em; }

/* ═══ Formularios ═══ */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--t-xs); letter-spacing: 0.08em; color: var(--muted); }
.field input, .field select, .field textarea { background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 11px 0; font-size: var(--t-sm); border-radius: 0; }
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); border-bottom-width: 2px; padding-bottom: 10px; }
.field--check { flex-direction: row; align-items: flex-start; gap: 12px; }
.field--check input { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; }
.field--check label { font-size: var(--t-xs); line-height: 1.55; }

/* ═══ Cierre y footer ═══ */
.cta-band { border-top: 1px solid var(--ink); padding-block: clamp(72px, 10vw, 150px); }
.cta-band .h2 { max-width: 17ch; }
/* ═══════════════════════════════════════════════════════════
   Pie
   Cuatro tamaños de letra y no más: display (marca), label (11 en
   versalitas), cuerpo (15) y letra menuda (12.5). Tres bloques
   separados por filete; dentro de cada uno, nada de reglas.
   ═══════════════════════════════════════════════════════════ */

.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(56px, 6vw, 88px) var(--s4); }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: #C4485A; }
.site-footer .wrap + .wrap { margin-top: 0; }

/* Etiqueta única para TODOS los encabezados del pie. */
.site-footer h2 {
  font-family: var(--sans); font-size: var(--t-label); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.42; margin-bottom: var(--s3);
}

/* ── Bloque 1 · marca y llamada ── */
.footer__top {
  display: grid; grid-template-columns: 1fr auto; gap: var(--s4);
  align-items: end; padding-bottom: clamp(36px, 4.5vw, 60px);
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
}
.footer__brand {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12; letter-spacing: -0.025em;
}
.footer__tagline { font-size: var(--t-sm); opacity: .55; margin-top: 12px; max-width: 34ch; }
.footer__cta { justify-self: end; }
.footer__cta-t { font-size: var(--t-sm); opacity: .55; margin-bottom: 14px; }
.btn--light { border-color: color-mix(in srgb, var(--paper) 55%, transparent); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ── Bloque 2 · navegación, contacto y suscripción, en una sola rejilla ── */
.footer__body {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s4) clamp(24px, 2.6vw, 44px);
  padding-block: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
}
.footer__col li { padding: 5px 0; font-size: var(--t-sm); opacity: 0.78; }
.footer__col a:hover { opacity: 1; }
.footer__col .current-menu-item > a { opacity: 1; border-bottom: 1px solid currentColor; }

/* Contacto y suscripción ocupan un ancho mayor bajo las columnas. */
.footer__contact-col { grid-column: span 2; }
.footer__sub-col { grid-column: span 3; }
.footer__contact li { padding: 5px 0; font-size: var(--t-sm); }
.footer__contact a { border-bottom: 1px solid color-mix(in srgb, var(--paper) 26%, transparent); }
.footer__contact .muted { opacity: .5; }
.footer__addr, .footer__areas { font-size: var(--t-sm); opacity: .55; margin-top: var(--s3); line-height: 1.6; }
.footer__note { font-size: var(--t-sm); opacity: .62; max-width: 46ch; margin-bottom: var(--s3); }

.subscribe { display: flex; gap: 14px; align-items: flex-end; max-width: 470px; }
.subscribe__field { flex: 1; min-width: 0; }
.subscribe input[type="email"] {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--paper) 40%, transparent);
  padding: 10px 0; font-size: var(--t-sm); color: var(--paper); border-radius: 0;
}
.subscribe input::placeholder { color: color-mix(in srgb, var(--paper) 42%, transparent); }
.subscribe input:focus { outline: none; border-bottom-color: var(--paper); }
.subscribe__msg { font-size: var(--t-xs); opacity: .7; margin-top: 12px; }

/* ── Bloque 3 · letra menuda, todo junto y sin filetes internos ── */
.footer__fine { padding-top: clamp(36px, 4.5vw, 56px); font-size: var(--t-xs); line-height: 1.75; opacity: .48; }
.footer__fine p { max-width: 82ch; }
.footer__fine p + p { margin-top: 12px; }
.footer__meta {
  margin-top: var(--s4); display: flex; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap;
}
.footer__top-link { border-bottom: 1px solid currentColor; }

/* Solo lectores de pantalla */
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}

/* ═══ Sección invertida ═══ */
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .label, .section--ink .figure__cap, .section--ink .sm.muted, .section--ink .muted { color: color-mix(in srgb, var(--paper) 58%, transparent); }
.section--ink .sec-n { color: color-mix(in srgb, var(--paper) 22%, transparent); }
.section--ink .sec-n small { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.section--ink .accent { color: #C4485A; }
.section--ink .link-arrow { border-bottom-color: color-mix(in srgb, var(--paper) 28%, transparent); }
.section--ink .link-arrow:hover { color: #C4485A; border-bottom-color: #C4485A; }
.section--ink .figure__ph { background: color-mix(in srgb, var(--paper) 7%, transparent); border-color: color-mix(in srgb, var(--paper) 20%, transparent); color: color-mix(in srgb, var(--paper) 55%, transparent); }
.section--ink .figure__cap { border-top-color: color-mix(in srgb, var(--paper) 20%, transparent); }

/* ═══════════════════════════════════════════════════════════
   Entradas — «Criterio Laboral»
   Sin autoría visible. Ver inc/authorless.php.
   ═══════════════════════════════════════════════════════════ */

.entry-header { padding-block: clamp(64px, 9vw, 140px) clamp(32px, 4vw, 56px); }
.entry-header .hero-title { font-size: clamp(34px, 4.6vw, 68px); max-width: 20ch; }
.entry-meta { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; font-size: var(--t-xs); color: var(--muted); margin-top: var(--s4); }
.entry-meta__sep { opacity: .4; }
.entry-cat { font-size: var(--t-label); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.entry-featured { margin-block: clamp(32px, 4vw, 56px); }
.entry-featured img { width: 100%; }

/* Aviso de encuadre — obligatorio en toda entrada */
.entry-disclaimer { border: 1px solid var(--ink); padding: clamp(20px, 2.4vw, 30px); font-size: var(--t-sm); line-height: 1.6; margin-bottom: clamp(40px, 5vw, 64px); }
.entry-disclaimer .label { margin-bottom: 10px; display: block; }

/* Cuerpo del artículo — estilos para el contenido de Gutenberg */
.entry-content { max-width: var(--read); font-size: clamp(17px, 1.15vw, 19px); line-height: 1.72; }
.entry-content > * + * { margin-top: 1.15em; }
.entry-content h2 { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.14; letter-spacing: -0.025em; margin-top: 1.9em; }
.entry-content h3 { font-family: var(--display); font-weight: 400; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.2; margin-top: 1.6em; }
.entry-content h4 { font-family: var(--sans); font-weight: 600; font-size: 1.02em; margin-top: 1.5em; }
.entry-content a { border-bottom: 1px solid var(--accent); color: var(--accent); }
.entry-content a:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
/* Los componentes del tema traen su propio tratamiento de enlace: si heredaran
   el de los enlaces de párrafo, un pilar entero saldría en borgoña y con el
   filete de la fila teñido. */
.entry-content a.pillar,
.entry-content a.card,
.entry-content a.btn,
.entry-content a.link-arrow {
  border-bottom: 0; color: inherit; background: none;
}
.entry-content a.pillar { border-bottom: 1px solid var(--rule); }
.entry-content a.pillar:hover .pillar__t,
.entry-content a.card:hover .card__t { color: var(--accent); }
.entry-content a.link-arrow { border-bottom: 1px solid var(--rule); }
.entry-content a.link-arrow:hover { color: var(--accent); border-bottom-color: var(--accent); }
.entry-content strong { font-weight: 600; }
.entry-content ul, .entry-content ol { padding-left: 0; }
.entry-content ul li, .entry-content ol li { padding: 9px 0; border-bottom: 1px solid var(--rule-soft); display: flex; gap: 14px; }
.entry-content ul li::before { content: '—'; color: var(--ghost); flex-shrink: 0; }
.entry-content ol { counter-reset: li; }
.entry-content ol li::before { counter-increment: li; content: counter(li, decimal-leading-zero); color: var(--muted); font-size: .8em; flex-shrink: 0; padding-top: .25em; }
.entry-content blockquote { border-left: 2px solid var(--accent); padding-left: clamp(20px, 3vw, 40px); font-family: var(--display); font-weight: 300; font-size: clamp(20px, 2vw, 28px); line-height: 1.32; letter-spacing: -0.02em; margin-block: 1.8em; }
.entry-content blockquote p + p { margin-top: .5em; }
.entry-content figure { margin-block: 1.8em; }
.entry-content figcaption { font-size: var(--t-xs); color: var(--muted); margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.entry-content th { text-align: left; font-size: var(--t-label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.entry-content td { padding: 16px 20px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--paper-2); padding: 2px 6px; }
.entry-content pre { background: var(--paper-2); padding: var(--s3); overflow-x: auto; font-size: var(--t-sm); }
.entry-content hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.4em; }

/* Anchos del contenido según lo que lleve dentro. Los pone la plantilla:
   ver inc/sections.php. */
.entry-content--wide { max-width: none; }
.entry-content--lead { max-width: 56ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; }
.entry-content--lead > p:first-child::first-letter {
  font-family: var(--display); float: left; font-size: 4.2em; line-height: 0.78;
  padding-right: 0.09em; margin-top: 0.07em; font-weight: 300; color: var(--accent);
}
/* Dentro de una sección ya hay aire: los componentes anchos no necesitan más. */
.entry-content > .pillars:first-child,
.entry-content > .faq:first-child,
.entry-content > .timeline:first-child { margin-top: 0; }
.entry-content .pillars,
.entry-content .faq,
.entry-content .timeline,
.entry-content .grid-3,
.entry-content .grid-2 { margin-block: clamp(24px, 3vw, 40px); }
.entry-content .callout { margin-block: clamp(28px, 3.4vw, 48px); }
.entry-content .elist { margin-block: clamp(20px, 2.4vw, 32px); }
/* El último componente de una sección no lleva margen inferior: se sumaba al
   padding de la sección y dejaba un hueco del doble de lo previsto. Se ve
   sobre todo en las páginas de audiencia, donde las secciones terminan en
   tabla o en rejilla de tarjetas. */
.entry-content > *:last-child,
.entry-content > .pillars:last-child,
.entry-content > .faq:last-child,
.entry-content > .timeline:last-child,
.entry-content > .grid-3:last-child,
.entry-content > .grid-2:last-child,
.entry-content > .grid-4:last-child,
.entry-content > .callout:last-child,
.entry-content > .elist:last-child,
.entry-content > .ba:last-child { margin-bottom: 0; }
/* Las listas del tema no heredan el estilo de lista de Gutenberg. */
.entry-content .elist li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.entry-content .elist li::before { content: '—'; color: var(--ghost); }

/* ═══════════════════════════════════════════════════════════
   Variantes de sección
   Tres ritmos para que las páginas no se lean todas igual.
   Ver inc/sections.php.
   ═══════════════════════════════════════════════════════════ */

/* ── «manifiesto» · páginas de audiencia ──
   El título ocupa el ancho completo bajo un filete y el cuerpo se desplaza
   a la derecha. Se lee como una declaración, no como un índice. */
.sec--manifiesto { padding-block: clamp(52px, 6.2vw, 100px); }
/* El filete de apertura ya separa: no hace falta tanto aire tras él. */
.sec--manifiesto > .wrap > .draw { margin-bottom: clamp(20px, 2.4vw, 32px) !important; }
.sec--manifiesto__t { max-width: 22ch; }
.sec--manifiesto > .wrap > .draw { opacity: .45; }
.sec--manifiesto .entry-content { font-size: clamp(17px, 1.25vw, 19px); }
.section--ink .sec--manifiesto__t,
.section--ink .entry-content { color: var(--paper); }
.section--ink .entry-content a { color: #C4485A; border-bottom-color: #C4485A; }
.section--ink .entry-content .elist li { border-bottom-color: color-mix(in srgb, var(--paper) 18%, transparent); }
.section--ink .entry-content .elist { border-top-color: color-mix(in srgb, var(--paper) 30%, transparent); }
.section--ink .entry-content .elist li::before { color: color-mix(in srgb, var(--paper) 35%, transparent); }
.section--ink .callout { border-color: color-mix(in srgb, var(--paper) 35%, transparent); }
.section--ink .pillar { border-bottom-color: color-mix(in srgb, var(--paper) 15%, transparent); }
.section--ink .pillars { border-top-color: color-mix(in srgb, var(--paper) 30%, transparent); }
.section--ink .pillar__n { color: color-mix(in srgb, var(--paper) 45%, transparent); }
.section--ink .pillar__d { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.section--ink .faq { border-top-color: color-mix(in srgb, var(--paper) 30%, transparent); }
.section--ink .faq__item { border-bottom-color: color-mix(in srgb, var(--paper) 15%, transparent); }
.section--ink .faq__a { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.section--ink .draw { opacity: .3; }

/* ── «ficha» · páginas locales ──
   Título en versalitas a la izquierda, cuerpo a la derecha. Denso, sin
   fondos alternos, filetes finos: se lee como un dossier. */
.hero--local { padding-block: clamp(56px, 8vw, 120px) clamp(36px, 4.5vw, 64px); }
.sec--ficha { padding-block: clamp(40px, 5vw, 72px); }
.sec--ficha__t { font-size: var(--t-label); line-height: 1.6; max-width: 22ch; }
.sec--ficha .entry-content { font-size: var(--t-sm); }
.sec--ficha .entry-content > *:first-child { margin-top: 0; }

/* Alineaciones de Gutenberg */
.entry-content .alignwide { max-width: min(1080px, 92vw); margin-inline: auto; }
.entry-content .alignfull { max-width: none; width: 100vw; margin-inline: calc(50% - 50vw); }
.entry-content .alignleft { float: left; margin: .4em 2em 1.2em 0; max-width: 45%; }
.entry-content .alignright { float: right; margin: .4em 0 1.2em 2em; max-width: 45%; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .wp-caption-text { font-size: var(--t-xs); color: var(--muted); }

/* Pie de entrada y navegación */
.entry-footer { max-width: var(--read); margin-top: clamp(48px, 6vw, 80px); padding-top: var(--s4); border-top: 1px solid var(--ink); }
.entry-tags { display: flex; gap: 10px; flex-wrap: wrap; font-size: var(--t-xs); }
.entry-tags a { border: 1px solid var(--rule); padding: 6px 13px; }
.entry-tags a:hover { border-color: var(--accent); color: var(--accent); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); border-top: 1px solid var(--ink); }
.post-nav__i { padding-block: var(--s4); }
.post-nav__i--next { text-align: right; border-left: 1px solid var(--rule); padding-left: var(--s4); }
.post-nav__k { font-size: var(--t-label); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.post-nav__t { font-family: var(--display); font-weight: 300; font-size: clamp(19px, 1.7vw, 25px); line-height: 1.18; margin-top: 12px; }
.post-nav a:hover .post-nav__t { color: var(--accent); }

/* Listado del blog */
.post-list { border-top: 1px solid var(--ink); }
.post-item { display: grid; grid-template-columns: 190px 1fr 40px; gap: clamp(20px, 3vw, 48px); padding: clamp(26px, 3.2vw, 40px) 0; border-bottom: 1px solid var(--rule); align-items: baseline; position: relative; transition: padding-left .45s var(--ease); }
.post-item:hover { padding-left: 14px; }
.post-item__k { font-size: var(--t-label); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.post-item__t { font-family: var(--display); font-weight: 300; font-size: clamp(22px, 2.1vw, 31px); line-height: 1.14; letter-spacing: -0.025em; }
.post-item__x { font-size: var(--t-sm); color: color-mix(in srgb, var(--ink) 70%, transparent); margin-top: 10px; }
.post-item__m { font-size: var(--t-xs); color: var(--muted); margin-top: 12px; }
.post-item__go { font-size: 20px; color: var(--ghost); justify-self: end; transition: transform .45s var(--ease), color .35s; }
.post-item:hover .post-item__go { transform: translateX(8px); color: var(--accent); }

/* Filtro de categorías */
.cat-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.cat-filter a { font-size: var(--t-xs); border: 1px solid var(--rule); padding: 9px 17px; transition: all .3s; }
.cat-filter a:hover, .cat-filter a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }

/* Paginación */
.pagination { margin-top: clamp(48px, 6vw, 80px); display: flex; gap: 8px; flex-wrap: wrap; font-size: var(--t-sm); }
.pagination .page-numbers { padding: 11px 18px; border: 1px solid var(--rule); }
.pagination .page-numbers:hover { border-color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Buscador */
.search-form { display: flex; gap: 12px; align-items: flex-end; max-width: 520px; }
.search-form label { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.search-form input[type="search"] { background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 11px 0; font-size: var(--t-sm); }

/* ═══ Movimiento — mejora progresiva ═══ */
.rv { opacity: 1; }
.js .rv { opacity: 0; transition: opacity .8s var(--ease); }
.js .rv.is-in { opacity: 1; }
.js .rl .w { opacity: 0; transform: translateY(0.42em); transition: opacity .62s var(--ease), transform .72s var(--ease); }
.js .rl.is-in .w { opacity: 1; transform: none; }
.draw { display: block; height: 1px; background: currentColor; opacity: .22; transform: scaleX(0); transform-origin: left; }
.js .draw { transition: transform 1.1s var(--ease); }
.js .draw.is-in { transform: scaleX(1); }
.js .stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.js .stagger.is-in > * { opacity: 1; transform: none; }
.js .stagger.is-in > *:nth-child(1) { transition-delay: .00s }
.js .stagger.is-in > *:nth-child(2) { transition-delay: .07s }
.js .stagger.is-in > *:nth-child(3) { transition-delay: .14s }
.js .stagger.is-in > *:nth-child(4) { transition-delay: .21s }
.js .stagger.is-in > *:nth-child(5) { transition-delay: .28s }
.js .stagger.is-in > *:nth-child(6) { transition-delay: .35s }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .rv, .js .rl .w, .js .stagger > * { opacity: 1 !important; transform: none !important; }
  .draw { transform: scaleX(1) !important; }
  .timeline--prog::before { display: none; }
  .sec-n-wrap { position: static; }
}

/* ═══ Responsive ═══ */
@media (max-width: 1080px) {
  .c-margin, .c-main, .c-wide, .c-half-l, .c-half-r { grid-column: 1 / -1; }
  .sec-n { display: flex; align-items: baseline; gap: 18px; font-size: 34px; }
  .sec-n small { margin-top: 0; }
  .sec-n-wrap { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__body { grid-template-columns: repeat(3, 1fr); }
  .footer__contact-col, .footer__sub-col { grid-column: span 3; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__cta { justify-self: start; }
  .colophon__grid { grid-template-columns: repeat(2, 1fr); }
  .colophon__i { border-right: none; border-bottom: 1px solid var(--rule); padding-left: 0 !important; }
  .pillar { grid-template-columns: 48px 1fr 32px; row-gap: 12px; }
  .pillar__d { grid-column: 2 / 4; }
  .post-item { grid-template-columns: 1fr 32px; row-gap: 10px; }
  .timeline--prog::before { left: -12px; }
}
/* La navegación pasa a menú desplegable antes de que llegue a apretarse. */
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .site-nav.is-open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--ink); padding: var(--s3) var(--pad-x); }
  .site-nav.is-open > ul { flex-direction: column; flex-wrap: nowrap; gap: var(--s2); justify-content: flex-start; }
  .site-nav.is-open .menu-item-has-children > a::before { display: none; }
  .nav-toggle { display: block; }
  /* Con la navegación colapsada quedan 3 hijos y space-between deja el botón
     flotando en el centro: empujamos la marca para agrupar a la derecha. */
  .site-header__inner > .brand { margin-right: auto; }
  .site-nav.is-open .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; background: none; padding: 4px 0 4px 16px; margin: 0; min-width: 0;
  }
  .site-nav.is-open .sub-menu a { padding: 6px 0; }
}

@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4, .form, .post-nav { grid-template-columns: 1fr; }
  .footer__body { grid-template-columns: 1fr 1fr; }
  .footer__contact-col, .footer__sub-col { grid-column: span 2; }
  .subscribe { flex-direction: column; align-items: stretch; }
  .post-nav__i--next { text-align: left; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .tl-row { grid-template-columns: 1fr; gap: 8px; }
  .dropcap::first-letter { font-size: 3.4em; }
  .faq__a { padding-right: 0; }
  .timeline--prog::before { display: none; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin-inline: 0; max-width: 100%; }
  .ba, .ba tbody, .ba tr, .ba td, .ba th { display: block; width: 100%; }
  .ba td { padding-right: 0; }
  .ba td:first-child { border-bottom: 0; padding-bottom: 4px; }
}

/* ═══ Impresión ═══ */
@media print {
  .site-header, .site-footer, .cta-band, .post-nav, .cat-filter, .skip-link { display: none; }
  body { background: #fff; color: #000; }
  .entry-content { max-width: none; }
}
