/* =========================================================
   COLEGIO D'UNI
   DISEÑO INSTITUCIONAL
   ROJO + AZUL
   MODO CLARO / OSCURO
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --rojo:
        #d90416;

    --rojo-claro:
        #ff4052;

    --azul:
        #1769e0;

    --azul-claro:
        #438cff;

    --azul-profundo:
        #050914;

    --azul-oscuro:
        #091b3b;

    --texto:
        #172033;

    --texto-suave:
        #667085;

    --fondo:
        #ffffff;

    --fondo-secundario:
        #f5f8ff;

    --tarjeta:
        #ffffff;

    --borde:
        rgba(23, 105, 224, .14);

    --blanco:
        #ffffff;

    --sombra:
        0 20px 50px rgba(10, 30, 70, .12);

    --sombra-suave:
        0 10px 30px rgba(10, 30, 70, .08);

    --radio:
        18px;

    --fuente-titulo:
        "Cormorant Garamond",
        Georgia,
        serif;

    --fuente:
        "Manrope",
        Arial,
        sans-serif;


    --gradiente-principal:

        linear-gradient(
            110deg,
            #050914 0%,
            #091b3b 35%,
            #123d82 68%,
            #430914 100%
        );


    --gradiente-rojo-azul:

        linear-gradient(
            110deg,
            var(--rojo) 0%,
            #c91632 35%,
            var(--azul) 100%
        );


    --gradiente-suave:

        linear-gradient(
            135deg,
            rgba(217, 4, 22, .07),
            rgba(23, 105, 224, .10)
        );


    --gradiente-hero:

        radial-gradient(
            circle at 10% 10%,
            rgba(217, 4, 22, .28),
            transparent 38%
        ),

        radial-gradient(
            circle at 90% 20%,
            rgba(23, 105, 224, .28),
            transparent 40%
        ),

        linear-gradient(
            135deg,
            #050914 0%,
            #091b3b 48%,
            #101f52 72%,
            #430914 125%
        );

}


/* =========================================================
   MODO OSCURO
   ========================================================= */

html[data-theme="dark"] {

    --fondo:
        #050914;

    --fondo-secundario:
        #071226;

    --tarjeta:
        #0a1630;

    --texto:
        #f5f7ff;

    --texto-suave:
        #aeb9cf;

    --borde:
        rgba(255,255,255,.10);

    --sombra:
        0 20px 55px rgba(0,0,0,.40);

    --sombra-suave:
        0 12px 35px rgba(0,0,0,.30);

}


/* =========================================================
   RESET
   ========================================================= */

* {

    margin:
        0;

    padding:
        0;

    box-sizing:
        border-box;

}


html {

    scroll-behavior:
        smooth;

}


body {

    margin:
        0;

    padding:
        0;

    min-height:
        100vh;

    font-family:
        var(--fuente);

    background:
        var(--fondo);

    color:
        var(--texto);

    transition:
        background .35s ease,
        color .35s ease;

    -webkit-font-smoothing:
        antialiased;

}


img {

    max-width:
        100%;

    display:
        block;

}


a {

    color:
        inherit;

    text-decoration:
        none;

}


button,
input,
textarea,
select {

    font-family:
        var(--fuente);

}


/* =========================================================
   TOPBAR
   Por seguridad queda oculta.
   El nuevo header ya no la utiliza.
   ========================================================= */

.topbar {

    display:
        none !important;

}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {

    position:
        sticky;

    top:
        0;

    left:
        0;

    width:
        100%;

    z-index:
        1000;

    transition:
        box-shadow .35s ease;

}


.site-header.is-scrolled {

    box-shadow:
        0 18px 45px rgba(0,0,0,.35);

}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar-dark {

    position:
        relative;

    width:
        100%;

    overflow:
        hidden;

    background:

        radial-gradient(
            circle at 5% 50%,
            rgba(217,4,22,.20),
            transparent 30%
        ),

        radial-gradient(
            circle at 85% 20%,
            rgba(23,105,224,.28),
            transparent 35%
        ),

        var(--gradiente-principal);

    border-bottom:
        1px solid
        rgba(255,255,255,.10);

}


.navbar-dark::before {

    content:
        "";

    position:
        absolute;

    width:
        500px;

    height:
        500px;

    left:
        -300px;

    top:
        -430px;

    border-radius:
        50%;

    background:

        radial-gradient(
            circle,
            rgba(217,4,22,.22),
            transparent 70%
        );

    pointer-events:
        none;

}


.navbar-dark::after {

    content:
        "";

    position:
        absolute;

    left:
        0;

    right:
        0;

    bottom:
        0;

    height:
        3px;

    background:

        linear-gradient(
            90deg,
            var(--rojo),
            var(--rojo-claro),
            var(--azul),
            var(--azul-claro)
        );

    box-shadow:
        0 0 18px rgba(23,105,224,.35);

}


/* =========================================================
   CONTENEDOR HEADER
   ========================================================= */

.navbar-dark__inner {

    width:
        min(1240px, calc(100% - 48px));

    min-height:
        96px;

    margin:
        0 auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        25px;

    position:
        relative;

    z-index:
        2;

}


/* =========================================================
   LOGO
   ========================================================= */

.brand {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    flex-shrink:
        0;

}


.brand__ring {

    width:
        92px;

    height:
        92px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    filter:
        drop-shadow(
            0 8px 18px rgba(0,0,0,.35)
        );

    transition:
        transform .3s ease;

}


.brand:hover
.brand__ring {

    transform:
        scale(1.05);

}


.brand__logo {

    width:
        100%;

    height:
        100%;

    object-fit:
        contain;

}


.brand__text {

    display:
        flex;

    flex-direction:
        column;

    line-height:
        1;

}


.brand__text strong {

    font-family:
        var(--fuente-titulo);

    font-size:
        29px;

    font-weight:
        700;

    color:
        #ffffff;

    letter-spacing:
        .5px;

}


.brand__text small {

    margin-top:
        6px;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        1.5px;

    color:
        var(--rojo-claro);

}


/* =========================================================
   MENÚ
   ========================================================= */

.nav-links-dark {

    list-style:
        none;

    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-end;

    gap:
        22px;

    margin:
        0;

    padding:
        0;

    flex:
        1;

}


.nav-links-dark > li {

    list-style:
        none;

    display:
        flex;

    align-items:
        center;

}


/* =========================================================
   ENLACES
   ========================================================= */

.nav-links-dark >
li >
a:not(.nav-whatsapp):not(.pill) {

    position:
        relative;

    display:
        inline-flex;

    align-items:
        center;

    padding:
        10px 2px;

    color:
        rgba(255,255,255,.90);

    font-size:
        14px;

    font-weight:
        700;

    white-space:
        nowrap;

    transition:
        color .25s ease;

}


