/* =========================================================
   Anatas Wakuaipa · Sistema visual público
   Paleta y tipografía basadas en el manual de marca.
   ========================================================= */
:root {
  --ink: #14252b;
  --ink-soft: #31464c;
  --navy: #004a70;
  --navy-deep: #00344f;
  --cyan: #0092ce;
  --gold: #eba50c;
  --yellow: #ffcc00;
  --red: #d80000;
  --red-deep: #990000;
  --paper: #f8f3e9;
  --paper-2: #f0e6d3;
  --cream: #fffdf7;
  --white: #ffffff;
  --muted: #647277;
  --line: rgba(0, 74, 112, .16);
  --line-strong: rgba(0, 74, 112, .3);
  --shadow: 0 24px 70px rgba(0, 45, 65, .12);
  --shadow-sm: 0 10px 30px rgba(0, 45, 65, .08);
  --font-display: "Expletus Sans", "Trebuchet MS", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --container: 1240px;
  --radius: 4px;
  --header-h: 116px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.1rem);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open, body.search-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.035em;
  margin: 0;
  color: inherit;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.1em; }
figure { margin: 0; }
svg.icon { width: 24px; height: 24px; flex: 0 0 auto; }
svg.icon--xs { width: 15px; height: 15px; }
svg.icon--sm { width: 19px; height: 19px; }
svg.icon--lg { width: 32px; height: 32px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 9999; top: 12px; left: 12px;
  background: var(--ink); color: var(--white); padding: 10px 16px;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: 0 1.35rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg); border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { --btn-bg: var(--red); --btn-fg: var(--white); border-color: var(--red); }
