
/* ==========================================================================
   BOLETÍN INFORMATIVO — sistema visual
   Paleta institucional: VERDE · NEGRO · BLANCO (y opacidades de ellos)
   ========================================================================== */

:root {
  /* Paleta base */
  --green: #42F000;          /* verde institucional (tomado del dossier) */
  --green-deep: #1C6A00;     /* verde para texto sobre blanco (contraste AA) */
  --green-ink: #0F3A00;      /* verde muy oscuro */
  --green-tint: #F1FAEC;     /* verde muy claro para fondos documentales */
  --black: #0A0A0A;
  --white: #FFFFFF;

  /* Tokens de tema (los redefine cada sección) */
  --bg: var(--white);
  --fg: var(--black);
  --muted: rgba(10, 10, 10, .66);
  --line: rgba(10, 10, 10, .14);
  --line-strong: var(--black);
  --accent: var(--green-deep);
  --mark: var(--green);
  --mark-fg: var(--black);
  --card: var(--white);

  --f-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --tabbar-h: 64px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body[data-theme="agenda"] {
  --bg: var(--black);
  --fg: var(--white);
  --muted: rgba(255, 255, 255, .7);
  --line: rgba(255, 255, 255, .18);
  --line-strong: var(--green);
  --accent: var(--green);
  --mark: var(--green);
  --mark-fg: var(--black);
  --card: #111;
}
body[data-theme="irrompibles"] {
  --bg: var(--white);
  --fg: var(--black);
  --muted: rgba(10, 10, 10, .66);
  --line: rgba(10, 10, 10, .14);
  --line-strong: var(--black);
  --accent: var(--green-deep);
  --mark: var(--black);
  --mark-fg: var(--green);
  --card: var(--black);
}
body[data-theme="dossiers"] {
  --bg: var(--green-tint);
  --card: var(--white);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s var(--ease), color .25s var(--ease);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 800; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--green); color: var(--black); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
body[data-theme="irrompibles"] :focus-visible { outline-color: var(--black); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--green); color: var(--black); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipografía editorial */
.cond { font-stretch: 68%; font-variation-settings: "wdth" 68; }
.kicker {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.kicker::before { content: ""; width: .75em; height: .75em; background: var(--mark); flex: none; }
.label { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.headline {
  font-stretch: 72%; font-variation-settings: "wdth" 72;
  font-weight: 800; letter-spacing: -.01em; line-height: 1.02;
  text-wrap: balance; overflow-wrap: anywhere;
}
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; }
.prose { max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }

/* ---------- Header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: var(--black); color: var(--white);
  border-bottom: 4px solid var(--green);
}
.masthead__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  min-height: 64px; gap: 12px;
}
.masthead__edition { font-size: .78rem; letter-spacing: .06em; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.masthead__brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-weight: 900; font-stretch: 70%; font-variation-settings: "wdth" 70;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem); letter-spacing: .01em; line-height: 1;
  white-space: nowrap;
}
.masthead__mark { width: 14px; height: 1em; background: var(--green); display: inline-block; }
.iconbtn {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 12px; justify-content: center;
  border: 1px solid rgba(255,255,255,.3); text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: background .15s, color .15s, border-color .15s;
}
.iconbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.iconbtn:hover, .iconbtn[aria-current="page"] { background: var(--green); color: var(--black); border-color: var(--green); }

.mainnav { border-top: 1px solid rgba(255,255,255,.14); }
.mainnav ul { list-style: none; display: flex; gap: 0; margin: 0 auto; }
.mainnav li { flex: 1 1 0; }
.mainnav a {
  display: flex; align-items: baseline; gap: 8px; justify-content: center;
  padding: 12px 10px 11px; text-decoration: none; font-weight: 700; font-size: .92rem;
  border-bottom: 3px solid transparent; margin-bottom: -4px; white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}
.mainnav .n { font-size: .7rem; color: var(--green); font-weight: 800; letter-spacing: .05em; }
.mainnav a:hover { background: rgba(255,255,255,.06); }
.mainnav a[aria-current="page"] { border-bottom-color: var(--white); background: rgba(66,240,0,.12); }

/* Tabbar móvil */
.tabbar { display: none; }

@media (max-width: 899px) {
  .masthead__bar { grid-template-columns: 1fr auto; min-height: 56px; }
  .masthead__edition { display: none; }
  .masthead__brand { justify-self: start; }
  .iconbtn__label { display: none; }
  .mainnav { display: none; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--black); color: var(--white); border-top: 1px solid rgba(255,255,255,.18);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    text-decoration: none; font-size: .68rem; font-weight: 700; letter-spacing: .02em; min-width: 0;
    position: relative; -webkit-tap-highlight-color: transparent;
  }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 2px; }
  .tabbar b { font-size: 1.05rem; line-height: 1; font-weight: 900; font-stretch: 70%; font-variation-settings: "wdth" 70; color: rgba(255,255,255,.75); }
  .tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
  .tabbar a[aria-current="page"] { color: var(--green); }
  .tabbar a[aria-current="page"] b { color: var(--green); }
  .tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 3px; background: var(--green); }
}