.nav-links-dark >
li >
a:not(.nav-whatsapp):not(.pill)::after {

    content:
        "";

    position:
        absolute;

    left:
        50%;

    bottom:
        2px;

    width:
        0;

    height:
        2px;

    transform:
        translateX(-50%);

    background:

        linear-gradient(
            90deg,
            var(--rojo),
            var(--azul)
        );

    transition:
        width .3s ease;

}


.nav-links-dark >
li >
a:not(.nav-whatsapp):not(.pill):hover {

    color:
        #ffffff;

}


.nav-links-dark >
li >
a:not(.nav-whatsapp):not(.pill):hover::after {

    width:
        80%;

}


/* =========================================================
   GRUPO DERECHO
   WHATSAPP + CONTACTANOS + TEMA
   ========================================================= */

.nav-right-group {

    display:
        flex !important;

    align-items:
        center;

    gap:
        9px;

    margin-left:
        4px;

}


/* =========================================================
   WHATSAPP
   ========================================================= */

.nav-whatsapp {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    min-height:
        42px;

    padding:
        0 15px;

    border:
        1px solid
        rgba(255,255,255,.25);

    border-radius:
        999px;

    color:
        #ffffff !important;

    background:

        linear-gradient(
            135deg,
            rgba(217,4,22,.18),
            rgba(23,105,224,.28)
        );

    font-size:
        13px;

    font-weight:
        800;

    backdrop-filter:
        blur(10px);

    transition:
        .3s ease;

}


.nav-whatsapp svg {

    width:
        17px;

    height:
        17px;

    fill:
        currentColor;

}


.nav-whatsapp:hover {

    transform:
        translateY(-2px);

    background:

        linear-gradient(
            135deg,
            var(--rojo),
            var(--azul)
        );

    box-shadow:
        0 8px 25px rgba(23,105,224,.30);

}


/* =========================================================
   CONTACTANOS
   ========================================================= */

.pill {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        7px;

    border-radius:
        999px;

    white-space:
        nowrap;

}


.pill--cta {

    min-height:
        42px;

    padding:
        0 18px !important;

    color:
        #ffffff !important;

    background:

        linear-gradient(
            110deg,
            var(--rojo) 0%,
            #d5122d 38%,
            var(--azul) 100%
        ) !important;

    border:
        1px solid
        rgba(255,255,255,.22);

    font-size:
        13px;

    font-weight:
        800;

    box-shadow:
        0 8px 22px rgba(23,105,224,.20);

    transition:
        .3s ease;

}


.pill--cta:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 30px rgba(23,105,224,.35);

}


/* =========================================================
   BOTÓN TEMA
   ========================================================= */

.nav-theme {

    width:
        42px;

    height:
        42px;

    flex-shrink:
        0;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(255,255,255,.30);

    border-radius:
        50%;

    background:

        linear-gradient(
            135deg,
            rgba(217,4,22,.20),
            rgba(23,105,224,.30)
        );

    color:
        #ffffff;

    font-size:
        19px;

    cursor:
        pointer;

    outline:
        none;

    transition:
        .3s ease;

}


.theme-icon {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        100%;

    height:
        100%;

}


.nav-theme:hover {

    transform:
        translateY(-2px)
        rotate(8deg);

    background:

        linear-gradient(
            135deg,
            var(--rojo),
            var(--azul)
        );

    box-shadow:
        0 10px 28px rgba(23,105,224,.30);

}


/* =========================================================
   BOTÓN LOGIN
   ========================================================= */

.pill--login {

    min-height:
        42px;

    padding:
        0 16px;

    border:
        1px solid
        rgba(255,255,255,.28);

    color:
        #ffffff;

    background:

        linear-gradient(
            135deg,
            rgba(255,255,255,.06),
            rgba(255,255,255,.12)
        );

    font-size:
        13px;

    font-weight:
        800;

    cursor:
        pointer;

    backdrop-filter:
        blur(10px);

    transition:
        .3s ease;

}


.pill--login:hover {

    transform:
        translateY(-2px);

    border-color:
        rgba(255,255,255,.5);

    background:

        linear-gradient(
            135deg,
            var(--rojo),
            var(--azul)
        );

    box-shadow:
        0 8px 25px rgba(23,105,224,.30);

}


/* =========================================================
   MODAL LOGIN
   ========================================================= */

.login-modal {

    position:
        fixed;

    inset:
        0;

    z-index:
        999;

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

}


.login-modal.is-open {

    display:
        flex;

}


.login-modal__overlay {

    position:
        absolute;

    inset:
        0;

    background:
        rgba(5, 9, 20, .65);

    backdrop-filter:
        blur(4px);

}


.login-modal__box {

    position:
        relative;

    z-index:
        1;

    width:
        100%;

    max-width:
        400px;

    padding:
        38px 32px 32px;

    border-radius:
        var(--radio);

    background:
        var(--tarjeta);

    color:
        var(--texto);

    border:
        1px solid
        var(--borde);

    box-shadow:
        var(--sombra);

    animation:
        loginPop .25s ease;

}


@keyframes loginPop {

    from {

        opacity:
            0;

        transform:
            scale(.94)
            translateY(8px);

    }

    to {

        opacity:
            1;

        transform:
            scale(1)
            translateY(0);

    }

}


.login-modal__cerrar {

    position:
        absolute;

    top:
        14px;

    right:
        14px;

    width:
        32px;

    height:
        32px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        none;

    border-radius:
        50%;

    background:
        var(--fondo-secundario);

    color:
        var(--texto-suave);

    font-size:
        15px;

    cursor:
        pointer;

    transition:
        .25s ease;

}


.login-modal__cerrar:hover {

    background:
        var(--rojo);

    color:
        #ffffff;

}


.login-modal__box h2 {

    font-family:
        var(--fuente-titulo);

    font-size:
        1.7rem;

    font-weight:
        600;

    margin:
        0 0 6px;

}


.login-modal__sub {

    color:
        var(--texto-suave);

    font-size:
        .9rem;

    margin:
        0 0 24px;

}


.login-modal__box .campo {

    margin-bottom:
        18px;

}


.login-modal__box label {

    display:
        block;

    margin-bottom:
        7px;

    font-size:
        .82rem;

    font-weight:
        700;

    color:
        var(--texto);

}


.login-modal__box input {

    width:
        100%;

    min-height:
        46px;

    padding:
        0 14px;

    border-radius:
        12px;

    border:
        1px solid
        var(--borde);

    background:
        var(--fondo-secundario);

    color:
        var(--texto);

    font-size:
        .92rem;

    outline:
        none;

    transition:
        .25s ease;

}


.login-modal__box input:focus {

    border-color:
        var(--azul);

    box-shadow:
        0 0 0 3px rgba(23,105,224,.15);

}


.login-modal__box input.is-invalid {

    border-color:
        var(--rojo);

    box-shadow:
        0 0 0 3px rgba(217,4,22,.12);

}