.btn--primary:hover { --btn-bg: var(--red-deep); border-color: var(--red-deep); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--ink); border-color: var(--gold); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--white); border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { --btn-bg: var(--white); --btn-fg: var(--navy); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--line-strong); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--sm { min-height: 42px; padding: 0 1rem; font-size: .86rem; }
.btn--text {
  --btn-bg: transparent; --btn-fg: var(--navy); border: 0; padding: 0;
  min-height: 0; border-radius: 0; border-bottom: 1px solid var(--navy);
}
.btn--text:hover { transform: none; color: var(--red); border-color: var(--red); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; border: 1px solid currentColor;
  background: transparent; color: inherit; border-radius: 50%;
  transition: background .2s ease, color .2s ease;
}
.icon-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
}
.site-header--solid { background: rgba(248,243,233,.98); color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header--over { color: var(--white); background: linear-gradient(180deg, rgba(4,20,27,.56), rgba(4,20,27,0)); }
.site-header.is-scrolled { background: rgba(248,243,233,.97); color: var(--ink); box-shadow: 0 10px 35px rgba(0,40,55,.12); border-bottom: 1px solid transparent; }
.topbar { border-bottom: 1px solid rgba(255,255,255,.18); font-size: .72rem; letter-spacing: .04em; }
.site-header--solid .topbar, .site-header.is-scrolled .topbar { border-color: var(--line); color: var(--ink-soft); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 34px; }
.topbar__place { display: inline-flex; align-items: center; gap: 6px; opacity: .88; }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.topbar__right a { opacity: .85; display: inline-flex; }
.topbar__right a:hover { opacity: 1; color: var(--gold); }
.topbar__divider { width: 1px; height: 12px; background: currentColor; opacity: .3; }
.lang-link { font-weight: 700; letter-spacing: .08em; opacity: .55; }
.lang-link.is-current { opacity: 1; color: var(--gold); }
.site-header.is-scrolled .lang-link.is-current, .site-header--solid .lang-link.is-current { color: var(--red); }
.lang-sep { opacity: .35; }
.nav-shell { min-height: 82px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; width: clamp(180px, 19vw, 255px); flex: 0 0 auto; }
.brand__logo { width: 100%; height: auto; }
.brand__logo--white { display: none; }
.site-header--over .brand__logo--color { display: none; }
.site-header--over .brand__logo--white { display: block; }
.site-header--over.is-scrolled .brand__logo--color { display: block; }
.site-header--over.is-scrolled .brand__logo--white { display: none; }
.main-nav { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); margin-left: auto; }
.main-nav > a, .nav-drop > a {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  font-size: .82rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 12px 0; opacity: .86;
}
.main-nav > a::after, .nav-drop > a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 5px; height: 2px;
  background: var(--gold); transition: right .22s ease;
}
.main-nav > a:hover, .main-nav > a.is-active, .nav-drop > a:hover, .nav-drop > a.is-active { opacity: 1; }
.main-nav > a:hover::after, .main-nav > a.is-active::after,
.nav-drop > a:hover::after, .nav-drop > a.is-active::after { right: 0; }
.nav-drop { position: relative; }
.nav-drop__panel {
  position: absolute; top: calc(100% + 12px); left: -24px; width: min(420px, 80vw);
  background: var(--cream); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 12px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: .2s ease; border-radius: 6px;
}
.nav-drop:hover .nav-drop__panel, .nav-drop:focus-within .nav-drop__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop__panel a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 4px; font-size: .9rem; }
.nav-drop__panel a:hover { background: var(--paper-2); }
.nav-drop__panel strong { display: block; line-height: 1.15; }
.nav-drop__panel small { color: var(--muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.nav-drop__icon { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); border-radius: 50%; flex: 0 0 auto; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .icon-btn { border-color: rgba(255,255,255,.35); }
.site-header--solid .nav-actions .icon-btn, .site-header.is-scrolled .nav-actions .icon-btn { border-color: var(--line-strong); }
.nav-contact { min-height: 44px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid currentColor; background: transparent; border-radius: 50%; padding: 11px; }
.menu-toggle span { display: block; height: 1.5px; background: currentColor; margin: 4px 0; transition: .2s; }
.site-header.is-scrolled .nav-contact, .site-header--solid .nav-contact { background: var(--navy); color: white; }

/* ---------- Menú móvil / buscador ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; background: var(--paper); color: var(--ink);
  padding: 22px; overflow-y: auto;
}
.mobile-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.mobile-menu__head img { width: 190px; height: auto; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  display: flex; justify-content: space-between; padding: 16px 0;
  border-bottom: 1px solid var(--line); font-family: var(--font-display);
  font-size: 1.6rem; letter-spacing: -.02em;
}
.mobile-menu nav a span { font-family: var(--font-body); font-size: .7rem; letter-spacing: .14em; color: var(--muted); align-self: center; }
.mobile-menu__foot { margin-top: 32px; display: grid; gap: 12px; font-size: .9rem; }
.mobile-menu__foot a { display: inline-flex; gap: 8px; align-items: center; }
.lang-switch { display: flex; gap: 8px; margin-top: 14px; }
.lang-switch a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a.is-current { background: var(--navy); color: white; border-color: var(--navy); }
.search-panel {
  position: fixed; inset: 0; z-index: 210; background: rgba(3,30,42,.96);
  color: white; display: flex; align-items: center; backdrop-filter: blur(8px);
}
.search-panel__inner { display: flex; align-items: flex-end; gap: 24px; width: min(900px, calc(100% - 48px)); margin-inline: auto; }
.search-panel form { flex: 1; }
.search-panel label { display: block; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.8rem); margin-bottom: 22px; }
.search-panel__field { display: flex; gap: 10px; border-bottom: 2px solid rgba(255,255,255,.7); padding-bottom: 12px; }
.search-panel input { flex: 1; background: transparent; border: 0; color: white; font-size: clamp(1.1rem, 2vw, 1.5rem); outline: 0; padding: 8px 0; }
.search-panel input::placeholder { color: rgba(255,255,255,.6); }
.search-panel .btn { border-radius: 0; }
.search-close { color: white; border-color: rgba(255,255,255,.4); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(720px, 100svh);
  display: flex; align-items: flex-end; overflow: hidden;
  color: var(--white); isolation: isolate;
  background: transparent;
}
.hero__media { position: absolute; inset: 0; z-index: 0; background: var(--navy-deep); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(3,22,31,.48) 0%, rgba(3,22,31,.12) 38%, rgba(3,22,31,.78) 100%),
    linear-gradient(90deg, rgba(3,22,31,.82) 0%, rgba(3,22,31,.36) 48%, rgba(3,22,31,.03) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 190px 0 58px; }
.hero__content { max-width: 920px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: .17em; font-size: .7rem; font-weight: 700; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .8; }
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  font-size: clamp(3rem, 7.7vw, 7.2rem); line-height: .91; letter-spacing: -.05em;
  margin: 22px 0 26px; max-width: 1000px; text-shadow: 0 3px 30px rgba(0,0,0,.15);
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { max-width: 620px; font-size: clamp(1.02rem, 1.2vw, 1.25rem); color: rgba(255,255,255,.9); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__guc {
  margin-top: 25px; color: rgba(255,255,255,.7); font-size: .85rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.hero__footer {
  margin-top: 58px; display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; border-top: 1px solid rgba(255,255,255,.3); padding-top: 18px;
}
.hero__proof { display: flex; gap: 28px; flex-wrap: wrap; }
.hero__proof span { display: grid; gap: 2px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.hero__proof strong { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: -.01em; color: white; }
.hero__scroll { display: inline-flex; align-items: center; gap: 10px; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.72); }
.hero__scroll span { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.hero__pattern { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; background: url('../img/pattern-band.svg') repeat-x center / auto 20px; z-index: 3; opacity: .95; }

/* ---------- Secciones ---------- */
.section { padding: clamp(76px, 9vw, 126px) 0; position: relative; }
.section--tight { padding: 56px 0; }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy-deep); color: var(--white); }
.section--navy .eyebrow { color: var(--gold); }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(2.2rem, 4.3vw, 4.2rem); letter-spacing: -.045em; max-width: 850px; }
.section-head p { color: var(--muted); max-width: 530px; margin: 0 0 4px; }
.section--navy .section-head p { color: rgba(255,255,255,.68); }
.section-head--center { display: block; text-align: center; max-width: 900px; margin: 0 auto 46px; }
.section-head--center p { margin: 18px auto 0; }
.section-kicker { color: var(--red); margin-bottom: 16px; }
.section--navy .section-kicker { color: var(--gold); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.pattern-strip { height: 14px; background: url('../img/pattern-band.svg') repeat-x center / auto 14px; opacity: .9; }

/* ---------- Home: intro ---------- */
.intro__grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: clamp(36px, 6vw, 92px); align-items: center; }
.intro__media { position: relative; }
.intro__media-main { position: relative; aspect-ratio: 4 / 4.7; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.intro__media-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.intro__media:hover .intro__media-main img { transform: scale(1.035); }
.intro__media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold);
  z-index: -1;
}
.intro__badge {
  position: absolute; right: -1px; bottom: 26px; background: var(--navy); color: white;
  padding: 18px 22px; display: grid; gap: 2px; min-width: 172px;
}
.intro__badge strong { font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--gold); }
.intro__badge span { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; opacity: .8; }
.intro__body h2 { font-size: clamp(2.3rem, 4.5vw, 4.4rem); margin: 16px 0 26px; }
.intro__body p { color: var(--ink-soft); max-width: 550px; }
.intro__body .btn { margin-top: 16px; }
.intro__signature { display: flex; align-items: center; gap: 14px; margin-top: 34px; font-size: .8rem; color: var(--muted); }
.intro__signature::before { content: ""; width: 38px; height: 1px; background: var(--gold); }