/* ---------- Vistas ---------- */
main { display: block; min-height: 60vh; outline: none; }
.view { animation: viewIn .28s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Cabecera de sección */
.sechead { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line-strong); }
.sechead__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sechead__num { font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: 1rem; letter-spacing: .08em; }
.sechead__num b { color: var(--accent); }
.sechead h1 { font-size: clamp(2.8rem, 1.4rem + 7vw, 7.5rem); line-height: .9; }
.sechead__intro { margin-top: 18px; max-width: 60ch; color: var(--muted); font-size: 1.05rem; }
.sechead__meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px;
  border: 1px solid var(--line-strong); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.chip--lit, .kicker--lit { text-transform: none; letter-spacing: .03em; }
.chip--solid { background: var(--mark); color: var(--mark-fg); border-color: var(--mark); }

.block { padding: clamp(28px, 4vw, 48px) 0; }
.block + .block { border-top: 1px solid var(--line); }
.block__title { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.block__title h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
.block__title::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px;
  font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; text-align: center;
  border: 2px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn--primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--primary:hover { background: var(--green); color: var(--black); border-color: var(--green); }
body[data-theme="agenda"] .btn--primary { background: var(--green); color: var(--black); border-color: var(--green); }
body[data-theme="agenda"] .btn--primary:hover { background: var(--white); border-color: var(--white); }
body[data-theme="irrompibles"] .btn--primary:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; flex: none; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }

.back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  margin: 20px 0 8px; border-bottom: 2px solid var(--mark);
}
.back:hover { color: var(--accent); }

/* Enlaces de la fuente (links originales) */
.srclink {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
  padding: 16px 18px; margin: 18px 0; text-decoration: none;
  border: 2px solid var(--fg); background: var(--card);
  transition: background .15s, color .15s, border-color .15s;
}
body[data-theme="agenda"] .srclink, body[data-theme="irrompibles"] .srclink { color: var(--white); }
body[data-theme="irrompibles"] .srclink { border-color: var(--black); }
.srclink__label { font-weight: 800; color: var(--accent); font-size: .95rem; }
body[data-theme="irrompibles"] .srclink__label { color: var(--green); }
.srclink__text { grid-column: 1; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; font-size: .95rem; }
.srclink__icon { grid-row: 1 / span 2; grid-column: 2; width: 44px; height: 44px; display: grid; place-items: center; background: var(--black); color: var(--green); }
.srclink__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.srclink:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.srclink:hover .srclink__label { color: var(--green); }
.srclink:hover .srclink__icon { background: var(--green); color: var(--black); }

.source { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 26px; }
.source a { color: var(--fg); font-weight: 700; }

