/* =========================================================
   Transición Municipal Cataño 2026 — Estilos públicos
   ========================================================= */

:root {
  --navy-950: #050C1E;
  --navy-900: #0B1A38;
  --navy-800: #102349;
  --navy: #12244A;
  --navy-600: #1F3A72;
  --gold: #B08A30;
  --gold-400: #C9A247;
  --gold-300: #DDBE6A;
  --gold-100: #F4E8C6;
  --green: #356B4D;
  --green-300: #5E9C78;
  --ivory: #F7F5EF;
  --paper: #FFFFFF;
  --ink: #0E1730;
  --ink-2: #4A5470;
  --ink-3: #8189A0;
  --line: rgba(18, 36, 74, .10);
  --live: #E5383B;

  --gold-grad: linear-gradient(135deg, #F1D78C 0%, #C9A247 35%, #B08A30 55%, #E9CC7A 80%, #B08A30 100%);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(11, 26, 56, .06);
  --shadow: 0 18px 50px -18px rgba(11, 26, 56, .28);
  --shadow-lg: 0 40px 100px -30px rgba(5, 12, 30, .55);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --nav-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--navy-950);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.no-scroll { overflow: hidden; }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
::selection { background: var(--gold-300); color: var(--navy-900); }
[hidden] { display: none !important; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.text-gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  background: #fff;
  display: grid; place-items: center;
  transition: opacity .6s ease;
}
.intro__video { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.intro__skip {
  position: absolute; right: 24px; bottom: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--navy); background: rgba(18, 36, 74, .06);
  border: 1px solid rgba(18, 36, 74, .14);
  backdrop-filter: blur(6px);
  opacity: 0; animation: fadeIn .6s 1.2s forwards;
  transition: background .3s, transform .3s var(--ease);
}
.intro__skip:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.intro__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(18, 36, 74, .06); }
.intro__bar span { display: block; height: 100%; width: 0; background: var(--gold-grad); }
.intro.is-done { opacity: 0; pointer-events: none; }