/* ---------- Home: ejes ---------- */
.axes { background: var(--navy-deep); color: white; position: relative; overflow: hidden; }
.axes::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 420px; height: 420px;
  background: url('../img/pattern-mark.svg') no-repeat center / contain; opacity: .06; pointer-events: none;
}
.axes .section-head { position: relative; z-index: 1; }
.axes__list { border-top: 1px solid rgba(255,255,255,.18); position: relative; z-index: 1; }
.axis-row {
  display: grid; grid-template-columns: 72px minmax(200px, .8fr) minmax(240px, 1.2fr) 44px;
  gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.16);
  transition: padding .25s ease, background .25s ease;
}
.axis-row:hover { padding-left: 14px; background: rgba(255,255,255,.035); }
.axis-row__num { font-family: var(--font-display); color: var(--gold); font-size: .9rem; letter-spacing: .1em; }
.axis-row h3 { font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1; }
.axis-row h3 small { display: block; font-family: var(--font-body); font-size: .68rem; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; margin-top: 8px; }
.axis-row p { color: rgba(255,255,255,.62); font-size: .92rem; margin: 0; }
.axis-row__arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; transition: .2s; }
.axis-row:hover .axis-row__arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ---------- Home: cifras ---------- */
.stats { background: var(--paper-2); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); }
.stat { background: var(--paper-2); padding: 34px 26px 30px; display: grid; align-content: space-between; min-height: 220px; }
.stat__value { font-family: var(--font-display); font-size: clamp(2.9rem, 5vw, 5.2rem); line-height: .9; letter-spacing: -.06em; color: var(--navy); }
.stat__label { font-size: .77rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); max-width: 170px; }
.stat:nth-child(2n) .stat__value { color: var(--red); }
.stat:nth-child(3n) .stat__value { color: var(--gold); }

/* ---------- Home: noticias ---------- */
.news-home { background: var(--cream); }
.news-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; }
.news-grid--home { grid-template-columns: 1fr 1fr; gap: 24px; }
.news-grid--home .post-card__media { aspect-ratio: 16 / 9; }
.news-grid--home .post-card h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.news-layout > div:first-child { height: 100%; }
.news-layout .post-card--large {
  height: 100%; min-height: 620px; position: relative; overflow: hidden;
  background: var(--navy-deep); border: 0; color: white;
}
.news-layout .post-card--large .post-card__media {
  position: absolute; inset: 0; aspect-ratio: auto; min-height: 0;
}
.news-layout .post-card--large .post-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 25, 35, .03) 20%, rgba(0, 25, 35, .35) 55%, rgba(0, 25, 35, .94) 100%);
}
.news-layout .post-card--large .post-card__media img { position: absolute; inset: 0; }
.news-layout .post-card--large .post-card__body {
  position: relative; z-index: 2; min-height: 620px; height: 100%;
  justify-content: flex-end; background: transparent; padding: 32px;
}
.news-layout .post-card--large h3 { color: white; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.news-layout .post-card--large h3 a:hover { color: var(--gold); }
.news-layout .post-card--large p { color: rgba(255,255,255,.78); }
.news-layout .post-card--large .post-card__meta { color: rgba(255,255,255,.65); }
.news-layout .post-card--large .post-card__link { color: var(--gold); }
.news-stack { display: grid; gap: 20px; }
.post-card { position: relative; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .69rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--pill) 12%, transparent); color: var(--pill); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pill--dark { background: rgba(255,255,255,.13); color: white; }
.post-card h3 { font-size: clamp(1.2rem, 1.9vw, 1.65rem); line-height: 1.06; }
.post-card h3 a:hover { color: var(--red); }
.post-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.post-card__link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 700; font-size: .82rem; }
.post-card--large .post-card__media { aspect-ratio: 16 / 9; }
.post-card--large .post-card__body { padding: 26px 28px 28px; }
.post-card--large h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.post-card--large p { font-size: 1rem; max-width: 640px; }
.news-home__cta { display: flex; justify-content: center; margin-top: 38px; }

/* ---------- Home: cita ---------- */
.quote-section { background: var(--paper); position: relative; overflow: hidden; }
.quote-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 60px; align-items: center; }
.quote-image { aspect-ratio: 4/4.3; overflow: hidden; position: relative; }
.quote-image img { width: 100%; height: 100%; object-fit: cover; }
.quote-image::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(255,255,255,.5); pointer-events: none; }
.quote-body blockquote { margin: 0; }
.quote-body blockquote p { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.04em; color: var(--navy); }
.quote-body blockquote p::before { content: "“"; color: var(--gold); }
.quote-body blockquote p::after { content: "”"; color: var(--gold); }
.quote-author { margin-top: 26px; display: grid; gap: 2px; font-size: .86rem; }
.quote-author strong { color: var(--red); }
.quote-author span { color: var(--muted); }

