/* ============================================================
   peru/styles.css — Rinsa Perú · sistema gráfico v3 · paleta propia
   Añil andino + cobre + papel. Autosuficiente (no carga el CSS del portal).
   Estructura heredada de la plantilla v3 (series/) · 21/10/2026.
   ============================================================ */
:root {
  --bg: #FFFFFF; --papel: #F7F2EA; --papel-2: #EFE7DA;
  --ink: #121826; --ink-2: #4B5366; --ink-3: #7C8494;
  --line: rgba(18,24,38,.10);
  --anil: #0F2440; --anil-deep: #091628; --anil-2: #16365F;
  --cobre: #B8862B; --cobre-dk: #946A1E; --cobre-tint: #FBF4E6; --cobre-claro: #E4C06E;
  --rojo: #B01C2E; --verde: #1E6B4F;
  --f-display: 'Plus Jakarta Sans', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --r-card: 20px; --r-field: 12px; --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sh-1: 0 1px 2px rgba(18,24,38,.05), 0 8px 24px rgba(18,24,38,.06);
  --sh-2: 0 2px 6px rgba(18,24,38,.06), 0 24px 64px rgba(18,24,38,.14);
  --wrap: 1180px; --gutter: clamp(20px, 4vw, 48px); --nav-h: 68px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--anil); color: #fff; }