/* ---------- Portada ---------- */
.cover { background: var(--black); color: var(--white); }
.cover__inner { padding: clamp(28px, 5vw, 56px) 0 0; display: grid; gap: 28px; }
.cover__title { font-size: clamp(3.2rem, 1rem + 10vw, 9.5rem); line-height: .86; font-weight: 900; letter-spacing: -.015em; }
.cover__title span { color: var(--green); display: block; }
.cover__meta { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.25); padding: 14px 0 18px; font-size: .85rem; letter-spacing: .06em; }
.cover__meta b { color: var(--green); }

.sumario { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.25); }
.sumario a {
  display: grid; gap: 6px; padding: 18px 16px 20px; text-decoration: none; min-height: 120px;
  border-right: 1px solid rgba(255,255,255,.25); transition: background .18s, color .18s;
}
.sumario a:last-child { border-right: 0; }
.sumario .n { font-weight: 900; font-size: 2rem; line-height: 1; color: var(--green); font-stretch: 62%; font-variation-settings: "wdth" 62; }
.sumario .t { font-weight: 800; font-size: 1.05rem; line-height: 1.15; }
.sumario .c { font-size: .78rem; color: rgba(255,255,255,.65); letter-spacing: .04em; }
.sumario a:hover { background: var(--green); color: var(--black); }
.sumario a:hover .n, .sumario a:hover .c { color: var(--black); }

.lead-story { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.lead-story__media { position: sticky; top: 130px; }
.lead-story__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lead-story h2 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.3rem); margin: 12px 0 16px; }
.lead-story h2 a { text-decoration: none; background-image: linear-gradient(var(--green), var(--green)); background-size: 0 .18em; background-position: 0 92%; background-repeat: no-repeat; transition: background-size .3s var(--ease); }
.lead-story h2 a:hover { background-size: 100% .18em; }

.alsolist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--black); }
.alsolist li { border-bottom: 1px solid var(--line); }
.alsolist a { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 14px 0; text-decoration: none; }
.alsolist .n { grid-row: span 2; font-weight: 900; font-size: 1.3rem; color: var(--green-deep); font-stretch: 62%; font-variation-settings: "wdth" 62; line-height: 1.1; }
.alsolist .s { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.alsolist .t { font-weight: 700; line-height: 1.3; }
.alsolist a:hover .t { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 3px; }

.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 2px solid var(--black); }
.module { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 3vw, 32px); min-height: 320px; position: relative; text-decoration: none; }
.module + .module { border-left: 2px solid var(--black); }
.module:nth-child(3) { border-left: 0; }
.module:nth-child(n+3) { border-top: 2px solid var(--black); }
.module__num { font-weight: 900; font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: .8; font-stretch: 62%; font-variation-settings: "wdth" 62; }
.module__name { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); font-stretch: 72%; font-variation-settings: "wdth" 72; }
.module__intro { font-size: .95rem; opacity: .82; max-width: 46ch; }
.module__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid currentColor; }
.module__list li { padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-weight: 700; font-size: .95rem; line-height: 1.3; }
.module__cta { margin-top: auto; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.module__cta::after { content: "→"; transition: transform .2s var(--ease); }
.module:hover .module__cta::after { transform: translateX(6px); }
.module--santoro { background: var(--white); color: var(--black); }
.module--santoro .module__num { color: var(--green-deep); }
.module--agenda { background: var(--black); color: var(--white); }
.module--agenda .module__num { color: var(--green); }
.module--irrompibles { background: var(--green); color: var(--black); }
.module--dossiers { background: var(--green-tint); color: var(--black); }
.module--dossiers .module__num { -webkit-text-stroke: 2px var(--black); color: transparent; }
.module:hover { outline: 4px solid var(--green); outline-offset: -4px; z-index: 1; }
.module--irrompibles:hover { outline-color: var(--black); }

/* ---------- Santoro: noticias ---------- */
.story-main { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
.story-main > .gallery { position: sticky; top: 130px; }
.story-main h2 { font-size: clamp(2rem, 1.1rem + 3vw, 3.8rem); margin: 12px 0 18px; }
.story-main h2 a { text-decoration: none; }
.story-main h2 a:hover { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 5px; text-underline-offset: 6px; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-self: start; }
.gallery button { padding: 0; border: 0; background: var(--black); cursor: zoom-in; display: block; overflow: hidden; position: relative; }
.gallery button:first-child { grid-column: 1 / -1; }
.gallery img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 2; transition: transform .4s var(--ease), opacity .2s; }
.gallery button:hover img { transform: scale(1.03); }
.gallery__count { position: absolute; right: 8px; bottom: 8px; background: var(--black); color: var(--white); font-size: .72rem; font-weight: 800; padding: 4px 8px; letter-spacing: .06em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0; border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); }
.card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: var(--card); transition: background .2s; }
.card h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); font-stretch: 74%; font-variation-settings: "wdth" 74; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 4px; text-underline-offset: 4px; }
.card__img { margin: -22px -22px 4px; }
.card__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.more { font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--mark); padding: 6px 0 2px; }
.more:hover { color: var(--accent); }

