/* ===================================================
   IDENTIDAD VISUAL
=================================================== */

:root{

    --azul-principal:#003B71;
    --azul-secundario:#005A8D;

    --verde:#006E51;

    --gris-fondo:#F5F7FA;
    --gris-suave:#E8EEF3;
    --gris-borde:#D9E2EC;

    --texto:#243746;
    --texto-claro:#5A6B7B;

    --blanco:#FFFFFF;

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

    --radio:12px;

}

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

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:
    "Segoe UI",
    Arial,
    sans-serif;

    color:var(--texto);

    line-height:1.7;

    background:#fff;
}

img{
    display:block;
    max-width:100%;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

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

.container{

    width:min(1200px,92%);
    margin:auto;

}

.narrow{

    max-width:900px;

}

/* ===================================================
   MENU
=================================================== */

.navbar{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    z-index:9999;

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

    backdrop-filter:blur(10px);

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

}

.nav-container{

    display:flex;
    justify-content:space-between;
    align-items:center;

    min-height:90px;

}

.logos{

    display:flex;
    align-items:center;
    gap:15px;

}

.logos img{

    height:65px;
    width:auto;

}

.menu{

    display:flex;
    gap:24px;

}

.menu a{

    color:var(--texto);

    font-weight:600;

    font-size:.95rem;

    transition:.3s;

    padding:8px 10px;

    border-radius:6px;

}

.menu a:hover{

    color:var(--azul-principal);
    background:var(--gris-fondo);

}

.menu a.active{

    color:white;
    background:var(--azul-principal);

}

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

.hero{

    min-height:100vh;

    background:
    linear-gradient(
        rgba(0,59,113,.80),
        rgba(0,59,113,.80)
    ),
    url("../img/hero-vih.jpg");

    background-size:cover;
    background-position:center;

    display:flex;
    align-items:center;

    color:white;

}

.hero-content{

    padding-top:130px;
    padding-bottom:80px;

    max-width:900px;

}

.hero-label{

    display:inline-block;

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

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

    padding:10px 18px;

    border-radius:100px;

    font-size:.9rem;
}

.hero h1{

    font-size:clamp(2.5rem,5vw,4.5rem);

    line-height:1.1;

    margin:25px 0;

}

.hero p{

    font-size:1.2rem;

    max-width:750px;

    opacity:.95;

}

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

.hero-buttons{

    margin-top:40px;

    display:flex;
    gap:15px;
    flex-wrap:wrap;

}

.btn{

    padding:14px 30px;

    border-radius:8px;

    font-weight:700;

    transition:.3s;

}

.btn-primary{

    background:white;
    color:var(--azul-principal);

}

.btn-primary:hover{

    transform:translateY(-3px);

}

.btn-outline{

    border:2px solid white;
    color:white;

}

.btn-outline:hover{

    background:white;
    color:var(--azul-principal);

}

/* ===================================================
   SECCIONES
=================================================== */

.section{

    padding:110px 0;

}

.section h2{

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

    margin-bottom:25px;

    color:var(--azul-principal);

}

.bg-light{

    background:var(--gris-fondo);

}

/* ===================================================
   ESTADISTICAS
=================================================== */

.stats{

    margin-top:-80px;

    position:relative;
    z-index:20;

}

.stats-grid{

    display:grid;

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

    gap:20px;

}

.stat-card{

    background:white;

    border-radius:var(--radio);

    padding:30px;

    box-shadow:var(--sombra);

    text-align:center;

}

.stat-card h3{

    color:var(--azul-principal);

    font-size:2.6rem;
	
    margin-bottom:10px;

}

.stat-card p{

    font-size:.95rem;

}

/* ===================================================
   TARJETAS
=================================================== */

.cards{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(260px,1fr));

    gap:30px;

    margin-top:40px;

}

.card{

    background:white;

    border-radius:var(--radio);

    padding:35px;

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

    transition:.3s;

}

.card:hover{

    transform:translateY(-6px);

    box-shadow:var(--sombra);

}

.icon{

    font-size:2rem;

    margin-bottom:20px;

}

.card h3{

    margin-bottom:15px;

    color:var(--azul-principal);

}

