/* ═══════════════════════════════════════════════════════════════════════════
   landing_addons.css — Landing del Observatorio CATLEC (index.html)
   Estética liquid glass + gradientes. Usa los tokens de styles.css
   (--primary, --accent, --font-heading, --radius-*, --text-*) y solo define
   aquí lo exclusivo del landing. Tema claro únicamente.
   ═══════════════════════════════════════════════════════════════════════════ */

.landing-page {
    /* Paleta sobria derivada del logo CATLEC: azul marino, pizarra y un teal apagado */
    --lp-ink: #17233a;
    --lp-navy: #1b365d;
    --lp-accent: #3d5a80;
    --lp-slate: #64748b;
    --lp-mist: #94a3b8;
    --lp-teal: #4f7c7a;
    --lp-tint: rgba(27, 54, 93, 0.06);
    --lp-tint-strong: rgba(27, 54, 93, 0.1);
    --lp-gradient: linear-gradient(100deg, #1b365d 0%, #3d5a80 100%);
    --lp-glass-bg: rgba(255, 255, 255, 0.62);
    --lp-glass-border: rgba(255, 255, 255, 0.8);
    --lp-glass-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 10px 32px rgba(23, 35, 58, 0.06);
    --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --lp-header-h: 68px;
    --lp-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --lp-line: rgba(27, 54, 93, 0.14);
    --lp-art-stroke: rgba(27, 54, 93, 0.62);
    --lp-art-fill: #f6f7f9;
    --lp-art-far: #e4e9ef;
    /* Papel milimetrado: trama menor de 24 px y mayor de 120 px (hero y trazados) */
    --lp-graph-paper:
        linear-gradient(rgba(27, 54, 93, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 54, 93, 0.045) 1px, transparent 1px),
        linear-gradient(rgba(27, 54, 93, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 54, 93, 0.075) 1px, transparent 1px);
    --lp-graph-paper-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
}

/* styles.css fija html/body a 100vh sin scroll (layout de dashboard); el
   landing es una página larga con scroll normal. */
html.landing-root,
html.landing-root body.landing-page {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    display: block;
}

html.landing-root {
    scroll-behavior: smooth;
    scroll-padding-top: var(--lp-header-h);
}

body.landing-page {
    background: #f6f7f9;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
}

.landing-page ::selection {
    background: rgba(61, 90, 128, 0.18);
}

.lp-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

main,
.lp-footer {
    position: relative;
    z-index: 1;
}

/* ─── Vidrio líquido (utilidad) ───────────────────────────────────────────── */
/* El reflejo especular superior es la primera capa del fondo, así nunca
   se pinta por encima del contenido. */
.lp-glass {
    position: relative;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 38%),
        var(--lp-glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid var(--lp-glass-border);
    box-shadow: var(--lp-glass-shadow);
}

/* Utilidad de ícono (misma que dgc_addons.css; styles.css no la trae) */
.landing-page .icon-13 {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
/* Franja de vidrio a todo el ancho; el contenido se alinea con .lp-container */
.lp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    backdrop-filter: blur(20px) saturate(120%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.lp-header.is-scrolled {
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 24px rgba(23, 35, 58, 0.06);
}

.lp-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: var(--lp-header-h);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 24px;
}

.lp-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

/* Logo UdeC (escudo + nombre), con fondo transparente. Va un poco más grande
   que la parte visible del logo CATLEC (~107 × 28 px a 50 px de alto). */
.lp-brand-udec {
    height: 44px;
    width: auto;
    display: block;
}

/* El PNG trae mucho margen transparente: se agranda y se recorta con margen negativo */
.lp-brand-catlec {
    height: 42px;
    width: auto;
    display: block;
    margin: 0 -12px 0 -15px;
}

.lp-brand-divider {
    width: 1px;
    height: 26px;
    background: rgba(15, 23, 42, 0.14);
}

.lp-tabs {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0 auto;
}

.lp-tab {
    position: relative;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.lp-tab:hover {
    color: var(--lp-ink);
    background: var(--lp-tint);
}

.lp-tab.active {
    color: var(--lp-accent);
}

.lp-tab.active::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--lp-gradient);
}

.lp-header-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lp-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.6);
    color: var(--lp-ink);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lp-menu-toggle svg {
    width: 18px;
    height: 18px;
}

/* ─── Botones ────────────────────────────────────────────────────────────── */
.lp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 48px;
    padding: 0 1.4rem;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-normal), background var(--transition-normal);
}

.lp-btn:hover {
    transform: translateY(-1px);
}

.lp-btn--primary {
    color: #fff;
    background: var(--lp-navy);
    border: 1px solid var(--lp-navy);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 18px rgba(23, 35, 58, 0.16);
}

.lp-btn--primary:hover {
    background: #152b4b;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 22px rgba(23, 35, 58, 0.22);
}

