/* ==========================================================================
   CUAPROSE — estilos
   Arquetipo: Magazine Multi-Page (editorial impreso), adaptado a la marca:
   papel cálido + tinta, azul institucional #0038A8 y dorado #FCD116 del isotipo.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #f7f4ee;
  --paper-2: #efe9de;
  --paper-3: #e6dfd1;
  --ink: #15171c;
  --ink-soft: #3a3e47;
  --ink-mute: #646873;
  --line: rgba(21, 23, 28, 0.16);
  --line-strong: #15171c;

  --blue: #0038a8;
  --blue-ink: #002a80;
  --navy: #0a1d4a;
  --navy-2: #071538;
  --gold: #fcd116;
  --gold-soft: #f3d98a;

  /* Títulos: Plus Jakarta Sans (sans geométrica, moderna y sobria).
     Texto corrido: Source Serif 4 (lectura cómoda, tono institucional). */
  --display: "Plus Jakarta Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --track-tight: -0.03em;
  --track-title: -0.022em;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 112px);
  --header-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 2. Reset mínimo ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--gold); color: var(--ink); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible, .cta-band :focus-visible, .footer :focus-visible { outline-color: var(--gold); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem;
  font-family: var(--sans); font-size: 0.9rem; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- 3. Tipografía editorial ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.9rem;
}
.kicker a { text-decoration: none; }
.kicker--gold { color: var(--gold); }

.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.1vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: var(--track-title);
  text-wrap: balance;
  margin-bottom: 1.25rem;
}

.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.6rem;
}
.meta__cat { color: var(--blue); font-weight: 600; text-decoration: none; }
.meta__cat:hover { text-decoration: underline; }

.byline { font-family: var(--sans); font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 1rem; }

.dropcap::first-letter,
.prose--article > p:first-of-type::first-letter {
  float: left;
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.7em;
  line-height: 0.86;
  padding: 0.04em 0.1em 0 0;
  letter-spacing: -0.04em;
  color: var(--blue);
}

/* Subrayado animado (enlaces de navegación, títulos, "leer más") */
.link-arrow, .nav__list a, .card__title a, .headline__title a, .lead__title a, .footer__links a, .doc__title a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.45s var(--ease-out), color 0.2s;
}
.link-arrow:hover, .nav__list a:hover, .card__title a:hover, .headline__title a:hover,
.lead__title a:hover, .footer__links a:hover, .doc__title a:hover { background-size: 100% 1px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.04em; color: var(--blue);
}
.link-arrow::after { content: "→"; transition: transform 0.3s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.03em;
  text-decoration: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--blue-ink); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--gold { background: var(--gold); color: var(--navy-2); }
.btn--gold:hover { background: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- 5. Cabezal (masthead) ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.94);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 3px 0 -2px var(--paper), 0 4px 0 -2px var(--line-strong);
  transition: transform 0.4s var(--ease-out);
}
/* Solo en escritorio: backdrop-filter convierte al cabezal en el contenedor de los
   elementos position:fixed y atraparía el panel del menú móvil. */
@media (min-width: 1100px) {
  @supports (backdrop-filter: blur(10px)) {
    .masthead { background: rgba(247, 244, 238, 0.84); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
  }
}
.masthead__top { border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 0.75rem; color: var(--ink-mute); }
.masthead__top-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 32px; }
.masthead__place { letter-spacing: 0.06em; text-transform: uppercase; }
.masthead__contact { display: flex; gap: 1.25rem; }
.masthead__contact a { text-decoration: none; }
.masthead__contact a:hover { color: var(--blue); }
.masthead.is-compact .masthead__top { display: none; }

.masthead__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { width: clamp(150px, 16vw, 210px); height: auto; transition: width 0.35s var(--ease-out); }
.masthead.is-compact .brand img { width: clamp(140px, 13vw, 170px); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.nav__list { display: flex; align-items: center; gap: clamp(0.8rem, 1.5vw, 1.4rem); }
.nav__list a { font-family: var(--sans); font-size: 0.9rem; font-weight: 500; padding-block: 0.3rem; white-space: nowrap; }
.nav__list a[aria-current="page"] { color: var(--blue); background-size: 100% 2px; }
.nav__cta { min-height: 42px; padding-inline: 1.1rem; }

.nav-toggle {
  display: none; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 0.25rem;
  background: none; border: 0; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative;
  transition: transform 0.3s var(--ease-out), background-color 0.2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--nav-top, 109px) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2rem;
    padding: 2rem var(--gutter) 3rem; background: var(--paper); overflow-y: auto;
    border-top: 1px solid var(--line-strong);
    visibility: hidden; opacity: 0; transform: translateY(-12px);
    transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out), visibility 0s 0.4s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a {
    display: block; padding: 0.9rem 0; font-family: var(--display); font-size: clamp(1.5rem, 5.6vw, 2rem);
    font-weight: 600; letter-spacing: var(--track-title); background-image: none;
  }
  .nav__list a[aria-current="page"] { color: var(--blue); }
  .nav__cta { align-self: flex-start; min-height: 52px; padding-inline: 1.6rem; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 639px) {
  .masthead__place { display: none; }
  .masthead__contact { width: 100%; justify-content: space-between; }
}