:focus-visible { outline: 3px solid rgba(184,134,43,.55); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 12px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); z-index: 100; }
.skip:focus { left: 16px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ── Botones ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent; font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ease), background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.btn:active { transform: scale(.97); }
.btn--cobre { background: var(--cobre); color: #fff; }
.btn--cobre:hover { background: var(--cobre-dk); }
.btn--anil { background: var(--anil); color: #fff; }
.btn--anil:hover { background: var(--anil-2); }
.btn--ghost { background: transparent; color: var(--anil); border-color: rgba(15,36,64,.3); }
.btn--ghost:hover { background: var(--papel); border-color: var(--anil); }
.btn--light { background: #fff; color: var(--anil); }
.btn--light:hover { background: var(--cobre-tint); }
.btn--ghost-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; }
.link { color: var(--anil); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link svg { width: 16px; height: 16px; flex: none; }

/* ── Eyebrow ───────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .78rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--cobre-dk); margin-bottom: 14px; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cobre); box-shadow: 0 0 0 4px rgba(184,134,43,.18); }
.eyebrow--light { color: var(--cobre-claro); }
.eyebrow--light .eyebrow__dot { background: var(--cobre-claro); box-shadow: 0 0 0 4px rgba(228,192,110,.2); }

/* ── Nav ───────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(9,22,40,0); transition: background-color 260ms ease, box-shadow 260ms ease; }
.nav--over { position: fixed; left: 0; right: 0; }
.nav.is-scrolled { background: rgba(255,255,255,.94); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 20px; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 0; }
.nav__bandera { display: inline-flex; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.25); flex: none; }
.nav__bandera i { flex: 1; background: var(--rojo); }
.nav__bandera i:nth-child(2) { background: #fff; }
.nav.is-scrolled .nav__bandera { box-shadow: 0 0 0 1px var(--line); }
.nav__marca { font: 800 1.05rem/1 var(--f-display); letter-spacing: -0.01em; }
.nav__sub { font-size: .8rem; color: rgba(255,255,255,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.25); }
.nav.is-scrolled .nav__brand { color: var(--ink); }
.nav.is-scrolled .nav__sub { color: var(--ink-3); border-color: var(--line); }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav__links a { font: 500 .95rem/1 var(--f-body); color: rgba(255,255,255,.86); text-decoration: none; }
.nav.is-scrolled .nav__links a { color: var(--ink-2); }
.nav__links a:hover { color: #fff; }
.nav.is-scrolled .nav__links a:hover { color: var(--ink); }
.nav__cta { padding: 10px 16px; border-radius: var(--r-pill); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff !important; font-weight: 600 !important; }
.nav.is-scrolled .nav__cta { background: var(--anil); border-color: var(--anil); color: #fff !important; }
.nav__logo { display: inline-flex; align-items: center; }
.nav__rinsa { height: 26px; width: auto; }
.nav__rinsa--dark { display: none; }
.nav.is-scrolled .nav__rinsa--light { display: none; }
.nav.is-scrolled .nav__rinsa--dark { display: block; }
.nav__menu { display: none; margin-left: 8px; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__menu span { width: 22px; height: 2px; background: currentColor; color: #fff; border-radius: 2px; transition: transform 200ms ease; }
.nav.is-scrolled .nav__menu span { color: var(--ink); }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.sheet { position: fixed; inset: var(--nav-h) 0 auto 0; background: #fff; padding: 12px var(--gutter) 20px; display: grid; gap: 4px; box-shadow: var(--sh-2); z-index: 49; }
.sheet a { padding: 12px 10px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--ink); }
.sheet a:hover { background: var(--papel); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; color: #fff; padding: calc(var(--nav-h) + 72px) 0 0; overflow: hidden; background: var(--anil-deep); }
.hero__fondo { position: absolute; inset: 0; z-index: -1; }
.hero__fondo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; opacity: .55; filter: saturate(.75); }
.hero__velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,22,40,.72) 0%, rgba(9,22,40,.82) 45%, rgba(9,22,40,.98) 100%), radial-gradient(900px 500px at 78% 40%, rgba(184,134,43,.22), transparent 60%); }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 100%); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.06; letter-spacing: -0.025em; font-weight: 800; }
.hero__title span { display: block; color: var(--cobre-claro); }
.hero__sub { margin-top: 20px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: rgba(255,255,255,.82); max-width: 56ch; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__nota { margin-top: 18px; font-size: .88rem; color: rgba(255,255,255,.55); }
.hero__mapa { position: relative; aspect-ratio: 4 / 5; max-height: 560px; width: 100%; justify-self: center; }
.hero__mapa canvas { width: 100%; height: 100%; display: block; cursor: pointer; }
.mapa__tip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 10px; font-size: .82rem; line-height: 1.3; box-shadow: var(--sh-2); white-space: nowrap; z-index: 2; }
.mapa__tip strong { display: block; font: 700 .9rem/1.2 var(--f-display); }
.mapa__tip::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.mapa__pie { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.cifras { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.14); }
.cifra { padding: 26px 22px 30px; border-left: 1px solid rgba(255,255,255,.12); min-width: 0; }
.cifra:first-child { border-left: 0; padding-left: 0; }
.cifra__valor { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font: 800 clamp(1.8rem, 2.6vw, 2.4rem)/1 var(--f-display); letter-spacing: -0.02em; color: #fff; }
.cifra__valor small { font-size: .55em; font-weight: 600; color: var(--cobre-claro); white-space: nowrap; }
.cifra__etq { margin-top: 8px; font-size: .92rem; color: rgba(255,255,255,.78); line-height: 1.35; }
.cifra__nota { margin-top: 6px; font-size: .76rem; color: rgba(255,255,255,.45); }

/* ── Secciones ─────────────────────────────────────────── */
.sec { padding: clamp(64px, 8vw, 110px) 0; }
.sec--papel { background: var(--papel); }
.sec__head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 52px); text-align: center; }
.sec__head--left { margin: 0 0 28px; text-align: left; }
.sec__title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.sec__sub { margin-top: 14px; color: var(--ink-2); font-size: 1.08rem; }
.sec--oscuro { position: relative; isolation: isolate; background: var(--anil-deep); color: #fff; overflow: hidden; }
.sec--oscuro .sec__sub { color: rgba(255,255,255,.78); }
.trama { position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 20% 20%, rgba(184,134,43,.18), transparent 60%), radial-gradient(700px 400px at 90% 90%, rgba(22,54,95,.6), transparent 60%); }

/* ── Carrusel automático (lo mueve scripts.js por rAF) ──── */
.carrusel { position: relative; overflow: hidden; margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 16px; mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%); }
.carrusel__pista { display: flex !important; grid-template-columns: none !important; gap: 20px; width: max-content; will-change: transform; }
.carrusel__pista > * { flex: 0 0 auto; width: var(--ancho-item, 380px); }
.carrusel__pista.evidencia { --ancho-item: 380px; }
.carrusel__pista.programas { --ancho-item: 360px; }
.carrusel__pista.programas .prog { height: 100%; }
.carrusel--manual { overflow-x: auto; mask-image: none; -webkit-mask-image: none; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.carrusel--manual .carrusel__pista > * { scroll-snap-align: start; }
.carrusel__pie { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.carrusel__barra { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.carrusel__barra i { display: block; height: 100%; width: 0; background: var(--cobre); border-radius: 3px; }
.carrusel__hint { font-size: .78rem; color: var(--ink-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.carrusel__hint::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cobre); animation: late 1.6s ease-in-out infinite; }
.carrusel.is-hover + .carrusel__pie .carrusel__hint::before { animation-play-state: paused; opacity: .5; }
.carrusel__ctrl { display: flex; gap: 6px; }
.carrusel__ctrl button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; transition: border-color 160ms ease, color 160ms ease, transform 160ms var(--ease); }
.carrusel__ctrl button:hover { border-color: var(--anil); color: var(--anil); }
.carrusel__ctrl button:active { transform: scale(.94); }
.carrusel__ctrl svg { width: 16px; height: 16px; }
@keyframes late { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .45; } }

/* ── Franja de logos ───────────────────────────────────── */
.carrusel__pista.inst { --ancho-item: 168px; gap: 14px; }
.logo { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 8px 12px; border: 0; background: transparent; text-decoration: none; color: var(--ink-3); text-align: center; cursor: pointer; transition: color 200ms ease; }
.logo__caja { width: 100%; height: 92px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; transition: transform 320ms var(--ease), box-shadow 320ms var(--ease), border-color 200ms ease; }
.logo__caja img { max-height: 60px; max-width: 128px; width: auto; object-fit: contain; filter: grayscale(1) opacity(.62); transition: filter 320ms ease, transform 320ms var(--ease); }
.logo__caja .ini { width: 54px; height: 54px; border-radius: 12px; background: var(--papel); display: grid; place-items: center; font: 800 1.1rem/1 var(--f-display); color: var(--ink-3); }
.logo__nombre { font: 500 .76rem/1.3 var(--f-body); }
.logo:hover, .logo:focus-visible { color: var(--ink); }
.logo:hover .logo__caja, .logo:focus-visible .logo__caja { transform: scale(1.1); box-shadow: var(--sh-2); border-color: rgba(184,134,43,.5); }
.logo:hover .logo__caja img, .logo:focus-visible .logo__caja img { filter: none; }
.logo:hover .logo__caja .ini { color: var(--anil); }

/* ── Deslizable nativo (evidencia) ─────────────────────── */
.desliza { position: relative; margin-inline: calc(-1 * var(--gutter)); }
.desliza__scroll { padding: 8px var(--gutter) 16px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.desliza__scroll::-webkit-scrollbar { display: none; }
.desliza__pista { display: flex !important; grid-template-columns: none !important; gap: 20px; width: max-content; }
.desliza__pista > * { flex: 0 0 auto; width: var(--ancho-item, 380px); scroll-snap-align: start; }
.desliza__btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--cobre); color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgba(184,134,43,.4); z-index: 3; transition: transform 160ms var(--ease), background-color 160ms ease, opacity 200ms ease; }
.desliza__btn svg { width: 20px; height: 20px; }
.desliza__btn:hover { background: var(--cobre-dk); }
.desliza__btn:active { transform: scale(.94); }
.desliza__btn.is-off { opacity: .25; pointer-events: none; }
.desliza__pie { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.desliza__hint { font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
/* Las flechas flotan sobre la pista: se posicionan con un contenedor fijo encima */
.desliza__btn--izq, .desliza__btn--der { position: absolute; top: 50%; transform: translateY(-50%); }
.desliza__btn--izq { left: 6px; } .desliza__btn--der { right: 6px; }
.desliza:not(.is-usado) .desliza__btn:not(.is-off) { animation: latir-btn 1.5s ease-in-out infinite; }
.desliza__btn--izq:active, .desliza__btn--der:active { transform: translateY(-50%) scale(.94); }
@keyframes latir-btn { 0%, 100% { box-shadow: 0 6px 18px rgba(184,134,43,.4), 0 0 0 0 rgba(184,134,43,.55); } 50% { box-shadow: 0 6px 18px rgba(184,134,43,.4), 0 0 0 12px rgba(184,134,43,0); } }

/* ── Logos de fuente ───────────────────────────────────── */
.fuente-logo { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.fuente-logo--gob { height: 18px; width: auto; }
.fuente-logo--fb { width: 18px; height: 18px; color: #1877F2; }
.fuente-logo--fb svg { width: 18px; height: 18px; }
.fuente-logo--news { font: 800 .8rem/1 var(--f-display); color: #1A2E50; letter-spacing: -0.01em; }
.fuente-logo--news i { width: 12px; height: 12px; background: var(--rojo); border-radius: 3px; display: inline-block; }
.fuente-logo--rinsa { height: 14px; width: auto; }
.tag--mas { background: transparent; color: var(--ink-3); cursor: default; }
.fuente-logo--web { width: 18px; height: 18px; color: var(--anil); }
.fuente-logo--web svg { width: 18px; height: 18px; }
.fuente-logo__txt { font: 600 .82rem/1 var(--f-body); color: var(--ink-2); }
.evid__ver { display: inline-flex; align-items: center; gap: 6px; font: 600 .85rem/1 var(--f-body); color: var(--cobre-dk); white-space: nowrap; }
.evid__ver svg { width: 15px; height: 15px; }
.caso__fuente { gap: 10px; }
.caso__fuente-txt { display: inline-flex; align-items: center; gap: 6px; }

/* ── Evidencia ─────────────────────────────────────────── */
.evidencia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.evid { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 26px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--sh-1); text-decoration: none; color: inherit; transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 200ms ease; }
.evid:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: rgba(184,134,43,.45); }
.evid__ent { display: flex; align-items: center; gap: 12px; }
.evid__logo { width: 48px; height: 48px; border-radius: 12px; background: var(--papel); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex: none; }
.evid__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.evid__logo span { font: 800 1rem/1 var(--f-display); color: var(--anil); }
.evid__quien { font: 700 .92rem/1.25 var(--f-display); color: var(--ink); }
.evid__fecha { font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.evid__titulo { font: 700 1.08rem/1.35 var(--f-display); letter-spacing: -0.01em; color: var(--ink); }
.evid__texto { font-size: .95rem; color: var(--ink-2); flex: 1; }
.evid__pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.evid__fuente { display: inline-flex; align-items: center; gap: 8px; font: 600 .85rem/1.25 var(--f-body); color: var(--cobre-dk); }
.evid__fuente svg { width: 16px; height: 16px; }
.evid__sello { flex: none; font: 700 .66rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--verde); background: rgba(30,107,79,.1); padding: 6px 9px; border-radius: var(--r-pill); white-space: nowrap; }

/* ── Casos · cabecera y búsqueda ───────────────────────── */
.casos__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.busca { position: relative; display: flex; align-items: center; width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 14px; min-height: 50px; box-shadow: var(--sh-1); transition: border-color 180ms ease, box-shadow 180ms ease; }
.busca:focus-within { border-color: var(--cobre); box-shadow: 0 0 0 4px rgba(184,134,43,.15); }
.busca > svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.busca input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; font: 500 1rem/1 var(--f-body); color: var(--ink); outline: none; }
.busca input::-webkit-search-cancel-button { display: none; }
.busca button { border: 0; background: var(--papel); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.busca button svg { width: 14px; height: 14px; }

/* ── Línea de tiempo (barras por año) ──────────────────── */
.linea { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; height: 92px; padding: 0 2px; margin-bottom: 22px; }
.linea__anio { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; border: 0; background: transparent; cursor: pointer; padding: 0; border-radius: 8px; }
.linea__barra { width: 100%; max-width: 64px; background: var(--papel-2); border-radius: 6px 6px 2px 2px; transition: background-color 200ms ease, transform 300ms var(--ease); min-height: 6px; }
.linea__anio:hover .linea__barra { background: var(--cobre-claro); }
.linea__anio.is-on .linea__barra { background: var(--cobre); }
.linea__anio.is-all .linea__barra { background: var(--anil); }
.linea__n { position: absolute; top: 0; font: 700 .72rem/1 var(--f-body); color: var(--ink-3); opacity: 0; transition: opacity 160ms ease; }
.linea__anio:hover .linea__n, .linea__anio.is-on .linea__n { opacity: 1; }
.linea__lbl { font: 600 .8rem/1 var(--f-body); color: var(--ink-2); }
.linea__anio.is-on .linea__lbl, .linea__anio.is-all .linea__lbl { color: var(--ink); }

/* ── Filtros ───────────────────────────────────────────── */
.filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.filtros__lbl { font: 600 .8rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.fdrop { position: relative; }
.fdrop__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font: 600 .9rem/1 var(--f-body); color: var(--ink); cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease; }
.fdrop__btn:hover, .fdrop.is-open .fdrop__btn { border-color: var(--anil); }
.fdrop__btn .n { background: var(--anil); color: #fff; font-size: .72rem; border-radius: var(--r-pill); padding: 3px 7px; }
.fdrop__btn svg { width: 14px; height: 14px; transition: transform 200ms ease; }
.fdrop.is-open .fdrop__btn svg { transform: rotate(180deg); }
.fdrop__menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 20; min-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-2); padding: 8px; display: grid; gap: 2px; max-height: 340px; overflow: auto; }
.fdrop__opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px; border: 0; background: transparent; text-align: left; font: 500 .92rem/1.3 var(--f-body); color: var(--ink); cursor: pointer; }
.fdrop__opt:hover { background: var(--papel); }
.fdrop__opt.is-on { background: var(--cobre-tint); color: var(--cobre-dk); font-weight: 600; }
.fdrop__opt .c { font-size: .78rem; color: var(--ink-3); }
.fdrop__opt.is-on .c { color: var(--cobre-dk); }
.fdest { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; font: 600 .9rem/1 var(--f-body); color: var(--ink); cursor: pointer; }
.fdest.is-on { background: var(--anil); border-color: var(--anil); color: #fff; }
.fdest svg { width: 15px; height: 15px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border-radius: var(--r-pill); background: var(--cobre-tint); color: var(--cobre-dk); font: 600 .82rem/1 var(--f-body); border: 0; cursor: pointer; }
.chip svg { width: 12px; height: 12px; }
.chip--todo { background: transparent; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.conteo { font-size: .9rem; color: var(--ink-3); margin-bottom: 18px; }

/* ── Grid de casos ─────────────────────────────────────── */
.grid-casos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.caso { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-1); transition: transform 260ms var(--ease), box-shadow 260ms var(--ease); }
.caso:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.caso__media { position: relative; aspect-ratio: 16 / 9; background: var(--papel-2); overflow: hidden; }
.caso__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.caso:hover .caso__media img { transform: scale(1.04); }
.caso__media--vacio { display: grid; place-items: center; background: linear-gradient(135deg, var(--anil) 0%, var(--anil-2) 100%); }
.caso__anio { font: 800 2.4rem/1 var(--f-display); color: rgba(255,255,255,.18); letter-spacing: -0.03em; }
.caso__sello { position: absolute; top: 12px; left: 12px; font: 700 .66rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(9,22,40,.72); backdrop-filter: blur(6px); padding: 6px 9px; border-radius: var(--r-pill); }
.caso__sello--ext { background: rgba(30,107,79,.85); }
.caso__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 16px; flex: 1; }
.caso__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-3); }
.caso__meta .amb { color: var(--cobre-dk); font-weight: 600; }
.caso__meta .amb::before { content: '·'; margin-right: 8px; color: var(--ink-3); font-weight: 400; }
.caso__ent { font: 600 .82rem/1.3 var(--f-body); color: var(--anil); }
.caso__titulo { font: 700 1.05rem/1.35 var(--f-display); letter-spacing: -0.01em; color: var(--ink); }
.caso__resumen { font-size: .93rem; color: var(--ink-2); flex: 1; }
.caso__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { border: 0; background: var(--papel); color: var(--ink-2); font: 500 .76rem/1 var(--f-body); padding: 6px 9px; border-radius: var(--r-pill); cursor: pointer; }
.tag:hover { background: var(--cobre-tint); color: var(--cobre-dk); }
.caso__pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.caso__fuente { display: inline-flex; align-items: center; gap: 7px; font: 600 .85rem/1 var(--f-body); color: var(--anil); text-decoration: none; white-space: nowrap; }
.caso__fuente:hover { color: var(--cobre-dk); }
.caso__fuente svg { width: 15px; height: 15px; }
.caso__extra { flex: 1 0 100%; font-size: .76rem; color: var(--ink-3); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caso__extra:hover { color: var(--anil); text-decoration: underline; }
.vacio { grid-column: 1 / -1; text-align: center; padding: 56px 20px; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-card); color: var(--ink-2); }
.vacio strong { display: block; font: 700 1.1rem/1.3 var(--f-display); color: var(--ink); margin-bottom: 6px; }