.lp-btn--glass {
    color: var(--lp-ink);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    backdrop-filter: blur(16px) saturate(170%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 8px 24px rgba(23, 35, 58, 0.06);
}

.lp-btn--glass:hover {
    background: rgba(255, 255, 255, 0.8);
}

.lp-btn--sm {
    height: 36px;
    padding: 0 0.95rem;
    border-radius: 11px;
    font-size: 0.82rem;
}

/* ─── Hero: lámina de plano ─────────────────────────────────────────────── */
/* Alto del corte de obras: proporcional al ancho (viewBox 1600×380), con un
   mínimo para que en pantallas angostas se vea la parte central recortada. */
.lp-hero {
    --lp-art-h: max(150px, 23.75vw);
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--lp-header-h) + 40px) 0 calc(var(--lp-art-h) + 28px);
    overflow: hidden;
}

/* Cuadrícula milimetrada: trama menor de 24 px y mayor de 120 px */
.lp-hero-grid {
    position: absolute;
    inset: 0;
    background-image: var(--lp-graph-paper);
    background-size: var(--lp-graph-paper-size);
    background-position: -1px -1px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 88%, transparent 100%);
}

.lp-hero-art {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--lp-art-h);
    pointer-events: none;
}

.lp-art {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.lp-art-far rect {
    fill: var(--lp-art-far);
}

.lp-art-item,
.lp-art-static {
    fill: none;
    stroke: var(--lp-art-stroke);
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-art .f {
    fill: var(--lp-art-fill);
}

.lp-art .b {
    stroke-width: 3;
}

.lp-art .w {
    stroke: rgba(61, 90, 128, 0.35);
    stroke-width: 1;
}

.lp-art .dash {
    stroke-dasharray: 14 10;
    stroke: rgba(27, 54, 93, 0.3);
}

/* Cotas del dibujo del hero: en grises pizarra y peso medio, para que
   acompañen sin competir con el titular (colores y no opacidad del grupo,
   que la animación de entrada lleva a 1). */
.lp-art-callout .lead {
    fill: none;
    stroke: rgba(100, 116, 139, 0.4);
    stroke-width: 1;
}

.lp-art-callout .dot {
    fill: #fff;
    stroke: rgba(100, 116, 139, 0.55);
    stroke-width: 1.2;
}

.lp-art-callout .t {
    font-family: var(--lp-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    fill: rgba(148, 163, 184, 0.9);
}

.lp-art-callout .v {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    fill: rgba(100, 116, 139, 0.85);
}

/* Dibujo progresivo (art.js agrega .is-drawing y luego .is-drawn) */
.lp-art.is-drawing .lp-art-item * {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation:
        lp-draw 1.5s var(--lp-ease) forwards,
        lp-fill 0.7s ease forwards;
    animation-delay: var(--d, 0s), calc(var(--d, 0s) + 0.9s);
}

.lp-art.is-drawing .lp-art-item .f {
    fill-opacity: 0;
}

.lp-art.is-drawing .lp-art-far,
.lp-art.is-drawing .lp-art-static {
    opacity: 0;
    animation: lp-fade 1.2s ease forwards 0.3s;
}

.lp-art.is-drawing .lp-art-callout {
    opacity: 0;
    animation: lp-fade 0.6s ease forwards;
    animation-delay: var(--d, 2s);
}

@keyframes lp-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes lp-fill {
    to { fill-opacity: 1; }
}

@keyframes lp-fade {
    to { opacity: 1; }
}

.lp-hero-content {
    position: relative;
}

/* Texto de la institución sobre el titular, sin contenedor */
.lp-hero-kicker {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lp-accent);
}

.lp-hero-title {
    margin: 1.4rem 0 1.3rem;
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--lp-ink);
}

.lp-hero-subtitle {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.56em;
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--lp-mist);
    max-width: 17em;
}

.lp-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* ─── Franja de portada (foto a todo el ancho) ───────────────────────────── */
/* Alto mínimo (no fijo): bajo la frase van los objetivos en versión compacta */
.lp-band {
    position: relative;
    min-height: clamp(420px, 40vw, 600px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: var(--lp-ink);
    color: #fff;
}

.lp-band-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 34%;
    transform: scale(1.18);
    filter: grayscale(0.35) saturate(0.8) contrast(1.05);
    will-change: transform;
}

/* Velo azul marino: más denso abajo, donde va el texto */
.lp-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(23, 35, 58, 0.15) 0%, rgba(23, 35, 58, 0.35) 45%, rgba(23, 35, 58, 0.82) 100%),
        linear-gradient(90deg, rgba(27, 54, 93, 0.35), rgba(27, 54, 93, 0) 60%);
    pointer-events: none;
}

.lp-band-content {
    position: relative;
    z-index: 1;
    padding-top: 72px;
    padding-bottom: clamp(28px, 4vw, 48px);
}

.lp-band-quote {
    max-width: 760px;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 3vw, 2.4rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #fff;
}

.lp-band-quote span {
    display: block;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
}