.campo__error {

    display:
        block;

    min-height:
        16px;

    margin-top:
        6px;

    color:
        var(--rojo);

    font-size:
        .76rem;

    font-weight:
        600;

}


.login-modal__mensaje {

    display:
        none;

    margin-bottom:
        16px;

    padding:
        10px 14px;

    border-radius:
        10px;

    font-size:
        .82rem;

    font-weight:
        700;

}


.login-modal__mensaje.is-error {

    display:
        block;

    color:
        var(--rojo);

    background:
        rgba(217,4,22,.08);

}


.login-modal__mensaje.is-ok {

    display:
        block;

    color:
        #1a8f4c;

    background:
        rgba(26,143,76,.10);

}


.login-modal__submit {

    width:
        100%;

}


/* =========================================================
   MODO CLARO - HEADER
   ========================================================= */

html:not([data-theme="dark"])
.navbar-dark {

    background:

        radial-gradient(
            circle at 5% 50%,
            rgba(217,4,22,.07),
            transparent 30%
        ),

        radial-gradient(
            circle at 85% 20%,
            rgba(23,105,224,.10),
            transparent 35%
        ),

        linear-gradient(
            110deg,
            #ffffff 0%,
            #f4f7ff 50%,
            #edf3ff 75%,
            #fff0f2 100%
        );

    border-bottom:
        1px solid
        rgba(23,105,224,.15);

}


html:not([data-theme="dark"])
.brand__text strong {

    background:

        linear-gradient(
            100deg,
            #172033,
            var(--rojo),
            var(--azul)
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;

}


html:not([data-theme="dark"])
.nav-links-dark >
li >
a:not(.nav-whatsapp):not(.pill) {

    color:
        #172033;

}


html:not([data-theme="dark"])
.nav-links-dark >
li >
a:not(.nav-whatsapp):not(.pill):hover {

    color:
        var(--rojo);

}


html:not([data-theme="dark"])
.nav-whatsapp {

    color:
        #172033 !important;

    background:

        linear-gradient(
            135deg,
            rgba(217,4,22,.06),
            rgba(23,105,224,.10)
        );

    border-color:
        rgba(23,105,224,.20);

}


html:not([data-theme="dark"])
.nav-whatsapp svg {

    fill:
        var(--rojo);

}


html:not([data-theme="dark"])
.nav-theme {

    color:
        #172033;

    background:

        linear-gradient(
            135deg,
            rgba(217,4,22,.06),
            rgba(23,105,224,.10)
        );

    border-color:
        rgba(23,105,224,.20);

}


/* =========================================================
   MAIN
   ========================================================= */

main {

    width:
        100%;

    min-height:
        calc(100vh - 96px);

    background:
        var(--fondo);

    color:
        var(--texto);

    transition:
        background .35s ease,
        color .35s ease;

}


/* =========================================================
   TÍTULOS GENERALES
   ========================================================= */

main h1,
main h2,
main h3,
main h4 {

    font-family:
        var(--fuente-titulo);

    color:
        var(--texto);

    line-height:
        1.15;

}


main p {

    color:
        var(--texto-suave);

    line-height:
        1.75;

}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    position:
        relative;

    overflow:
        hidden;

    background:
        var(--gradiente-hero);

}


.hero::after {

    content:
        "";

    position:
        absolute;

    inset:
        0;

    background:

        linear-gradient(
            0deg,
            rgba(0,0,0,.16),
            transparent 45%
        ),

        repeating-linear-gradient(
            115deg,
            rgba(255,255,255,.018) 0px,
            rgba(255,255,255,.018) 1px,
            transparent 1px,
            transparent 90px
        );

    pointer-events:
        none;

}


.hero__inner {

    width:
        min(1180px, calc(100% - 48px));

    margin:
        0 auto;

    padding:
        105px 0 115px;

    display:
        grid;

    grid-template-columns:
        1.15fr .85fr;

    align-items:
        center;

    gap:
        50px;

    position:
        relative;

    z-index:
        1;

}


/* =========================================================
   HERO TEXTO
   ========================================================= */

.hero__text {

    position:
        relative;

    z-index:
        2;

}


.hero__text h1 {

    color:
        #ffffff;

    font-family:
        var(--fuente-titulo);

    font-size:
        clamp(
            2.8rem,
            5vw,
            4.4rem
        );

    font-weight:
        600;

    line-height:
        1.04;

    letter-spacing:
        -.035em;

    margin:
        0 0 25px;

}


.hero__text h1 em {

    font-style:
        normal;

    background:

        linear-gradient(
            100deg,
            #ffffff 0%,
            var(--rojo-claro) 42%,
            var(--azul-claro) 100%
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;

}


.hero__text p {

    color:
        rgba(255,255,255,.80);

    font-size:
        1.08rem;

    max-width:
        520px;

    margin:
        0 0 35px;

}


/* =========================================================
   EYEBROW
   ========================================================= */

.eyebrow {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        9px;

    margin-bottom:
        15px;

    padding:
        7px 13px;

    border:
        1px solid
        rgba(255,255,255,.18);

    border-radius:
        999px;

    color:
        var(--rojo-claro);

    background:
        rgba(255,255,255,.05);

    font-size:
        .72rem;

    font-weight:
        800;

    letter-spacing:
        .15em;

    text-transform:
        uppercase;

}


.eyebrow::before {

    content:
        "";

    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        var(--rojo);

    box-shadow:
        0 0 12px var(--rojo);

}


/* =========================================================
   BOTONES HERO
   ========================================================= */

.hero__actions {

    display:
        flex;

    align-items:
        center;

    gap:
        14px;

    flex-wrap:
        wrap;

}


.btn {

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    min-height:
        48px;

    padding:
        0 25px;

    border-radius:
        999px;

    font-size:
        .9rem;

    font-weight:
        800;

    transition:
        .3s ease;

}


.btn:hover {

    transform:
        translateY(-3px);

}


.btn--gold {

    color:
        #ffffff;

    background:

        linear-gradient(
            110deg,
            var(--rojo),
            #d5122d,
            var(--azul)
        );

    box-shadow:
        0 12px 30px rgba(23,105,224,.30);

}


.btn--outline {

    color:
        #ffffff;

    border:
        1px solid
        rgba(255,255,255,.35);

    background:
        rgba(255,255,255,.06);

    backdrop-filter:
        blur(8px);

}


.btn--outline:hover {

    border-color:
        var(--azul-claro);

    background:
        rgba(23,105,224,.15);

}


/* =========================================================
   LOGO DEL HERO
   ========================================================= */

.hero__logo {

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    position:
        relative;

}


.hero__logo::before {

    content:
        "";

    position:
        absolute;

    width:
        440px;

    height:
        440px;

    border-radius:
        50%;

    background:

        radial-gradient(
            circle,
            rgba(23,105,224,.24),
            rgba(217,4,22,.10),
            transparent 68%
        );

    filter:
        blur(4px);

}


.hero__logo img {

    width:
        400px;

    max-width:
        100%;

    position:
        relative;

    filter:
        drop-shadow(
            0 30px 55px rgba(0,0,0,.55)
        );

    animation:
        logoFloat 5s ease-in-out infinite;

    transition:
        transform .35s ease;

}


.hero__logo img:hover {

    transform:
        scale(1.04)
        translateY(-6px);

}


@keyframes logoFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-10px);

    }

}