.brief { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 22px; align-items: start; }
.brief button { border: 0; padding: 0; background: none; cursor: zoom-in; }
.brief img { width: 100%; border: 1px solid var(--line-strong); }
.brief__txt { align-self: end; color: var(--muted); font-size: .9rem; }
.brief__txt .source { border: 0; margin: 0; padding: 0; }

/* Artículo */
.article { padding-bottom: clamp(32px, 5vw, 64px); }
.article__head { padding: 10px 0 24px; border-bottom: 2px solid var(--line-strong); margin-bottom: 26px; }
.article__head h1 { font-size: clamp(2rem, 1.1rem + 3.4vw, 4.2rem); margin-top: 14px; max-width: 22ch; }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.article__aside { position: sticky; top: 130px; display: grid; gap: 18px; }
.article__body { font-size: 1.12rem; line-height: 1.7; }
.article__body .gallery { margin-bottom: 28px; }
.related { border: 2px solid var(--black); background: var(--white); color: var(--black); }
.related__head { background: var(--black); color: var(--green); padding: 8px 14px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.related a { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; text-decoration: none; align-items: center; }
.related img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--black); }
.related strong { display: block; line-height: 1.2; font-stretch: 76%; font-variation-settings: "wdth" 76; font-size: 1.05rem; }
.related small { color: rgba(10,10,10,.66); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.related a:hover strong { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; }
.factbox { border-top: 2px solid var(--line-strong); }
.factbox dl { margin: 0; }
.factbox div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.factbox dt { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.factbox dd { margin: 0; font-weight: 600; }

/* ---------- Agenda ---------- */
.agenda-head__kicker { color: var(--green); }
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda__item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.agenda__side { font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; }
.agenda__side .num { font-size: 4.5rem; line-height: .8; color: var(--green); display: block; }
.agenda__side .lbl { display: block; margin-top: 10px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-stretch: 100%; font-variation-settings: "wdth" 100; font-weight: 800; }
.agenda__item h2 { font-size: clamp(1.7rem, 1rem + 2.4vw, 3rem); margin-bottom: 18px; }
.agenda__item h2 a { text-decoration: none; }
.agenda__item h2 a:hover { color: var(--green); }

/* Árbol estilo ┌ ├ └ */
.tree { list-style: none; margin: 0 0 22px; padding: 0; border-left: 2px solid var(--green); }
.tree li { position: relative; padding: 8px 0 8px 22px; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
.tree li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 14px; height: 2px; background: var(--green); }
.tree li:last-child { border-left: 2px solid var(--bg); margin-left: -2px; }
.tree li:last-child::after { content: ""; position: absolute; left: -2px; top: 0; height: 1.15em; width: 2px; background: var(--green); }
.tree li:first-child { margin-top: -2px; }
.tree .k { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); padding-top: 4px; }
.tree .v { font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin: 0 0 22px; border: 1px solid var(--line); }
.stat { padding: 16px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); line-height: 1; font-weight: 900; color: var(--green); font-stretch: 62%; font-variation-settings: "wdth" 62; }
.stat span { display: block; margin-top: 6px; font-size: .88rem; color: var(--muted); line-height: 1.35; }