/* Objetivos compactos: una fila de cuatro sobre la foto, tras una regla fina */
.lp-band-objectives {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 28px;
    margin: clamp(22px, 3vw, 36px) 0 0;
    padding: 18px 0 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.lp-band-objective {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.86rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
}

.lp-band-objective strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.lp-band-objective-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.lp-band-objective-icon svg {
    width: 16px;
    height: 16px;
}

.lp-band-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.lp-band-more svg {
    transition: transform var(--transition-fast);
}

.lp-band-more:hover svg {
    transform: translateX(3px);
}

/* Crédito de foto sobre la franja de portada */
.lp-band-credit {
    position: absolute;
    right: 10px;
    bottom: 8px;
    z-index: 1;
    font-size: 0.64rem;
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.lp-band-credit a {
    color: inherit;
}

/* ─── Secciones ──────────────────────────────────────────────────────────── */
.lp-section {
    position: relative;
    padding: 96px 0;
    border-top: 1px solid var(--lp-line);
}

.lp-section > .lp-container {
    position: relative;
    z-index: 1;
}

/* Ilustraciones de fondo de sección (curvas de nivel, trama urbana) */
.lp-section-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.lp-section-art svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lp-topo path {
    fill: none;
    stroke: rgba(27, 54, 93, 0.08);
    stroke-width: 1;
}

.lp-topo path.idx {
    stroke: rgba(27, 54, 93, 0.15);
    stroke-width: 1.3;
}

.lp-section-art--streets {
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 50%, #000 30%, transparent 85%);
    mask-image: radial-gradient(ellipse 70% 80% at 70% 50%, #000 30%, transparent 85%);
}

.lp-streets rect {
    fill: none;
    stroke: rgba(27, 54, 93, 0.12);
    stroke-width: 1;
}

.lp-streets .river {
    fill: none;
    stroke: rgba(61, 90, 128, 0.28);
    stroke-width: 1.2;
}

.lp-streets .park {
    fill: rgba(79, 124, 122, 0.06);
    stroke: rgba(79, 124, 122, 0.3);
}

.lp-streets .tree {
    fill: none;
    stroke: rgba(79, 124, 122, 0.35);
}

.lp-streets .avenue {
    fill: none;
    stroke: rgba(27, 54, 93, 0.22);
    stroke-width: 1.2;
}

.lp-streets .median {
    fill: none;
    stroke: rgba(27, 54, 93, 0.18);
    stroke-dasharray: 16 12;
}

.lp-streets .rail {
    fill: none;
    stroke: rgba(27, 54, 93, 0.3);
    stroke-width: 1.2;
}

.lp-streets .ties {
    fill: none;
    stroke: rgba(27, 54, 93, 0.3);
    stroke-width: 7;
    stroke-dasharray: 1.2 9;
}

.lp-streets .station {
    fill: #fff;
    stroke: var(--lp-teal);
    stroke-width: 2;
}

.lp-section-head {
    max-width: 720px;
    margin-bottom: 44px;
}

/* "01 — OBJETIVOS" seguido de una regla graduada */
.lp-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    font-family: var(--lp-mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-accent);
}

.lp-eyebrow b {
    padding: 0.1rem 0.4rem;
    border: 1px solid rgba(27, 54, 93, 0.3);
    font-weight: 600;
    color: var(--lp-navy);
}

.lp-eyebrow::after {
    content: '';
    flex: 1;
    max-width: 260px;
    height: 7px;
    border-bottom: 1px solid rgba(27, 54, 93, 0.3);
    background: repeating-linear-gradient(90deg, rgba(27, 54, 93, 0.3) 0 1px, transparent 1px 10px);
    background-size: 100% 4px;
    background-position: bottom;
    background-repeat: no-repeat;
}

.lp-section-title {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--lp-ink);
}

.lp-section-lead {
    margin-top: 1rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* ─── Objetivos ──────────────────────────────────────────────────────────── */
.lp-objectives {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* Marcas de corte en las esquinas de los objetivos */
.lp-objective::before,
.lp-objective::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: rgba(27, 54, 93, 0.35);
    border-style: solid;
    pointer-events: none;
}

.lp-objective::before {
    top: 10px;
    left: 10px;
    border-width: 1px 0 0 1px;
}

.lp-objective::after {
    right: 10px;
    bottom: 10px;
    border-width: 0 1px 1px 0;
}

.lp-objective {
    border-radius: 6px;
    padding: 26px 24px 28px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.lp-objective:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 20px 50px rgba(23, 35, 58, 0.09);
}

.lp-objective-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.6rem;
}

.lp-objective-num {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lp-accent);
}

.lp-objective-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-navy);
    background: var(--lp-tint);
    border: 1px solid rgba(27, 54, 93, 0.08);
}

.lp-objective-icon svg {
    width: 19px;
    height: 19px;
}

.lp-objective h3 {
    position: relative;
    font-size: 1.3rem;
    color: var(--lp-ink);
    margin-bottom: 0.5rem;
}

.lp-objective p {
    position: relative;
    font-size: 0.93rem;
    color: var(--text-secondary);
}

/* ─── Carrusel de cifras ─────────────────────────────────────────────────── */
.lp-carousel-viewport {
    border-radius: 28px;
    overflow: hidden;
    touch-action: pan-y;
}

.lp-carousel-track {
    position: relative;
    display: grid;
}

.lp-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 40px;
    padding: 44px 48px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(28px);
    filter: blur(6px);
    transition: opacity 0.6s var(--lp-ease), transform 0.6s var(--lp-ease), filter 0.6s var(--lp-ease), visibility 0s linear 0.6s;
}