/* =========================================================
   MODO CLARO - HERO
   ========================================================= */

html:not([data-theme="dark"]) .hero {

    background:

        radial-gradient(
            circle at 10% 10%,
            rgba(217, 4, 22, .10),
            transparent 40%
        ),

        radial-gradient(
            circle at 90% 20%,
            rgba(23, 105, 224, .12),
            transparent 42%
        ),

        linear-gradient(
            135deg,
            #ffffff 0%,
            #f4f7ff 45%,
            #edf3ff 70%,
            #fff0f2 120%
        );

}


html:not([data-theme="dark"]) .hero::after {

    background:

        linear-gradient(
            0deg,
            rgba(255,255,255,.25),
            transparent 45%
        ),

        repeating-linear-gradient(
            115deg,
            rgba(23,105,224,.03) 0px,
            rgba(23,105,224,.03) 1px,
            transparent 1px,
            transparent 90px
        );

}


html:not([data-theme="dark"]) .hero__text h1 {

    color:
        var(--texto);

}


html:not([data-theme="dark"]) .hero__text h1 em {

    background:

        linear-gradient(
            100deg,
            var(--texto) 0%,
            var(--rojo) 42%,
            var(--azul) 100%
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;

}


html:not([data-theme="dark"]) .hero__text p {

    color:
        var(--texto-suave);

}


html:not([data-theme="dark"]) .eyebrow {

    border-color:
        rgba(23,105,224,.20);

    background:
        rgba(23,105,224,.06);

}


html:not([data-theme="dark"]) .btn--outline {

    color:
        var(--texto);

    border-color:
        rgba(23,105,224,.30);

    background:
        rgba(23,105,224,.05);

}


html:not([data-theme="dark"]) .btn--outline:hover {

    border-color:
        var(--azul);

    background:
        rgba(23,105,224,.12);

}


/* =========================================================
   PILARES
   ========================================================= */

.pilares {

    position:
        relative;

    background:
        var(--fondo);

}


.pilares__inner {

    width:
        min(1180px, calc(100% - 48px));

    margin:
        0 auto;

    padding:
        75px 0;

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        28px;

}


.pilar-card {

    padding:
        34px 30px;

    border-radius:
        var(--radio);

    background:
        var(--tarjeta);

    border:
        1px solid
        var(--borde);

    box-shadow:
        var(--sombra-suave);

    transition:
        .3s ease;

}


.pilar-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        var(--sombra);

}


.pilar-card h3 {

    font-size:
        1.65rem;

    background:

        linear-gradient(
            100deg,
            var(--rojo),
            var(--azul)
        );

    -webkit-background-clip:
        text;

    background-clip:
        text;

    color:
        transparent;

}


/* =========================================================
   ENCABEZADOS DE SECCIÓN
   ========================================================= */

.section-head {

    width:
        min(1180px, calc(100% - 48px));

    margin:
        0 auto;

    padding:
        80px 0 15px;

    text-align:
        center;

}


.section-head h2 {

    font-size:
        clamp(
            2rem,
            4vw,
            2.8rem
        );

}


/* =========================================================
   PROGRAMAS
   ========================================================= */

.programas__grid {

    width:
        min(1180px, calc(100% - 48px));

    margin:
        0 auto;

    padding:
        30px 0 100px;

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        28px;

}


.programa-card {

    position:
        relative;

    padding:
        35px 30px;

    background:
        var(--tarjeta);

    border-radius:
        var(--radio);

    border:
        1px solid
        var(--borde);

    border-top:
        4px solid transparent;

    border-image:

        linear-gradient(
            90deg,
            var(--rojo),
            var(--azul)
        ) 1;

    box-shadow:
        var(--sombra-suave);

    transition:
        .3s ease;

}


.programa-card:hover {

    transform:
        translateY(-8px);

    box-shadow:
        var(--sombra);

}


.programa-card__icono {

    width:
        56px;

    height:
        56px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-bottom:
        16px;

    border-radius:
        14px;

    background:
        var(--gradiente-suave);

    font-size:
        1.8rem;

}


.programa-card__edad {

    display:
        inline-block;

    margin-bottom:
        10px;

    color:
        var(--rojo);

    font-size:
        .76rem;

    font-weight:
        800;

    text-transform:
        uppercase;

    letter-spacing:
        .08em;

}


/* =========================================================
   CTA
   ========================================================= */

.cta-banda {

    position:
        relative;

    overflow:
        hidden;

    text-align:
        center;

    background:

        radial-gradient(
            circle at 20% 20%,
            rgba(217,4,22,.22),
            transparent 40%
        ),

        linear-gradient(
            110deg,
            var(--azul) 0%,
            #143f91 45%,
            var(--rojo) 100%
        );

}


.cta-banda__inner {

    width:
        min(700px, calc(100% - 48px));

    margin:
        0 auto;

    padding:
        90px 0;

}


.cta-banda h2 {

    color:
        #ffffff;

}


.cta-banda p {

    color:
        rgba(255,255,255,.85);

    margin-bottom:
        30px;

}


/* =========================================================
   HERO DE PÁGINAS INTERNAS
   ========================================================= */

.page-hero {

    padding:
        85px 24px;

    text-align:
        center;

    background:

        linear-gradient(
            110deg,
            var(--rojo) 0%,
            #991126 35%,
            #123d82 72%,
            var(--azul) 100%
        );

}


.page-hero h1 {

    color:
        #ffffff;

    font-size:
        clamp(
            2.2rem,
            4vw,
            3.2rem
        );

}


.page-hero .eyebrow {

    justify-content:
        center;

}


/* =========================================================
   CONTENIDO GENERAL
   ========================================================= */

.contenido__inner {

    width:
        min(1050px, calc(100% - 48px));

    margin:
        0 auto;

    padding:
        80px 0;

}


.two-col {

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        55px;

}


/* =========================================================
   ADMISIÓN
   ========================================================= */

.pasos {

    list-style:
        none;

    margin:
        0;

    padding:
        0;

    display:
        grid;

    gap:
        28px;

}


.pasos li {

    display:
        flex;

    align-items:
        flex-start;

    gap:
        20px;

}