.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: st; }
.steps li { counter-increment: st; padding: 18px 18px 18px 0; border-top: 2px solid var(--green); position: relative; }
.steps li + li { padding-left: 18px; }
.steps li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; background: var(--green); }
.steps li + li::before { left: 18px; }
.steps .k { display: block; font-weight: 800; font-size: 1.05rem; margin: 6px 0 6px; }
.steps .k::before { content: counter(st, decimal-leading-zero) " · "; color: var(--green); }
.steps .v { font-size: .92rem; color: var(--muted); }

/* ---------- Irrompibles ---------- */
.irr-hero { padding: clamp(28px, 5vw, 60px) 0 clamp(20px, 3vw, 30px); border-bottom: 3px solid var(--black); overflow: hidden; }
.irr-hero h1 { font-size: clamp(3.6rem, 1rem + 13vw, 12rem); line-height: .82; letter-spacing: -.02em; font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; }
.irr-hero h1 span { display: block; }
.irr-hero p { max-width: 54ch; font-weight: 600; margin-top: 20px; font-size: 1.05rem; }
.marquee { background: var(--black); color: var(--green); overflow: hidden; white-space: nowrap; border-bottom: 3px solid var(--black); }
.marquee span { display: inline-block; padding: 10px 0; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; animation: marquee 26s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.irr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.irr-card { background: var(--black); color: var(--white); display: flex; flex-direction: column; min-height: 100%; transition: transform .2s var(--ease); }
.irr-card:hover { transform: translateY(-3px); }
.irr-card__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.18); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.irr-card__body { padding: 20px; display: grid; gap: 14px; }
.irr-card h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.1rem); line-height: .92; color: var(--green); font-stretch: 64%; font-variation-settings: "wdth" 64; font-weight: 900; overflow-wrap: anywhere; }
.irr-card h2 a { text-decoration: none; }
.irr-card h2 a:hover { color: var(--white); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { border: 1px solid var(--green); color: var(--green); padding: 3px 10px; font-size: .8rem; font-weight: 700; }
.join { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--white); color: var(--black); font-weight: 800; font-size: 1.05rem; border-top: 4px solid var(--green); }
.join a { color: inherit; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; text-underline-offset: 3px; white-space: nowrap; }
.join::before { content: ""; width: 12px; height: 12px; background: var(--green); outline: 2px solid var(--black); flex: none; }
.wa { background: var(--black); color: var(--white); }
.wa__link { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px; padding: clamp(16px, 2.2vw, 24px) 0; text-decoration: none; }
.wa__label { grid-column: 1; font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.wa__num { grid-column: 1; font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.8rem); line-height: 1; font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75; letter-spacing: .01em; white-space: nowrap; transition: color .15s; }
.wa__cta { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; background: var(--green); color: var(--black); font-weight: 800; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; transition: background .15s, color .15s; }
.wa__cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
.wa__link:hover .wa__num { color: var(--green); }
.wa__link:hover .wa__cta { background: var(--white); }
@media (max-width: 600px) {
  .wa__link { grid-template-columns: 1fr; }
  .wa__cta { grid-column: 1; grid-row: auto; justify-content: center; margin-top: 10px; }
}
.irr-card .more { color: var(--white); border-color: var(--green); align-self: start; }
.irr-article { background: var(--black); color: var(--white); padding: clamp(20px, 4vw, 44px); margin-bottom: 40px; }
.irr-article h1 { color: var(--green); font-size: clamp(2.4rem, 1rem + 6vw, 6rem); line-height: .88; font-stretch: 62%; font-variation-settings: "wdth" 62; font-weight: 900; margin: 14px 0 22px; overflow-wrap: anywhere; }
.irr-article .kicker { color: var(--green); }
.irr-article .kicker::before { background: var(--green); }
.irr-article .source { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.2); }
.irr-article .source a { color: var(--white); }