/* La foto va de fondo, difuminada y velada hacia la columna de texto */
.lp-slide {
    position: relative;
    overflow: hidden;
}

.lp-slide-photo {
    position: absolute;
    inset: -12px;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: blur(3px) grayscale(0.3) saturate(0.8);
    opacity: 0.9;
    pointer-events: none;
}

.lp-slide-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg,
        rgba(246, 247, 249, 0.97) 0%,
        rgba(246, 247, 249, 0.92) 38%,
        rgba(246, 247, 249, 0.62) 70%,
        rgba(246, 247, 249, 0.5) 100%);
}

.lp-slide-info,
.lp-slide-chart {
    z-index: 1;
}

.lp-slide-source a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(100, 116, 139, 0.4);
}

.lp-slide.is-before {
    transform: translateX(-28px);
}

.lp-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: none;
    transition: opacity 0.6s var(--lp-ease), transform 0.6s var(--lp-ease), filter 0.6s var(--lp-ease), visibility 0s;
}

.lp-slide-info {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lp-slide-module {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.35rem 0.8rem 0.35rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.lp-slide-module-logo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
    color: var(--slide-accent);
}

.lp-slide-module-logo img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.lp-slide-module-logo svg {
    width: 13px;
    height: 13px;
}

.lp-big {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 0.6rem;
    margin: 1.6rem 0 0.4rem;
    font-family: var(--font-heading);
    color: var(--lp-ink);
}

.lp-big-prefix {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--slide-accent);
}

.lp-big-num {
    font-size: clamp(3.8rem, 8vw, 6.4rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    color: var(--lp-ink);
}

.lp-big-unit {
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
    font-weight: 600;
    color: var(--slide-accent);
}

.lp-slide-phrase {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 30em;
}

.lp-slide-phrase strong {
    color: var(--lp-ink);
    font-weight: 700;
}

.lp-slide-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 1.6rem;
}

.lp-slide-stat {
    padding: 0.8rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.lp-slide-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--lp-ink);
    line-height: 1.2;
}

.lp-slide-stat span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.lp-slide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    margin-top: auto;
    padding-top: 1.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--slide-accent);
    text-decoration: none;
}

.lp-slide-link svg {
    transition: transform var(--transition-fast);
}

.lp-slide-link:hover svg {
    transform: translateX(3px);
}

.lp-slide-chart {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 20px 20px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(23, 35, 58, 0.05);
}

.lp-slide-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 10px;
}

.lp-slide-chart-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--lp-ink);
}

/* Micro-leyenda en cabecera (estándar catlec-bar-chart) */
.lp-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
    font-size: 0.63rem;
    flex-shrink: 0;
}

.lp-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.lp-legend-swatch {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}

.lp-legend-swatch--line {
    border-radius: 50%;
}

.lp-slide-canvas {
    position: relative;
    flex: 1;
    min-height: 300px;
}

.lp-slide-source {
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.lp-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.lp-carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lp-ink);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.lp-carousel-arrow:hover {
    transform: scale(1.06);
}

.lp-carousel-arrow svg {
    position: relative;
    width: 20px;
    height: 20px;
}

.lp-carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.lp-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(100, 116, 139, 0.35);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.lp-dot:hover {
    background: rgba(100, 116, 139, 0.6);
}

.lp-dot.is-active {
    background: var(--lp-ink);
    transform: scale(1.35);
}

/* Barra de progreso del autoplay: muy delgada, se rellena a lo largo de la
   diapositiva activa; su animationend avanza el carrusel, así que pausar la
   animación (hover, foco, fuera de pantalla) pausa también el avance. */
.lp-carousel-progress {
    height: 2px;
    margin: 14px 0 2px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.18);
    overflow: hidden;
}

.lp-carousel-progress-fill {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: rgba(100, 116, 139, 0.45);
}

.lp-carousel.is-autoplay .lp-carousel-progress-fill {
    animation: lp-progress var(--lp-autoplay-ms, 7000ms) linear forwards;
}

.lp-carousel.is-paused .lp-carousel-progress-fill {
    animation-play-state: paused;
}

@keyframes lp-progress {
    to { transform: scaleX(1); }
}

/* ─── Proyectos destacados ───────────────────────────────────────────────── */
/* Franja a todo el ancho de la pantalla, como la foto de portada (.lp-band):
   la foto o el trazado ocupan la columna izquierda, de borde a borde, y la
   ficha la derecha. El alto sigue al ancho (~2,3:1 para la imagen), así la
   franja es baja sin recortar demasiado las fotos 16:10. Reutiliza la mecánica del carrusel de cifras
   (.lp-carousel-*, .lp-slide, .lp-dot). */
.lp-section--featured {
    padding: 64px 0 56px;
}

.lp-section--featured .lp-section-head {
    margin-bottom: 28px;
}

.lp-carousel--featured .lp-carousel-viewport {
    border-radius: 0;
    border-top: 1px solid var(--lp-line);
    border-bottom: 1px solid var(--lp-line);
    background: var(--lp-art-fill);
}

/* La barra del autoplay corre pegada al borde inferior de la franja */
.lp-carousel--featured .lp-carousel-progress {
    margin: 0;
    border-radius: 0;
}

