/* Landing — Programa EAGLES 2026 · UPeU
   Identidad del PDF oficial: navy #153460 · celeste #57ABF3 · granate #8B1D3A */

:root {
    --navy: #153460;
    --navy-2: #1D3F74;
    --navy-3: #0E2547;
    --celeste: #57ABF3;
    --ola-clara: #90C1E8;
    --ola-profunda: #3A78B5;
    --granate: #8B1D3A;
    --celeste-suave: #DCEBFA;
    --fondo: #F4F8FC;
    --texto: #16233a;
    --texto-suave: #4a5c78;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
    font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--texto);
    background: var(--fondo);
    overflow-x: hidden;
}

img { max-width: 100%; }

/* ── Navegación ───────────────────────────────────────────── */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 22px;
    background: rgba(14, 37, 71, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(87, 171, 243, .18);
}

.nav-marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-marca img { height: 34px; border-radius: 6px; }

.nav-enlaces { display: flex; gap: 4px; flex-wrap: wrap; }

.nav-enlaces a {
    color: #cfe2f7;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    transition: background .2s, color .2s;
}

.nav-enlaces a:hover, .nav-enlaces a.activo { background: rgba(87, 171, 243, .18); color: #fff; }

.nav-cta {
    background: var(--celeste);
    color: #fff !important;
    font-weight: 700 !important;
}
.nav-cta:hover { background: var(--ola-profunda) !important; }

@media (max-width: 720px) {
    .nav-enlaces a:not(.nav-cta) { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--navy);
    overflow: hidden;
}

.hero-foto {
    position: absolute;
    inset: 0;
    background: url('/img/hero.jpg') center 18% / cover no-repeat;
    opacity: .38;
}

.hero-velo {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14,37,71,.55) 0%, rgba(21,52,96,.82) 55%, var(--navy) 88%);
}

.hero-contenido {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 20px 40px;
    max-width: 880px;
    margin: 0 auto;
}

.hero-logo {
    display: block;
    width: min(520px, 90%);
    height: auto;
    margin: 0 auto 22px;
    filter: drop-shadow(0 12px 34px rgba(0,0,0,.45));
}

.hero-modulo {
    display: inline-block;
    background: rgba(21,52,96,.45);
    border: 1.5px solid rgba(87,171,243,.6);
    color: #dcebfa;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: .78rem;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.hero-sub { color: #dbe9f8; font-size: 1.12rem; font-weight: 500; max-width: 620px; margin: 0 auto 22px; line-height: 1.55; }

.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }

.chip {
    background: rgba(87,171,243,.14);
    border: 1px solid rgba(87,171,243,.35);
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    padding: 9px 16px;
    border-radius: 999px;
}

.chip-vivo {
    background: rgba(139,29,58,.35);
    border-color: rgba(255,120,150,.5);
}

.punto-vivo {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #ff5d7e;
    margin-right: 7px;
    animation: pulso 1.4s infinite;
}

@keyframes pulso {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,93,126,.55); }
    50% { box-shadow: 0 0 0 7px rgba(255,93,126,0); }
}

.hero-botones { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }

.boton-hero {
    display: inline-block;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.02rem;
    padding: 15px 30px;
    border-radius: 14px;
    transition: transform .2s, box-shadow .2s;
}

.boton-hero:hover { transform: translateY(-2px); }

.boton-hero.primario { background: var(--celeste); color: #fff; box-shadow: 0 8px 26px rgba(87,171,243,.4); }
.boton-hero.secundario { background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }

/* Chevrones flotantes (elemento gráfico del PDF) */
.chevron {
    position: absolute;
    width: 54px; height: 66px;
    opacity: .16;
    z-index: 1;
    animation: flotar 7s ease-in-out infinite;
}
.chevron svg { width: 100%; height: 100%; }
.chevron.c1 { top: 12%; left: 6%; animation-delay: 0s; }
.chevron.c2 { top: 24%; right: 8%; animation-delay: 1.6s; transform: scale(1.5); }
.chevron.c3 { bottom: 34%; left: 12%; animation-delay: 3.1s; transform: scale(.8) rotate(180deg); }
.chevron.c4 { top: 8%; right: 30%; animation-delay: 4.4s; transform: scale(.6); }

@keyframes flotar {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -18px; }
}

/* Olas animadas del hero */
.olas-hero { position: relative; z-index: 3; line-height: 0; }
.olas-hero svg { display: block; width: 100%; height: 90px; }
.ola-animada { animation: mecer 9s ease-in-out infinite alternate; }
.ola-animada.lenta { animation-duration: 13s; animation-direction: alternate-reverse; }

@keyframes mecer {
    from { transform: translateX(0); }
    to { transform: translateX(-44px); }
}

/* ── Secciones ────────────────────────────────────────────── */

.seccion { padding: 76px 20px; }

.seccion-int { max-width: 1060px; margin: 0 auto; }

.titulo-seccion { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; color: var(--navy); }