/* ---------- Home: multimedia ---------- */
.multimedia { background: var(--cream); }
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 88px; gap: 14px; }
.mosaic figure { position: relative; overflow: hidden; background: var(--paper-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.mosaic figure:hover img { transform: scale(1.045); }
.mosaic figcaption { position: absolute; left: 12px; bottom: 10px; right: 12px; color: white; font-size: .68rem; letter-spacing: .05em; text-shadow: 0 1px 10px rgba(0,0,0,.6); z-index: 2; }
.mosaic figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55)); }
.mosaic__a { grid-column: span 5; grid-row: span 4; }
.mosaic__b { grid-column: span 4; grid-row: span 3; }
.mosaic__c { grid-column: span 3; grid-row: span 3; }
.mosaic__d { grid-column: span 3; grid-row: span 2; }
.mosaic__e { grid-column: span 4; grid-row: span 2; }
.mosaic__f { grid-column: span 5; grid-row: span 2; }
.mosaic__video { display: grid; place-items: center; background: var(--navy); color: white; text-align: center; padding: 20px; }
.mosaic__video span { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; margin-bottom: 10px; }
.mosaic__video strong { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.1; }
.mosaic__video small { display: block; color: rgba(255,255,255,.6); font-size: .68rem; margin-top: 6px; }

/* ---------- Home: documentos ---------- */
.docs-home { background: var(--navy); color: white; }
.docs-home .section-head p { color: rgba(255,255,255,.68); }
.docs-home .section-kicker { color: var(--gold); }
.doc-list { border-top: 1px solid rgba(255,255,255,.22); }
.doc-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.doc-row__icon { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.28); display: grid; place-items: center; border-radius: 50%; color: var(--gold); }
.doc-row h3 { font-size: 1.2rem; line-height: 1.1; }
.doc-row p { color: rgba(255,255,255,.6); font-size: .83rem; margin: 5px 0 0; }
.doc-row__meta { display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,.55); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.doc-row__action { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: .8rem; font-weight: 700; }

/* ---------- Home: contacto CTA ---------- */
.contact-cta { position: relative; background: var(--red); color: white; overflow: hidden; }
.contact-cta::before { content: ""; position: absolute; right: -80px; bottom: -80px; width: 420px; height: 420px; background: url('../img/pattern-mark.svg') no-repeat center / contain; opacity: .13; }
.contact-cta__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.contact-cta h2 { font-size: clamp(2.3rem, 4.8vw, 4.5rem); max-width: 850px; }
.contact-cta p { color: rgba(255,255,255,.78); max-width: 570px; margin-top: 18px; }
.contact-cta__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }

/* ---------- Page hero / breadcrumb ---------- */
.page-hero { background: var(--navy-deep); color: white; padding: 180px 0 76px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -100px; top: -120px; width: 520px; height: 520px; background: url('../img/pattern-mark.svg') no-repeat center / contain; opacity: .08; }
.page-hero__inner { position: relative; z-index: 1; max-width: 1000px; }
.page-hero h1 { font-size: clamp(2.8rem, 6.2vw, 5.8rem); margin: 18px 0 20px; }
.page-hero p { max-width: 670px; color: rgba(255,255,255,.74); font-size: 1.1rem; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span.sep { opacity: .45; }

/* ---------- Noticias ---------- */
.news-hero { background: var(--paper-2); padding: 150px 0 56px; }
.news-hero__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 34px; }
.news-hero h1 { font-size: clamp(2.8rem, 6.5vw, 6rem); }
.news-hero p { color: var(--muted); max-width: 520px; }
.news-feature { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--navy-deep); color: white; min-height: 420px; }
.news-feature__media { overflow: hidden; min-height: 320px; }
.news-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.news-feature__body { padding: clamp(28px, 4vw, 54px); display: flex; flex-direction: column; justify-content: center; gap: 15px; }
.news-feature h2 { font-size: clamp(1.8rem, 3.4vw, 3.2rem); }
.news-feature p { color: rgba(255,255,255,.68); font-size: .98rem; }
.news-feature .post-card__meta { color: rgba(255,255,255,.55); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 38px 0 28px; }
.filter-pill { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .03em; color: var(--ink-soft); }
.filter-pill:hover, .filter-pill.is-active { background: var(--navy); border-color: var(--navy); color: white; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-grid.news-grid--home { grid-template-columns: repeat(2, 1fr); }
.news-grid--home .post-card__media { aspect-ratio: 16 / 9; }
.news-grid--home .post-card h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); }
.news-grid .post-card:nth-child(4n+1) { grid-column: span 1; }
.archive-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; color: var(--muted); font-size: .8rem; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 42px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); font-size: .8rem; }
.pagination a:hover, .pagination .is-current { background: var(--navy); color: white; border-color: var(--navy); }

