/* ==========================================================================
   PCT UNAP — sistema de diseño del sitio público
   Base blanca y gris muy claro, azul profundo institucional, azul tecnológico
   y el degradado Titicaca solo en detalles. Tipografía Inter + Instrument Serif.
   ========================================================================== */

/* ---------- Fuentes (servidas desde el sitio) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/public/vendor/fuentes/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/public/vendor/fuentes/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/public/vendor/fuentes/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/public/vendor/fuentes/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/public/vendor/fuentes/instrument-serif-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/public/vendor/fuentes/instrument-serif-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+2113, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --blanco: #ffffff;
  --gris: #f5f5f7;
  --gris-2: #e8e8ed;
  --linea: #d2d2d7;
  --texto: #1d1d1f;
  --texto-2: #6e6e73;
  --texto-3: #86868b;
  --profundo: #0a2540;      /* azul institucional */
  --profundo-2: #0d2f52;
  --azul: #0b4f8c;          /* azul institucional para enlaces e indicadores (registro académico) */
  --azul-vivo: #0a2540;     /* botones: el azul profundo del Parque */
  --turquesa: #00a6a6;      /* ciencia */
  --titicaca-1: #0077b6;
  --titicaca-2: #00b4d8;
  --titicaca-3: #023e8a;
  /* Registro académico: sin degradados. Las dos variables quedan como color sólido institucional. */
  --degradado: var(--profundo);
  --degradado-texto: linear-gradient(var(--profundo), var(--profundo));
  --oscuro: #000000;
  --oscuro-2: #101012;
  --oscuro-3: #1c1c1f;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --ancho: 1200px;
  --ancho-texto: 760px;
  --radio: 12px;
  --radio-m: 10px;
  --radio-s: 6px;
  --sombra: 0 2px 6px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);
  --sombra-alta: 0 4px 12px rgba(0, 0, 0, .06), 0 24px 60px rgba(10, 37, 64, .14);
  --curva: cubic-bezier(.22, .61, .36, 1);
  --nav-alto: 56px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-alto) + 64px); }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.47; letter-spacing: -.011em;
  color: var(--texto); background: var(--blanco);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.022em; line-height: 1.08; color: inherit; }