.titulo-seccion.claro { color: #fff; }

.subrayado {
    display: block;
    width: 74px; height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--celeste), var(--ola-profunda));
    margin: 14px 0 30px;
}

.centrado { text-align: center; }
.centrado .subrayado { margin-left: auto; margin-right: auto; }

/* Aparición al hacer scroll */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.revelar.visible { opacity: 1; transform: none; }

/* ── Bienvenida ───────────────────────────────────────────── */

.bienvenida-cuerpo { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }

@media (max-width: 820px) { .bienvenida-cuerpo { grid-template-columns: 1fr; } }

.bienvenida-texto p { line-height: 1.75; margin-bottom: 16px; color: var(--texto); font-size: 1.02rem; }

.bienvenida-texto details { margin-top: 4px; }
.bienvenida-texto summary {
    cursor: pointer;
    color: var(--ola-profunda);
    font-weight: 700;
    padding: 8px 0;
    list-style: none;
}
.bienvenida-texto summary::after { content: ' ▾'; }
.bienvenida-texto details[open] summary::after { content: ' ▴'; }
.bienvenida-texto details p:first-of-type { margin-top: 12px; }

.tarjeta-dato {
    background: linear-gradient(160deg, var(--navy), var(--navy-2));
    color: #fff;
    border-radius: 20px;
    padding: 30px 26px;
    box-shadow: 0 18px 44px rgba(21,52,96,.28);
}

.tarjeta-dato h3 { font-size: 1.15rem; margin-bottom: 14px; color: var(--celeste); }

.tarjeta-dato ul { list-style: none; }
.tarjeta-dato li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .95rem; line-height: 1.5; }
.tarjeta-dato li:last-child { border-bottom: none; }
.tarjeta-dato strong { color: var(--celeste); }

/* ── Ponentes ─────────────────────────────────────────────── */

.seccion-ponentes { background: linear-gradient(175deg, var(--navy) 0%, var(--navy-3) 100%); position: relative; }

.grilla-ponentes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 26px;
    margin-top: 10px;
}

.ponente {
    background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
    border: 1px solid rgba(87,171,243,.22);
    border-radius: 130px 130px 26px 26px;
    padding: 26px 20px 26px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}

.ponente:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,.35);
    border-color: rgba(87,171,243,.55);
}

.ponente-foto { position: relative; width: 168px; height: 168px; margin: 0 auto 16px; }

.ponente-foto img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(87,171,243,.5);
}