.lp-slide.lp-feature {
    /* La ficha crece con la pantalla hasta un ancho de lectura cómodo; el
       escenario toma el resto del ancho. */
    grid-template-columns: minmax(0, 1fr) clamp(440px, 36vw, 680px);
    gap: 0;
    padding: 0;
    min-height: clamp(380px, 28vw, 540px);
}

/* Transición: deslizamiento horizontal simple (featured.js, slideTo), sin el
   fundido, desenfoque ni corrimiento de .lp-slide. La saliente sigue visible
   (.is-leaving) mientras sale. */
.lp-slide.lp-feature,
.lp-slide.lp-feature.is-before,
.lp-slide.lp-feature.is-active {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
}

.lp-slide.lp-feature {
    visibility: hidden;
}

.lp-slide.lp-feature.is-active,
.lp-slide.lp-feature.is-leaving {
    visibility: visible;
}

.lp-feature-stage {
    position: relative;
    grid-column: 1;
    overflow: hidden;
    background: #fbfcfd;
}

/* Escenario con foto */
.lp-feature-stage--photo {
    background: var(--lp-art-far);
}

.lp-feature-photo {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.9s var(--lp-ease);
}

.lp-feature-photo.is-shown {
    opacity: 1;
}

.lp-feature-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: saturate(0.85);
    transform-origin: 60% 45%;
}

/* Acercamiento lento mientras la diapositiva está activa */
.lp-slide.is-active .lp-feature-photo img {
    animation: lp-kenburns 16s ease-out both;
}

@keyframes lp-kenburns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.lp-feature-photo::after {
    content: '';
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(180deg, transparent, rgba(23, 35, 58, 0.55));
    pointer-events: none;
}

/* Rótulo de la infraestructura y nota de IA abajo a la izquierda (a la
   derecha va la ficha) */
.lp-feature-photo figcaption {
    position: absolute;
    left: 24px;
    bottom: 44px;
    z-index: 1;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.86);
    font-family: var(--lp-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lp-ink);
}