/* ===================================================
   PARTICIPANTES
=================================================== */

.participants-grid{

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

    gap:30px;

    margin-top:40px;

}

.participants-grid article{

    background:white;

    border-left:5px solid var(--azul-principal);

    padding:30px;

    box-shadow:var(--sombra);

}

/* ===================================================
   FRASE VISUAL
=================================================== */

.image-break{

    background:
    linear-gradient(
        rgba(0,59,113,.80),
        rgba(0,59,113,.80)
    ),
    url("../img/hero-vih-2.jpg");

    background-size:cover;
    background-position:center;

    color:white;

    padding:140px 0;

    text-align:center;

}

.image-break blockquote{

    max-width:900px;

    margin:auto;

    font-size:2rem;

    font-weight:300;

}

/* ===================================================
   TIMELINE
=================================================== */

.timeline{

    position:relative;

    margin-top:60px;

    padding-left:40px;

}

.timeline::before{

    content:"";

    position:absolute;

    left:10px;
    top:0;
    bottom:0;

    width:4px;

    background:var(--azul-principal);

}

.timeline-item{

    position:relative;

    margin-bottom:45px;

}

.timeline-item::before{

    content:"";

    position:absolute;

    left:-38px;
    top:5px;

    width:20px;
    height:20px;

    border-radius:50%;

    background:var(--azul-principal);

}

.timeline-item span{

    font-weight:700;

    color:var(--azul-principal);

}

.timeline-item h3{

    margin-top:5px;

}

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

.cta{

    background:
    linear-gradient(
        135deg,
        var(--azul-principal),
        var(--azul-secundario)
    );

    color:white;

    text-align:center;

    padding:120px 0;

}

.cta h2{

    color:white;

}

.cta p{

    max-width:750px;

    margin:auto;

}





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

footer{

    background:#0F2137;

    color:white;

    text-align:center;

    padding:40px 20px;

}

/* ===================================================
   BOTON VOLVER ARRIBA
=================================================== */

.back-to-top{

    position:fixed;

    right:30px;
    bottom:30px;

    width:52px;
    height:52px;

    border:none;

    border-radius:50%;

    background:var(--azul-principal);

    color:white;

    font-size:1.4rem;

    cursor:pointer;

    opacity:0;
    visibility:hidden;

    transition:.3s;

    box-shadow:var(--sombra);

    z-index:9999;

}

.back-to-top.show{

    opacity:1;
    visibility:visible;

}

.back-to-top:hover{

    background:var(--azul-secundario);

}

/* ===================================================
   ANIMACIONES
=================================================== */

.card,
.timeline-item,
.participants-grid article{

    animation:fadeUp .6s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(25px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/* ===================================================
   RESPONSIVE
=================================================== */

@media(max-width:992px){

    .nav-container{

        flex-direction:column;

        padding:15px 0;

    }

    .menu{

        flex-wrap:wrap;

        justify-content:center;

        margin-top:15px;

    }

    .stats-grid{

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

    }

    .participants-grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .hero{

        text-align:center;

    }

    .hero-buttons{

        justify-content:center;

    }

    .stats-grid{

        grid-template-columns:1fr;

    }

    .menu{

        gap:12px;

    }

    .menu a{

        font-size:.8rem;

    }

    .timeline{

        padding-left:25px;

    }

    .image-break blockquote{

        font-size:1.4rem;

    }

}

@media(max-width:576px){

    .logos{

        flex-direction:column;

    }

    .logos img{

        height:45px;

    }

}

/* =====================================
   BARRA DE PROGRESO
===================================== */

#reading-progress{

    position:fixed;

    top:0;
    left:0;

    width:0;

    height:4px;

    background:#006E51;

    z-index:99999;

    transition:width .15s linear;

}

/* =====================================
   ANIMACIONES SCROLL
===================================== */

.fade-element{

    opacity:0;

    transform:translateY(30px);

    transition:
        opacity .7s ease,
        transform .7s ease;

}

.fade-element.visible{

    opacity:1;

    transform:translateY(0);

}

/* =====================================
   NAV SCROLLED
===================================== */

.navbar-scrolled{

    box-shadow:
        0 8px 25px rgba(0,0,0,.08);

}
