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

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Montserrat', sans-serif;
    background:#050505;
    color:#ffffff;
    overflow-x:hidden;
}

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

:root{
    --primary:#9b0000;
    --secondary:#d4af37;
    --dark:#050505;
    --light:#ffffff;
    --gray:#999999;
}

/* ========================================= */
/* CONTAINER */
/* ========================================= */

.container{
    width:90%;
    max-width:1300px;
    margin:auto;
}

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

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:999;
    background:rgba(0,0,0,0.85);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.header-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 0;
}

.logo img{
    width:200px;
    filter:drop-shadow(0 0 10px rgba(212,175,55,0.2));
}

.nav-links{
    display:flex;
    gap:35px;
    list-style:none;
}

.nav-links a{
    text-decoration:none;
    color:#ffffff;
    font-size:15px;
    font-weight:500;
    transition:0.3s;
    position:relative;
}

.nav-links a:hover{
    color:var(--secondary);
}

.nav-links a::after{
    content:'';
    position:absolute;
    left:0;
    bottom:-6px;
    width:0%;
    height:2px;
    background:var(--secondary);
    transition:0.3s;
}

.nav-links a:hover::after{
    width:100%;
}

.menu-toggle{
    display:none;
    font-size:28px;
    color:#ffffff;
    cursor:pointer;
}

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

.hero{
    position:relative;
    width:100%;
    height:100vh;
    background:
    linear-gradient(
        120deg,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.70) 50%,
        rgba(0,0,0,0.95) 100%
    ),
    url('../images/hero.jpg');
    background-size:cover;
    background-position:center;
    display:flex;
    align-items:center;
    overflow:hidden;
}

/* capa de brillo premium */
.hero::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(155,0,0,0.25), transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(212,175,55,0.15), transparent 45%);
    z-index:1;
}

/* línea de luz superior */
.hero::after{
    content:'';
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:3px;
    background:linear-gradient(90deg, transparent, #d4af37, transparent);
    opacity:0.7;
    animation: lightMove 6s infinite linear;
}

@keyframes lightMove{
    0%{ transform:translateX(-100%); }
    100%{ transform:translateX(100%); }
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:800px;
}

/* ========================================= */
/* BUTTONS */
/* ========================================= */

.btn-primary,
.btn-secondary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:16px 34px;
    text-decoration:none;
    border-radius:50px;
    font-weight:600;
    transition:0.4s;
}

.btn-primary{
    background:var(--primary);
    color:#ffffff;
}

.btn-primary:hover{
    background:#c40000;
    transform:translateY(-4px);
}

.btn-secondary{
    border:2px solid var(--secondary);
    color:var(--secondary);
}

.btn-secondary:hover{
    background:var(--secondary);
    color:#000000;
    transform:translateY(-4px);
}

/* ========================================= */
/* SECTIONS */
/* ========================================= */

section{
    padding:120px 0;
}

.section-title{
    text-align:center;
    margin-bottom:70px;
}

.section-title span{
    color:var(--secondary);
    text-transform:uppercase;
    font-size:14px;
    letter-spacing:2px;
    font-weight:700;
}

.section-title h2{
    font-size:45px;
    margin-top:15px;
    font-weight:800;
}

/* ========================================= */
/* ABOUT */
/* ========================================= */

.about{
    background:#0b0b0b;
}

.about-content{
    max-width:900px;
    margin:auto;
    text-align:center;
}

.about-text p{
    font-size:18px;
    line-height:1.9;
    color:#cccccc;
    margin-bottom:30px;
}

/* ========================================= */
/* AFFILIATIONS */
/* ========================================= */

.affiliations{
    background:#070707;
}

.affiliations-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:40px;
}

.affiliation-card{
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:20px;
    padding:50px 30px;
    text-align:center;
    transition:0.4s;
    backdrop-filter:blur(8px);
}

.affiliation-card:hover{
    transform:translateY(-10px);
    border-color:rgba(212,175,55,0.4);
}

.affiliation-card img{
    width:180px;
    max-width:100%;
    margin-bottom:30px;
}

.affiliation-card h3{
    font-size:22px;
    font-weight:700;
}
.affiliation-card img{
    width:180px;
    max-width:100%;
    margin-bottom:30px;
    background:rgba(255,255,255,0.9);
    padding:12px 18px;
    border-radius:12px;
}
.affiliation-card:hover img{
    background:#ffffff;
    transform:scale(1.05);
    transition:0.3s;
}

/* ========================================= */
/* GPI */
/* ========================================= */