.pasos__num {

    width:
        48px;

    height:
        48px;

    flex-shrink:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    color:
        #ffffff;

    background:

        linear-gradient(
            135deg,
            var(--rojo),
            var(--azul)
        );

    font-family:
        var(--fuente-titulo);

    font-size:
        1.3rem;

    font-weight:
        700;

    box-shadow:
        var(--sombra-suave);

}


.cta-inline {

    margin-top:
        45px;

    text-align:
        center;

}


/* =========================================================
   FORMULARIO
   ========================================================= */

.info-lista {

    list-style:
        none;

    padding:
        0;

    display:
        grid;

    gap:
        15px;

}


.form-card {

    padding:
        36px;

    border-radius:
        var(--radio);

    background:
        var(--tarjeta);

    border:
        1px solid
        var(--borde);

    box-shadow:
        var(--sombra);

}


.form-card form {

    display:
        grid;

    gap:
        18px;

}


.form-card label {

    display:
        grid;

    gap:
        6px;

    color:
        var(--texto);

    font-size:
        .88rem;

    font-weight:
        700;

}


.form-card input,
.form-card textarea {

    width:
        100%;

    padding:
        13px 15px;

    border:
        1px solid
        var(--borde);

    border-radius:
        10px;

    background:
        var(--fondo);

    color:
        var(--texto);

    font-family:
        var(--fuente);

    font-size:
        .95rem;

    resize:
        vertical;

    transition:
        border .2s ease,
        box-shadow .2s ease;

}


.form-card input:focus,
.form-card textarea:focus {

    outline:
        none;

    border-color:
        var(--azul);

    box-shadow:
        0 0 0 3px rgba(23,105,224,.10);

}


.alerta-exito {

    padding:
        12px 16px;

    margin-bottom:
        18px;

    border-radius:
        10px;

    background:
        rgba(23,105,224,.10);

    color:
        var(--azul);

    font-weight:
        700;

}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {

    color:
        rgba(255,255,255,.75);

    background:

        linear-gradient(
            180deg,
            #07142d 0%,
            #030711 100%
        );

    border-top:
        2px solid transparent;

    border-image:

        linear-gradient(
            90deg,
            var(--rojo),
            var(--azul)
        ) 1;

}


.footer__inner {

    width:
        min(1180px, calc(100% - 48px));

    margin:
        0 auto;

    padding:
        65px 0 35px;

    display:
        grid;

    grid-template-columns:
        1.4fr 1fr 1fr 1fr;

    gap:
        32px;

}


.footer__brand {

    display:
        flex;

    align-items:
        center;

    gap:
        14px;

}


.footer__brand img {

    width:
        52px;

    height:
        52px;

}


.footer__brand strong {

    color:
        #ffffff;

    font-family:
        var(--fuente-titulo);

    font-size:
        1.25rem;

}


.footer__brand p {

    margin:
        2px 0 0;

    color:
        var(--rojo-claro);

    font-size:
        .8rem;

}


.footer__col h4 {

    margin-bottom:
        14px;

    color:
        #ffffff;

    font-size:
        .95rem;

}


.footer__col ul {

    list-style:
        none;

    margin:
        0;

    padding:
        0;

    display:
        grid;

    gap:
        10px;

    font-size:
        .88rem;

}


.footer__col a {

    transition:
        color .25s ease;

}


.footer__col a:hover {

    color:
        var(--azul-claro);

}


.footer__social {

    display:
        flex;

    gap:
        10px;

}


.footer__social a {

    width:
        36px;

    height:
        36px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        1px solid
        rgba(255,255,255,.18);

    border-radius:
        50%;

    transition:
        .25s ease;

}


.footer__social a:hover {

    background:

        linear-gradient(
            135deg,
            var(--rojo),
            var(--azul)
        );

    border-color:
        transparent;

}


.footer__bottom {

    padding:
        20px;

    border-top:
        1px solid
        rgba(255,255,255,.08);

    text-align:
        center;

    color:
        rgba(255,255,255,.50);

    font-size:
        .8rem;

}


/* =========================================================
   MENÚ HAMBURGUESA
   ========================================================= */

.menu-toggle {

    display:
        none;

}


.menu-burger {

    display:
        none;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        5px;

    width:
        42px;

    height:
        42px;

    cursor:
        pointer;

    border:
        1px solid
        rgba(255,255,255,.20);

    border-radius:
        10px;

    background:
        rgba(255,255,255,.06);

}


.menu-burger span {

    width:
        22px;

    height:
        2px;

    border-radius:
        10px;

    background:
        #ffffff;

}


/* =========================================================
   RESPONSIVE - 1000px
   ========================================================= */

@media (max-width: 1000px) {

    .navbar-dark__inner {

        width:
            calc(100% - 40px);

    }


    .nav-links-dark {

        gap:
            14px;

    }


    .nav-right-group {

        gap:
            7px;

    }


    .nav-whatsapp {

        padding:
            0 11px;

    }


    .pill--cta {

        padding:
            0 13px !important;

    }


    .hero__inner {

        grid-template-columns:
            1fr;

        text-align:
            center;

        padding:
            80px 0 90px;

    }


    .hero__text p {

        margin-left:
            auto;

        margin-right:
            auto;

    }


    .hero__actions {

        justify-content:
            center;

    }


    .hero__logo {

        order:
            -1;

    }


    .hero__logo img {

        width:
            240px;

    }


    .pilares__inner,
    .programas__grid {

        grid-template-columns:
            1fr;

    }


    .two-col {

        grid-template-columns:
            1fr;

    }


    .footer__inner {

        grid-template-columns:
            1fr 1fr;

    }

}


/* =========================================================
   RESPONSIVE - 800px
   ========================================================= */

@media (max-width: 800px) {

    .navbar-dark__inner {

        min-height:
            80px;

        width:
            calc(100% - 30px);

    }


    .brand__ring {

        width:
            58px;

        height:
            58px;

    }


    .brand__text strong {

        font-size:
            24px;

    }


    .brand__text small {

        font-size:
            7px;

    }


    .menu-burger {

        display:
            flex;

        margin-left:
            auto;

    }


    .nav-links-dark {

        position:
            absolute;

        top:
            100%;

        left:
            0;

        right:
            0;

        display:
            none;

        flex-direction:
            column;

        align-items:
            stretch;

        gap:
            8px;

        padding:
            22px;

        background:

            linear-gradient(
                135deg,
                #050914,
                #102e63,
                #3c0917
            );

        border-bottom:
            3px solid
            var(--azul);

        box-shadow:
            0 20px 40px rgba(0,0,0,.35);

    }


    .menu-toggle:checked
    ~ .nav-links-dark {

        display:
            flex;

    }


    /* El menú desplegable móvil necesita que .navbar-dark
       no recorte su contenido con overflow:hidden */
    .navbar-dark {

        overflow:
            visible;

    }


    .nav-links-dark > li {

        width:
            100%;

    }


    .nav-links-dark >
    li >
    a:not(.nav-whatsapp):not(.pill) {

        width:
            100%;

        justify-content:
            center;

        padding:
            13px;

    }


    .nav-right-group {

        width:
            100%;

        flex-direction:
            column;

        gap:
            9px;

        margin:
            5px 0 0;

    }


    .nav-whatsapp,
    .pill--cta {

        width:
            100%;

        min-height:
            44px;

    }


    .nav-theme {

        width:
            100%;

        height:
            44px;

        border-radius:
            12px;

    }


    .hero__inner {

        width:
            calc(100% - 40px);

    }


    .hero__text h1 {

        font-size:
            3rem;

    }


    .hero__logo img {

        width:
            220px;

    }

}


