/* Estilos para el menú con dos estados: visible o completamente oculto */

/* Estilo del menú cuando está visible */
.main-nav {
    transition: all 0.3s ease;
}

/* Estilo del menú cuando está oculto */
.main-nav.hidden {
    transform: translateX(-100%);
    visibility: hidden;
    opacity: 0;
}

/* Estilo para el botón de cerrar menú */
.toggle-menu-absolute {
    position: absolute;
    /* top: 10px; */
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    z-index: 100;
    /* padding: 1rem 5px 0 5px; */
    margin: .5rem 5px 0 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.toggle-menu-absolute:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Estilo para el botón de menú hamburguesa */
.toggle-menu {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 999;
    background-color: var(--color1);
    color: rgb(147, 189, 249);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.toggle-menu:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Ajustar el espacio del contenido cuando el menú está oculto */
body.menu-hidden .lateral-menu {
    margin-left: 1rem;
    width: calc(100% - 2rem);
    max-width: 100%;
}