.gpi{
    background:
    linear-gradient(rgba(0,0,0,0.80),
    rgba(0,0,0,0.85)),
    url('../images/hero.jpg');
    background-size:cover;
    background-position:center;
    text-align:center;
}

.gpi-content{
    max-width:800px;
}

.gpi p{
    font-size:20px;
    color:#dddddd;
    line-height:1.8;
    margin-bottom:40px;
}

/* ========================================= */
/* SOCIAL */
/* ========================================= */

.social{
    background:#0a0a0a;
}

.social-links{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:25px;
}

.social-links a{
    width:70px;
    height:70px;
    border-radius:50%;
    background:#111111;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#ffffff;
    font-size:28px;
    transition:0.4s;
    border:1px solid rgba(255,255,255,0.05);
}

.social-links a:hover{
    background:var(--primary);
    transform:translateY(-8px);
}

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

.footer{
    background:#050505;
    border-top:1px solid rgba(255,255,255,0.05);
    padding:50px 0;
}

.footer-content{
    text-align:center;
}

.footer-content img{
    width:220px;
    margin-bottom:25px;
}

.footer-content p{
    color:#999999;
    font-size:15px;
}

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

@media(max-width:991px){

    .menu-toggle{
        display:block;
    }

    .navbar{
        position:absolute;
        top:100%;
        left:0;
        width:100%;
        background:#080808;
        display:none;
        padding:30px 0;
    }

    .navbar.active{
        display:block;
    }

    .nav-links{
        flex-direction:column;
        align-items:center;
    }

    .hero h1{
        font-size:50px;
    }

    .hero p{
        font-size:18px;
    }

    .section-title h2{
        font-size:35px;
    }

}

@media(max-width:768px){

    .hero{
        text-align:center;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .hero h1{
        font-size:40px;
    }

    .section-title h2{
        font-size:30px;
    }

    .about-text p{
        font-size:17px;
    }

}

@media(max-width:480px){

    .logo img{
        width:180px;
    }

    .hero h1{
        font-size:34px;
    }

    .hero p{
        font-size:16px;
    }

    .btn-primary,
    .btn-secondary{
        width:100%;
    }

}
/* ========================================= */
/* ANIMATIONS */
/* ========================================= */

.section-title,
.about-content,
.affiliation-card,
.gpi-content,
.social-links{
    opacity:0;
    transform:translateY(60px);
    transition:all 1s ease;
}

.active-reveal{
    opacity:1;
    transform:translateY(0);
}

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

.hero-content{
    opacity:0;
    transform:translateY(40px);
    transition:all 1.5s ease;
}

.loaded .hero-content{
    opacity:1;
    transform:translateY(0);
}

/* ========================================= */
/* BUTTON GLOW */
/* ========================================= */

.btn-primary{
    box-shadow:0 0 25px rgba(155,0,0,0.4);
}

.btn-primary:hover{
    box-shadow:0 0 35px rgba(196,0,0,0.7);
}

/* ========================================= */
/* CARD GLOW */
/* ========================================= */

.affiliation-card{
    position:relative;
    overflow:hidden;
}

.affiliation-card::before{
    content:'';
    position:absolute;
    width:200%;
    height:200%;
    background:linear-gradient(
        45deg,
        transparent,
        rgba(212,175,55,0.08),
        transparent
    );
    top:-50%;
    left:-50%;
    transform:rotate(25deg);
    transition:0.8s;
}

.affiliation-card:hover::before{
    left:100%;
}

/* ========================================= */
/* SOCIAL EFFECT */
/* ========================================= */

.social-links a:hover{
    box-shadow:0 0 25px rgba(155,0,0,0.5);
}

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

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#050505;
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#c40000;
}
/* HERO TEXT PREMIUM */

.hero h1{
    font-size:72px;
    line-height:1.05;
    font-weight:800;
    letter-spacing:1px;
    text-transform:uppercase;
    background:linear-gradient(90deg,#ffffff,#d4af37);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero p{
    font-size:20px;
    color:rgba(255,255,255,0.85);
    max-width:600px;
}

/* glow suave */
.hero h1{
    text-shadow:0 0 40px rgba(212,175,55,0.15);
}
/* NAV PREMIUM EFFECT */

.nav-links a{
    position:relative;
    padding:5px 0;
}

.nav-links a:hover{
    letter-spacing:0.5px;
}
.logo-label{
    margin-top:15px;
    font-size:13px;
    color:#d4af37;
    letter-spacing:1px;
    text-transform:uppercase;
}