/* CABECERA */

.navbar-vcm{
    display: flex;
    justify-content: space-between;
    transition: all 1s;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgb(05, 06, 08, .7);
    backdrop-filter: blur(4px);
}

.navbar-links ul {
    margin: 0;
    padding: 0;
    display: flex;
    height: 10vh;
    width: 500px;
    justify-content: space-between;
    flex-direction: row;
}

.navbar-links li {
    margin: 0;
    padding: 0;
    display: flex;
    text-decoration: none;
    align-items: center;
}

.nav-link{
    color: whitesmoke;
    text-decoration: none;
    font-size: 1.25rem;
    padding: 0.25rem 1rem;
    transition: font-size .25s ease-in-out;
    display: inline-block;
    position: relative;
}

.nav-link-right{
    font-size: 1rem;
}

.nav-link:hover,
.nav-link:focus{
    color: whitesmoke;
}

    /* Efecto de hover sobre barra de navegación */
    .nav-link:after {
        content: '';
        position: absolute;
        width: 100%;
        transform: scaleX(0);
        height: 3px;
        bottom: 0;
        left: 0;
        background-color: whitesmoke;
        /* transform-origin: bottom right; */
        transition: transform 0.35s ease-out;
    }
      
      .nav-link:hover:after {
        transform: scaleX(1);
        /* transform-origin: bottom left; */
    }
    /* Fin de efecto de hover sobre barra de navegación */

.brand-title{
    width: 350px;  
    margin: auto 0;
    padding: .75rem 3rem .75rem 1.5rem;
}

.brand-title.redes{
    text-align: right;
}

.toggle-button{
    position: absolute;
    top: 1.25rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1;
}

.toggle-button .bar{
    height: 3px;
    width: 100%;
    background-color: whitesmoke;
    border-radius: 10px;
}

/* ANIMACIONES DE LA CRUZ */
/* Rotaciones iniciales */
.bar.abajo.activo{
    animation: alinear-abajo 500ms ease forwards;
}

@keyframes alinear-abajo { 
    from { transform: translate(0px, -9px) rotate(135deg); } 
    to { transform: translate(0px, 0px) rotate(0deg); } 
}

.bar.centro.activo{
    animation: alinear-centro 500ms ease forwards;
}

@keyframes alinear-centro { 
    from { transform: translate(0px, 0px) rotate(45deg); } 
    to { transform: translate(0px, 0px) rotate(0deg); } 
}

.bar.arriba.activo{
    animation: alinear-arriba 500ms ease forwards;
}

@keyframes alinear-arriba { 
    from { transform: translate(0px, 9px) rotate(135deg); } 
    to { transform: translate(0px, 0px) rotate(-0deg); } 
}


/* Rotaciones para cerrar */
.bar.abajo.rotar{
    animation: rotar-abajo 500ms ease forwards;
}

@keyframes rotar-abajo { 
    from { transform: translate(0px, 0px) rotate(0deg); } 
    to { transform: translate(0px, -9px) rotate(135deg); } 
}

.bar.centro.rotar{
    animation: rotar-centro 500ms ease forwards;
}

@keyframes rotar-centro { 
    from { transform: translate(0px, 0px) rotate(0deg); } 
    to { transform: translate(0px, 0px) rotate(45deg); } 
}

.bar.arriba.rotar{
    animation: rotar-arriba 500ms ease forwards;
}

@keyframes rotar-arriba { 
    from { transform: translate(0px, 0px) rotate(0deg); } 
    to { transform: translate(0px, 9px) rotate(135deg); } 
}
/* FIN DE ANIMACIONES DE LA CRUZ */



@media (max-width: 1000px){
    .toggle-button{
        display: flex;
    }

    .brand-title.redes{
        display: none;
        z-index: 1;
        top: 1.25rem;
        left: 1rem;
        position: absolute;
        margin: 0;
        padding: 0;
        text-align: left;
        width: 15%;
    }

    .brand-title.redes.active{
        display: flex;
        animation: aparecer 800ms ease forwards;
    }

    @keyframes aparecer { 
        from { opacity: 0;
            transform: translate(0px, -30px) } 
        to { opacity: 1;
            transform: translate(0px, 0px) } 
    }



    .navbar-links{
        width: 100%;
        height: 0;
        transform: translateY(-100vh);
    }

    .navbar-links.activo{
        display: flex;
        height: 100vh;
        background:rgb(05, 06, 08, .8);
        backdrop-filter: blur(5px);
        position: absolute;
        transform: translateY(-100vh);
        transition: 0.5s ease-out;
    }

    .navbar-vcm{
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-links ul {
        flex-direction: column;
        width: 100%;
        height: 62%;
        margin: auto;
        justify-content: space-evenly;
        align-items: center;
    }

    .nav-link{
        text-align: center;
        /* width: 100%; */
        padding: .5rem 1rem;
        font-size: 2rem;
        line-height: 2.5rem;
        text-align: center;
        display: inline-block;
        position: relative;
    }

    .nav-link-right{
        font-size: 1.5rem;
    }

    .logo-X{
        margin-top: 1.2vh;
        margin-left: 2vh;
    }
    
    .navbar-links.activo.active{
        transform: translateY(0vh);
        transition: 0.5s ease-out;
    }
}

/* USER DROPDOWN MENU */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-btn {
    background-color: transparent;
    color: whitesmoke;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.user-dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: whitesmoke;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    left: auto;
    top: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.4);
    padding: 10px 0;
    z-index: 1000;
    border-radius: 5px;
    backdrop-filter: blur(5px);
    margin-top: 5px;
}

.user-dropdown-content.show {
    display: block;
}

.dropdown-item {
    color: whitesmoke;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: whitesmoke;
    border-left-color: var(--clr-primary);
}

/* RESPONSIVE DROPDOWN FOR MOBILE */
@media (max-width: 1000px) {
    .user-dropdown {
        position: static;
        display: flex;
    }

    .user-dropdown-content {
        position: fixed;
        right: 0;
        left: 0px;
        min-width: 180px;
        width: 180px;
        max-width: calc(100vw - 30px);
    }

    .user-dropdown-btn {
        padding: 8px 12px;
        font-size: 1.5rem;
    }

    .dropdown-item {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
}

.dropdown-item hr {
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    height: 1px;
}