.lp-feature-ai-note {
    position: absolute;
    left: 24px;
    bottom: 18px;
    z-index: 2;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* Escenario con trazado: papel milimetrado de fondo */
.lp-feature-stage--route {
    /* Color oficial de la línea (--route-color), apagado hacia el pizarra de
       la paleta; lo usan el trazado, los pines y la leyenda. */
    --line-color: color-mix(in srgb, var(--route-color) 66%, #475569);
    background-color: #fbfcfd;
    background-image: var(--lp-graph-paper);
    background-size: var(--lp-graph-paper-size);
    background-position: -1px -1px;
}

.lp-feature-map {
    position: absolute;
    inset: 0;
}

/* Mapa de referencia (MapLibre, Positron) bajo el trazado: entra con un
   fundido cuando termina de cargar y queda algo velado para que la línea
   mande; sus créditos van al pie de la ficha (featured.js, MAP_CREDIT).
   (Selector con el contenedor para ganarle a .maplibregl-map
   { position: relative } de maplibre-gl.css.) */
.lp-feature-map .lp-feature-basemap {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.lp-feature-map .lp-feature-basemap.is-ready {
    opacity: 0.82;
}

.lp-feature-route {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ── Trazado SVG (route-art.js) ── */
/* Absoluto: su tamaño nunca empuja al contenedor (featured.js lo redibuja
   con la proporción medida del contenedor). */
.lp-route {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.lp-route-context {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.lp-route.is-drawing .lp-route-context,
.lp-route.is-drawn .lp-route-context {
    opacity: 1;
}

.lp-route-ctx {
    fill: none;
    stroke: rgba(27, 54, 93, 0.22);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-route-ctx--rail {
    stroke: rgba(27, 54, 93, 0.24);
    stroke-width: 1.1;
}

.lp-route-ctx-ties {
    fill: none;
    stroke: rgba(27, 54, 93, 0.2);
    stroke-width: 5;
    stroke-dasharray: 1 6;
}

/* Máscara que revela el tramo: trazo blanco ancho con pathLength=1 */
.lp-route-reveal {
    fill: none;
    stroke: #fff;
    stroke-width: 24;
    stroke-linecap: butt;
    stroke-linejoin: round;
    stroke-dasharray: 1 1;
    stroke-dashoffset: 1;
}

.lp-route.is-drawing .lp-route-reveal {
    animation: lp-route-draw var(--t) linear var(--d) forwards;
}

.lp-route.is-drawn .lp-route-reveal {
    stroke-dashoffset: 0;
}

@keyframes lp-route-draw {
    to { stroke-dashoffset: 0; }
}

.lp-route-casing,
.lp-route-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-route-casing {
    stroke: #fff;
    stroke-width: 9;
}

.lp-route-line {
    stroke: var(--line-color);
    stroke-width: 4.5;
}

/* Pines: caen en orden de recorrido cuando la línea está completa */
.lp-route-pin {
    --pin-delay: calc(var(--pins-at) + var(--i) * var(--pin-step));
    opacity: 0;
    cursor: default;
    pointer-events: auto;
}

.lp-route.is-drawing .lp-route-pin {
    animation: lp-pin-in 0.3s ease var(--pin-delay) both;
}

.lp-route.is-drawn .lp-route-pin {
    opacity: 1;
}

.lp-route-pin-head {
    transform-box: fill-box;
    transform-origin: 50% 100%;
}

.lp-route.is-drawing .lp-route-pin-head {
    animation: lp-pin-drop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) var(--pin-delay) both;
}

@keyframes lp-pin-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lp-pin-drop {
    from { transform: translateY(-12px) scale(0.4); }
    to { transform: none; }
}

.lp-route-stop {
    fill: #fff;
    stroke: var(--line-color);
    stroke-width: 1.6;
}

.lp-route-pin-head path {
    fill: var(--line-color);
    stroke: #fff;
    stroke-width: 1.2;
}

.lp-route-pin-head circle {
    fill: #fff;
}

.lp-route-label {
    font-family: var(--lp-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    fill: var(--lp-ink);
    paint-order: stroke;
    stroke: rgba(251, 252, 253, 0.94);
    stroke-width: 4;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.lp-route-pin.is-terminal .lp-route-label,
.lp-route-pin:hover .lp-route-label {
    opacity: 1;
}

.lp-route-scale path {
    fill: none;
    stroke: var(--lp-slate);
    stroke-width: 1.2;
}

.lp-route-scale text,
.lp-route-north text {
    font-family: var(--lp-mono);
    font-size: 10px;
    font-weight: 500;
    fill: var(--lp-slate);
}

.lp-route-north path {
    fill: var(--lp-slate);
}

/* ── Ficha ── */
.lp-feature-info {
    grid-column: 2;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(16px, 1.5vw, 28px) clamp(22px, 2.2vw, 44px);
    background: #fbfcfd;
    border-left: 1px solid var(--lp-line);
}

.lp-feature-title {
    margin-top: 0.8rem;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 1.6vw, 2.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--lp-ink);
}

/* Frase breve: a lo más dos líneas */
.lp-feature-phrase {
    margin-top: 0.45rem;
    font-size: clamp(0.88rem, 0.82vw, 1rem);
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Los dos KPI lado a lado (se apilan solo si la ficha es muy angosta) */
.lp-feature-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    column-gap: 1.2rem;
    margin-top: 0.7rem;
}

.lp-feature-kpi {
    padding: 0.55rem 0 0.45rem;
    border-top: 1px solid var(--lp-line);
}

.lp-feature-kpi-label {
    font-family: var(--lp-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--lp-slate);
}

.lp-big--feature {
    margin: 0.15rem 0 0;
}

.lp-big--feature {
    column-gap: 0.4rem;
}

.lp-big--feature .lp-big-num {
    font-size: clamp(2rem, 2.3vw, 3.2rem);
}

.lp-big--feature .lp-big-prefix,
.lp-big--feature .lp-big-unit {
    font-size: clamp(0.95rem, 1vw, 1.35rem);
}

/* Con un escenario más alto que la ficha, el cuerpo queda centrado entre la
   etiqueta del módulo (arriba) y el pie (abajo). */
.lp-feature-body {
    margin: auto 0;
}

.lp-feature-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    padding-top: 0.8rem;
}

.lp-feature-foot .lp-slide-link {
    margin-top: 0;
    padding-top: 0;
}

.lp-feature-foot .lp-slide-source {
    margin-top: 0;
    line-height: 1.5;
    text-align: right;
}

/* ─── Módulos del Observatorio: lista de módulos + panel de cifras ──────── */
/* Contenedor más ancho que el estándar: las dos columnas llenan los costados */
.lp-container--wide {
    max-width: 1440px;
}

.lp-hub {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* Sobrescribe el centrado de .lp-carousel-dots: ítems a todo el ancho */
.lp-hub-list {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    gap: 6px;
}

.lp-hub-item {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.lp-hub-item:hover {
    background: rgba(255, 255, 255, 0.55);
}

.lp-hub-item.is-active {
    background: #fff;
    border-color: rgba(27, 54, 93, 0.12);
    box-shadow: 0 6px 20px rgba(23, 35, 58, 0.06);
}

.lp-hub-item-logo {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
    color: var(--lp-accent);
}

.lp-hub-item-logo img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.lp-hub-item-logo svg {
    width: 17px;
    height: 17px;
}

.lp-hub-item-name {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--lp-ink);
}

/* Descripción en a lo más dos líneas */
.lp-hub-item-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* La barra de autoplay vive dentro del módulo activo (progressInDot) */
.lp-hub > .lp-carousel-progress-fill {
    display: none;
}

.lp-hub-item .lp-carousel-progress-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 2px;
}

.lp-hub .lp-slide {
    padding: 36px 40px;
}

/* Pie del panel: botón al módulo y enlace al análisis de la cifra */
.lp-slide-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1.1rem;
    margin-top: auto;
    padding-top: 1.4rem;
}

.lp-slide-actions .lp-slide-link {
    margin-top: 0;
    padding-top: 0;
}

/* ─── Autores ────────────────────────────────────────────────────────────── */
.lp-authors-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(46%, 620px);
    z-index: 0;
    background-size: cover;
    background-position: center 30%;
    filter: grayscale(0.6) contrast(0.95);
    opacity: 0.32;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
    pointer-events: none;
}

.lp-authors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 880px;
}

.lp-author {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 24px;
    border-radius: var(--radius-lg);
}

.lp-author-avatar {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    background: var(--lp-gradient);
    box-shadow: 0 8px 20px rgba(23, 35, 58, 0.14);
}

.lp-author-body {
    position: relative;
    min-width: 0;
}

.lp-author-name {
    font-size: 1.2rem;
    color: var(--lp-ink);
}

.lp-author-role {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.lp-author-mail {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lp-accent);
    text-decoration: none;
    word-break: break-all;
}

.lp-author-mail:hover {
    text-decoration: underline;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.lp-footer {
    padding: 28px 0 36px;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    background: rgba(255, 255, 255, 0.4);
}

.lp-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.lp-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 600;
    color: var(--lp-ink);
}

.lp-brand-udec-shield {
    height: 38px;
    width: auto;
    display: block;
}

.lp-credits {
    margin-top: 14px;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.lp-credits summary {
    cursor: pointer;
    width: max-content;
    font-weight: 600;
    color: var(--text-secondary);
}

.lp-credits ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 4px 24px;
    margin-top: 10px;
}

.lp-credits a {
    color: var(--lp-accent);
}

.lp-footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.lp-footer-funding {
    font-weight: 600;
    color: var(--lp-ink);
}

.lp-footer-note {
    color: var(--text-muted);
}

/* ─── Página "Acerca del Observatorio" (acerca.html) ─────────────────────── */
/* Encabezado de página: más bajo que el hero, sobre el papel milimetrado */
.lp-page-head {
    position: relative;
    padding: calc(var(--lp-header-h) + 72px) 0 64px;
    overflow: hidden;
}

/* Alineado con el resto de las secciones; solo el texto se limita de ancho */
.lp-page-head-content {
    position: relative;
}

.lp-page-head-content > * {
    max-width: 820px;
}

.lp-page-title {
    margin: 1rem 0 0.6rem;
    font-size: clamp(2.3rem, 5vw, 4rem);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--lp-ink);
}

/* Institución y financiamiento: dos tarjetas lado a lado */
.lp-institution {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.lp-institution-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 24px;
    border-radius: 6px;
}

.lp-institution-card h3 {
    font-size: 1.15rem;
    color: var(--lp-ink);
    margin-bottom: 0.25rem;
}

.lp-institution-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.lp-institution-shield {
    width: 52px;
    height: auto;
    flex-shrink: 0;
}

.lp-institution-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lp-tint);
    color: var(--lp-navy);
}

