
nav {
    /* align-items: start; */
    width: 100%;
    height: 90%;
}

#menuDiv {
    width: 100%;
}   

#buttonDiv {
    display: flex;
    justify-content: space-evenly;
    height: 100%;
    margin: 20px 0;
}

.buttonMenu {
    border-radius: 8px;
    border: 1px solid #555c61;
    background: transparent;
    font-family:Arial, Helvetica, sans-serif;
    padding: 0 8px;
    margin-bottom: 20px;
    color: rgb(180, 198, 201);
    height: 25px;
    text-decoration: none;
}

.buttonMenu a {
    text-decoration: none;
    color: rgb(87, 158, 170);
}

.buttonMenu:hover {
    background-color: rgba(130, 179, 196, 0.2);
    color: rgb(120, 175, 190);
    border: 1px solid white;
    transition: background-color 0.3s ease;
}

#galeriaDiv {
    text-align: center;
}

#galeriaDiv a img {
    width: 200px;
    height: auto;
    margin: 10px;
    border: 2px double #ccc;
    border-radius: 0 4px;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* RESPONSIVE DESIGN - Solo cambios para móvil */
@media (max-width: 768px) {
    #fondoHeader {
        display: none;
    }

    #fondoHeader02 {
        width: 100%;
    }

    #fondoHeader02 img {
        width: 50px;
        border-radius: 80px;
        margin-left: 5px;
    }

    header {
        justify-content: space-around;
    }

    /* Añadir funcionalidad hamburguesa al logo */
    #logoDiv {
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    #logoDiv:hover {
        transform: scale(1.05);
    }

    #logoDiv.active {
        transform: scale(0.95);
    }

    /* MENÚ MÓVIL DESLIZANTE DESDE LA IZQUIERDA */
    #menuDiv {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, 
            rgba(106, 24, 188, 0.9) 0%,
            rgba(217, 20, 20, 0.8) 50%,
            rgba(167, 189, 193, 0.9) 100%);
        backdrop-filter: blur(10px);
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
    }

    #menuDiv.menu-open {
        left: 0;
    }

    #buttonDiv {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 20px 20px;
        gap: 20px;
        height: auto;
        grid-template-columns: none;
    }

    .buttonMenu {
        width: 100%;
        padding: 15px 20px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 12px;
        text-align: center;
        font-size: 1.1em;
        height: auto;
        margin-bottom: 0;
        transition: all 0.3s ease;
    }

    .buttonMenu:hover {
        background: rgba(255, 255, 255, 0.4);
        transform: translateX(5px);
        border-color: rgba(255, 255, 255, 0.6);
    }

    .buttonMenu a {
        color: white;
        font-weight: 500;
    }

    /* Ocultar los elementos <p> vacíos en móvil */
    #buttonDiv p {
        display: none;
    }
}

/* Breakpoint adicional para móviles muy pequeños */
@media (max-width: 480px) {
    #menuDiv {
        width: 250px;
    }
    
    #buttonDiv {
        padding: 70px 15px 15px;
    }
    
    .buttonMenu {
        padding: 12px 15px;
        font-size: 1em;
    }
}
