.navbar{
    font-family: "Roboto", sans-serif;
    position: fixed; 
    top: 40px; 
    width: 100%; 
    z-index: 1;
    font-size: 2rem;
    padding: 20px 20px;
    background-color: #00000049; 
    backdrop-filter: blur(10px);
    z-index: 1000;
    overflow: hidden;

    ul {
        padding-left: 300px;
        width: auto;
        height: auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        list-style: none;
        margin-right: 5rem;
        align-items: center;
        gap: 20px
        ;
    }

}

.anav {    
    font-size: 2.5rem;
    font-weight: 500;
    font-family: "Roboto", sans-serif;
    text-decoration: none;
    color: rgb(255, 255, 255);
    margin: 20px;
    border: 10px;
    padding: 10px 15px;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.5);

}
.anav:hover {
    color: rgb(255, 255, 255);
    background-color: rgb(255, 81, 0);
    border-radius: 5px;
}


.logonav {
    top: 15px;
    position: fixed;
    width: 200px; 
    height: auto; 
    z-index: 1;
}

.logonavmini {
    background-color: red;
}

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

.menu {
display: none;
.ulmenu {
    font-size: 2.5rem;
    font-weight: 350;
    font-family: "Roboto", sans-serif;
    
    margin: 20px;
    border: 10px;
    padding: 10px 15px;

    a{
    color: rgb(255, 255, 255);
    text-decoration: none;
    background-color: #012004be; 
    margin: 20px;
    border: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    }

    a:hover {
        color: rgb(255, 255, 255);
        background-color: rgb(133, 62, 14);
        border-radius: 5px;
    }

}
}  

/* Media query */

@media (max-width: 1431px) {
    .navbar{
        font-family: "Roboto", sans-serif;
        position: fixed; 
        top: 0px; 
        width: 100%; 
        z-index: 1000;
        font-size: 2rem;
        padding: 10px 10px;
        background-color: #00000049; 
        backdrop-filter: blur(10px);
        overflow: hidden;
    
        ul {
            padding-left: 0px;
            padding-top: 50px;
            width: auto;
            height: auto;
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            list-style: none;
            margin-right: 5rem;
            align-items: center;
            gap: 20px
            ;
        }
    
    }
    }

@media (max-width: 768px) {

    .navbar {
        position: fixed;
        top: 40px;
        width: 95%; 
        height: 60px;
        background-color: #00000049; 

        ul {
        display: none;  
        } 
        overflow: visible; 

    }

    .hamburger {
        display: flex; 
        justify-content: right;
        padding-top: 5px;
        padding-right: 20px;
        font-size: 3.5rem;
        color: rgb(255, 255, 255);
        z-index: 999;
    }

    .logonav {
        display: block;
        top: 5px;
        padding-top: 16px;
        padding-left: 10px;
        width: 60px;
        height: auto;
        z-index: 99;
    }

    .menu {
        display: flex;
        position: fixed;
        top: -600%; /* Fuera de la vista inicialmente (desde arriba) */
        left: 0;
        width: 90%;
        height: 400px;
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: start;
        padding-top: 50px;
        transition: top 0.3s ease; /* Animación para el despliegue desde arriba */
        z-index: 1000; /* Asegura que esté sobre el contenido */

        .ulmenu{
            width: 100%;
            margin: 0px;
            padding-top: 30px;
            padding-bottom: 30px;
            display: flex;
            flex-direction: column;
            align-items: center;
            top: 0px;
            gap: 10px;
            
            li {
             /* background-color: red; */
             width: 80%; 
             align-items: center; 
            } 

            a {
            display: flex;
            margin: 0px;
            gap: 30px; 
            justify-content: center;
            }
        }
    }
    
    /* Cuando el menú está activo */
    .menu.active {
        display: flex;
        position: fixed;
        top: 80px;
        height: 300px;
        width: 100%;
        background-color: #00000093;
        align-items: center;
        transition: top 0.3s ease;
        z-index: 3;
        flex-direction: column;
        justify-content: flex-start;
        overflow: hidden;
    }



    
}