/* ── Paginación ────────────────────────────────────────── */
.pag { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pag button { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: 600 .9rem/1 var(--f-body); color: var(--ink-2); cursor: pointer; }
.pag button:hover { border-color: var(--anil); color: var(--ink); }
.pag button.is-on { background: var(--anil); border-color: var(--anil); color: #fff; }
.pag button[disabled] { opacity: .4; cursor: default; }
.pag span { padding: 0 6px; color: var(--ink-3); }
.pag__info { width: 100%; text-align: center; font-size: .82rem; color: var(--ink-3); margin-top: 6px; }

/* ── Programas ─────────────────────────────────────────── */
.programas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prog { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--papel); border-radius: var(--r-card); border: 1px solid transparent; transition: border-color 200ms ease, transform 260ms var(--ease); }
.prog:hover { border-color: rgba(184,134,43,.4); transform: translateY(-3px); }
.prog__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--anil); color: var(--cobre-claro); display: grid; place-items: center; }
.prog__ico svg { width: 22px; height: 22px; }
.prog__nombre { font: 700 1.1rem/1.3 var(--f-display); letter-spacing: -0.01em; }
.prog__desc { font-size: .95rem; color: var(--ink-2); flex: 1; }
.prog__evid { font-size: .85rem; color: var(--ink-2); padding: 10px 12px; background: #fff; border-radius: 10px; border-left: 3px solid var(--cobre); }
.prog__evid b { color: var(--anil); }
.prog__link { align-self: flex-start; }

/* ── Normas ────────────────────────────────────────────── */
.normas__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.normas { display: grid; gap: 14px; }
.norma { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 20px 22px; background: var(--papel); border-radius: 16px; text-decoration: none; color: inherit; transition: transform 220ms var(--ease), background-color 200ms ease; }
.norma:hover { transform: translateX(4px); background: var(--cobre-tint); }
.norma__ico { width: 52px; height: 52px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--anil); }
.norma__ico svg { width: 24px; height: 24px; }
.norma__titulo { font: 700 1rem/1.3 var(--f-display); }
.norma__ent { font-size: .85rem; color: var(--cobre-dk); font-weight: 600; margin-top: 2px; }
.norma__que { font-size: .92rem; color: var(--ink-2); margin-top: 8px; }
.norma__ver { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 600 .82rem/1 var(--f-body); color: var(--anil); }
.norma__ver svg { width: 14px; height: 14px; }