.bandera {
    position: absolute;
    bottom: 6px; right: 4px;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

.ponente h3 { color: #fff; font-size: 1.12rem; margin-bottom: 10px; }

.ponente-linea { width: 44px; height: 3px; background: var(--celeste); border-radius: 2px; margin: 0 auto 10px; }

.ponente p { color: #b9d4ef; font-size: .9rem; line-height: 1.5; }

/* ── Programa ─────────────────────────────────────────────── */

.tabs-dias { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

.tab-dia {
    border: 2px solid var(--celeste-suave);
    background: #fff;
    color: var(--navy);
    font-family: inherit;
    font-size: .98rem;
    font-weight: 800;
    border-radius: 16px;
    padding: 12px 22px;
    cursor: pointer;
    transition: all .2s;
    line-height: 1.3;
}

.tab-dia small { display: block; font-weight: 600; color: var(--texto-suave); font-size: .78rem; }

.tab-dia.activo {
    background: linear-gradient(160deg, var(--navy), var(--navy-2));
    border-color: var(--navy);
    color: #fff;
    box-shadow: 0 10px 24px rgba(21,52,96,.3);
}
.tab-dia.activo small { color: var(--ola-clara); }

.linea-tiempo { position: relative; max-width: 720px; margin: 0 auto; padding-left: 30px; display: none; }
.linea-tiempo.activo { display: block; }

.linea-tiempo::before {
    content: '';
    position: absolute;
    left: 7px; top: 8px; bottom: 8px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--celeste), var(--ola-profunda));
}

.actividad { position: relative; padding: 0 0 26px 24px; }

.actividad::before {
    content: '';
    position: absolute;
    left: -30px; top: 6px;
    width: 17px; height: 17px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--celeste);
    box-shadow: 0 0 0 4px rgba(87,171,243,.18);
}

.actividad-hora { font-weight: 800; color: var(--ola-profunda); font-size: .95rem; letter-spacing: .03em; }

.actividad-carta {
    margin-top: 6px;
    background: #fff;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 4px 18px rgba(21,52,96,.08);
    border-left: 4px solid var(--celeste);
    transition: transform .2s, box-shadow .2s;
}

.actividad-carta:hover { transform: translateX(4px); box-shadow: 0 8px 24px rgba(21,52,96,.14); }

.actividad-carta h4 { color: var(--navy); font-size: 1.02rem; line-height: 1.45; margin-bottom: 4px; }

.actividad-carta p { color: var(--texto-suave); font-size: .88rem; font-weight: 600; }

.actividad.pausa .actividad-carta { border-left-color: #c9d6e6; background: #eef3f9; }
.actividad.pausa::before { border-color: #c9d6e6; box-shadow: 0 0 0 4px rgba(201,214,230,.3); }

.actividad.cierre .actividad-carta { border-left-color: var(--granate); }
.actividad.cierre::before { border-color: var(--granate); box-shadow: 0 0 0 4px rgba(139,29,58,.15); }

.etiqueta-curso[hidden] { display: none; }

.etiqueta-curso {
    display: inline-block;
    background: var(--granate);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 3px 10px;
    border-radius: 999px;
    margin-left: 8px;
    animation: pulso 1.4s infinite;
    vertical-align: 2px;
}

/* ── Materiales ───────────────────────────────────────────── */

.seccion-materiales { background: #fff; }

.materiales-vacio {
    background: var(--celeste-suave);
    color: var(--navy);
    font-weight: 600;
    border-radius: 16px;
    padding: 26px 22px;
    max-width: 560px;
    margin: 0 auto;
}

.grupo-materiales { margin-bottom: 34px; text-align: left; }

.grupo-dia {
    display: inline-block;
    background: linear-gradient(160deg, var(--navy), var(--navy-2));
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    padding: 9px 20px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.grilla-materiales {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.material-carta {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--fondo);
    border: 1.5px solid #e3ecf5;
    border-radius: 18px;
    padding: 18px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.material-carta:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(21,52,96,.14);
    border-color: var(--ola-clara);
}

.material-carta.anuncio { background: var(--celeste-suave); border-color: var(--ola-clara); }

.material-icono {
    flex: 0 0 54px;
    width: 54px; height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(21,52,96,.12);
}

.material-cuerpo { flex: 1; min-width: 0; }
.material-cuerpo h4 { color: var(--navy); font-size: .98rem; line-height: 1.4; margin-bottom: 3px; }
.material-cuerpo p { color: var(--texto-suave); font-size: .85rem; line-height: 1.45; margin-bottom: 3px; }
.material-meta { color: var(--ola-profunda); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.material-boton {
    flex-shrink: 0;
    background: var(--ola-profunda);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .88rem;
    padding: 11px 16px;
    border-radius: 12px;
    white-space: nowrap;
    transition: background .2s, transform .2s;
}

.material-boton:hover { background: var(--navy-2); transform: scale(1.04); }

@media (max-width: 480px) {
    .material-carta { flex-wrap: wrap; }
    .material-boton { width: 100%; text-align: center; }
}

/* ── Información ──────────────────────────────────────────── */

.seccion-info { background: linear-gradient(180deg, var(--fondo), #e8f1fa); }

.grilla-clima { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 640px; margin: 0 auto 44px; }

@media (max-width: 560px) { .grilla-clima { grid-template-columns: 1fr; } }

.clima {
    background: #fff;
    border-radius: 999px;
    padding: 26px 14px;
    text-align: center;
    box-shadow: 0 8px 26px rgba(21,52,96,.1);
    transition: transform .2s;
}

.clima:hover { transform: translateY(-5px); }

.clima .dia { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.clima .fecha { color: var(--texto-suave); font-size: .85rem; font-weight: 600; }
.clima .icono { font-size: 2.3rem; margin: 10px 0; }
.clima .max { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.clima .min { font-size: 1.15rem; font-weight: 700; color: var(--ola-clara); }

.grilla-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }

.info-carta {
    background: #fff;
    border-radius: 20px;
    padding: 26px 24px;
    box-shadow: 0 8px 26px rgba(21,52,96,.1);
    border-top: 4px solid var(--celeste);
    transition: transform .2s, box-shadow .2s;
}

.info-carta:hover { transform: translateY(-5px); box-shadow: 0 16px 38px rgba(21,52,96,.16); }

.info-carta .icono { font-size: 1.9rem; margin-bottom: 10px; }
.info-carta h3 { color: var(--navy); font-size: 1.08rem; margin-bottom: 10px; }
.info-carta p { color: var(--texto-suave); font-size: .92rem; line-height: 1.65; }
.info-carta strong { color: var(--navy); }
.info-carta code {
    background: var(--celeste-suave);
    color: var(--navy);
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 6px;
    font-family: ui-monospace, Menlo, monospace;
    font-size: .88em;
}

/* ── CTA final ────────────────────────────────────────────── */

.cta-final {
    position: relative;
    background: linear-gradient(160deg, var(--navy), var(--navy-2));
    text-align: center;
    padding: 80px 20px;
    overflow: hidden;
}

.cta-final h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 12px; position: relative; z-index: 2; }
.cta-final p { color: #b9d4ef; margin-bottom: 26px; position: relative; z-index: 2; }
.cta-final .boton-hero { position: relative; z-index: 2; }

/* ── Pie ──────────────────────────────────────────────────── */

.pie-landing { background: var(--navy-3); text-align: center; padding: 30px 16px; }
.pie-landing .logos { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pie-landing .logos img { height: 46px; border-radius: 8px; }
.pie-landing p { color: #8fb4dc; font-size: .84rem; }
.pie-landing a { color: var(--celeste); }