/* Intro animado sin video (cuando el teléfono bloquea la reproducción) */
.intro__alt { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: #fff; }
.intro.is-alt .intro__video { display: none; }
.intro.is-alt .intro__alt { display: flex; }
.intro__alt img { width: min(220px, 48vw); height: auto; opacity: 0; transform: scale(.55) rotate(-8deg); filter: blur(10px); animation: altEmblem 1.1s var(--ease) .1s forwards; }
.intro__alt p { margin: 0; opacity: 0; transform: translate3d(0, 18px, 0); animation: altText .8s var(--ease) forwards; }
.intro__alt-1 { margin-top: 26px !important; font-size: clamp(17px, 4.6vw, 30px); font-weight: 800; color: var(--navy); animation-delay: .9s !important; }
.intro__alt-2 { font-size: clamp(15px, 4vw, 26px); font-weight: 800; color: var(--gold); animation-delay: 1.15s !important; }
.intro__alt-3 { font-size: clamp(13px, 3.4vw, 22px); font-weight: 400; color: var(--navy); letter-spacing: .02em; animation-delay: 1.4s !important; }
@keyframes altEmblem { to { opacity: 1; transform: none; filter: none; } }
@keyframes altText { to { opacity: 1; transform: none; } }

.curtain { position: fixed; inset: 0; z-index: 190; display: flex; pointer-events: none; }
.curtain span {
  flex: 1; background: var(--navy-900);
  transform: scaleY(0); transform-origin: bottom;
}
.curtain span:nth-child(even) { background: var(--navy); }
.curtain.is-in span { animation: curtainIn .55s var(--ease-io) forwards; }
.curtain.is-out span { transform: scaleY(1); transform-origin: top; animation: curtainOut .8s var(--ease-io) forwards; }
.curtain span:nth-child(1) { animation-delay: 0s; }
.curtain span:nth-child(2) { animation-delay: .05s; }
.curtain span:nth-child(3) { animation-delay: .1s; }
.curtain span:nth-child(4) { animation-delay: .15s; }
.curtain span:nth-child(5) { animation-delay: .2s; }
.curtain span:nth-child(6) { animation-delay: .25s; }
@keyframes curtainIn { to { transform: scaleY(1); } }
@keyframes curtainOut { from { transform: scaleY(1); } to { transform: scaleY(0); } }

/* ---------- Progreso de scroll ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--gold-grad); box-shadow: 0 0 12px rgba(221, 190, 106, .7); }

/* ---------- Botones ---------- */
.btn {
  --pad: 14px 26px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad); border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn--sm { --pad: 10px 18px; font-size: 13.5px; }
.btn--lg { --pad: 17px 32px; font-size: 16px; }
.btn--gold { color: var(--navy-950); background: var(--gold-grad); background-size: 200% 200%; box-shadow: 0 10px 30px -10px rgba(201, 162, 71, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--gold:hover { background-position: 100% 50%; box-shadow: 0 16px 40px -10px rgba(201, 162, 71, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn--ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--gold-300); background: rgba(221, 190, 106, .1); color: var(--gold-100); }
.btn--ghost-dark { color: var(--navy); border: 1.5px solid var(--line); background: #fff; }
.btn--ghost-dark:hover { border-color: var(--navy); }
.btn__shine {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%);
  transform: translateX(-120%); animation: shine 4.5s 2s infinite;
}
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 0 rgba(229, 56, 59, .7);
  animation: livePulse 1.6s infinite; flex: none;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 56, 59, .7); }
  70% { box-shadow: 0 0 0 10px rgba(229, 56, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 56, 59, 0); }
}

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background .4s, box-shadow .4s, height .4s var(--ease), transform .5s var(--ease);
}
.nav.is-scrolled {
  --nav-h: 66px;
  background: rgba(8, 19, 42, .78);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 20px 40px -20px rgba(0, 0, 0, .5);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; width: min(1320px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-right: auto; }
.brand__logo { width: 40px; height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); transition: transform .5s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.brand__text small { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-300); }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .78);
  transition: color .3s, background .3s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2px;
  background: var(--gold-grad); border-radius: 2px;
  transform: scaleX(0); transition: transform .4s var(--ease);
}
.nav__links a:hover { color: #fff; }
.nav__links a.is-active { color: #fff; }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 12px; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Menú móvil ----------
   Solo se animan transform y opacity (acelerados por GPU) para que sea fluido
   en iPhone y equipos modestos; nada de clip-path ni backdrop-filter aquí.
   La capa de fondo mide lo mismo que la pantalla y nunca se oculta con
   visibility/display: queda pintada (con opacidad 0) y lista para animar desde
   el primer cuadro. Una capa más grande que la pantalla obliga a iOS a pintarla
   al abrir y se pierde el inicio de la animación. */
.menu { position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.menu.is-open { pointer-events: auto; }
.menu__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(201, 162, 71, .22), transparent 55%),
    radial-gradient(130% 90% at 85% 10%, #17306A 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  opacity: 0; transform: scale(1.12); transform-origin: calc(100% - 42px) 34px;
  will-change: opacity, transform;
  transition: opacity .35s ease .12s, transform .45s cubic-bezier(.4, 0, .6, 1) .12s;
}
.menu.is-open .menu__bg { opacity: 1; transform: none; transition: opacity .35s ease, transform .6s var(--ease); }
.menu__links { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.menu__links a:not(.btn) { display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; font-size: 28px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.menu__links a:not(.btn):active { color: var(--gold-300); }
.menu__links .btn { margin-top: 22px; }
.menu__links > *, .menu__foot {
  opacity: 0; transform: translate3d(0, 26px, 0); will-change: opacity, transform;
  transition: opacity .25s ease, transform .3s ease;
}
.menu.is-open .menu__links > *, .menu.is-open .menu__foot {
  opacity: 1; transform: none;
  transition: opacity .5s ease, transform .6s var(--ease);
  transition-delay: calc(.18s + var(--i) * .06s);
}
.menu__foot { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); }
body.menu-open .nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; transform: none; }
@media (min-width: 861px) { .menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 40%, #17306A 0%, var(--navy-900) 45%, var(--navy-950) 100%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__aurora { position: absolute; inset: -20%; z-index: 0; filter: blur(80px); opacity: .55; pointer-events: none; }
.hero__aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.hero__aurora i:nth-child(1) { width: 45vw; height: 45vw; left: 50%; top: 10%; background: radial-gradient(circle, rgba(201, 162, 71, .55), transparent 65%); animation: float1 18s ease-in-out infinite; }
.hero__aurora i:nth-child(2) { width: 40vw; height: 40vw; left: 5%; top: 40%; background: radial-gradient(circle, rgba(53, 107, 77, .6), transparent 65%); animation: float2 22s ease-in-out infinite; }
.hero__aurora i:nth-child(3) { width: 35vw; height: 35vw; left: 30%; top: -10%; background: radial-gradient(circle, rgba(46, 88, 170, .6), transparent 65%); animation: float3 26s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(-12vw, 10vh) scale(1.15); } }
@keyframes float2 { 50% { transform: translate(14vw, -8vh) scale(.9); } }
@keyframes float3 { 50% { transform: translate(8vw, 14vh) scale(1.2); } }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 60% 45%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 45%, #000 10%, transparent 70%);
}
.hero__content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-300);
}
.eyebrow__line { width: 36px; height: 2px; background: var(--gold-grad); border-radius: 2px; }