/* ---------- 6. Animaciones de entrada ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes globe { from { opacity: 0; transform: rotate(-14deg) scale(0.92); } to { opacity: 1; transform: none; } }

/* Revelado al hacer scroll: solo se oculta si JS está activo (html.js). */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Defensa CSS: un elemento con split nunca queda invisible (gotcha A.4.5). */
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- 7. Portada: hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(40px, 6vw, 88px); border-bottom: 1px solid var(--line-strong); position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__kicker { max-width: 34ch; line-height: 1.5; }
.hero__title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: var(--track-tight);
  text-wrap: balance; max-width: 16ch;
}
.hero__deck {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.3; letter-spacing: -0.012em; color: var(--blue);
  margin-top: 1.25rem; max-width: 30ch; text-wrap: balance;
}
.hero__lede { margin-top: 1.5rem; max-width: 58ch; color: var(--ink-soft); font-size: 1.08rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

[data-hero-item] { animation: rise 1s var(--ease-out) both; }
[data-hero-item]:nth-child(2) { animation-delay: 0.08s; }
[data-hero-item]:nth-child(3) { animation-delay: 0.18s; }
[data-hero-item]:nth-child(4) { animation-delay: 0.28s; }
[data-hero-item]:nth-child(5) { animation-delay: 0.38s; }

.hero__mark { position: relative; justify-self: center; width: min(100%, 420px); }
.hero__mark::before {
  content: ""; position: absolute; inset: 8% -6% -6% 8%;
  border: 1px solid var(--line-strong); border-radius: 50%; opacity: 0.35;
}
.hero__iso { width: 100%; overflow: visible; position: relative; }
.iso-stripe { transform-box: fill-box; transform-origin: 0% 50%; animation: draw 1.4s var(--ease-in-out) both; animation-delay: calc(0.35s + var(--i, 1) * 0.16s); }
.iso-globe { transform-box: fill-box; transform-origin: 50% 50%; animation: globe 1.6s var(--ease-out) both; animation-delay: 0.1s; }

/* ---------- 8. Secciones ---------- */
.section { padding-block: var(--section); }
.section--rule { border-top: 1px solid var(--line-strong); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 3px solid var(--ink); padding-top: 0.9rem; margin-bottom: clamp(28px, 4vw, 48px);
  position: relative;
}
.section-head::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 1px solid var(--ink); }
.section-head__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; letter-spacing: var(--track-title); }

/* Edición de noticias */
.edition__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.edition__side { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.lead__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 1.4rem; background: var(--paper-3); }
.lead__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.lead__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.12; letter-spacing: var(--track-title); text-wrap: balance; margin-bottom: 0.9rem; }
.lead__lede { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 1.2rem; max-width: 62ch; }

.headlines { counter-reset: hl; }
.headline { counter-increment: hl; padding-block: 1.1rem; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2.2rem 1fr; column-gap: 0.4rem; }
.headline:first-child { padding-top: 0; }
.headline::before { content: counter(hl, decimal-leading-zero); grid-row: span 2; font-family: var(--display); font-weight: 300; font-size: 1.05rem; color: var(--blue); line-height: 1.5; font-variant-numeric: tabular-nums; }
.headline__title { font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }

/* Tarjetas */
.cards { display: grid; gap: clamp(28px, 3.5vw, 44px) clamp(20px, 3vw, 36px); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.edition .cards { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.card { display: flex; flex-direction: column; }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); margin-bottom: 1rem; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--empty { display: grid; place-items: center; background: var(--paper-2); }
.card__iso { width: 34%; opacity: 0.5; filter: grayscale(0.2); }
.card__title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.012em; text-wrap: balance; margin-bottom: 0.6rem; }
.card__excerpt { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Banda azul: cita + dato */
.band { background: var(--navy); color: #fff; padding-block: clamp(56px, 8vw, 104px); position: relative; }
.band__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.band__grid--cta { grid-template-columns: minmax(0, 1.4fr) auto; }
.band__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: var(--track-title); text-wrap: balance; margin-bottom: 1rem; }
.band__text { color: rgba(255, 255, 255, 0.82); max-width: 56ch; }
.band__actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }

.pullquote blockquote p {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.8rem, 3.9vw, 3.2rem); line-height: 1.14; letter-spacing: -0.03em; text-wrap: balance;
}
.pullquote blockquote { position: relative; padding-top: 0.4em; }
.pullquote blockquote::before {
  content: "“"; position: absolute; top: -0.32em; left: -0.06em;
  font-family: var(--display); font-weight: 700; font-size: clamp(4.5rem, 8vw, 7rem); line-height: 1; color: var(--gold);
}
.pullquote figcaption { margin-top: 1.4rem; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); }

.stat { border-left: 1px solid rgba(255, 255, 255, 0.25); padding-left: clamp(24px, 3vw, 44px); }
.stat__figure { font-family: var(--display); font-weight: 300; font-size: clamp(4.6rem, 10vw, 8.2rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--gold); display: flex; align-items: flex-start; font-variant-numeric: lining-nums tabular-nums; }
.stat__unit { font-size: 0.45em; margin-top: 0.18em; margin-left: 0.04em; }
.stat__text { margin-top: 1rem; font-size: 1.1rem; color: rgba(255, 255, 255, 0.88); max-width: 32ch; }

/* Quiénes somos (portada) y pilares */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__intro p:not(.kicker) { color: var(--ink-soft); margin-bottom: 1.5rem; max-width: 52ch; }
.pillars { display: grid; gap: 0; }
.pillar { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__num { font-family: var(--display); font-weight: 300; font-size: 1.5rem; line-height: 1.1; color: var(--blue); letter-spacing: -0.02em; }
.pillar p { font-size: 1.08rem; }

/* Buscador de socios (portada) */
.finder { background: var(--paper-2); border-block: 1px solid var(--line-strong); }
.finder__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.finder__count { font-family: var(--sans); color: var(--ink-soft); }
.finder__count strong { font-family: var(--display); font-size: 1.6em; color: var(--blue); font-weight: 700; letter-spacing: -0.03em; }
.search__label { display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.5rem; }
.search__row { display: flex; gap: 0.5rem; }
.search__input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0.7rem 1rem;
  background: var(--paper); border: 1px solid var(--ink); border-radius: 2px; font-size: 1.05rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 36px; padding: 0.35rem 0.85rem;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 500; text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip__n { font-size: 0.75em; opacity: 0.65; }

/* Banda de llamado a asociarse */
.cta-band { background: var(--blue); color: #fff; padding-block: clamp(48px, 7vw, 88px); overflow: clip; position: relative; }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: center; position: relative; }
.cta-band__iso { position: absolute; right: -6%; top: 50%; width: clamp(260px, 34vw, 460px); transform: translateY(-50%); opacity: 0.12; pointer-events: none; }
.cta-band__iso .iso-globe { fill: #fff; }
.cta-band__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.7rem); line-height: 1.1; letter-spacing: var(--track-title); text-wrap: balance; max-width: 22ch; margin-bottom: 0.9rem; }
.cta-band__text { color: rgba(255, 255, 255, 0.86); max-width: 58ch; }
.cta-band .btn { position: relative; }

/* ---------- 9. Páginas interiores ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line-strong); box-shadow: 0 3px 0 -2px var(--paper), 0 4px 0 -2px var(--line-strong); }
.page-head__title { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.04; letter-spacing: var(--track-tight); text-wrap: balance; max-width: 18ch; }
.page-head__title em, .hero__title em { color: var(--blue); font-style: normal; font-weight: 300; }
.page-head__deck { margin-top: 1.25rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 60ch; }

.prose-wrap { display: flex; justify-content: center; }
.prose { max-width: 68ch; width: 100%; }
.prose > * + * { margin-top: 1.15em; }
.prose--lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.6; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.22; letter-spacing: -0.018em; margin-top: 2em; text-wrap: balance; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em; margin-top: 1.8em; }
.prose a { color: var(--blue); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { border-left: 3px solid var(--gold); padding: 0.2em 0 0.2em 1.2em; font-family: var(--serif); font-style: italic; font-size: 1.25em; line-height: 1.45; color: var(--ink); }
.prose blockquote > * + * { margin-top: 0.6em; }
.prose img { width: 100%; height: auto; background: var(--paper-2); }
.prose__figure { margin-block: 2em; }
.prose strong { font-weight: 600; }

.twin { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.pillars--stack .pillar { grid-template-columns: 2.8rem 1fr; }

.band--values { padding-block: clamp(56px, 8vw, 96px); }
.values { display: flex; flex-wrap: wrap; gap: 0.2em 0.6em; font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4.6vw, 3.9rem); line-height: 1.15; letter-spacing: var(--track-tight); }
.values li { display: inline-flex; align-items: center; gap: 0.6em; }
.values li:not(:last-child)::after { content: ""; width: 0.18em; height: 0.18em; border-radius: 50%; background: var(--gold); display: inline-block; }
.values li:nth-child(even) { font-weight: 300; color: var(--gold-soft); }

.split-links { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.split-link { display: block; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--ink); text-decoration: none; transition: background-color 0.3s, color 0.3s; }
.split-link:hover { background: var(--ink); color: var(--paper); }
.split-link:hover .kicker { color: var(--gold); }
.split-link__title { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2.1vw, 1.75rem); line-height: 1.2; letter-spacing: var(--track-title); }
.split-link__title::after { content: " →"; }

/* Comisión directiva */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.5vw, 32px); }
.person__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); margin-bottom: 1rem; display: grid; place-items: center; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: grayscale(0.15) sepia(0.05); transition: filter 0.5s, transform 0.9s var(--ease-out); }
.person:hover .person__photo img { filter: none; transform: scale(1.03); }
.person__iso { width: 40%; opacity: 0.4; }
.person__name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.012em; }
.person__role { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-top: 0.3rem; }

