.hamburger-menu-wrapper {
    --menu-color: #c6bce8;
    --menu-bg-color: #816fbd;
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 45px;
    height: 31.5px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger-icon span {
    display: block;
    height: 6.2px;
    width: 100%;
    background-color: var(--menu-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--menu-bg-color);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    padding-top: 60px;
}

.hamburger-menu.active {
    left: 0;
}

.hamburger-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hamburger-menu li {
    border-bottom: 1px solid #e0e0e0;
}

.hamburger-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--menu-color);
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 16px;
    transition: background-color 0.2s;
}

.hamburger-menu a:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Overlay cuando el menú está abierto */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.menu-overlay.active {
    display: block;
}

/* Estilos para cuando el menú está activo */
body.menu-open {
    overflow: hidden;
}

/* Animación del ícono hamburguesa cuando está activo */
.hamburger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive */
@media (min-width: 768px) {
    .hamburger-menu {
        width: 300px;
    }
}