/* ---------- Artículo ---------- */
.article-header { padding: 152px 0 32px; background: var(--paper); }
.article-header__inner { max-width: 980px; }
.article-header h1 { font-size: clamp(2.5rem, 5.6vw, 5.4rem); margin: 18px 0 20px; }
.article-deck { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-soft); max-width: 760px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; color: var(--muted); font-size: .78rem; }
.article-meta strong { color: var(--ink); }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.article-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.translation-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-strong); padding: 8px 13px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.translation-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.article-cover { margin: 20px auto 0; width: min(1160px, calc(100% - 48px)); }
.article-cover img { width: 100%; aspect-ratio: 16/8.2; object-fit: cover; }
.article-cover figcaption { font-size: .72rem; color: var(--muted); margin-top: 8px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding: 52px 0 90px; align-items: start; }
.article-body { max-width: 760px; }
.article-body > p:first-of-type { font-size: 1.18rem; color: var(--ink-soft); }
.article-body h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin: 44px 0 16px; color: var(--navy); }
.article-body h3 { font-size: 1.5rem; margin: 32px 0 12px; }
.article-body p { margin-bottom: 1.2em; }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 32px 0; padding: 24px 28px; border-left: 3px solid var(--gold); background: var(--cream); font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
.article-body blockquote p { margin: 0; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li { margin-bottom: 8px; }
.article-body img { margin: 26px 0; width: 100%; height: auto; }
.article-body em { color: var(--muted); }
.article-aside { position: sticky; top: 128px; display: grid; gap: 26px; }
.aside-box { border-top: 2px solid var(--navy); padding-top: 15px; }
.aside-box h2 { font-family: var(--font-body); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.share-list { display: flex; flex-wrap: wrap; gap: 8px; }
.share-list a, .share-list button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); font-size: .74rem; background: transparent; }
.share-list a:hover, .share-list button:hover { background: var(--navy); color: white; border-color: var(--navy); }
.aside-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.aside-tags a { font-size: .7rem; padding: 5px 8px; background: var(--paper-2); color: var(--ink-soft); }
.related { background: var(--cream); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- Video ---------- */
.video-block { margin: 0 0 34px; }
.video-frame { position: relative; aspect-ratio: 16/9; background: var(--navy-deep); overflow: hidden; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: var(--navy-deep); color: white; display: grid; place-items: center; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video-facade__play { position: relative; z-index: 2; width: 76px; height: 76px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.video-facade__label { position: absolute; z-index: 2; left: 18px; bottom: 16px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: white; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.video-caption { font-size: .72rem; color: var(--muted); margin-top: 8px; }

/* ---------- Galería ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 34px 0; }
.gallery-grid a { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid a:hover img { transform: scale(1.05); }

/* ---------- Página interior ---------- */
.page-content { padding: 72px 0 100px; }
.page-content__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 70px; align-items: start; }
.prose { max-width: 790px; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin: 38px 0 15px; color: var(--navy); }
.prose h3 { font-size: 1.45rem; margin: 28px 0 12px; }
.prose p { color: var(--ink-soft); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { margin-bottom: 1.4em; }
.prose li { margin-bottom: 8px; }
.page-aside { display: grid; gap: 22px; }
.info-card { background: var(--cream); border: 1px solid var(--line); padding: 25px; }
.info-card h2 { font-size: 1.35rem; margin-bottom: 14px; }
.info-card p, .info-card li { font-size: .9rem; color: var(--muted); }
.info-card dl { display: grid; gap: 12px; margin: 0; }
.info-card dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.info-card dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }

/* ---------- Programas ---------- */
.program-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.program-card { border: 1px solid var(--line); background: var(--white); display: grid; grid-template-columns: 190px 1fr; min-height: 220px; transition: transform .25s, box-shadow .25s; }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.program-card__media { overflow: hidden; min-height: 220px; }
.program-card__media img { width: 100%; height: 100%; object-fit: cover; }
.program-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.program-card__body h3 { font-size: 1.55rem; }
.program-card__body h3 small { display: block; font-family: var(--font-body); font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-top: 6px; }
.program-card__body p { color: var(--muted); font-size: .9rem; margin: 0; }
.program-card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--navy); }
.program-hero { background: var(--navy-deep); color: white; padding: 180px 0 60px; }
.program-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.program-hero h1 { font-size: clamp(2.7rem, 5.4vw, 5.1rem); margin: 16px 0 20px; }
.program-hero p { color: rgba(255,255,255,.72); max-width: 620px; }
.program-hero__media { aspect-ratio: 4/3; overflow: hidden; }
.program-hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Documentos ---------- */
.docs-page { padding: 64px 0 100px; }
.docs-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.docs-list { border-top: 1px solid var(--line-strong); }
.doc-card { display: grid; grid-template-columns: 54px 1fr auto; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.doc-card__icon { width: 46px; height: 56px; background: var(--cream); border: 1px solid var(--line); display: grid; place-items: center; color: var(--red); }
.doc-card h2 { font-size: 1.35rem; line-height: 1.1; }
.doc-card p { font-size: .86rem; color: var(--muted); margin: 5px 0 0; }
.doc-card__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.doc-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Contacto ---------- */
.contact-page { padding: 64px 0 100px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: start; }
.contact-form { background: var(--cream); border: 1px solid var(--line); padding: clamp(24px, 4vw, 42px); }
.contact-form h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 10px; }
.contact-form > p { color: var(--muted); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-strong); background: var(--white);
  padding: 12px 13px; color: var(--ink); border-radius: 2px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,146,206,.13); }