.lp-institution-icon svg {
    width: 22px;
    height: 22px;
}

/* Enlace de texto al pie de una sección (landing → acerca y viceversa) */
.lp-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 28px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--lp-accent);
    text-decoration: none;
}

.lp-more-link svg {
    transition: transform var(--transition-fast);
}

.lp-more-link:hover svg {
    transform: translateX(3px);
}

.lp-footer-funding a {
    color: inherit;
}

/* ─── Aparición al hacer scroll ──────────────────────────────────────────── */
.lp-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s var(--lp-ease), transform 0.8s var(--lp-ease);
    transition-delay: var(--lp-reveal-delay, 0ms);
}

.lp-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ─── Colabora: encuesta del IPI-CATLEC ─────────────────────────────────── */
.lp-section--survey {
    background-image: var(--lp-graph-paper);
    background-size: var(--lp-graph-paper-size);
}

.lp-survey {
    max-width: 720px;
}

.lp-survey-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    font-family: var(--lp-mono);
    font-size: 0.8rem;
    color: var(--lp-navy);
}

.lp-survey-facts li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.lp-survey-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 32px;
}

.lp-survey-ext {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--lp-accent);
    text-decoration: none;
}

.lp-survey-ext:hover {
    color: var(--lp-navy);
    text-decoration: underline;
}

/* Ventana: reutiliza .about-modal-* de styles.css; solo cambia lo propio */
.lp-modal-open,
.lp-modal-open body {
    overflow: hidden;
}

/* Sin cabecera: el formulario llega arriba y la X flota fuera de la esquina,
   así que el contenedor no recorta (overflow visible) y el cuerpo redondea. */
.lp-survey-modal-container {
    position: relative;
    max-width: 760px;
    height: 88vh;
    overflow: visible;
}

.lp-survey-close {
    position: absolute;
    top: 0;
    right: -52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--lp-ink);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
    cursor: pointer;
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.lp-survey-close:hover {
    background: #fff;
    transform: scale(1.06);
}

.lp-survey-close svg {
    width: 20px;
    height: 20px;
}

.lp-survey-modal-body {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: #f8fafc;
}

.lp-survey-modal-body iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.lp-survey-modal-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--lp-mono);
    font-size: 0.8rem;
    color: var(--lp-slate);
}

.lp-survey-modal-body.is-loaded .lp-survey-modal-loading {
    display: none;
}

.lp-survey-modal-foot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0.7rem 1.4rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: var(--lp-slate);
}