/* ---------- Dossiers / documentoteca ---------- */
.lib-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.field { position: relative; flex: 1 1 280px; max-width: 520px; }
.field input {
  width: 100%; min-height: 48px; padding: 10px 14px 10px 44px; font: inherit; font-size: 1rem;
  background: var(--white); color: var(--black); border: 2px solid var(--black); border-radius: 0; -webkit-appearance: none; appearance: none;
}
.field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; pointer-events: none; color: var(--black); }
.field input:focus { outline: 3px solid var(--green); outline-offset: 0; }

.lib { list-style: none; padding: 0; margin: 0; border-top: 3px solid var(--black); }
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); padding: clamp(20px, 3vw, 32px) 0; border-bottom: 1px solid var(--black); }
.doc__cover { display: block; background: var(--black); border: 1px solid var(--black); aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.doc__cover img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.doc__cover:hover img { transform: scale(1.03); }
.doc__cover .pdf-badge { position: absolute; left: 0; top: 0; background: var(--green); color: var(--black); font-weight: 900; font-size: .72rem; letter-spacing: .1em; padding: 4px 8px; }
.doc h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); margin: 10px 0 10px; font-stretch: 72%; font-variation-settings: "wdth" 72; }
.doc h2 a { text-decoration: none; }
.doc h2 a:hover { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 4px; text-underline-offset: 4px; }
.doc__desc { max-width: 64ch; margin-bottom: 8px; }
.doc__by { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 18px; border: 1px solid var(--line-strong); width: fit-content; max-width: 100%; }
.meta div { padding: 8px 14px; border-right: 1px solid var(--line-strong); }
.meta div:last-child { border-right: 0; }
.meta dt { font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 0; font-weight: 700; font-size: .9rem; overflow-wrap: anywhere; }
.empty { padding: 32px 0; color: var(--muted); }

/* Vista de documento */
.dochead { padding: 8px 0 24px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 3vw, 40px); align-items: end; border-bottom: 3px solid var(--black); }
.dochead h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 5rem); line-height: .92; margin: 12px 0 14px; font-stretch: 66%; font-variation-settings: "wdth" 66; font-weight: 900; }
.dochead__inst { font-size: .78rem; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.dochead__cover { background: var(--black); aspect-ratio: 4/3; border: 1px solid var(--black); }
.dochead__cover img { width: 100%; height: 100%; object-fit: contain; }

.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--black); margin: 24px 0 0; position: sticky; top: 112px; z-index: 5; background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 14px 18px; min-height: 48px; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; border-bottom: 0; margin-bottom: -2px; }
.tabs a[aria-current="page"] { background: var(--black); color: var(--green); }
.tabs a:not([aria-current="page"]):hover { background: rgba(66,240,0,.25); }

.pagenav { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px 0; }
.pagenav a { min-width: 40px; min-height: 40px; display: grid; place-items: center; text-decoration: none; font-weight: 800; font-size: .85rem; border: 1px solid var(--black); background: var(--white); }
.pagenav a:hover { background: var(--green); }


/* Lector: diapositivas y páginas */
.slides { display: grid; gap: 0; }
.slide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(18px, 3vw, 40px); padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--black); scroll-margin-top: 170px; }
.slide__img { position: sticky; top: 180px; align-self: start; }
.slide__img button { display: block; border: 1px solid var(--black); padding: 0; background: var(--black); cursor: zoom-in; width: 100%; }
.slide__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.slide__no { display: block; margin-bottom: 10px; }
.slide__text { min-width: 0; }
.slide__text h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); font-stretch: 70%; font-variation-settings: "wdth" 70; margin-bottom: 16px; }
.slide__text h3 { font-size: 1.2rem; font-stretch: 80%; font-variation-settings: "wdth" 80; margin: 18px 0 6px; color: var(--green-deep); }
.slide__text h3.big { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); color: var(--black); background: var(--green); display: inline-block; padding: 2px 8px 0; margin-top: 14px; font-stretch: 64%; font-variation-settings: "wdth" 64; }
.slide__text p { margin-bottom: .7em; }
.slide__text .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 8px 0; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(10,10,10,.2); }
.doc-table thead th { background: var(--black); color: var(--green); font-size: .85rem; letter-spacing: .02em; }
.doc-table tbody th { font-weight: 800; width: 24%; }
.doc-table .tag { display: inline-block; background: var(--green); color: var(--black); font-weight: 800; font-size: .74rem; letter-spacing: .06em; padding: 2px 6px; margin-bottom: 4px; }