.field textarea { min-height: 150px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--red); flex: 0 0 auto; }
.field .check, .check--small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.check--small { font-size: .72rem; margin-top: 10px; }
.document-page .whatsapp-float { display: none; }
.form-note { font-size: .72rem; color: var(--muted); margin-top: 10px; }
.form-errors { background: #fbe9e7; border: 1px solid #e9b4ae; padding: 14px 16px; margin-bottom: 18px; font-size: .86rem; }
.form-errors ul { margin: 0; padding-left: 1.2em; }
.contact-info { display: grid; gap: 18px; }
.contact-info__card { background: var(--navy-deep); color: white; padding: 28px; }
.contact-info__card h2 { font-size: 1.6rem; margin-bottom: 16px; }
.contact-info__list { display: grid; gap: 16px; }
.contact-info__item { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: .9rem; }
.contact-info__item svg { color: var(--gold); margin-top: 2px; }
.contact-info__item span { display: block; color: rgba(255,255,255,.6); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.contact-info__social { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.contact-info__social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; border-radius: 50%; }
.contact-info__social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.map-embed { border: 1px solid var(--line); background: var(--cream); min-height: 240px; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); font-size: .88rem; }
.map-embed iframe { width: 100%; min-height: 300px; border: 0; }

/* ---------- Buscador / listas ---------- */
.search-page { padding: 64px 0 100px; }
.search-summary { color: var(--muted); margin-bottom: 26px; }
.empty-state { padding: 70px 24px; text-align: center; border: 1px dashed var(--line-strong); background: var(--cream); }
.empty-state h2 { font-size: 1.8rem; margin-bottom: 10px; }
.empty-state p { color: var(--muted); }

/* ---------- Timeline y equipo ---------- */
.timeline { border-top: 1px solid var(--line-strong); }
.timeline__item { display: grid; grid-template-columns: 130px 1fr; gap: 36px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline__year { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1; color: var(--red); letter-spacing: -.04em; }
.timeline__item h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); margin-bottom: 8px; }
.timeline__item p { color: var(--muted); max-width: 720px; margin: 0; font-size: .92rem; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.team-card { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); background: var(--cream); }
.team-card__initial { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-family: var(--font-display); font-size: 1.4rem; border-radius: 50%; }
.team-card__photo { width: 58px; height: 58px; flex: 0 0 auto; object-fit: cover; border-radius: 50%; filter: saturate(.85); }
.team-card h3 { font-size: 1.18rem; line-height: 1.12; }
.team-card span:not(.team-card__initial) { display: block; margin-top: 4px; font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--red); }
.team-card p { margin: 8px 0 0; font-size: .84rem; color: var(--muted); }

/* ---------- Visor de documentos ---------- */
.doc-viewer { border: 1px solid var(--line-strong); background: var(--cream); min-height: 640px; }
.doc-viewer iframe { width: 100%; height: 72vh; min-height: 640px; border: 0; display: block; }