/* =========================================================
   RESPONSIVE - 560px
   ========================================================= */

@media (max-width: 560px) {

    .navbar-dark__inner {

        width:
            calc(100% - 24px);

    }


    .brand {

        gap:
            7px;

    }


    .brand__ring {

        width:
            52px;

        height:
            52px;

    }


    .brand__text strong {

        font-size:
            21px;

    }


    .brand__text small {

        font-size:
            6px;

        letter-spacing:
            .8px;

    }


    .hero__inner {

        width:
            calc(100% - 30px);

        padding:
            60px 0 75px;

    }


    .hero__text h1 {

        font-size:
            2.5rem;

    }


    .hero__text p {

        font-size:
            .95rem;

    }


    .hero__actions {

        flex-direction:
            column;

        width:
            100%;

    }


    .btn {

        width:
            100%;

    }


    .hero__logo img {

        width:
            190px;

    }


    .contenido__inner {

        width:
            calc(100% - 30px);

    }


    .footer__inner {

        grid-template-columns:
            1fr;

    }

}


/* =========================================================
   SELECCIÓN
   ========================================================= */

::selection {

    background:
        var(--rojo);

    color:
        #ffffff;

}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {

    width:
        9px;

}


::-webkit-scrollbar-track {

    background:
        #050914;

}


::-webkit-scrollbar-thumb {

    background:

        linear-gradient(
            180deg,
            var(--rojo),
            var(--azul)
        );

    border-radius:
        20px;

}


::-webkit-scrollbar-thumb:hover {

    background:

        linear-gradient(
            180deg,
            var(--rojo-claro),
            var(--azul-claro)
        );

}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

:focus-visible {

    outline:
        2px solid
        var(--azul-claro);

    outline-offset:
        4px;

}

.alerta-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #8a1c1c;
    background: #fff0f0;
    border: 1px solid #efb2b2;
}

/* =========================================================
   REFINAMIENTO VISUAL 2026
   ========================================================= */

:root {
    --rojo-profundo: #a90c23;
    --azul-marino: #071b42;
    --linea-suave: rgba(19, 57, 121, .1);
}

body {
    background:
        radial-gradient(circle at 95% 5%, rgba(23, 105, 224, .06), transparent 23rem),
        radial-gradient(circle at 3% 35%, rgba(217, 4, 22, .045), transparent 20rem),
        var(--fondo);
}

.navbar-dark {
    backdrop-filter: blur(18px);
}

.site-header.is-scrolled .navbar-dark {
    background: rgba(5, 16, 39, .96);
}

.hero {
    min-height: 620px;
    display: grid;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    width: 460px;
    height: 460px;
    right: -110px;
    bottom: -230px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(255, 255, 255, .025), 0 0 0 96px rgba(255, 255, 255, .018);
}

.hero__inner {
    padding: 94px 0 105px;
}

.badge-pill {
    letter-spacing: .13em;
    font-size: .68rem;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .08);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
}

.hero__text h1 {
    text-wrap: balance;
    text-shadow: 0 10px 35px rgba(0, 0, 0, .2);
}

.hero__text p {
    max-width: 570px;
    font-size: 1.05rem;
}

.hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

.hero__proof span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: rgba(255, 255, 255, .9);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    background: rgba(255, 255, 255, .06);
}

.hero__logo {
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, .28));
}

.pilares {
    background: linear-gradient(180deg, transparent, var(--fondo-secundario));
}

.pilares__inner {
    padding: 70px 0;
    gap: 18px;
}

.pilar-card,
.programa-card,
.form-card {
    border-color: var(--linea-suave);
}

.pilar-card {
    position: relative;
    min-height: 198px;
    overflow: hidden;
    padding: 34px 30px 28px;
}

.pilar-card::after {
    content: "";
    position: absolute;
    width: 112px;
    height: 112px;
    right: -48px;
    bottom: -54px;
    border-radius: 50%;
    background: var(--gradiente-suave);
}

.pilar-card__numero {
    display: block;
    margin-bottom: 22px;
    color: var(--rojo);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .14em;
}

.pilar-card:nth-child(2) .pilar-card__numero { color: var(--azul); }
.pilar-card:nth-child(3) .pilar-card__numero { color: var(--rojo-profundo); }

.pilar-card h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 9px;
}

.section-head {
    padding-top: 96px;
}

.section-head h2,
.contenido h2 {
    font-family: var(--fuente-titulo);
    font-weight: 700;
    letter-spacing: -.025em;
}

.programas__grid {
    gap: 20px;
}

.programa-card {
    min-height: 270px;
    padding: 34px 30px;
    border-top: 0;
    border-image: none;
}

.programa-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    border-radius: var(--radio) var(--radio) 0 0;
    background: var(--gradiente-rojo-azul);
}