.page { padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--black); scroll-margin-top: 170px; }
.page__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); }
.page__thumb { position: sticky; top: 180px; align-self: start; }
.page__thumb button { border: 1px solid var(--black); padding: 0; background: var(--white); cursor: zoom-in; display: block; width: 100%; }
.page__text { max-width: 72ch; }
.page__text .k { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--green-deep); margin-bottom: 4px; }
.page__text .h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-stretch: 72%; font-variation-settings: "wdth" 72; margin: 10px 0 14px; }
.page__text .h { font-size: 1.25rem; margin: 22px 0 8px; }
.page__text .note { font-weight: 800; font-style: italic; }
.page__text .imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; }
.page__text .imgs.portrait { grid-template-columns: repeat(2, minmax(0, 200px)); }
.page__text .imgs button { padding: 0; border: 0; background: var(--black); cursor: zoom-in; }
.page__text .imgs img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.page__text .imgs.portrait img { aspect-ratio: 335/597; object-fit: contain; }

/* Visor PDF */
.viewer { background: #1a1a1a; background: color-mix(in srgb, var(--black) 92%, var(--white)); padding: 12px; margin-top: 18px; }
.viewer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; color: var(--white); padding: 4px 4px 12px; font-size: .85rem; }
.viewer__bar .btn { min-height: 40px; padding: 8px 14px; border-color: var(--white); color: var(--white); }
.viewer__bar .btn:hover { background: var(--green); color: var(--black); border-color: var(--green); }
.viewer__zoom { display: inline-flex; gap: 6px; align-items: center; }
.viewer__pages { display: grid; gap: 12px; justify-items: center; overflow-x: auto; }
.pdfpage { position: relative; background: var(--white); box-shadow: 0 1px 0 rgba(0,0,0,.4); max-width: 100%; }
.pdfpage canvas { display: block; width: 100%; height: auto; }
.pdfpage:not(.ready)::after { content: "Cargando página…"; position: absolute; inset: 0; display: grid; place-items: center; font-size: .85rem; color: rgba(10,10,10,.6); }
.pdfpage .pdflink { position: absolute; display: block; outline: 1px dashed transparent; }
.pdfpage .pdflink:hover, .pdfpage .pdflink:focus-visible { background: rgba(66,240,0,.25); outline-color: var(--green); }
.pdfpage__no { position: absolute; right: 6px; bottom: 6px; background: var(--black); color: var(--white); font-size: .7rem; padding: 2px 6px; }
.viewer iframe { width: 100%; height: 80vh; border: 0; background: var(--white); }
.viewer__msg { color: var(--white); padding: 24px; text-align: center; }
.doclinks { margin-top: 18px; }