/* ── CTA ───────────────────────────────────────────────── */
.cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cta__acciones { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ── Footer ────────────────────────────────────────────── */
.foot { background: var(--papel); padding: 56px 0 28px; color: var(--ink-2); font-size: .95rem; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.foot__brand img { height: 30px; width: auto; margin-bottom: 14px; }
.foot__brand address { font-style: normal; font-size: .85rem; color: var(--ink-3); margin-top: 12px; }
.foot__h { font: 700 .8rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.foot__grid a { display: block; text-decoration: none; padding: 4px 0; }
.foot__grid a:hover { color: var(--anil); }
.foot__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-3); }
.foot__legal { display: flex; gap: 16px; }
.foot__legal a { text-decoration: none; }
.foot__legal a:hover { color: var(--anil); text-decoration: underline; }
.foot__social { display: flex; gap: 14px; }
.foot__social a { color: var(--ink-3); }
.foot__social a:hover { color: var(--anil); }
.foot__social svg { width: 20px; height: 20px; }

/* ── Spotlight ─────────────────────────────────────────── */
.spot { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; padding-top: min(18vh, 160px); }
.spot__fondo { position: absolute; inset: 0; background: rgba(9,22,40,.55); backdrop-filter: blur(10px) saturate(110%); }
.spot__panel { position: relative; width: min(640px, calc(100% - 32px)); display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.97); border-radius: 18px; padding: 0 18px; min-height: 64px; box-shadow: var(--sh-2); animation: spot-in 260ms var(--ease); }
.spot__panel > svg { width: 22px; height: 22px; color: var(--ink-3); flex: none; }
.spot__panel input { flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.15rem/1 var(--f-body); color: var(--ink); outline: none; }
.spot__panel input::-webkit-search-cancel-button { display: none; }
.spot__panel kbd { font: 600 .72rem/1 var(--f-body); color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; }
.spot__ayuda { position: relative; margin-top: 14px; font-size: .85rem; color: rgba(255,255,255,.75); }
@keyframes spot-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }

/* ── Reveal ────────────────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mapa { max-width: 420px; aspect-ratio: 4 / 5; }
  .cifras { grid-template-columns: repeat(2, 1fr); }
  .cifra:nth-child(3) { border-left: 0; padding-left: 0; }
  .evidencia, .grid-casos, .programas { grid-template-columns: repeat(2, 1fr); }
  .normas__inner { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .cta__acciones { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__menu { display: flex; }
  .nav__sub { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .cifras { grid-template-columns: 1fr 1fr; }
  .cifra { padding: 18px 14px 20px; }
  .cifra__valor { font-size: 1.7rem; }
  .cifra__valor small { display: block; margin: 4px 0 0; font-size: .8rem; }
  .cifra__etq { font-size: .85rem; }
  .cifra__nota { display: none; }
  .evidencia, .grid-casos, .programas { grid-template-columns: 1fr; }
  .carrusel__pista.evidencia { --ancho-item: 300px; }
  .carrusel__pista.programas { --ancho-item: 290px; }
  .carrusel__pista.inst { --ancho-item: 140px; }
  .carrusel__hint, .desliza__hint { display: none; }
  .desliza__pista.evidencia { --ancho-item: 300px; }
  .desliza__btn { width: 40px; height: 40px; }
  .casos__head { flex-direction: column; align-items: stretch; }
  .busca { width: 100%; }
  .linea { height: 72px; gap: 3px; }
  .linea__lbl { font-size: .68rem; }
  .foot__grid { grid-template-columns: 1fr; gap: 24px; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carrusel__hint::before { animation: none; }
  .desliza__btn { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .caso, .evid, .prog, .inst__item, .norma { transition: none; }
  .spot__panel { animation: none; }
}