.programa-card:nth-child(2)::before { background: linear-gradient(90deg, var(--azul), #5a9eff); }
.programa-card:nth-child(3)::before { background: linear-gradient(90deg, var(--rojo), #e86d45); }

.programa-card__icono {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--gradiente-suave);
    font-size: 1.75rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 94px 24px;
    background: linear-gradient(112deg, #a90c23 0%, #541236 40%, #0a397f 100%);
}

.page-hero::before,
.page-hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
}

.page-hero::before { width: 360px; height: 360px; left: -220px; top: -210px; }
.page-hero::after { width: 460px; height: 460px; right: -280px; bottom: -350px; }
.page-hero__inner { position: relative; z-index: 1; }

.contenido__inner {
    padding: 88px 0;
}

.two-col > div:first-child:not(.form-card),
.two-col > div:nth-child(2):not(.form-card) {
    padding: 10px 0;
}

.two-col h2 {
    margin-bottom: 13px;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.two-col h2:not(:first-child) { margin-top: 30px; }

.pasos {
    position: relative;
    gap: 18px;
}

.pasos li {
    padding: 24px;
    border: 1px solid var(--linea-suave);
    border-radius: 16px;
    background: var(--tarjeta);
    box-shadow: var(--sombra-suave);
}

.pasos h3 { margin: 4px 0 6px; }

.form-card {
    border-top: 4px solid var(--azul);
    border-radius: 18px;
}

.form-card .btn { width: 100%; justify-content: center; }

@media (max-width: 760px) {
    .hero { min-height: auto; }
    .hero__inner { padding: 72px 0 78px; }
    .hero__proof { margin-top: 22px; }
    .pilares__inner, .programas__grid { gap: 14px; }
    .section-head { padding-top: 70px; }
    .contenido__inner { padding: 58px 0; }
    .page-hero { padding: 72px 20px; }
}

/* Identidad institucional */
.identidad__intro {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.identidad__intro h2 {
    margin: 12px 0;
    font-family: var(--fuente-titulo);
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    line-height: 1;
}

.identidad__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.identidad__card {
    position: relative;
    min-height: 330px;
    padding: 32px 28px;
    overflow: hidden;
    border: 1px solid var(--linea-suave);
    border-radius: 20px;
    background: var(--tarjeta);
    box-shadow: var(--sombra-suave);
}

.identidad__card::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -56px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    opacity: .9;
}

.identidad__card--mision::after {
    background: radial-gradient(circle, rgba(217, 4, 22, .22), transparent 68%);
}

.identidad__card--vision::after {
    background: radial-gradient(circle, rgba(23, 105, 224, .25), transparent 68%);
}

.identidad__card--proposito {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #9f0d25, #0d468e);
}

.identidad__card--proposito::after {
    background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 68%);
}

.identidad__numero {
    display: block;
    margin-bottom: 40px;
    color: var(--rojo);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .15em;
}

.identidad__card--vision .identidad__numero { color: var(--azul); }
.identidad__card--proposito .identidad__numero { color: rgba(255, 255, 255, .78); }

.identidad__card h2 {
    margin-bottom: 14px;
    font-family: var(--fuente-titulo);
    font-size: 2rem;
}

.identidad__card--proposito p { color: rgba(255, 255, 255, .9); font-size: 1.08rem; }
.info-lista a { color: var(--azul); font-weight: 800; }

@media (max-width: 900px) {
    .identidad__grid { grid-template-columns: 1fr; }
    .identidad__card { min-height: auto; }
    .identidad__numero { margin-bottom: 22px; }
}

/* Sedes y tratamiento institucional del emblema */
.contacto__intro {
    margin: -4px 0 22px;
}

.sedes-lista {
    display: grid;
    gap: 10px;
}

.sede-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border: 1px solid var(--linea-suave);
    border-radius: 13px;
    background: var(--tarjeta);
    box-shadow: 0 8px 18px rgba(7, 27, 66, .045);
}

.sede-card__pin {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: var(--gradiente-rojo-azul);
    font-size: 1.05rem;
}

.sede-card strong,
.sede-card span {
    display: block;
}

.sede-card strong {
    color: var(--texto);
    font-size: .86rem;
}

.sede-card span {
    margin-top: 2px;
    color: var(--texto-suave);
    font-size: .8rem;
}

.info-lista--contacto {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--linea-suave);
}

.brand__ring {
    width: 68px;
    height: 68px;
}

.brand__logo {
    border-radius: 50%;
    background: #091b3b;
}

/* Hero institucional: versión de alto impacto */
.hero {
    background:
        radial-gradient(circle at 83% 28%, rgba(42, 124, 255, .52), transparent 21rem),
        radial-gradient(circle at 9% 5%, rgba(217, 4, 22, .5), transparent 24rem),
        linear-gradient(118deg, #160513 0%, #08142d 48%, #062a67 100%);
}

.hero__inner {
    grid-template-columns: 1.05fr .95fr;
    gap: 32px;
}

.hero__text h1 {
    max-width: 670px;
    font-size: clamp(3.25rem, 5vw, 5.25rem);
    line-height: .96;
}

.txt-rojo,
.txt-azul {
    display: inline-block;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.txt-rojo {
    background-image: linear-gradient(100deg, #ff5366, #f6c2c8);
}

.txt-azul {
    background-image: linear-gradient(100deg, #7cb4ff, #d8e8ff);
}

.hero__actions .btn {
    min-width: 172px;
    justify-content: center;
}

.btn--gradiente {
    box-shadow: 0 14px 30px rgba(217, 4, 22, .28);
}

.hero__logo {
    position: relative;
    justify-content: center;
    padding-bottom: 30px;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}

.hero__logo::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 69%);
}

.hero__logo img {
    width: min(100%, 360px);
    transform: translateY(-12px);
}

.hero__school-card {
    position: absolute;
    right: 2%;
    bottom: 0;
    width: min(290px, 83%);
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-left: 4px solid var(--rojo-claro);
    border-radius: 14px;
    color: #fff;
    background: rgba(5, 15, 36, .7);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .24);
    backdrop-filter: blur(14px);
}

.hero__school-card-label,
.hero__school-card small {
    display: block;
    color: rgba(255, 255, 255, .72);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero__school-card strong {
    display: block;
    margin: 5px 0 7px;
    font-family: var(--fuente-titulo);
    font-size: 1.35rem;
}

.navbar-dark__inner {
    min-height: 88px;
}

.nav-links-dark > li > a:not(.nav-whatsapp):not(.pill) {
    font-size: .86rem;
}

@media (max-width: 920px) {
    .hero__text h1 { font-size: clamp(3rem, 8vw, 4.35rem); }
    .hero__school-card { right: 0; }
}

@media (max-width: 760px) {
    .hero__inner { gap: 10px; }
    .hero__logo { padding-bottom: 18px; }
    .hero__school-card { position: relative; right: auto; margin: -15px auto 0; }
    .hero__text h1 { font-size: clamp(2.75rem, 12vw, 3.75rem); }
}
/* =========================================================
   REFINAMIENTO GENERAL — MÁS IMPACTO VISUAL
   (mismos colores rojo/azul, más presencia y movimiento)
   ========================================================= */

/* ---- Selección de texto y scrollbar con identidad ---- */

::selection {
    background: var(--rojo);
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: var(--fondo-secundario);
}

::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, var(--rojo), var(--azul));
    border: 2px solid var(--fondo-secundario);
}

/* ---- Entrada animada del hero ---- */

@keyframes duni-subir {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes duni-aparecer {
    from { opacity: 0; transform: scale(.94); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes duni-flotar {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.hero__text {
    animation: duni-subir .75s cubic-bezier(.2, .7, .2, 1) both;
}

.hero__actions,
.hero__proof {
    animation: duni-subir .9s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: .12s;
}

.hero__logo {
    animation: duni-aparecer .9s cubic-bezier(.2, .7, .2, 1) both, duni-flotar 6s ease-in-out 1s infinite;
}

.hero__school-card {
    animation: duni-subir 1s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: .25s;
}

/* ---- Subrayado animado en la navegación ---- */

.nav-links-dark > li > a:not(.nav-whatsapp):not(.pill):not(#themeToggle) {
    position: relative;
    padding-bottom: 4px;
}

.nav-links-dark > li > a:not(.nav-whatsapp):not(.pill):not(#themeToggle)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--rojo-claro), var(--azul-claro));
    transition: width .3s ease;
}

.nav-links-dark > li > a:not(.nav-whatsapp):not(.pill):not(#themeToggle):hover::after {
    width: 100%;
}

/* ---- Elevación y brillo en tarjetas ---- */

.pilar-card,
.programa-card,
.identidad__card,
.sede-card {
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.pilar-card:hover,
.programa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 50px rgba(10, 30, 70, .16);
    border-color: rgba(23, 105, 224, .35);
}

.identidad__card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 26px 55px rgba(10, 30, 70, .18);
}

.sede-card:hover {
    transform: translateX(4px);
    border-color: var(--azul);
}

.programa-card__icono {
    transition: transform .3s ease;
}

.programa-card:hover .programa-card__icono {
    transform: rotate(-8deg) scale(1.08);
}

/* ---- Entrada progresiva de tarjetas al cargar la sección ---- */

.pilar-card,
.programa-card,
.identidad__card {
    animation: duni-subir .7s ease both;
}

.pilares__inner .pilar-card:nth-child(1),
.programas__grid .programa-card:nth-child(1),
.identidad__grid .identidad__card:nth-child(1) { animation-delay: .05s; }

.pilares__inner .pilar-card:nth-child(2),
.programas__grid .programa-card:nth-child(2),
.identidad__grid .identidad__card:nth-child(2) { animation-delay: .16s; }

.pilares__inner .pilar-card:nth-child(3),
.programas__grid .programa-card:nth-child(3),
.identidad__grid .identidad__card:nth-child(3) { animation-delay: .27s; }

/* ---- Botones con más presencia ---- */

.btn,
.pill {
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.btn:hover,
.pill:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);
}

.btn--gradiente:hover {
    box-shadow: 0 20px 40px rgba(217, 4, 22, .38);
}

.pill--cta {
    position: relative;
    overflow: hidden;
}

.pill--cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: translateX(-120%);
    transition: transform .6s ease;
}

.pill--cta:hover::after {
    transform: translateX(120%);
}

/* ---- Insignias "proof" del hero con pulso sutil ---- */

@keyframes duni-pulso {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .18); }
    50%      { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

.hero__proof span {
    animation: duni-pulso 2.6s ease-in-out infinite;
}

.hero__proof span:nth-child(2) { animation-delay: .3s; }
.hero__proof span:nth-child(3) { animation-delay: .6s; }

/* ---- Marca (logo) con anillo giratorio sutil ---- */

.brand__ring {
    position: relative;
    display: inline-flex;
}

.brand__ring::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--rojo), var(--azul), var(--rojo));
    opacity: .55;
    z-index: -1;
    animation: duni-girar 7s linear infinite;
}