.timeline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
.timeline__item { display: grid; grid-template-columns: 11.5rem 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); align-items: baseline; }
.timeline__years { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.timeline__name { font-family: var(--display); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.01em; }

/* Directorio de socios */
.directory__tools {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 1rem; align-items: end;
  padding-bottom: 1.5rem; margin-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line-strong);
}
.directory__count { font-family: var(--sans); font-size: 0.9rem; color: var(--ink-mute); padding-bottom: 0.9rem; white-space: nowrap; }
.dep + .dep { margin-top: clamp(40px, 5vw, 64px); }
.dep__title { display: flex; align-items: baseline; gap: 0.75rem; font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 2.3vw, 1.95rem); letter-spacing: var(--track-title); border-bottom: 1px solid var(--ink); padding-bottom: 0.6rem; margin-bottom: 1.25rem; }
.dep__n { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--blue); }
.socios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 0 clamp(20px, 3vw, 36px); }
.socio { padding-block: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.socio__empresa { font-family: var(--display); font-weight: 700; font-size: 0.98rem; line-height: 1.3; letter-spacing: 0.01em; }
.socio__nombre { font-style: italic; color: var(--ink-soft); font-size: 0.98rem; }
.socio__dato { font-family: var(--sans); font-size: 0.88rem; color: var(--ink-mute); margin-top: 0.25rem; }
.socio__tel a { color: var(--blue); text-decoration: none; }
.socio__tel a:hover { text-decoration: underline; }
.directory__empty { font-family: var(--display); font-weight: 300; font-size: 1.4rem; padding-block: 2rem; }
[hidden] { display: none !important; }

/* Formularios */
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.9rem; font-size: 1rem;
  background: var(--paper); border: 1px solid var(--ink-mute); border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 56, 168, 0.18); }