/* ---------- Búsqueda ---------- */
.search-head { padding: clamp(24px, 4vw, 48px) 0 20px; }
.search-head h1 { font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); margin-bottom: 18px; }
.search-head .field { max-width: 720px; }
.results { display: grid; gap: 32px; padding-bottom: 48px; }
.results h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 2px solid var(--black); }
.results h2 .n { background: var(--black); color: var(--green); padding: 2px 8px; }
.results ul { list-style: none; margin: 0; padding: 0; }
.results li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.results li strong { display: block; font-size: 1.1rem; line-height: 1.3; }
.results li span { display: block; color: var(--muted); font-size: .92rem; margin-top: 4px; }
.results mark { background: var(--green); color: var(--black); padding: 0 2px; }
.results li a:hover strong { text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 3px; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--white); border-top: 4px solid var(--green); padding: 36px 0 40px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.footer__brand { font-weight: 900; font-size: 1.6rem; font-stretch: 68%; font-variation-settings: "wdth" 68; margin: 0; }
.footer__ed { color: rgba(255,255,255,.7); font-size: .85rem; margin-top: 4px; }
.footer__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer__nav a { text-decoration: none; display: inline-block; padding: 6px 0; font-size: .92rem; }
.footer__nav a:hover { color: var(--green); }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,10,10,.96); color: var(--white); }
.lightbox[open] { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; }
.lightbox::backdrop { background: rgba(10,10,10,.9); }
.lightbox__fig { margin: 0; grid-column: 2; display: grid; gap: 10px; justify-items: center; max-height: 100%; padding: 56px 0 24px; }
.lightbox__fig img { max-width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; }
.lightbox__fig figcaption { font-size: .85rem; color: rgba(255,255,255,.75); text-align: center; max-width: 70ch; }
.lightbox__close { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; font-size: 2rem; line-height: 1; background: var(--green); color: var(--black); border: 0; cursor: pointer; }
.lightbox__nav { width: 48px; height: 64px; font-size: 2.4rem; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.3); cursor: pointer; justify-self: center; }
.lightbox__nav:hover { background: var(--green); color: var(--black); }
.lightbox__nav[hidden] { visibility: hidden; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .article__layout { grid-template-columns: 1fr; }
  .article__aside { position: static; }
  .dochead { grid-template-columns: 1fr; }
  .dochead__cover { max-width: 420px; }
}
@media (max-width: 899px) {
  html { scroll-padding-top: 64px; }
  .sumario { grid-template-columns: repeat(2, 1fr); }
  .sumario a:nth-child(2) { border-right: 0; }
  .sumario a:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.25); }
  .lead-story, .story-main { grid-template-columns: 1fr; }
  .lead-story__media, .story-main > .gallery { position: static; }
  .modules { grid-template-columns: 1fr; }
  .module { min-height: 0; }
  .module + .module { border-left: 0; border-top: 2px solid var(--black); }
  .footer__grid { grid-template-columns: 1fr; }
  .slide, .page__grid { grid-template-columns: 1fr; }
  .slide__img, .page__thumb { position: static; }
  .page__thumb { max-width: 240px; }
  .slide, .page { scroll-margin-top: 120px; }
  .tabs { top: 60px; }
  .doc { grid-template-columns: 1fr; }
  .doc__cover { max-width: 460px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .agenda__item { grid-template-columns: 1fr; gap: 6px; }
  .agenda__side { display: flex; align-items: baseline; gap: 12px; }
  .agenda__side .num { font-size: 2.6rem; }
  .agenda__side .lbl { margin-top: 0; }
  .tree li { grid-template-columns: 1fr; gap: 2px; }
  .brief { grid-template-columns: 1fr; }
  .brief button { max-width: 240px; }
  .slide__text .cols { grid-template-columns: 1fr; }
  .meta { width: 100%; }
  .dochead__cover { display: none; }
  .meta div { flex: 1 1 45%; border-bottom: 1px solid var(--line-strong); }
  .btnrow .btn { flex: 1 1 100%; }
  .page__text .imgs { grid-template-columns: 1fr 1fr; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 16px; }
  .lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }
  .lightbox__fig { padding: 64px 8px 96px; }
  .lightbox__fig img { max-height: calc(100dvh - 200px); }
  .doc-table, .doc-table thead, .doc-table tbody, .doc-table tr, .doc-table th, .doc-table td { display: block; width: 100%; }
  .doc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .doc-table tr { border: 1px solid var(--black); margin-bottom: 10px; }
  .doc-table tbody th { width: 100%; background: var(--black); color: var(--green); }
  .doc-table td { border-bottom: 1px solid rgba(10,10,10,.12); }
  .doc-table td::before { content: attr(data-col); display: block; font-size: .72rem; font-weight: 800; letter-spacing: .02em; color: rgba(10,10,10,.6); margin-bottom: 2px; }
}

@media print {
  .masthead, .tabbar, .footer, .btnrow, .tabs, .back, .pagenav { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
}

