/* ====================================================================
   MENÚ LATERAL
   Tarjeta de usuario, botones de sección y separadores
   ==================================================================== */

.USUARIO {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px;
    border-radius: 8px;
    background: var(--bg-menu-hover);
    outline: 1px solid var(--border-color);
}

.AVATAR {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.NOMBRE {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.CORREO {
    font-size: 12px;
    color: var(--text-primary);
}

.MENU {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
}

.SEPARADOR {
    height: 1px;
    background: var(--border-color);
    margin: 10px 0;
    flex-shrink: 0;
}

.BOTON {
    position: relative;
    padding: 10px;
    line-height: 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.BOTON:hover,
.BOTON.activo {
    background-color: var(--bg-menu-hover);
    color: var(--text-primary);
}

/* Barrita azul a la izquierda del botón activo */
.BOTON::before {
    content: "";
    position: absolute;
    left: 0;
    width: 3px;
    height: 0;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.BOTON.activo::before {
    height: 16px;
}

/* ====================================================================
   MENÚ RESPONSIVO (como Windows 11)
   Pantalla angosta: el menú se oculta y se abre con el botón hamburguesa
   ==================================================================== */

.HAMBURGUESA,
.FONDO-MENU {
    display: none;
}

@media (max-width: 1000px) {
    .HAMBURGUESA {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1100;
        width: 40px;
        height: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: none;
        border-radius: 8px;
        background: transparent;
        cursor: pointer;
    }

    .HAMBURGUESA:hover {
        background: var(--bg-menu-hover);
    }

    .HAMBURGUESA span {
        width: 16px;
        height: 1.5px;
        background: var(--text-primary);
        border-radius: 1px;
    }

    .LATERAL {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1000;
        box-sizing: border-box;
        max-width: 85vw;
        padding-top: 80px;
        overflow-y: auto;
        background: var(--bg-principal);
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.1s ease, visibility 0.25s;
    }

    body.menu-abierto .LATERAL {
        transform: translateX(0);
        visibility: visible;
    }

    .FONDO-MENU {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 900;
        background: rgba(0, 0, 0, 0.3);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.1s ease;
    }

    body.menu-abierto .FONDO-MENU {
        opacity: 1;
        pointer-events: auto;
    }

    .PRINCIPAL {
        padding: 80px 20px 20px;
    }
}
