:root {
    --main-color: rgb(17, 84, 189);
    --secondary-text-color: #fff;
}

.mybtn-unique:not(.login__btn-unique) {
    border-color: var(--main-color) !important;
    color: var(--main-color) !important;
}

.mybtn-unique:hover {
    background-color: var(--main-color) !important;
    color: #fff !important;
}


/*----------HEADER SECTION STARTS-----*/

.header-secondary {
    width: 100%;
    height: 50px;
    background-color: var(--main-color);
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: left;
    box-shadow: 0 0 18px 0 #003e85;
    z-index: 99999;
}

.header-secondary span {
    font-size: 30px;
    margin-left: 20px;
    color: var(--secondary-text-color);
}

/*Animacion del scroll*/



/*------HEADER ENDS-----------*/

/*Navbar style*/

.nav-link {
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.nav-link:not(button):before {
    content: "";
    width: 100%;
    position: absolute;
    height: 2px;
    top: 35px;
    right: 100%;
    background-color: #fff;
    transition: right 0.3s ease-in-out;
}

.nav-link.active::before {
    right: 0;
}

.nav-link:hover::before {
    right: 0;
}

/*estilo de matemáticas que posteriormente quitare*/


.main__section {
    max-width: 1200px;
    width: 100%;
    padding: 0 30px;
    margin-top: 50px;
}

/*ESTILOS DE LA PAGINA */
.header {
    position: sticky;
    top: 0;
    z-index: 99999;
}

.navbar-nav {
    width: 100%;
    display: flex;
    justify-content: space-between !important;
}

nav.navbar {
    /* TANCISION POR SI EL NAVEGADOR NO TIENE ANIMACION*/
    transition: all 0.3s ease;
    height: 100px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 0 18px 0 #003e85;

    /*ANIMACION BASADA EN EL SCROLL*/
    animation: shrink both linear;
    animation-timeline: scroll(root);
    animation-range: 0 150px;
}

/* Logo */
nav .main__logo {
    padding: 0 7px;
    width: 250px !important;
    transition: width 0.3s ease;
}


@keyframes shrink {
    to {
        height: 52px;
        padding: 30px 0;
        background-color: rgb(15, 70, 160);
        box-shadow: 0 0 10px #003e85;
    }
}

/* REDUCCION DE LOGO USANDO SCALE */
nav.navbar img.main__logo {
    animation: logo-shrink both linear;
    animation-timeline: scroll(root);
    animation-range: 0 150px;
}

@keyframes logo-shrink {
    to {
        transform: scale(0.9)
    }
}

nav .nav-link {
    font-size: 1rem;
    transition: font-size 0.3s ease;
    animation: links-shrink both linear;
    animation-timeline: scroll(root);
    animation-range: 0 150px;
}

nav .mybtn-unique {
    transition: transform 0.3s, background-color 0.4s ease;
    animation: btn-shrink both linear;
    animation-timeline: scroll(root);
    animation-range: 0 150px;
}

@keyframes links-shrink {
    to {
        font-size: 0.9rem;
    }
}

@keyframes btn-shrink {
    to {
        transform: scale(0.9);
    }
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
    transition: margin 0.3s ease;
    animation: toggler-shrink both linear;
    animation-timeline: scroll(root);
    animation-range: 0 150px;
}

.dropdown-menu:hover,
.dropdown-item:hover {
    text-decoration: none !important;
}

.separator__nav {
    display: flex;
}


@keyframes toggler-shrink {
    to {
        margin-top: -4px;
    }
}

#btn__login-logout {
    border-width: 1px;
}

/* RESPONSIVE QUITANDO ANIMACIONES*/
@media (max-width: 991.98px) {

    /*CONTENIDO DE BLOG*/
    #contenedor__detalles-blog {
        margin-top: 0 !important;
    }

    nav.navbar {
        height: auto;
        animation: none;
    }

    .navbar-collapse {
        text-align: left !important;
    }

    .navbar-nav {
        align-items: flex-start !important;
    }

    .separator__nav {
        flex-direction: column;
    }

    nav img.main__logo {
        width: 230px !important;
        animation: none !important;
        transform: none;
        transition: none;
    }

    nav .nav-link {
        font-size: 1rem;
        animation: none;
        text-align: justify;
    }

    nav .mybtn-unique {
        animation: none;
    }

    .navbar-toggler {
        margin: 0;
        animation: none;
    }

    .header-secondary span {
        margin-left: 10px;
        font-size: 32px;
    }

    #btn__login-logout {
        padding: 7px 10px;
    }

}

/*FOOTER*/