.hero__title { margin: 0; font-weight: 800; line-height: 1.02; letter-spacing: -.025em; font-size: clamp(42px, 7vw, 92px); }
.hero__title > span { display: block; }
.hero__title-gold {
  background: linear-gradient(100deg, #B08A30 0%, #F4E8C6 25%, #C9A247 45%, #B08A30 60%, #F1D78C 80%, #B08A30 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldFlow 7s linear infinite;
  padding-bottom: .08em;
}
.hero__title-gold .char { -webkit-text-fill-color: transparent; background: inherit; -webkit-background-clip: text; background-clip: text; }
@keyframes goldFlow { to { background-position: -250% 0; } }

.split .word { display: inline-block; white-space: nowrap; }
.split .char {
  display: inline-block;
  opacity: 0; transform: translateY(80%) rotateX(-70deg); filter: blur(8px);
  transform-origin: 50% 100%;
  transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease);
  transition-delay: calc(var(--i) * 28ms + var(--base, 0ms));
}
.is-ready .split .char { opacity: 1; transform: none; filter: none; }
.hero__title-gold.split .char { background-size: 250% 100%; }

.hero__lead { max-width: 560px; margin: 26px 0 0; font-size: clamp(15.5px, 1.25vw, 18px); color: rgba(255, 255, 255, .74); font-weight: 300; }
.hero__mayor { display: flex; flex-direction: column; margin-top: 28px; padding-left: 18px; border-left: 3px solid var(--gold); }
.hero__mayor-name { font-size: clamp(18px, 1.7vw, 22px); font-weight: 700; color: var(--gold-300); letter-spacing: .01em; }
.hero__mayor-role { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero__emblem { display: grid; place-items: center; }
.emblem { position: relative; width: min(420px, 80vw); aspect-ratio: 1; display: grid; place-items: center; transform-style: preserve-3d; }
.emblem__img { position: relative; z-index: 3; width: 74%; height: auto; filter: drop-shadow(0 6px 8px rgba(5, 12, 30, .3)); animation: emblemFloat 7s ease-in-out infinite; }
@keyframes emblemFloat { 50% { transform: translateY(-14px); } }
.emblem__glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95) 0%, rgba(244, 232, 198, .55) 35%, transparent 70%); z-index: 2; filter: blur(10px); animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .75; transform: scale(.94); } }
.emblem__rays {
  position: absolute; inset: -18%; z-index: 1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(221, 190, 106, .16) 0deg 4deg, transparent 4deg 18deg);
  mask-image: radial-gradient(circle, #000 20%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%);
  animation: spin 60s linear infinite;
}
.emblem__ring { position: absolute; border-radius: 50%; z-index: 1; }
.emblem__ring--1 { inset: 0; border: 1px solid rgba(221, 190, 106, .35); }
.emblem__ring--1::before { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 16px 4px rgba(221, 190, 106, .8); }
.emblem__ring--1 { animation: spin 18s linear infinite; }
.emblem__ring--2 { inset: -9%; border: 1px dashed rgba(255, 255, 255, .14); animation: spin 40s linear infinite reverse; }
.emblem__ring--2::before { content: ''; position: absolute; bottom: 10%; left: 4%; width: 7px; height: 7px; border-radius: 50%; background: var(--green-300); box-shadow: 0 0 14px 3px rgba(94, 156, 120, .8); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__stats {
  position: relative; z-index: 2; margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.stat { padding: 22px 28px; display: flex; flex-direction: column; gap: 2px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .08); }
.stat strong { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

.hero__scroll { position: absolute; left: 50%; bottom: 44px; z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; transform: translateX(-50%); }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-300); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Franjas del escudo */
.stripes { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-rows: repeat(5, 5px); }
.stripes i { display: block; transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.stripes i:nth-child(odd) { background: #fff; }
.stripes i:nth-child(even) { background: var(--navy); }
.stripes i:nth-child(3) { background: var(--gold); }
.is-ready .stripes i, .stripes.is-in i { transform: scaleX(1); }
.stripes i:nth-child(2) { transition-delay: .1s; }
.stripes i:nth-child(3) { transition-delay: .2s; }
.stripes i:nth-child(4) { transition-delay: .3s; }
.stripes i:nth-child(5) { transition-delay: .4s; }
.stripes--top { position: relative; bottom: auto; }

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 3; display: flex; align-items: stretch; background: var(--gold-grad); color: var(--navy-950); font-weight: 600; font-size: 14px; overflow: hidden; }
.ticker__label { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 22px; background: var(--navy-950); color: #fff; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.ticker__track { flex: 1; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__move { display: inline-flex; gap: 60px; white-space: nowrap; padding-left: 100%; animation: ticker 28s linear infinite; }
.ticker__move span::before { content: '◆'; margin-right: 60px; font-size: 9px; opacity: .6; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Encabezados de sección ---------- */
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { justify-content: center; color: var(--gold); }
.section-head h2 { margin: 0; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; color: var(--navy); }
.section-head p { margin: 18px auto 0; max-width: 620px; color: var(--ink-2); font-size: clamp(15px, 1.2vw, 17px); }
.section-head--light h2 { color: #fff; }
.section-head--light p { color: rgba(255, 255, 255, .7); }
.section-head--light .eyebrow { color: var(--gold-300); }

/* ---------- En vivo ---------- */
.live { position: relative; padding: 120px 0 110px; color: #fff; background: var(--navy-950); overflow: hidden; }
.live__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(31, 58, 114, .7), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(53, 107, 77, .25), transparent 70%),
    radial-gradient(40% 40% at 90% 80%, rgba(176, 138, 48, .18), transparent 70%);
}
.live .container { position: relative; }

.player { position: relative; max-width: 1080px; margin: 0 auto; border-radius: var(--radius-lg); padding: 2px; transition: max-width .7s var(--ease); }
.player.is-theater { max-width: 1400px; }
.player__border {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: 0;
}
.player__border::before {
  content: ''; position: absolute; inset: -60%;
  background: conic-gradient(from 0deg, transparent 0 55%, rgba(221, 190, 106, .1) 62%, #F1D78C 72%, #B08A30 78%, transparent 86%);
  animation: spin 6s linear infinite;
}
.player::after { content: ''; position: absolute; inset: 8% 6% -8%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 162, 71, .35), transparent); filter: blur(50px); }
.player__frame { position: relative; z-index: 1; border-radius: calc(var(--radius-lg) - 2px); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.player__media { position: relative; display: flex; aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 40%, #142b5c, #050C1E 75%); }
.player__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .8s ease; }
.player__media iframe.is-loaded { opacity: 1; }
.player__badge {
  position: absolute; top: 18px; left: 18px; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(229, 56, 59, .92); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  box-shadow: 0 8px 24px -6px rgba(229, 56, 59, .7);
  pointer-events: none;
}
.player__badge .live-dot { background: #fff; animation-name: livePulseW; }
@keyframes livePulseW { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.player__theater {
  position: absolute; top: 16px; right: 16px; z-index: 4;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(5, 12, 30, .6); color: #fff; backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .3s, background .3s;
}
.player:hover .player__theater, .player__theater:focus-visible { opacity: 1; }
.player__theater:hover { background: var(--gold); color: var(--navy-950); }

/* En flujo normal: si el contenido no cabe en 16:9 (móviles), el recuadro crece en vez de recortarlo */
.player__placeholder { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(36px, 6vw, 48px) 24px; }
.player__placeholder h3 { margin: 24px 0 6px; font-size: clamp(18px, 2.2vw, 26px); font-weight: 700; }
.player__placeholder p { margin: 0; max-width: 440px; font-size: 14.5px; color: rgba(255, 255, 255, .62); }
.player__pulse { position: relative; width: clamp(90px, 14vw, 140px); }
.player__pulse img { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .5)); }
.player__pulse::before, .player__pulse::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(221, 190, 106, .4); transform: translate(-50%, -50%) scale(.6); opacity: 0;
  animation: ripple 3s var(--ease) infinite;
}
.player__pulse::after { animation-delay: 1.5s; }
@keyframes ripple { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.6); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.player__wave { display: flex; gap: 5px; align-items: flex-end; height: 22px; margin-top: 22px; }
.player__wave i { width: 4px; height: 100%; border-radius: 2px; background: var(--gold-grad); animation: wave 1.2s ease-in-out infinite; transform-origin: bottom; }
.player__wave i:nth-child(2) { animation-delay: .15s; }
.player__wave i:nth-child(3) { animation-delay: .3s; }
.player__wave i:nth-child(4) { animation-delay: .45s; }
.player__wave i:nth-child(5) { animation-delay: .6s; }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }


/* ---------- Documentos ---------- */
.docs { position: relative; padding: 130px 0 140px; background: var(--ivory); overflow: hidden; }
.docs__deco {
  position: absolute; top: -1px; left: 0; right: 0; height: 160px; pointer-events: none;
  background: linear-gradient(180deg, var(--navy-950), transparent);
  opacity: .06;
}
.docs::before {
  content: ''; position: absolute; right: -180px; top: 120px; width: 560px; aspect-ratio: 1700 / 2000;
  background: url('../assets/escudo-800.webp') center / contain no-repeat;
  opacity: .045; pointer-events: none; transform: rotate(-8deg);
}

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 48px; }
.cat {
  position: relative; overflow: hidden; text-align: left;
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s, background .4s, color .4s;
}
.cat::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%); opacity: 0; transition: opacity .5s var(--ease); z-index: 0; }
.cat::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(221, 190, 106, .35), transparent 70%); opacity: 0; transition: opacity .5s; }
.cat > * { position: relative; z-index: 1; }
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.cat.is-active { color: #fff; border-color: transparent; box-shadow: 0 20px 50px -20px rgba(18, 36, 74, .6); }
.cat.is-active::before, .cat.is-active::after { opacity: 1; }
.cat__top { display: flex; align-items: center; justify-content: space-between; }
.cat__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--gold); background: rgba(176, 138, 48, .1); transition: background .4s, color .4s, transform .5s var(--ease); }
.cat__icon svg { width: 22px; height: 22px; }
.cat:hover .cat__icon { transform: rotate(-8deg) scale(1.05); }
.cat.is-active .cat__icon { background: rgba(221, 190, 106, .18); color: var(--gold-300); }
.cat__count { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1; font-variant-numeric: tabular-nums; transition: color .4s; }
.cat.is-active .cat__count { color: var(--gold-300); }
.cat__name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.cat__desc { margin-top: -8px; font-size: 13px; color: var(--ink-3); line-height: 1.5; transition: color .4s; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat.is-active .cat__desc { color: rgba(255, 255, 255, .65); }

.toolbar { position: sticky; top: calc(var(--nav-h) + 10px); z-index: 20; display: flex; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 30px; padding: 8px; border-radius: 999px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: top .4s var(--ease); }
.chips { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.chips::-webkit-scrollbar { display: none; }
.chips__indicator { position: absolute; top: 0; left: 0; height: 100%; border-radius: 999px; background: var(--navy); box-shadow: 0 6px 18px -6px rgba(18, 36, 74, .6); transition: transform .55s var(--ease), width .55s var(--ease); z-index: 0; }
.chip { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .35s; }
.chip:hover { color: var(--navy); }
.chip.is-active { color: #fff; }
.chip__n { min-width: 22px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: rgba(18, 36, 74, .08); transition: background .35s; text-align: center; }
.chip.is-active .chip__n { background: rgba(221, 190, 106, .3); color: var(--gold-100); }
.search { flex: none; display: flex; align-items: center; gap: 10px; width: 280px; padding: 0 18px; height: 44px; border-radius: 999px; background: var(--ivory); color: var(--ink-3); border: 1px solid transparent; transition: border-color .3s, background .3s, width .5s var(--ease); }
.search:focus-within { border-color: var(--gold); background: #fff; color: var(--navy); width: 320px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14.5px; color: var(--ink); }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; perspective: 1400px; }
.doc {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column;
  padding: 24px; border-radius: var(--radius); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transform-style: preserve-3d;
  transition: box-shadow .5s var(--ease), border-color .4s, transform .5s var(--ease), opacity .5s var(--ease);
  cursor: pointer;
}
.doc::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx) var(--my), rgba(221, 190, 106, .16), transparent 45%); opacity: 0; transition: opacity .4s; }
.doc::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold-grad); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.doc:hover { box-shadow: var(--shadow); border-color: rgba(176, 138, 48, .35); }
.doc:hover::before { opacity: 1; }
.doc:hover::after { transform: scaleY(1); }
.doc:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.doc__top { display: flex; align-items: flex-start; gap: 16px; }
.doc__file { position: relative; flex: none; width: 52px; height: 64px; transform: translateZ(30px); }
.doc__file svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 12px rgba(18, 36, 74, .2)); transition: transform .5s var(--ease); }
.doc:hover .doc__file svg { transform: rotate(-6deg) translateY(-3px); }
.doc__head { min-width: 0; flex: 1; transform: translateZ(20px); }
.doc__cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.doc__title { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.35; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doc__desc { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; transform: translateZ(14px); }
.doc__meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink-3); }
.doc__meta span { display: inline-flex; align-items: center; gap: 5px; }
.doc__actions { display: flex; gap: 6px; }
.icon-btn { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--navy); background: var(--ivory); transition: background .3s, color .3s, transform .3s var(--ease); }
.icon-btn:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.icon-btn--gold:hover { background: var(--gold); color: var(--navy-950); }
.badge-new { position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: #fff; background: var(--green); box-shadow: 0 6px 14px -4px rgba(53, 107, 77, .6); transform: translateZ(40px); }
.badge-new::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #9FE0B9; vertical-align: 1px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.doc.has-badge .doc__head { padding-right: 62px; }

.doc.is-entering { animation: docIn .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes docIn { from { opacity: 0; transform: translateY(30px) scale(.96) rotateX(8deg); } }
.doc.is-fresh { animation: docIn .8s var(--ease) both, freshGlow 2.4s 0.6s var(--ease) 2; }
@keyframes freshGlow { 0%, 100% { box-shadow: var(--shadow-sm); } 50% { box-shadow: 0 0 0 4px rgba(221, 190, 106, .45), var(--shadow); } }

.empty { text-align: center; padding: 70px 20px; border-radius: var(--radius-lg); border: 2px dashed rgba(18, 36, 74, .12); background: rgba(255, 255, 255, .5); }
.empty__icon { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 24px; display: grid; place-items: center; color: var(--gold); background: rgba(176, 138, 48, .1); animation: emblemFloat 5s ease-in-out infinite; }
.empty__icon svg { width: 40px; height: 40px; }
.empty h3 { margin: 0 0 8px; font-size: 20px; color: var(--navy); }
.empty p { margin: 0 auto; max-width: 440px; color: var(--ink-2); font-size: 14.5px; }

.skeleton { pointer-events: none; }
.skeleton .sk { border-radius: 8px; background: linear-gradient(90deg, #eef0f4 0%, #f7f8fa 50%, #eef0f4 100%); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--navy-950); color: rgba(255, 255, 255, .7); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 60px 0 40px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 20px; }
.footer__brand img { width: 72px; height: auto; }
.footer__brand div { display: flex; flex-direction: column; line-height: 1.35; }
.footer__brand strong { color: #fff; font-size: 17px; font-weight: 700; }
.footer__brand span { font-weight: 700; font-size: 15px; }
.footer__brand small { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.footer__links { display: flex; gap: 26px; font-size: 14px; }
.footer__links a { transition: color .3s; }
.footer__links a:hover { color: var(--gold-300); }
.footer__legal { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12.5px; color: rgba(255, 255, 255, .45); }

/* ---------- Visor PDF ---------- */
.viewer { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 24px; }
.viewer__backdrop { position: absolute; inset: 0; background: rgba(5, 12, 30, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadeIn .4s ease both; }
.viewer__panel { position: relative; width: min(1180px, 100%); height: min(92vh, 1000px); display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); animation: panelIn .6s var(--ease) both; }
.viewer.is-closing .viewer__backdrop { animation: fadeOut .35s ease both; }
.viewer.is-closing .viewer__panel { animation: panelOut .35s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(40px) scale(.95); } }
@keyframes panelOut { to { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
.viewer__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px 16px 26px; border-bottom: 1px solid var(--line); }
.viewer__meta { min-width: 0; }
.viewer__cat { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.viewer__meta h3 { margin: 0; font-size: 17px; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__actions { flex: none; display: flex; align-items: center; gap: 8px; }
.viewer__close { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--navy); transition: background .3s, transform .4s var(--ease); }
.viewer__close:hover { background: var(--ivory); transform: rotate(90deg); }
.viewer__body { position: relative; flex: 1; background: #525659; }
.viewer__body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #525659; }
.viewer__loading { position: absolute; inset: 0; display: grid; place-items: center; }
.viewer__loading span { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--gold-300); animation: spin .9s linear infinite; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 160; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; max-width: 380px; padding: 14px 18px; border-radius: 16px; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(221, 190, 106, .25); font-size: 14px; animation: toastIn .6s var(--ease) both; cursor: pointer; }
.toast.is-out { animation: toastOut .4s var(--ease) both; }
.toast__icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(221, 190, 106, .15); color: var(--gold-300); }
.toast strong { display: block; font-size: 13px; color: var(--gold-300); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ---------- Revelado en scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal-scale { opacity: 0; transform: translateY(60px) scale(.94); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), max-width .7s var(--ease); }
.reveal.is-in, .reveal-scale.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; text-align: center; }
  .hero__emblem { order: -1; }
  .emblem { width: min(300px, 64vw); }
  .hero__text .eyebrow, .hero__actions { justify-content: center; }
  .hero__lead { margin-inline: auto; }
  .hero__mayor { align-items: center; border-left: 0; padding-left: 0; }
  .hero__mayor::before { content: ''; width: 40px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 12px; }
  .hero__scroll { display: none; }
}
@media (max-width: 860px) {
  :root { --nav-h: 68px; }
  .nav__links, .nav__cta { display: none; }
  /* Efectos de fondo más livianos en móviles (GPU limitada) */
  .hero__aurora { filter: blur(48px); opacity: .5; }
  .hero__aurora i { mix-blend-mode: normal; will-change: transform; }
  .nav__burger { display: block; }
  .toolbar { position: static; flex-direction: column; align-items: stretch; border-radius: 22px; }
  .search, .search:focus-within { width: 100%; }
  .hero__stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat { padding: 16px 14px; text-align: center; }
  .stat span { font-size: 10.5px; letter-spacing: .04em; }
  .live { padding: 90px 0 80px; }
  .docs { padding: 90px 0 100px; }
  .player__theater { display: none; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .nav__inner { width: calc(100% - 32px); }
  .brand__text strong { font-size: 13.5px; }
  .hero { padding-bottom: 80px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { margin-top: 44px; }
  .stat strong { font-size: 22px; }
  .doc-grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { padding: 16px; }
  .cat__desc { display: none; }
  .viewer { padding: 0; }
  .viewer__panel { height: 100%; border-radius: 0; }
  .viewer__head { padding: 12px 12px 12px 18px; flex-wrap: wrap; }
  .viewer__actions .btn span { display: none; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__brand { flex-direction: column; }
  .toasts { left: 16px; right: 16px; }
  .player { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* Listado de documentos para navegadores sin JavaScript */
.noscript-docs { margin: 0; padding: 24px 28px; list-style: none; display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.noscript-docs a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* Aviso "comenzará pronto" en móviles */
@media (max-width: 560px) {
  .player__pulse { width: 84px; }
  .player__placeholder h3 { margin-top: 26px; font-size: 19px; }
  .player__placeholder p { font-size: 13.5px; }
  .player__wave { margin-top: 18px; }
}

/* Pie de página centrado en móviles */
@media (max-width: 560px) {
  .footer__legal { flex-direction: column; align-items: center; text-align: center; gap: 4px; }
  .footer__links { justify-content: center; }
}
@media (max-width: 860px) {
  /* Sin video: el recuadro toma la altura del aviso; con video vuelve a 16:9 */
  .player__media:has(> .player__placeholder:not([hidden])) { aspect-ratio: auto; }
}

/* =========================================================
   Comunicados de prensa
   ========================================================= */
.btn--navy { color: #fff; background: var(--navy); box-shadow: 0 10px 26px -12px rgba(18, 36, 74, .7); }
.btn--navy:hover { background: var(--navy-600); transform: translateY(-2px); }
.container--narrow { width: min(820px, 100% - 40px); }

.news { position: relative; padding: 120px 0; background: #fff; }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news__more { display: flex; justify-content: center; margin-top: 44px; }

.news-card { min-width: 0; }
.news-card__link { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; }
.news-card__link:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(176, 138, 48, .35); }
.news-card__link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.news-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-900); }
.news-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-card__link:hover .news-card__media > img { transform: scale(1.05); }
.news-card__ph { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #1F3A72, var(--navy-900) 60%, var(--navy-950)); }
.news-card__ph img { width: 26%; max-width: 120px; height: auto; opacity: .95; }
.news-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.news-card time { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.news-card h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--navy); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card p { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 700; color: var(--navy); }
.news-card__cta svg { transition: transform .4s var(--ease); }
.news-card__link:hover .news-card__cta svg { transform: translateX(5px); }

/* Comunicado destacado: ocupa todo el ancho */
.news-card--featured { grid-column: 1 / -1; }
.news-card--featured .news-card__link { display: grid; grid-template-columns: 1.15fr 1fr; }
.news-card--featured .news-card__media { aspect-ratio: auto; min-height: 340px; }
.news-card--featured .news-card__body { justify-content: center; padding: 40px 44px; }
.news-card--featured h3 { font-size: clamp(22px, 2.4vw, 30px); -webkit-line-clamp: 4; }
.news-card--featured p { font-size: 16px; -webkit-line-clamp: 4; }
.news__grid--plain .news-card--featured { grid-column: auto; }
.news__grid--plain .news-card--featured .news-card__link { display: flex; }

.news-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; border-radius: var(--radius-lg); border: 2px dashed rgba(18, 36, 74, .12); background: var(--ivory); }
.news-empty__icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px; color: var(--gold); background: rgba(176, 138, 48, .1); }
.news-empty__icon svg { width: 36px; height: 36px; }
.news-empty h3 { margin: 0 0 6px; font-size: 20px; color: var(--navy); }
.news-empty p { margin: 0 auto; max-width: 420px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- Páginas internas ---------- */
.page { background: var(--ivory); }
.page__main { padding-top: 0; }
.page .nav.is-scrolled { background: rgba(8, 19, 42, .92); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.crumbs a { color: var(--gold-300); }
.crumbs a:hover { text-decoration: underline; }
.page-head, .article__head { color: #fff; background: radial-gradient(100% 140% at 70% 0%, #17306A 0%, var(--navy-900) 50%, var(--navy-950) 100%); }
.page-head { padding: calc(var(--nav-h) + 60px) 0 64px; }
.page-head h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.page-head p { margin: 14px 0 0; max-width: 620px; color: rgba(255, 255, 255, .7); }
.news--archive { padding: 64px 0 110px; background: var(--ivory); }
.news--related { padding: 70px 0 100px; background: var(--ivory); border-top: 1px solid var(--line); }
.news__related-title { margin: 0 0 26px; font-size: 24px; color: var(--navy); }

.article__head { padding: calc(var(--nav-h) + 50px) 0 120px; }
.article__head .eyebrow { margin-bottom: 14px; }
.article__head h1 { margin: 0; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.article__meta time { color: var(--gold-300); font-weight: 600; }
.article__wrap { position: relative; margin-top: -80px; padding-bottom: 90px; }
.article__cover { margin: 0 0 34px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy-900); }
.article__cover img { width: 100%; height: auto; }
.article__wrap > :first-child:not(.article__cover) { margin-top: 110px; }
.article__lead { margin: 0 0 26px; font-size: clamp(18px, 2vw, 21px); line-height: 1.6; font-weight: 500; color: var(--navy); }
.article__body { font-size: 17px; line-height: 1.85; color: #283250; }
.article__body p { margin: 0 0 1.3em; }
.article__body a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; word-break: break-word; }
.article__pdf { display: flex; align-items: center; gap: 16px; margin: 34px 0 0; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .3s, transform .4s var(--ease); }
.article__pdf:hover { border-color: var(--gold); transform: translateY(-2px); }
.article__pdf-icon { flex: none; display: grid; place-items: center; width: 48px; height: 58px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; }
.article__pdf strong { display: block; color: var(--navy); }
.article__pdf small { color: var(--ink-3); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.share__label { margin-right: 6px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.share__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; transition: transform .3s var(--ease), filter .3s; }
.share__btn:hover { transform: translateY(-3px); filter: brightness(1.08); }
.share__btn--wa { background: #25D366; }
.share__btn--fb { background: #1877F2; }
.share__btn--x { background: #000; }
.share__btn--copy { background: var(--navy); }
.article__back { display: inline-block; margin-top: 30px; font-weight: 600; color: var(--navy); }
.article__back:hover { color: var(--gold); }

@media (max-width: 1024px) {
  .news__grid { grid-template-columns: repeat(2, 1fr); }
  .news-card--featured .news-card__link { grid-template-columns: 1fr; }
  .news-card--featured .news-card__media { aspect-ratio: 16 / 9; min-height: 0; }
  .news-card--featured .news-card__body { padding: 26px 28px 30px; }
}
@media (max-width: 860px) {
  .news { padding: 84px 0; }
  .article__head { padding: calc(var(--nav-h) + 30px) 0 100px; }
  .page-head { padding: calc(var(--nav-h) + 36px) 0 48px; }
}
@media (max-width: 560px) {
  .news__grid { grid-template-columns: 1fr; gap: 18px; }
  .container--narrow { width: calc(100% - 32px); }
  .article__body { font-size: 16.5px; }
  .article__wrap { margin-top: -70px; }
  .article__cover { border-radius: 16px; }
}
