/* =========================================================
   HEADER
========================================================= */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    transition: all .3s ease;
    z-index: 1000;
}
/* =========================================================
   HEADER AL HACER SCROLL
========================================================= */
.header.scrolled{
    background: rgba(255,255,255,.90);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
/* =========================================================
   CONTENEDOR
========================================================= */
.header-container{
    width: 100%;
    max-width: 1290px;
    height: 88px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* =========================================================
   LOGO
========================================================= */
.logo{
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
}
.logo img{
    display: block;
    height: 70px;
    width: auto;
    transition: all .3s ease;
}
.logo-text{
    margin-left: -2px;
    font-weight: 700;
}
/* =========================================================
   NAVEGACIÓN
========================================================= */
.nav-menu{
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-menu a{
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    font-weight: 700;
    text-decoration: none;
    transition: .3s ease;
}
/* =========================================================
   LÍNEA ROJA HOVER
========================================================= */
.nav-menu a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #ff0000;
    transition: width .3s ease;
}
.nav-menu a:hover::after{
    width: 100%;
}

/* =========================================================
   ENLACE ACTIVO
========================================================= */
.nav-menu a.active::after{
    width: 100%;
}
/* =========================================================
   BOTÓN ADMISIONES
========================================================= */
.btn-admisiones{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 40px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: .3s ease;
}
.btn-admisiones:hover{
    opacity: .9;
}
/* =========================================================
   BOTÓN MENÚ MÓVIL
========================================================= */
.menu-toggle{
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}
/* =========================================================
   ELEMENTOS EXCLUSIVOS DEL MENÚ MÓVIL
========================================================= */
.mobile-menu,
.mobile-overlay{
    display: none;
}
/* =========================================================
   TABLET
========================================================= */
@media (max-width: 1024px){
    .header-container{
        max-width: 100%;
        height: 80px;
        padding: 0 2rem;
        align-items: center;
    }
    .logo img{
        height: 62px;
    }
    .nav-menu{
        gap: 1.2rem;
        align-items: center;
    }
    .btn-primary{
        min-width: 110px;
        height: 38px;
    }

}
/* =========================================================
   CELULAR
========================================================= */
@media (max-width: 768px){
    /* =====================================================
       LOGO DEL MENÚ MÓVIL
    ===================================================== */
    .mobile-menu-logo{
        display: flex;
        align-items: center;
        height: 80px;
        padding: 0 20px;
        border-bottom: 1px solid rgba(0,0,0,.08);
    }
    .mobile-menu-logo a{
        display: flex;
        align-items: center;
        text-decoration: none;
        font-weight: 700;
    }
    .mobile-menu-logo img{
        display: block;
        height: 50px;
        width: auto;
    }
    .mobile-menu-logo span{
        margin-left: -2px;
        font-weight: 700;
    }
    /* =====================================================
       CONTENEDOR HEADER
    ===================================================== */
    .header-container{
        height: 72px;
        padding: 0 1.2rem;
        justify-content: flex-start;
        display: flex;
        align-items: center;
    }
    /* =====================================================
       LOGO
    ===================================================== */
    .logo img{
        height: 56px;
    }
    /* =====================================================
       MENÚ DESKTOP
    ===================================================== */
    .nav-menu{
        display: none;
    }
    /* =====================================================
       ADMISIONES DESKTOP
    ===================================================== */
    .header-container > .btn-primary{
        display: none;
    }
    /* =====================================================
       BOTÓN HAMBURGUESA
    ===================================================== */
    .menu-toggle{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin-left: 10px;
        padding: 0;
        border: none;
        background: #ff0000;
        cursor: pointer;
        position: relative;
        transition: .3s ease;
    }
    .menu-toggle::before{
        content: "";
        position: absolute;
        width: 22px;
        height: 2px;
        background: #ffffff;
        box-shadow:
            0 -7px 0 #ffffff,
            0 7px 0 #ffffff;
    }
    .menu-toggle:hover{
        opacity: .9;
    }
    /* =====================================================
       MENÚ LATERAL
    ===================================================== */
    .mobile-menu{
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 82%;
        max-width: 360px;
        height: 100vh;
        background: #ffffff;
        z-index: 2001;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform .3s ease;
        box-shadow: 8px 0 25px rgba(0,0,0,.12);
    }
    .mobile-menu.active{
        transform: translateX(0);
    }
    /* =====================================================
       BOTÓN CERRAR
    ===================================================== */
    .mobile-menu-close{
        position: absolute;
        top: 0;
        right: 0;
        width: 48px;
        height: 48px;
        border: none;
        background: #ff0000;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }
    .mobile-menu-close::before{
        content: "";
        position: absolute;
        width: 22px;
        height: 2px;
        background: #ffffff;
        transform: rotate(45deg);
    }
    .mobile-menu-close::after{
        content: "";
        position: absolute;
        width: 22px;
        height: 2px;
        background: #ffffff;
        transform: rotate(-45deg);
    }
    /* =====================================================
       NAVEGACIÓN MÓVIL
    ===================================================== */
    .mobile-nav{
        display: flex;
        flex-direction: column;
        padding: 70px 25px 30px 25px;
    }
    .mobile-nav a{
        position: relative;
        display: flex;
        align-items: center;
        min-height: 58px;
        padding: 0 15px;
        font-weight: 700;
        text-decoration: none;
        transition: .3s ease;
    }
    /* =====================================================
       LÍNEA ROJA MENÚ MÓVIL
    ===================================================== */
    .mobile-nav a::after{
        content: "";
        position: absolute;
        left: 15px;
        bottom: 8px;
        width: 0;
        height: 2px;
        background: #ff0000;
        transition: width .3s ease;
    }
    .mobile-nav a:hover::after{
        width: calc(100% - 30px);
    }
    .mobile-nav a.active::after{
        width: calc(100% - 30px);
    }
    /* =====================================================
       ADMISIONES MÓVIL
    ===================================================== */
    .mobile-nav .mobile-admisiones{
        margin-top: 15px;
        justify-content: center;
        min-height: 45px;
    }
    /* =====================================================
       OVERLAY
    ===================================================== */
    .mobile-overlay{
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,.45);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition:
            opacity .3s ease,
            visibility .3s ease;
    }
    .mobile-overlay.active{
        opacity: 1;
        visibility: visible;
    }

}