::selection { background: rgba(0, 113, 227, .18); }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .55); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.oculto-visual { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--texto); color: #fff; padding: 10px 16px; border-radius: 10px; }
.saltar:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--texto-2); }
.eyebrow.azul { color: var(--azul); }
.eyebrow.degradado, .texto-degradado {
  background: var(--degradado-texto); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.display { font-size: clamp(48px, 8.4vw, 112px); font-weight: 700; letter-spacing: -.045em; line-height: .98; }
.titular-xl { font-size: clamp(40px, 6.2vw, 80px); font-weight: 700; letter-spacing: -.04em; line-height: 1.02; }
.titular { font-size: clamp(32px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; }
.titular-m { font-size: clamp(26px, 3vw, 40px); font-weight: 700; letter-spacing: -.028em; line-height: 1.1; }
.titular-s { font-size: clamp(21px, 2vw, 28px); font-weight: 650; letter-spacing: -.02em; line-height: 1.16; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
/* Titular entero en serif: el registro académico del sitio (secciones de contenido y páginas de texto). */
.display, .titular-xl, .titular, .titular-m,
.titular-xl.serif-todo, .titular.serif-todo, .titular-m.serif-todo, .titular-s.serif-todo, .display.serif-todo {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.04;
}
.titular, .titular.serif-todo { font-size: clamp(34px, 4.8vw, 60px); }
.titular-m, .titular-m.serif-todo { font-size: clamp(28px, 3.3vw, 44px); }
.titular-s.serif-todo { font-size: clamp(23px, 2.2vw, 31px); }
.titular-xl, .titular-xl.serif-todo { font-size: clamp(42px, 6.6vw, 86px); }
.serif-recta { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; }
.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; letter-spacing: -.016em; color: var(--texto-2); font-weight: 450; }
.lead strong, .lead b { color: var(--texto); font-weight: 600; }
.texto-2 { color: var(--texto-2); }
.pequeno { font-size: 14px; line-height: 1.45; color: var(--texto-2); }
/* Procedencia de un dato o una imagen: «Fuente: … · actualizado …». */
.fuente-dato { font-size: 12.5px; line-height: 1.45; color: var(--texto-3); letter-spacing: 0; }
.fuente-dato b { font-weight: 600; color: var(--texto-2); }
.centro { text-align: center; }
.centro .lead, .lead.centro { margin-left: auto; margin-right: auto; }
.prosa { max-width: 68ch; font-size: 18px; line-height: 1.62; }
.prosa p + p { margin-top: 1em; }
.prosa h2 { font-size: 32px; margin: 1.6em 0 .5em; }
.prosa h3 { font-size: 24px; margin: 1.4em 0 .4em; }
.prosa ul, .prosa ol { padding-left: 1.2em; }
.prosa li + li { margin-top: .4em; }
.prosa img { border-radius: var(--radio-m); margin: 1.5em 0; }
.prosa a { text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Estructura ---------- */
.contenedor { width: min(var(--ancho), 100% - 44px); margin-inline: auto; }
.contenedor.angosto { width: min(980px, 100% - 44px); }
.contenedor.texto { width: min(var(--ancho-texto), 100% - 44px); }
.seccion { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.seccion.compacta { padding: clamp(56px, 7vw, 96px) 0; }
.seccion + .seccion.mismo-fondo { padding-top: 0; }
.fondo-gris { background: var(--gris); }
.fondo-profundo { background: var(--profundo); color: #f5f5f7; }
.fondo-oscuro { background: var(--oscuro); color: #f5f5f7; }
.fondo-oscuro .lead, .fondo-profundo .lead { color: #a1a1a6; }
.fondo-oscuro .lead strong, .fondo-profundo .lead strong { color: #f5f5f7; }
.fondo-oscuro .eyebrow, .fondo-profundo .eyebrow { color: #a1a1a6; }
.fondo-oscuro a:not(.btn), .fondo-profundo a:not(.btn) { color: #2997ff; }
.cabeza-seccion { margin-bottom: clamp(40px, 5vw, 72px); }
.cabeza-seccion .eyebrow { display: block; margin-bottom: 14px; }
.cabeza-seccion .lead { margin-top: 20px; max-width: 720px; }
.cabeza-seccion.centro .lead { margin-inline: auto; }
.fila { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.fila.entre { justify-content: space-between; }
.fila.centro { justify-content: center; }
.rejilla { display: grid; gap: 20px; }
.rejilla.dos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rejilla.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rejilla.cuatro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dividir { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.dividir.texto-ancho { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
@media (max-width: 1000px) {
  .rejilla.cuatro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rejilla.tres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rejilla.dos, .rejilla.tres, .rejilla.cuatro, .dividir, .dividir.texto-ancho { grid-template-columns: minmax(0, 1fr); }
  .contenedor, .contenedor.angosto, .contenedor.texto { width: calc(100% - 32px); }
}

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px; border-radius: 6px; border: 0;
  font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; text-decoration: none !important;
  background: var(--azul-vivo); color: #fff; transition: background .25s var(--curva), transform .25s var(--curva), box-shadow .25s var(--curva);
}
.btn:hover { background: #0d2f52; box-shadow: none; }
.btn:active { transform: none; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn.secundario { background: transparent; color: var(--azul-vivo); box-shadow: inset 0 0 0 1px var(--azul-vivo); }
.btn.secundario:hover { background: var(--azul-vivo); color: #fff; }
.btn.claro { background: #fff; color: var(--texto); }
.btn.claro:hover { background: #f5f5f7; box-shadow: none; }
.btn.oscuro { background: var(--texto); color: #fff; }
.btn.oscuro:hover { background: #000; box-shadow: none; }
.btn.fantasma { background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn.fantasma:hover { background: rgba(255, 255, 255, .22); }
.btn.grande { min-height: 56px; padding: 16px 30px; font-size: 19px; }
.btn.chico { min-height: 34px; padding: 7px 16px; font-size: 14px; }
.btn[disabled], .btn.desactivado { opacity: .45; pointer-events: none; }
.enlace { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; font-weight: 500; color: var(--azul); }
.enlace::after { content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-top: 1.8px solid currentColor; transform: rotate(45deg); margin-left: 4px; transition: transform .25s var(--curva); }
.enlace:hover { text-decoration: underline; }
.enlace:hover::after { transform: translateX(3px) rotate(45deg); }
.enlace.grande { font-size: 21px; }
.fondo-oscuro .enlace, .fondo-profundo .enlace { color: #2997ff; }
.acciones { display: flex; gap: 14px 28px; align-items: center; flex-wrap: wrap; }
.centro .acciones, .acciones.centro { justify-content: center; }

/* ---------- Navegación global ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-alto);
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06); transition: background .3s var(--curva);
}
.nav.sobre-oscuro { background: rgba(10, 10, 12, .72); border-bottom-color: rgba(255, 255, 255, .08); color: #f5f5f7; }
.nav-interior { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-marca { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none !important; flex-shrink: 0; }
.nav-marca img { height: 30px; width: auto; }
.nav-marca .sello { width: 30px; height: 30px; border-radius: 9px; background: var(--profundo); display: grid; place-items: center; }
.nav-marca span { font-size: 15px; font-weight: 650; letter-spacing: -.02em; line-height: 1.05; }
.nav-marca small { display: block; font-size: 11px; font-weight: 500; color: var(--texto-2); letter-spacing: 0; }
.nav.sobre-oscuro .nav-marca small { color: #a1a1a6; }
.nav-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a, .nav-menu > li > button {
  display: flex; align-items: center; gap: 5px; height: var(--nav-alto); padding: 0 13px;
  font-size: 14px; font-weight: 450; color: inherit; opacity: .86; background: none; border: 0; text-decoration: none !important;
  transition: opacity .2s;
}
.nav-menu > li > a:hover, .nav-menu > li > button:hover, .nav-menu > li.abierto > button { opacity: 1; }
.nav-menu > li > a[aria-current="page"], .nav-menu > li.actual > button { opacity: 1; font-weight: 600; }
.nav-menu > li > button::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.nav-panel {
  position: fixed; left: 0; right: 0; top: var(--nav-alto);
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .06); box-shadow: 0 30px 60px rgba(0, 0, 0, .06);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .28s var(--curva), transform .28s var(--curva), visibility 0s .28s;
  color: var(--texto);
}
.nav-menu > li.abierto .nav-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-panel-interior { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding: 40px 0 48px; }
.nav-panel h3 { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-3); margin-bottom: 14px; }
.nav-panel .grande a { display: block; font-size: 24px; font-weight: 650; letter-spacing: -.022em; color: var(--texto); padding: 5px 0; text-decoration: none; }
.nav-panel .grande a:hover { color: var(--azul); }
.nav-panel .chica a { display: block; font-size: 14px; color: var(--texto); padding: 6px 0; text-decoration: none; }
.nav-panel .chica a:hover { color: var(--azul); }
.nav-panel .destacado { border-radius: var(--radio-m); overflow: hidden; position: relative; min-height: 180px; background: var(--profundo); color: #fff; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none !important; }
.nav-panel .destacado img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .6s var(--curva); }
.nav-panel .destacado:hover img { transform: scale(1.05); }
.nav-panel .destacado strong, .nav-panel .destacado span { position: relative; }
.nav-panel .destacado strong { font-size: 19px; letter-spacing: -.02em; }
.nav-panel .destacado span { font-size: 14px; opacity: .85; }
.nav-velo { position: fixed; inset: var(--nav-alto) 0 0; background: rgba(232, 232, 237, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; z-index: 90; }
.nav-velo.visible { opacity: 1; visibility: visible; transition-delay: 0s; }
.nav-lado { display: flex; align-items: center; gap: 8px; }
.nav-lado .btn { min-height: 32px; padding: 6px 14px; font-size: 13px; }
.nav-ingresar { font-size: 13px; color: inherit; opacity: .86; padding: 6px 10px; }
.nav-hamburguesa { display: none; width: 40px; height: 40px; border: 0; background: none; color: inherit; position: relative; }
.nav-hamburguesa span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--curva), top .3s var(--curva); }
.nav-hamburguesa span:first-child { top: 16px; }
.nav-hamburguesa span:last-child { top: 23px; }
body.menu-abierto .nav-hamburguesa span:first-child { top: 19.5px; transform: rotate(45deg); }
body.menu-abierto .nav-hamburguesa span:last-child { top: 19.5px; transform: rotate(-45deg); }
.nav-movil { display: none; }
@media (max-width: 560px) { .nav-lado .btn { display: none; } .nav-marca small { font-size: 10px; } }
@media (max-width: 1080px) {
  .nav-menu, .nav-lado .nav-ingresar { display: none; }
  .nav-hamburguesa { display: block; }
  .nav-movil {
    display: block; position: fixed; inset: var(--nav-alto) 0 0; z-index: 99; overflow-y: auto; overscroll-behavior: contain;
    background: rgba(255, 255, 255, .98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    padding: 16px 28px 60px; opacity: 0; visibility: hidden; transition: opacity .3s var(--curva), visibility 0s .3s; color: var(--texto);
  }
  body.menu-abierto { overflow: hidden; }
  body.menu-abierto .nav-movil { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-movil details { border-bottom: 1px solid var(--gris-2); }
  .nav-movil summary, .nav-movil > a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 26px; font-weight: 650; letter-spacing: -.025em; color: var(--texto); list-style: none; cursor: pointer; text-decoration: none; }
  .nav-movil > a { border-bottom: 1px solid var(--gris-2); }
  .nav-movil summary::-webkit-details-marker { display: none; }
  .nav-movil summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--texto-3); border-bottom: 2px solid var(--texto-3); transform: rotate(45deg); transition: transform .3s; }
  .nav-movil details[open] summary::after { transform: rotate(225deg); }
  .nav-movil details a { display: block; padding: 9px 0 9px 4px; font-size: 18px; color: var(--texto); text-decoration: none; }
  .nav-movil details div { padding-bottom: 16px; }
  .nav-movil .acciones { margin-top: 28px; }
}

/* ---------- Sub-navegación de sección (estilo página de producto) ---------- */
.subnav { position: sticky; top: var(--nav-alto); z-index: 80; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.subnav-interior { height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.subnav-interior .fila { min-width: 0; }
.subnav.sobre-oscuro { background: rgba(10, 10, 12, .72); border-bottom-color: rgba(255, 255, 255, .1); }
.subnav.sobre-oscuro .subnav-titulo, .subnav.sobre-oscuro .subnav-enlaces a { color: #f5f5f7; }
.subnav.sobre-oscuro .subnav-enlaces a:hover, .subnav.sobre-oscuro .subnav-enlaces a.activo { color: #2997ff; }
.subnav-titulo { font-size: 21px; font-weight: 650; letter-spacing: -.02em; white-space: nowrap; color: var(--texto); text-decoration: none !important; }
.subnav-enlaces { display: flex; align-items: center; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.subnav-enlaces::-webkit-scrollbar { display: none; }
.subnav-enlaces a { font-size: 12px; color: var(--texto); opacity: .8; white-space: nowrap; text-decoration: none; }
.subnav-enlaces a:hover, .subnav-enlaces a.activo { opacity: 1; color: var(--azul); }
.subnav .btn { min-height: 28px; padding: 4px 12px; font-size: 12px; }
.subnav-enlaces a.btn, .subnav-enlaces a.btn:hover { color: #fff; opacity: 1; }
@media (max-width: 760px) { .subnav-interior { gap: 12px; } .subnav-titulo { font-size: 17px; } .subnav .btn { display: none; } .subnav-enlaces { gap: 16px; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 24px; } }

/* ---------- Portada: héroe ---------- */
.hero { position: relative; min-height: calc(100vh - var(--nav-alto)); min-height: calc(100svh - var(--nav-alto)); display: grid; place-items: center; overflow: hidden; background: #fff; isolation: isolate; }
.hero canvas.topografia { display: none !important; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .38; mix-blend-mode: screen; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 14, 26, .58), rgba(4, 14, 26, .76)); pointer-events: none; }
.hero > .lamina { width: 100%; min-height: inherit; display: grid; place-items: center; }
.hero > .lamina .lamina-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }

.hero .hero-contenido { color: #fff; }
.hero .eyebrow { color: rgba(255, 255, 255, .82); display: block; margin-bottom: 20px; }
.hero .institucion, .hero .lema, .hero-indicador { color: rgba(255, 255, 255, .88); }
.hero .lema span { color: rgba(255, 255, 255, .4); }
.hero .serif { color: #7fd3ea; }
.hero .lead { color: rgba(255, 255, 255, .86); max-width: 680px; margin-top: 22px; }
.hero .enlace { color: #fff; }
.hero .acciones { margin-top: 36px; }

canvas.topografia { transition: opacity .9s var(--curva); }
.hero::after { transition: opacity .9s var(--curva); }
.hero .laminas-puntos { bottom: 92px; }
.hero-contenido { text-align: center; padding: 60px 0 120px; position: relative; z-index: 2; }
.hero-contenido .eyebrow { display: block; margin-bottom: 22px; }
.hero-contenido .institucion { display: block; font-size: clamp(15px, 1.4vw, 19px); font-weight: 500; color: var(--texto-2); letter-spacing: -.01em; margin-bottom: 30px; }
.hero-contenido .display .serif { font-weight: 400; letter-spacing: -.03em; }
.hero-contenido .lema { margin: 28px auto 0; font-size: clamp(15px, 1.3vw, 18px); color: var(--texto-2); letter-spacing: .02em; }
.hero-contenido .lema span { display: inline-block; margin: 0 .5em; color: var(--linea); }
.hero-contenido .acciones { margin-top: 40px; }
.hero-indicador { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; color: var(--texto-3); letter-spacing: .08em; text-transform: uppercase; }
.hero-indicador i { width: 1px; height: 44px; background: linear-gradient(var(--texto-3), transparent); position: relative; overflow: hidden; }
.hero-indicador i { background: linear-gradient(rgba(255,255,255,.7), transparent); }
.hero-indicador i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: bajar 2.2s var(--curva) infinite; }
@keyframes bajar { to { top: 100%; } }

/* ---------- Láminas que pasan solas (héroe y cabeceras) ---------- */
.laminas { position: relative; }
.laminas > .lamina { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--curva), visibility 0s .9s; }
.laminas > .lamina.activa { position: relative; opacity: 1; visibility: visible; transition-delay: 0s; }
.laminas-puntos { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 3; }
.laminas-puntos button { width: 30px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: rgba(0, 0, 0, .18); transition: background .3s var(--curva); }
.laminas-puntos button.activo { background: var(--azul-vivo); }
.laminas.sobre-foto .laminas-puntos button { background: rgba(255, 255, 255, .35); }
.laminas.sobre-foto .laminas-puntos button.activo { background: #fff; }

/* ---------- Fotografía que crece al bajar ---------- */
.foto-escala { position: relative; height: 170vh; }
.foto-escala-marco { position: sticky; top: var(--nav-alto); height: calc(100vh - var(--nav-alto)); display: grid; place-items: center; overflow: hidden; }
.foto-escala-marco figure { margin: 0; width: calc(62% + 38% * var(--p, 0)); height: calc(58% + 42% * var(--p, 0)); border-radius: calc(var(--radio) * (1 - var(--p, 0))); overflow: hidden; position: relative; will-change: width, height; }
.foto-escala-marco img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.15 - .15 * var(--p, 0)));
  /* Acercamiento lento y continuo: la foto respira sola aunque no se desplace la página. */
  animation: respiro-foto 26s ease-in-out infinite alternate; }
@keyframes respiro-foto { from { scale: 1; } to { scale: 1.07; } }
.foto-escala-marco figcaption { position: absolute; inset: auto 0 0 0; padding: clamp(24px, 5vw, 64px); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .74)); opacity: calc(var(--p, 0) * 1.6 - .6); }
.foto-escala-marco figcaption .titular-xl { max-width: 900px; }

@media (max-width: 760px) {
  .foto-escala { height: auto; padding: 16px 0 0; }
  .foto-escala-marco { position: static; height: auto; padding: 0 16px; }
  .foto-escala-marco figure { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: var(--radio-m); }
  .foto-escala-marco img { transform: none; object-position: 62% center; }
  .foto-escala-marco figcaption { opacity: 1; padding: 24px; }
  .foto-escala-marco figcaption .contenedor { width: 100%; }
}

/* ---------- Texto que se ilumina al bajar ---------- */
.resaltar { font-size: clamp(30px, 4.6vw, 60px); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
.resaltar .p { color: var(--texto); opacity: .16; transition: opacity .25s linear; }
.resaltar .p.on { opacity: 1; }
.fondo-oscuro .resaltar .p, .fondo-profundo .resaltar .p { color: #f5f5f7; }
.resaltar .serif { font-weight: 400; }

/* ---------- Relato fijo: Investigación → … → Impacto ---------- */
.relato { position: relative; }
.relato-fijo { position: sticky; top: var(--nav-alto); height: calc(100vh - var(--nav-alto)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.relato-pasos { list-style: none; margin: 0; padding: 0; }
.relato-pasos li { font-size: clamp(30px, 4.4vw, 58px); font-weight: 700; letter-spacing: -.04em; line-height: 1.14; color: #cfcfd4; transition: color .5s var(--curva), transform .5s var(--curva); transform-origin: left center; }
.relato-pasos li.activo { color: var(--texto); }
.relato-pasos li.activo .num { color: var(--azul); }
.relato-pasos .num { display: inline-block; width: 1.8em; font-size: .38em; vertical-align: middle; font-weight: 600; letter-spacing: 0; color: var(--linea); transition: color .5s; }
.relato-escena { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; border-radius: var(--radio); overflow: hidden; background: var(--gris); box-shadow: var(--sombra-alta); }
.relato-escena figure { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--curva), transform 1.2s var(--curva); }
.relato-escena figure.activo { opacity: 1; transform: none; }
.relato-escena img { width: 100%; height: 100%; object-fit: cover; }
.relato-escena figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); font-size: 17px; line-height: 1.4; }
.relato-escena figcaption strong { display: block; font-size: 22px; letter-spacing: -.02em; margin-bottom: 4px; }
.relato-barra { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gris-2); border-radius: 3px; }
.relato-barra i { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p, 0) * 100%); background: var(--degradado); border-radius: 3px; }
.relato-lista { position: relative; padding-left: 32px; }
@media (max-width: 900px) {
  .relato { height: auto !important; padding: 72px 0; }
  .relato-fijo { position: static; height: auto; grid-template-columns: minmax(0, 1fr); width: 100%; gap: 28px; }
  .relato-fijo > div:first-child { padding: 0 16px; }
  .relato-pasos li { color: var(--texto); font-size: 30px; }
  .relato-pasos li .num { color: var(--azul); }
  .relato-barra { display: none; }
  .relato-lista { padding-left: 0; }
  .relato-escena { aspect-ratio: auto; max-height: none; border-radius: 0; box-shadow: none; background: none; overflow-x: auto;
    display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px; padding: 0 16px 8px; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .relato-escena::-webkit-scrollbar { display: none; }
  .relato-escena figure { position: relative; inset: auto; opacity: 1; transform: none; aspect-ratio: 4 / 5; border-radius: var(--radio-m); overflow: hidden; scroll-snap-align: start; }
}

/* ---------- Cifras grandes ---------- */
.cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--linea); }
.cifras.cinco { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cifra { padding: 36px 24px 8px 0; border-right: 1px solid var(--linea); }
.cifra:last-child { border-right: 0; }
.cifra + .cifra { padding-left: 24px; }
.cifra b { display: block; font-family: var(--serif); font-size: clamp(50px, 6.2vw, 88px); font-weight: 400; letter-spacing: -.02em; line-height: 1; font-variant-numeric: lining-nums; }
.cifra b.texto-degradado { padding-bottom: .06em; }
.cifra span { display: block; margin-top: 12px; font-size: 16px; color: var(--texto-2); line-height: 1.4; }
.cifra .fuente-dato { margin-top: 8px; }
.fondo-oscuro .cifras, .fondo-profundo .cifras, .fondo-oscuro .cifra, .fondo-profundo .cifra { border-color: rgba(255, 255, 255, .14); }
.fondo-oscuro .cifra span, .fondo-profundo .cifra span { color: #a1a1a6; }
@media (max-width: 900px) { .cifras, .cifras.cinco { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cifra { border-right: 0; border-bottom: 1px solid var(--linea); padding-left: 0 !important; padding-bottom: 28px; } }

/* ---------- Fondos ----------
   Registro académico: fondo blanco o gris liso, sin tramas, figuras, curvas ni halos.
   Las clases .trama-* y .halo se conservan sin efecto para no tocar las plantillas. */
.seccion.fondo-gris, .seccion.fondo-oscuro, .seccion.fondo-profundo { isolation: isolate; }
/* Filete para separar secciones sin cargar la página. */
.filete { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--linea) 20%, var(--linea) 80%, transparent); }

/* ---------- Portadas gráficas (sin fotografía) ---------- */
/* Cubiertas propias generadas con herramientas/GenerarPortadas.java: identidad del Parque, nada de foto de catálogo. */
.portada { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--gris); }
.portada-marco { position: relative; border-radius: var(--radio-m); overflow: hidden; background: var(--gris); aspect-ratio: 16 / 10; }
.portada-marco.alta { aspect-ratio: 4 / 5; }
.portada-marco.ancha { aspect-ratio: 21 / 9; }
.fondo-oscuro .portada-marco, .fondo-profundo .portada-marco { background: var(--profundo); }

/* Numeración de secciones, como en un informe. */
.num-seccion { display: block; font-family: var(--serif); font-size: 15px; letter-spacing: .12em; color: var(--texto-3); margin-bottom: 10px; font-variant-numeric: lining-nums; }
.fondo-oscuro .num-seccion, .fondo-profundo .num-seccion { color: #8e8e93; }

/* ---------- Tarjetas ---------- */
.tarjeta { background: #fff; border-radius: var(--radio); padding: clamp(28px, 3vw, 44px); position: relative; overflow: hidden; transition: transform .45s var(--curva), box-shadow .45s var(--curva); }
.fondo-gris .tarjeta, .tarjeta.sobre-blanco { box-shadow: none; }
.tarjeta.sobre-blanco { background: var(--gris); }
.fondo-oscuro .tarjeta, .fondo-profundo .tarjeta { background: var(--oscuro-3); color: #f5f5f7; }
.fondo-profundo .tarjeta { background: rgba(255, 255, 255, .06); }
a.tarjeta { color: inherit; text-decoration: none !important; display: block; }
a.tarjeta:hover, .tarjeta.elevable:hover { transform: translateY(-4px) scale(1.005); box-shadow: var(--sombra-alta); }
.tarjeta .icono { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: rgba(0, 113, 227, .08); color: var(--azul); margin-bottom: 22px; }
.tarjeta .icono svg { width: 26px; height: 26px; }
.tarjeta .icono.turquesa { background: rgba(0, 166, 166, .1); color: var(--turquesa); }
.tarjeta .icono.profundo { background: rgba(10, 37, 64, .08); color: var(--profundo); }
.tarjeta h3 { font-size: clamp(22px, 2.1vw, 28px); letter-spacing: -.025em; margin-bottom: 10px; }
.tarjeta p { color: var(--texto-2); }
.fondo-oscuro .tarjeta p, .fondo-profundo .tarjeta p { color: #a1a1a6; }
.tarjeta .enlace { margin-top: 20px; }
.tarjeta-foto { padding: 0; min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--profundo); }
.tarjeta-foto > img, .tarjeta-foto > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--curva); }
.tarjeta-foto::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .72) 100%); z-index: 1; }
.tarjeta-foto > .cuerpo { position: relative; z-index: 2; padding: clamp(26px, 3vw, 40px); }
.tarjeta-foto p { color: rgba(255, 255, 255, .82); }
.tarjeta-foto .eyebrow { color: rgba(255, 255, 255, .8); margin-bottom: 8px; display: block; }
a.tarjeta-foto:hover > img { transform: scale(1.05); }
a.tarjeta.tarjeta-foto { display: flex; color: #fff; }
.fondo-oscuro a.tarjeta, .fondo-profundo a.tarjeta { color: #f5f5f7; }
.tarjeta-foto.alta { min-height: 600px; }
.tarjeta-foto .enlace { color: #fff; }

/* Rejilla tipo «bento» */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento > .ancho-3 { grid-column: span 3; }
.bento > .ancho-4 { grid-column: span 4; }
.bento > .ancho-6 { grid-column: span 6; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento > * { grid-column: auto !important; } }

/* ---------- Carrusel horizontal ---------- */
.carrusel { position: relative; }
.carrusel-pista { display: grid; grid-auto-flow: column; grid-auto-columns: min(372px, 82vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(22px, (100vw - var(--ancho)) / 2); padding: 8px max(22px, (100vw - var(--ancho)) / 2) 40px; scrollbar-width: none; }
.carrusel-pista::-webkit-scrollbar { display: none; }
.carrusel-pista > * { scroll-snap-align: start; position: relative; }
.carrusel-pista .tarjeta { min-height: 480px; display: flex; flex-direction: column; }
.carrusel-pista.sectores { grid-auto-columns: min(520px, 86vw); }
.carrusel-pista.tarjetas-anchas { grid-auto-columns: min(420px, 86vw); }
.carrusel.sin-recorrido .carrusel-controles { display: none; }
.carrusel-controles { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-bottom: -40px; }
.carrusel-controles button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--gris-2); color: var(--texto); display: grid; place-items: center; transition: background .2s, opacity .2s; }
.carrusel-controles button:hover { background: #dcdce1; }
.carrusel-controles button:disabled { opacity: .35; cursor: default; }
.carrusel-controles svg { width: 18px; height: 18px; }
.fondo-oscuro .carrusel-controles button { background: #333336; color: #f5f5f7; }
/* Los puntos van después de las flechas: comparten selector de botón y si no heredarían su tamaño. */
.carrusel-puntos { display: flex; gap: 8px; margin-right: auto; }
.carrusel-puntos button, .carrusel-controles .carrusel-puntos button {
  width: 8px; height: 8px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: var(--linea);
  transition: background .3s var(--curva), transform .3s var(--curva);
}
.carrusel-puntos button.activo { background: var(--azul-vivo); transform: scale(1.35); }
.fondo-oscuro .carrusel-puntos button { background: #48484a; }
.fondo-oscuro .carrusel-puntos button.activo { background: #f5f5f7; }

/* ---------- Noticias, eventos y listas ---------- */
.noticia { display: flex; flex-direction: column; border-radius: var(--radio-m); overflow: hidden; background: #fff; color: inherit; text-decoration: none !important; transition: transform .45s var(--curva), box-shadow .45s var(--curva); height: 100%; }
.fondo-blanco .noticia, .noticia.sobre-blanco { background: var(--gris); }
.noticia:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.noticia-foto { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gris-2); }
.noticia-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--curva); }
.noticia:hover .noticia-foto img { transform: scale(1.04); }
.noticia-cuerpo { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.noticia-cuerpo .meta { font-size: 13px; color: var(--texto-3); display: flex; gap: 10px; align-items: center; }
.noticia-cuerpo h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; color: var(--texto); }
.noticia-cuerpo p { font-size: 15px; color: var(--texto-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.etiqueta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 6px; background: rgba(0, 113, 227, .09); color: var(--azul); white-space: nowrap; }
.etiqueta.turquesa { background: rgba(0, 166, 166, .12); color: #007a7a; }
.etiqueta.gris { background: var(--gris-2); color: var(--texto-2); }
.etiqueta.verde { background: rgba(36, 138, 61, .1); color: #248a3d; }
.etiqueta.ambar { background: rgba(191, 72, 0, .1); color: #b64400; }
.etiqueta.rojo { background: rgba(215, 0, 21, .08); color: #d70015; }
.fondo-oscuro .etiqueta { background: rgba(41, 151, 255, .16); color: #6cb6ff; }
.evento { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--linea); color: inherit; text-decoration: none !important; }
.evento:first-child { border-top: 1px solid var(--linea); }
.evento-fecha { text-align: center; line-height: 1; }
.evento-fecha b { display: block; font-size: 44px; font-weight: 700; letter-spacing: -.04em; }
.evento-fecha span { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--azul); }
.evento h3 { font-size: 22px; letter-spacing: -.02em; }
.evento p { margin-top: 6px; color: var(--texto-2); font-size: 15px; }
.evento:hover h3 { color: var(--azul); }
@media (max-width: 640px) { .evento { grid-template-columns: 64px 1fr; } .evento > :last-child { display: none; } .evento-fecha b { font-size: 34px; } }
.vacio { padding: 56px 24px; text-align: center; border-radius: var(--radio-m); background: var(--gris); color: var(--texto-2); }
.fondo-gris .vacio { background: #fff; }
.vacio strong { display: block; font-size: 21px; color: var(--texto); margin-bottom: 6px; letter-spacing: -.02em; }

/* ---------- Cabecera de página interior ---------- */
.cabecera { padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 6vw, 88px); position: relative; overflow: hidden; }
.cabecera .eyebrow { display: block; margin-bottom: 18px; }
.cabecera .lead { margin-top: 24px; max-width: 760px; }
.cabecera.centro .lead { margin-inline: auto; }
.cabecera .acciones { margin-top: 36px; }
.cabecera.con-foto { color: #fff; min-height: 72vh; display: flex; align-items: flex-end; padding-bottom: clamp(48px, 7vw, 96px); background: var(--profundo); }
.cabecera.con-foto > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cabecera.con-foto::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .65)); }
.cabecera.con-foto > .contenedor { position: relative; z-index: 2; }
.cabecera.con-foto .lead, .cabecera.con-foto .eyebrow { color: rgba(255, 255, 255, .85); }
.cabecera .trazo { position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--linea), transparent); }
.migas { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--texto-3); margin-bottom: 26px; }
.migas a { color: var(--texto-2); }
.migas span[aria-hidden] { opacity: .5; }

/* ---------- Filtros, búsqueda, tablas ---------- */
.filtros { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 16px; border-radius: 6px; border: 1px solid var(--linea); background: #fff; color: var(--texto); font-size: 14px; font-weight: 500; text-decoration: none !important; transition: all .2s var(--curva); white-space: nowrap; }
.chip:hover { border-color: var(--texto-3); }
.chip.activo, .chip[aria-pressed="true"] { background: var(--texto); border-color: var(--texto); color: #fff; }
.chip .n { font-size: 12px; opacity: .6; }
.buscador { position: relative; flex: 1; min-width: 240px; max-width: 480px; }
.buscador input { width: 100%; height: 48px; padding: 0 18px 0 46px; border-radius: 6px; border: 1px solid var(--linea); background: #fff; font: inherit; font-size: 16px; color: var(--texto); transition: border-color .2s, box-shadow .2s; }
.buscador input:focus { outline: 0; border-color: var(--azul-vivo); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.buscador svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--texto-3); pointer-events: none; }
.tabla-marco { position: relative; overflow-x: auto; border-radius: var(--radio-m); background: #fff; box-shadow: 0 0 0 1px var(--gris-2); }
table.tabla { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabla th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--texto-3); padding: 16px 20px; border-bottom: 1px solid var(--gris-2); white-space: nowrap; }
.tabla td { padding: 16px 20px; border-bottom: 1px solid var(--gris-2); vertical-align: top; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr:hover td { background: #fafafc; }
.paginacion { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.paginacion a, .paginacion span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 6px; font-size: 15px; color: var(--texto); text-decoration: none; }
.paginacion a:hover { background: var(--gris-2); }
.paginacion .actual { background: var(--texto); color: #fff; }

/* ---------- Formularios ---------- */
.formulario { display: grid; gap: 18px; }
.formulario .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .formulario .dos { grid-template-columns: 1fr; } }
.campo { display: grid; gap: 8px; align-content: start; }
.campo label, .campo .rotulo { font-size: 14px; font-weight: 600; color: var(--texto); }
.campo .ayuda { font-size: 13px; color: var(--texto-3); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--linea); background: #fff;
  font: inherit; font-size: 17px; color: var(--texto); transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.campo select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.campo textarea { min-height: 140px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 0; border-color: var(--azul-vivo); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.campo input[type="file"] { padding: 12px; min-height: auto; background: var(--gris); border-style: dashed; }
.campo input[type="checkbox"], .campo input[type="radio"] { width: 20px; min-height: 20px; height: 20px; padding: 0; appearance: auto; -webkit-appearance: auto; accent-color: var(--azul-vivo); }
.casilla { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--texto-2); }
.casilla input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--azul-vivo); flex-shrink: 0; }
.aviso { padding: 16px 20px; border-radius: 14px; font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.aviso.exito { background: rgba(36, 138, 61, .09); color: #1d6b31; }
.aviso.error { background: rgba(215, 0, 21, .07); color: #b0000f; }
.aviso.info { background: rgba(0, 113, 227, .07); color: #0059b3; }

/* ---------- Ficha / detalle ---------- */
.ficha { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ficha-lado { position: sticky; top: calc(var(--nav-alto) + 24px); display: grid; gap: 16px; }
.datos { list-style: none; margin: 0; padding: 0; border-radius: var(--radio-m); background: var(--gris); }
.datos li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--gris-2); font-size: 15px; }
.datos li:last-child { border-bottom: 0; }
.datos li span { color: var(--texto-2); }
.datos li b { font-weight: 600; text-align: right; }
@media (max-width: 900px) { .ficha { grid-template-columns: 1fr; } .ficha-lado { position: static; } }

/* ---------- Panel de llamada con degradado Titicaca ---------- */
.llamado { position: relative; border-radius: var(--radio); overflow: hidden; padding: clamp(48px, 8vw, 110px) clamp(28px, 6vw, 88px); color: #fff; background: var(--profundo); isolation: isolate; }
.llamado::before { content: none; }
.llamado::after { content: none; }
.llamado .lead { color: rgba(255, 255, 255, .82); max-width: 640px; margin-top: 20px; }
.llamado .acciones { margin-top: 36px; }
@keyframes girar { to { transform: rotate(360deg); } }

/* ---------- Pie ---------- */
.pie { background: var(--gris); color: var(--texto-2); font-size: 12px; line-height: 1.33; padding: 40px 0 28px; }
.pie-marca { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--linea); flex-wrap: wrap; }
.pie-marca img { height: 40px; width: auto; }
.pie-marca p { font-size: 14px; max-width: 460px; }
.pie-columnas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--linea); }
.pie-columnas h4 { font-size: 12px; font-weight: 600; color: var(--texto); letter-spacing: 0; margin-bottom: 10px; }
.pie-columnas ul { list-style: none; margin: 0; padding: 0; }
.pie-columnas li { margin-bottom: 8px; }
.pie-columnas a { color: var(--texto-2); }
.pie-columnas a:hover { color: var(--texto); }
.pie-legal { display: flex; justify-content: space-between; gap: 16px; padding-top: 18px; flex-wrap: wrap; }
.pie-legal a { color: var(--texto-2); margin-left: 16px; }
@media (max-width: 900px) { .pie-columnas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Animaciones de aparición ---------- */
.revelar { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--curva), transform 1s var(--curva); transition-delay: var(--retraso, 0s); }
.revelar.visible { opacity: 1; transform: none; }
.revelar.desde-escala { transform: scale(.94); }
.revelar.desde-escala.visible { transform: none; }
.sin-js .revelar { opacity: 1; transform: none; }
.escalonar > * { --retraso: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .revelar { opacity: 1; transform: none; }
  .foto-escala-marco img { animation-duration: 26s !important; animation-iteration-count: infinite !important; }
}