/* ---------- Varios ---------- */
.post-card__meta .dot, .article-meta .dot { opacity: .55; }
.filters__search input:focus { outline: 2px solid var(--gold); }
.hp-field { position: absolute !important; left: -9999px !important; }
.site-header--solid .brand__logo--color, .site-header.is-scrolled .brand__logo--color { display: block; }
.site-header--solid .brand__logo--white, .site-header.is-scrolled .brand__logo--white { display: none; }
@media (max-width: 940px) {
  .timeline__item { grid-template-columns: 92px 1fr; gap: 18px; }
  .team-grid { grid-template-columns: 1fr; }
  .doc-viewer, .doc-viewer iframe { min-height: 480px; height: 60vh; }
}
@media (max-width: 680px) {
  .timeline__item { grid-template-columns: 1fr; gap: 8px; }
  .doc-viewer, .doc-viewer iframe { min-height: 380px; height: 55vh; }
  .filters__search { margin-left: 0 !important; width: 100%; }
  .filters__search input { flex: 1; min-width: 0 !important; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: white; position: relative; padding: 78px 0 0; overflow: hidden; }
.footer-pattern { height: 15px; background: url('../img/pattern-band.svg') repeat-x center / auto 15px; position: absolute; top: 0; left: 0; right: 0; opacity: .95; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .65fr .9fr 1.1fr; gap: 42px; padding-top: 12px; }
.footer-brand img { width: 240px; height: auto; margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .86rem; max-width: 340px; }
.footer-social { display: flex; gap: 8px; margin-top: 22px; }
.footer-social a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: rgba(255,255,255,.85); }
.footer-social a:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.footer-col h2 { font-family: var(--font-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: .85rem; color: rgba(255,255,255,.66); margin-bottom: 9px; }
.footer-col a:hover { color: white; }
.footer-newsletter p { font-size: .82rem; color: rgba(255,255,255,.58); }
.newsletter-field { display: flex; border-bottom: 1px solid rgba(255,255,255,.5); }
.newsletter-field input { flex: 1; border: 0; background: transparent; color: white; padding: 10px 0; outline: 0; }
.newsletter-field input::placeholder { color: rgba(255,255,255,.45); }
.newsletter-field button { border: 0; background: transparent; color: var(--gold); padding: 0 6px; }
.footer-newsletter .check { color: rgba(255,255,255,.5); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 50px; padding: 22px 0 26px; font-size: .7rem; color: rgba(255,255,255,.45); }
.footer-bottom div { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a:hover { color: var(--gold); }
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  display: inline-flex; align-items: center; gap: 8px;
  background: #1f9d55; color: white; padding: 11px 15px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18); font-size: .78rem; font-weight: 700;
  transition: transform .2s;
}
.whatsapp-float:hover { transform: translateY(-3px); }
.whatsapp-float span { display: inline; }

/* ---------- Avisos ---------- */
.flash-stack { position: relative; z-index: 60; margin-top: 16px; display: grid; gap: 8px; }
.flash { background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--cyan); padding: 12px 16px; font-size: .86rem; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.flash--error { border-left-color: var(--red); }
.flash--success { border-left-color: #1f9d55; }
.flash__close { border: 0; background: transparent; color: var(--muted); }
.notice { background: var(--paper-2); border-left: 3px solid var(--gold); padding: 14px 18px; font-size: .88rem; color: var(--ink-soft); margin: 20px 0; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .main-nav { gap: 12px; }
  .main-nav > a, .nav-drop > a { font-size: .72rem; }
  .nav-contact { display: none; }
  .brand { width: 200px; }
  .footer-grid { grid-template-columns: 1.2fr .8fr .9fr; }
  .footer-newsletter { grid-column: 1 / -1; max-width: 480px; }
}
@media (max-width: 940px) {
  :root { --header-h: 102px; }
  .topbar { display: none; }
  .nav-shell { min-height: 74px; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .nav-actions { margin-left: auto; }
  .nav-actions .search-open { border-color: currentColor; }
  .hero__inner { padding-top: 140px; }
  .hero { min-height: 760px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .intro__grid, .quote-grid, .news-layout, .article-layout, .page-content__grid,
  .contact-grid, .contact-cta__inner, .program-hero__grid, .news-feature { grid-template-columns: 1fr; }
  .intro__media { max-width: 560px; }
  .quote-image { max-width: 460px; }
  .news-layout { gap: 20px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .article-aside { position: static; grid-template-columns: 1fr 1fr; }
  .article-layout { gap: 36px; }
  .news-feature__media { min-height: 280px; aspect-ratio: 16/9; }
  .program-card { grid-template-columns: 150px 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-newsletter { grid-column: auto; }
  .mosaic { grid-auto-rows: 70px; }
  .contact-cta__actions { justify-content: flex-start; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 32px); }
  .brand { width: 168px; }
  .nav-actions .search-open { display: none; }
  .hero { min-height: 700px; }
  .hero__inner { padding: 128px 0 42px; }
  .hero h1 { font-size: clamp(2.7rem, 12.5vw, 4.3rem); }
  .hero__lead { font-size: 1rem; }
  .hero__footer { margin-top: 36px; display: block; }
  .hero__scroll { display: none; }
  .hero__proof { gap: 18px; }
  .hero__proof span { font-size: .62rem; }
  .hero__proof strong { font-size: .92rem; }
  .hero__actions .btn { width: 100%; }
  .section { padding: 66px 0; }
  .section-head { margin-bottom: 30px; }
  .intro__media-main { aspect-ratio: 4/4.4; }
  .intro__badge { bottom: 14px; right: 14px; }
  .axes .section-head, .axes__list { margin-inline: 0; }
  .axis-row { grid-template-columns: 34px 1fr 38px; gap: 12px; padding: 20px 0; }
  .axis-row p { grid-column: 2 / 4; margin-top: 6px; font-size: .84rem; }
  .axis-row__arrow { width: 36px; height: 36px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 160px; padding: 22px 16px; }
  .stat__value { font-size: 2.7rem; }
  .news-layout .post-card--large, .news-layout .post-card--large .post-card__body { min-height: 500px; height: auto; }
  .news-grid, .news-grid.news-grid--home, .related-grid, .program-grid { grid-template-columns: 1fr; }
  .news-grid .post-card, .related-grid .post-card { grid-column: auto; }
  .program-card { grid-template-columns: 1fr; }
  .program-card__media { min-height: 190px; aspect-ratio: 16/9; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .mosaic__a, .mosaic__b, .mosaic__c, .mosaic__d, .mosaic__e, .mosaic__f { grid-column: span 1; grid-row: span 1; }
  .mosaic__a { grid-column: span 2; }
  .mosaic__video { display: none; }
  .doc-row { grid-template-columns: 34px 1fr; }
  .doc-row__meta { grid-column: 2; }
  .doc-row__action { grid-column: 2; }
  .contact-cta h2 { font-size: 2.4rem; }
  .page-hero { padding: 135px 0 54px; }
  .article-header { padding: 128px 0 24px; }
  .article-cover { width: calc(100% - 32px); }
  .article-cover img { aspect-ratio: 4/3; }
  .article-layout { padding-top: 32px; }
  .article-aside { grid-template-columns: 1fr; }
  .article-body > p:first-of-type { font-size: 1.05rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .doc-card { grid-template-columns: 44px 1fr; }
  .doc-card__actions { grid-column: 2; }
  .doc-card__actions .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand img { width: 210px; }
  .footer-bottom { display: block; }
  .footer-bottom div { margin-top: 12px; gap: 12px; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { width: 48px; height: 48px; justify-content: center; padding: 0; }
  .news-hero { padding-top: 120px; }
  .search-panel__inner { display: block; }
  .search-close { position: absolute; top: 24px; right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Escala tipográfica editorial · titulares 40 % más contenidos
   ========================================================= */
.hero { min-height: max(640px, 88svh); }
.hero h1 { font-size: clamp(1.62rem, 4.62vw, 4.32rem); line-height: .96; margin: 16px 0 20px; }
.section-head h2 { font-size: clamp(1.32rem, 2.58vw, 2.52rem); }
.intro__body h2 { font-size: clamp(1.38rem, 2.7vw, 2.64rem); margin: 12px 0 20px; }
.axis-row h3 { font-size: clamp(.9rem, 1.56vw, 1.5rem); }
.news-grid--home .post-card h3 { font-size: clamp(1rem, 1.38vw, 1.2rem); }
.post-card h3 { font-size: clamp(1rem, 1.14vw, 1.1rem); line-height: 1.12; }
.post-card--large h3 { font-size: clamp(1.08rem, 1.8vw, 1.62rem); }
.quote-body blockquote p { font-size: clamp(1.02rem, 1.92vw, 1.86rem); }
.doc-row h3 { font-size: .9rem; }
.contact-cta h2 { font-size: clamp(1.38rem, 2.88vw, 2.7rem); }
.page-hero h1 { font-size: clamp(1.68rem, 3.72vw, 3.48rem); margin: 14px 0 16px; }
.news-hero h1 { font-size: clamp(1.68rem, 3.9vw, 3.6rem); }
.news-feature h2 { font-size: clamp(1.08rem, 2.04vw, 1.92rem); }
.article-header h1 { font-size: clamp(1.5rem, 3.36vw, 3.24rem); margin: 14px 0 16px; }
.article-body h2 { font-size: clamp(1.08rem, 1.8vw, 1.62rem); margin: 30px 0 12px; }
.article-body h3 { font-size: .95rem; margin: 24px 0 10px; }
.prose h2 { font-size: clamp(1.08rem, 1.8vw, 1.62rem); margin: 26px 0 10px; }
.prose h3 { font-size: .9rem; margin: 22px 0 9px; }
.info-card h2 { font-size: .9rem; }
.program-card__body h3 { font-size: .95rem; }
.program-hero h1 { font-size: clamp(1.62rem, 3.24vw, 3.06rem); }
.doc-card h2 { font-size: .9rem; }
.contact-form h2 { font-size: clamp(1.08rem, 1.8vw, 1.56rem); }
.contact-info__card h2 { font-size: 1rem; }
.empty-state h2 { font-size: 1.1rem; }
.timeline__year { font-size: clamp(1.02rem, 1.8vw, 1.62rem); }
.timeline__item h3 { font-size: clamp(.88rem, 1.2vw, 1.08rem); }
.team-card h3 { font-size: .95rem; }
.search-panel label { font-size: clamp(1.2rem, 2.4vw, 2.28rem); }
.mobile-menu nav a { font-size: 1.1rem; }

@media (max-width: 940px) {
  .hero { min-height: max(600px, 82svh); }
}

@media (max-width: 680px) {
  .hero { min-height: 600px; }
  .hero h1 { font-size: clamp(1.62rem, 6.8vw, 2.58rem); }
  .section-head h2 { font-size: clamp(1.4rem, 7.2vw, 2rem); }
  .page-hero h1, .news-hero h1, .program-hero h1 { font-size: clamp(1.62rem, 8vw, 2.4rem); }
  .article-header h1 { font-size: clamp(1.5rem, 7.5vw, 2.2rem); }
  .contact-cta h2 { font-size: clamp(1.38rem, 7vw, 2rem); }
  .quote-body blockquote p { font-size: clamp(1.02rem, 5.2vw, 1.5rem); }
  .post-card h3, .news-grid--home .post-card h3 { font-size: 1rem; }
  .axis-row h3 { font-size: .95rem; }
}

/* ---------- Slider de portada ---------- */
.hero__media { overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; margin: 0; z-index: 1;
  opacity: 0; transform: scale(1.045);
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  transition: opacity .9s ease, transform 1.6s cubic-bezier(.22,.61,.36,1), clip-path 1.15s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform, clip-path;
}
.hero-slide.is-active {
  z-index: 2; opacity: 1; transform: scale(1);
  clip-path: polygon(50% -80%, 180% 50%, 50% 180%, -80% 50%);
}
.hero-slide .hero__image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.hero-slider__controls {
  position: absolute; right: max(24px, calc((100vw - 1240px) / 2)); bottom: 104px;
  z-index: 4; display: flex; align-items: center; gap: 9px;
  padding: 6px; background: rgba(3, 25, 35, .45); border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; backdrop-filter: blur(8px);
}
.hero-slider__arrow {
  width: 32px; height: 32px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: white;
  transition: background .2s ease, color .2s ease;
}
.hero-slider__arrow:hover, .hero-slider__arrow:focus-visible { background: var(--gold); color: var(--ink); }
.hero-slider__arrow--prev svg { transform: rotate(180deg); }
.hero-slider__dots { display: flex; align-items: center; gap: 5px; padding: 0 3px; }
.hero-slider__dot {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.45); transition: width .2s ease, background .2s ease;
}
.hero-slider__dot.is-active { width: 19px; border-radius: 999px; background: var(--gold); }
@media (max-width: 680px) {
  .hero-slider__controls { right: 16px; top: 90px; bottom: auto; padding: 4px; }
  .hero-slider__arrow { width: 28px; height: 28px; }
}

/* ---------- Lightbox de galería ---------- */
.mosaic__link { position: absolute; inset: 0; display: block; z-index: 1; cursor: zoom-in; }
.mosaic figcaption { z-index: 2; pointer-events: none; }
.mosaic figure { isolation: isolate; }
.lightbox {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center;
  padding: clamp(16px, 4vw, 56px); background: rgba(2, 18, 26, .94);
  color: white; isolation: isolate;
}
.lightbox__figure { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 100%; }
.lightbox__figure img { max-width: min(1180px, 88vw); max-height: 76vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 25px 80px rgba(0,0,0,.35); }
.lightbox__figure figcaption { max-width: 780px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.72); }
.lightbox__close {
  position: absolute; top: 20px; right: 22px; z-index: 3;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: transparent; color: white;
}
.lightbox__close:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lightbox__arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(3,25,35,.5); color: white;
}
.lightbox__arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.lightbox__arrow--prev { left: 20px; }
.lightbox__arrow--prev svg { transform: rotate(180deg); }
.lightbox__arrow--next { right: 20px; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 680px) {
  .lightbox { padding: 14px; }
  .lightbox__figure img { max-width: 94vw; max-height: 68vh; }
  .lightbox__arrow { width: 38px; height: 38px; top: auto; bottom: 18px; transform: none; }
  .lightbox__arrow--prev { left: 16px; }
  .lightbox__arrow--next { right: 16px; }
  .lightbox__close { top: 14px; right: 14px; }
  .lightbox__figure figcaption { padding: 0 46px; font-size: .75rem; }
}