@keyframes duni-girar {
    to { transform: rotate(360deg); }
}

/* ---- Números / estadísticas destacadas con texto degradado ---- */

.identidad__numero,
.pilar-card__numero {
    background: linear-gradient(100deg, var(--rojo), var(--azul));
    -webkit-background-clip: text;
    background-clip: text;
}

.identidad__numero,
.pilar-card__numero {
    color: transparent;
}

/* ---- Reducir movimiento si el usuario lo prefiere ---- */

@media (prefers-reduced-motion: reduce) {
    .hero__text,
    .hero__actions,
    .hero__proof,
    .hero__logo,
    .hero__school-card,
    .pilar-card,
    .programa-card,
    .identidad__card,
    .hero__proof span,
    .brand__ring::before {
        animation: none !important;
    }
}
/* =========================================================
   CARRUSEL DE LOGROS
   ========================================================= */

.logros {
    padding: 70px 24px;
}

.carrusel-logros {
    position: relative;
    width: min(980px, 100%);
    margin: 40px auto 0;
}

.carrusel-logros__viewport {
    overflow: hidden;
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    background: var(--tarjeta);
    border: 1px solid var(--borde);
}

.carrusel-logros__track {
    display: flex;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.carrusel-logros__slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: var(--fondo-secundario);
}

.carrusel-logros__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.carrusel-logros__flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    line-height: 1;
    color: #fff;
    background: var(--gradiente-rojo-azul);
    box-shadow: var(--sombra-suave);
    cursor: pointer;
    transition: transform .25s ease, filter .25s ease;
}

.carrusel-logros__flecha:hover {
    transform: translateY(-50%) scale(1.08);
    filter: brightness(1.08);
}

.carrusel-logros__flecha--izq {
    left: -18px;
}

.carrusel-logros__flecha--der {
    right: -18px;
}

.carrusel-logros__puntos {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.carrusel-logros__punto {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--borde);
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

.carrusel-logros__punto.is-activo {
    background: var(--gradiente-rojo-azul);
    transform: scale(1.25);
}

@media (max-width: 640px) {
    .carrusel-logros__flecha--izq { left: 4px; }
    .carrusel-logros__flecha--der { right: 4px; }
    .carrusel-logros__flecha { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* =========================================================
   HERO — CARRUSEL DE FONDO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
}

.hero__fondo {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__fondo-track {
    position: absolute;
    inset: 0;
    display: flex;
    height: 100%;
    transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}

.hero__fondo-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}

.hero__fondo-slide-blur {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(35px) brightness(.55) saturate(1.15);
    transform: scale(1.2);
}

.hero__fondo-slide-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero__fondo-velo {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 83% 28%, rgba(42, 124, 255, .35), transparent 21rem),
        radial-gradient(circle at 9% 5%, rgba(217, 4, 22, .38), transparent 24rem),
        linear-gradient(100deg, rgba(5, 9, 20, .94) 0%, rgba(9, 27, 59, .88) 42%, rgba(9, 27, 59, .55) 68%, rgba(9, 27, 59, .35) 100%);
}

.hero__inner--full {
    grid-template-columns: 1fr;
    position: relative;
    z-index: 2;
}

.hero__inner--full .hero__text {
    max-width: 700px;
}

.hero__flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    line-height: 1;
    color: #fff;
    background: rgba(5, 15, 36, .55);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: transform .25s ease, background .25s ease;
}

.hero__flecha:hover {
    background: rgba(5, 15, 36, .8);
    transform: translateY(-50%) scale(1.08);
}

.hero__flecha--izq {
    left: 20px;
}

.hero__flecha--der {
    right: 20px;
}

.hero__fondo-puntos {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero__fondo-punto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .25);
    padding: 0;
    cursor: pointer;
    transition: background .25s ease, transform .25s ease;
}

.hero__fondo-punto.is-activo {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 760px) {
    .hero__flecha {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .hero__flecha--izq { left: 8px; }
    .hero__flecha--der { right: 8px; }
}