.field [aria-invalid="true"] { border-color: #b3261e; }

/* Asociarse */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.benefit { border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.benefit__num { font-family: var(--display); font-weight: 300; font-size: 1rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.benefit__title { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: var(--track-title); margin: 0.4rem 0 0.6rem; }
.benefit p { color: var(--ink-soft); font-size: 0.98rem; }

/* Biblioteca */
.docs { border-top: 1px solid var(--ink); }
.doc { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: clamp(12px, 2vw, 32px); align-items: baseline; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.doc__num { font-family: var(--display); font-weight: 300; font-size: 1.4rem; color: var(--blue); font-variant-numeric: tabular-nums; }
.doc__title { font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 0.3rem; }
.doc__text p { color: var(--ink-soft); font-size: 0.98rem; }
.doc__type { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }

/* Videos (YouTube sin cookies, se carga al hacer clic) */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); }
.videos__title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.012em; margin-top: 1rem; text-wrap: balance; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.video__poster { position: absolute; inset: 0; display: block; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s, transform 0.9s var(--ease-out); }
.video__poster:hover img { opacity: 1; transform: scale(1.03); }
.video__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--gold); transition: transform 0.3s var(--ease-out); }
.video__play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--navy-2); }
.video__poster:hover .video__play { transform: scale(1.08); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact__item { padding-block: 1.4rem; border-top: 1px solid var(--line); }
.contact__item:last-child { border-bottom: 1px solid var(--line); }
.contact__item dd { font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 2.1vw, 1.6rem); line-height: 1.3; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.contact__item dd a { text-decoration: none; }
.contact__item dd a:hover { color: var(--blue); }
.contact__hint { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--blue); margin-top: 0.4rem; }
.form { display: grid; gap: 1.2rem; padding: clamp(24px, 3.5vw, 44px); background: var(--paper-2); border: 1px solid var(--line); }
.form__title { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: var(--track-title); }
.form__note { font-size: 0.95rem; color: var(--ink-mute); margin-top: -0.6rem; }
.form__error { color: #b3261e; font-family: var(--sans); font-size: 0.9rem; }
.form .btn { justify-self: start; }

/* ---------- 10. Noticias: archivo y nota ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(32px, 4vw, 48px); }
.archive__year + .archive__year { margin-top: clamp(48px, 6vw, 80px); }
.archive__y { font-family: var(--display); font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; border-bottom: 1px solid var(--ink); padding-bottom: 0.6rem; margin-bottom: clamp(24px, 3vw, 40px); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

.article__head { max-width: calc(68ch + 2 * var(--gutter)); padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 40px); }
.article__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 4.1vw, 3.3rem); line-height: 1.1; letter-spacing: var(--track-tight); text-wrap: balance; }
.article__deck { margin-top: 1.25rem; font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.5; color: var(--ink-soft); font-style: italic; }
.article__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 0.85rem; color: var(--ink-mute); }
.article__meta strong { color: var(--ink); font-weight: 600; }
.article__figure { max-width: 1100px; margin-bottom: clamp(32px, 4vw, 56px); }
.article__figure img { width: 100%; max-height: min(78vh, 760px); object-fit: cover; background: var(--paper-2); }
.article__rule { max-width: calc(68ch); margin: 0 auto clamp(24px, 3vw, 40px); border-top: 1px solid var(--line-strong); }
.article__body { max-width: calc(68ch + 2 * var(--gutter)); padding-bottom: clamp(48px, 6vw, 80px); }
.prose--article { font-size: 1.12rem; line-height: 1.72; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 0.88rem; }
.share__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.share a, .share button { color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; font-weight: 500; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding-block: 0 clamp(48px, 6vw, 80px); }
.pager__link { display: block; padding: 1.5rem 0; border-top: 3px solid var(--ink); text-decoration: none; }
.pager__link--next { text-align: right; }
.pager__title { display: block; font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.012em; text-wrap: balance; }
.pager__link:hover .pager__title { color: var(--blue); }

/* ---------- 11. Pie ---------- */
.footer { background: var(--navy-2); color: rgba(255, 255, 255, 0.82); padding-top: clamp(56px, 7vw, 88px); font-family: var(--sans); font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(40px, 5vw, 64px); }
.footer__brand img { width: 200px; }
.footer__lema { margin-top: 1.25rem; font-family: var(--display); font-weight: 300; font-size: 1.1rem; line-height: 1.45; letter-spacing: -0.01em; color: #fff; max-width: 26ch; }
.footer__title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer__address { line-height: 1.9; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__links li + li { margin-top: 0.55rem; }
.footer__social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-block: 1.4rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { order: -1; justify-self: start; width: clamp(120px, 26vw, 200px); }
  .hero__mark::before { display: none; }
  .edition__grid { grid-template-columns: 1fr; }
  .edition__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1.5rem; }
  .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band__grid, .band__grid--cta { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); padding-left: 0; padding-top: 2rem; }
  .about__grid, .finder__grid, .twin, .contact { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band .btn { justify-self: start; }
}
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .cards--3 { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1rem; align-items: start; }
  .card__media { margin-bottom: 0; aspect-ratio: 1; }
  .card__title { font-size: 1.15rem; }
  .card__excerpt { -webkit-line-clamp: 2; font-size: 0.92rem; }
  .directory__tools { grid-template-columns: 1fr; }
  .directory__count { padding-bottom: 0; }
  .timeline { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 1fr; gap: 0.15rem; }
  .split-links, .videos, .pager { grid-template-columns: 1fr; }
  .pager__link--next { text-align: left; }
  .doc { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .doc__type { grid-column: 2; }
  .search__row { flex-direction: column; }
  .search__row .btn { width: 100%; }
}
@media (max-width: 479px) {
  .benefits, .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .masthead__contact a:last-child { display: none; }
}

/* Solo se apagan los efectos intrusivos (gotcha A.2): el resto se mantiene. */
@media (prefers-reduced-motion: reduce) {
  .lead__media img { transform: none !important; }
}

/* Impresión */
@media print {
  .masthead, .footer, .cta-band, .share, .pager, .progress, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
