/* Estilos originales */
.sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    background-color: #f1ead6;
    padding: 20px;
    left: 0;
    top: 0;
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease-in-out;
}

.sidebar a:hover {
    background-color: #ffc107;
    border-radius: 5px;
}

.content {
    margin-left: 270px;
    padding: 20px;
}

/* Botón hamburguesa */
.menu-btn {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: black;
    top: 15px;
    left: 15px;
    z-index: 1000;
    display: none; /* Ocultar en pantallas grandes */
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 250px;
        position: fixed;
        z-index: 1001;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .menu-btn {
        display: block;
    }

    .content {
        margin-left: 0 !important;
        padding: 15px;
    }

    /* Overlay oscuro al abrir el sidebar */
    #overlay {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100vw;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1000;
        display: none;
    }

    #overlay.active {
        display: block;
    }
}

/* Sidebar activo en móviles */
.sidebar.open {
    transform: translateX(0);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
}