/* "Cerrar" del pie: solo cuando la X no cabe fuera de la ventana */
.lp-survey-foot-close {
    display: none;
    flex-shrink: 0;
    height: 34px;
    padding: 0 1rem;
    border: 1px solid var(--lp-navy);
    border-radius: 10px;
    background: var(--lp-navy);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.lp-survey-modal-foot a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    color: var(--lp-accent);
}

@media (max-width: 640px) {
    /* El cajón de pestañas ya trae "Colabora": el header deja solo "Ingresar" */
    .lp-survey-header-btn {
        display: none;
    }

    .lp-survey-modal {
        padding: 0;
    }

    .lp-survey-modal-container {
        max-width: none;
        height: 100%;
        max-height: none;
        border-radius: 0;
        border: 0;
    }

    .lp-survey-modal-body {
        border-radius: 0;
    }

    .lp-survey-modal-foot {
        padding: 0.6rem 1rem;
    }
}

/* Sin espacio a la derecha de la ventana para la X: se cierra con "Cerrar" */
@media (max-width: 900px) {
    .lp-survey-close {
        display: none;
    }

    .lp-survey-foot-close {
        display: inline-flex;
        align-items: center;
    }
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .lp-art-callout {
        display: none;
    }
}

@media (max-width: 1100px) {
    .lp-objectives {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lp-band-objectives {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .lp-slide {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding: 32px 28px;
    }

    .lp-slide-link {
        margin-top: 0;
    }

    /* Lista de módulos: una fila de chips deslizable sobre el panel */
    .lp-hub {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-hub-list {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        gap: 8px;
        padding-bottom: 4px;
    }

    .lp-hub-list::-webkit-scrollbar {
        display: none;
    }

    .lp-hub-item {
        flex: 0 0 auto;
        grid-template-columns: 28px auto;
        padding: 8px 12px;
    }

    .lp-hub-item-logo {
        grid-row: auto;
        width: 28px;
        height: 28px;
    }

    .lp-hub-item-desc {
        display: none;
    }

    .lp-hub .lp-slide {
        padding: 32px 28px;
    }

    .lp-slide.lp-feature {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
        padding: 0;
        gap: 0;
    }

    .lp-feature-stage {
        grid-column: auto;
        aspect-ratio: 16 / 9;
    }

    .lp-feature-info {
        grid-column: auto;
        padding: 24px 28px 28px;
        background: transparent;
        border-left: 0;
    }
}

@media (max-width: 900px) {
    .lp-menu-toggle {
        display: inline-flex;
    }

    /* Pestañas en un panel a todo el ancho bajo la franja del header */
    .lp-tabs {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 8px 12px 12px;
        background: rgba(255, 255, 255, 0.96);
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 14px 30px rgba(23, 35, 58, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px) scale(0.98);
        transform-origin: top center;
        transition: opacity 0.22s var(--lp-ease), transform 0.22s var(--lp-ease), visibility 0s linear 0.22s;
    }

    .lp-header.menu-open .lp-tabs {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: opacity 0.22s var(--lp-ease), transform 0.22s var(--lp-ease), visibility 0s;
    }

    .lp-tab {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .lp-tab.active::after {
        display: none;
    }

    .lp-tab.active {
        background: var(--lp-tint);
    }

    .lp-header-inner {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .lp-container {
        padding: 0 16px;
    }

    .lp-header-inner {
        padding: 0 12px 0 16px;
        gap: 0.5rem;
    }

    .lp-brand {
        gap: 0.5rem;
    }

    .lp-brand-udec {
        height: 34px;
    }

    .lp-brand-catlec {
        height: 40px;
        margin: 0 -12px 0 -14px;
    }

    .lp-section {
        padding: 72px 0;
    }

    .lp-objectives,
    .lp-authors,
    .lp-institution {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-page-head {
        padding: calc(var(--lp-header-h) + 44px) 0 48px;
    }

    .lp-slide,
    .lp-hub .lp-slide {
        padding: 24px 18px;
    }

    .lp-slide-chart {
        padding: 14px 12px 10px;
    }

    .lp-slide-chart-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .lp-legend {
        justify-content: flex-start;
    }

    .lp-slide-canvas {
        min-height: 260px;
    }

    .lp-slide.lp-feature {
        padding: 0;
    }

    .lp-feature-info {
        padding: 20px 16px 24px;
    }

    .lp-feature-stage--route {
        aspect-ratio: 4 / 3;
    }

    .lp-slide-photo::after {
        background: rgba(246, 247, 249, 0.9);
    }

    .lp-band {
        min-height: 0;
    }

    .lp-band-objectives {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .lp-authors-photo {
        width: 70%;
        opacity: 0.18;
    }

    .lp-carousel-arrow {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .lp-author {
        padding: 18px;
    }

    .lp-footer-meta {
        align-items: flex-start;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.landing-root {
        scroll-behavior: auto;
    }


    .lp-band-img {
        transform: none;
        will-change: auto;
    }

    .lp-reveal,
    .lp-slide {
        transition: none;
        transform: none;
        filter: none;
    }

    .lp-reveal {
        opacity: 1;
    }

    .lp-slide.is-active .lp-feature-photo img {
        animation: none;
    }

    .lp-feature-photo {
        transition: none;
    }
}
