/* =========================
   NAVBAR BASE
========================= */
.navbar {
    background: linear-gradient(90deg, #020617, #0f172a);
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 9999;
}

/* =========================
   OVERLAY OSCURO
========================= */
#overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

#overlay-menu.active {
    opacity: 1;
    visibility: visible;
}

/* =========================
   MENU LATERAL (PRO)
========================= */
.categorias-wrapper {
    position: fixed !important;
    top: 0;
    left: -650px; /* 🔥 oculto */
    width: 650px; /* 🔥 más compacto */
    height: 100vh;
    background: #020617;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    z-index: 999;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

/* ACTIVO */
.categorias-wrapper.active {
    left: 0;
}

/* =========================
   BOTÓN CERRAR
========================= */
.menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
}

/* =========================
   CONTENEDOR FLEX
========================= */
.mega-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* =========================
   LADO IZQUIERDO
========================= */
.menu-left {
    width: 240px;
    border-right: 1px solid rgba(255,255,255,0.05);
    overflow-y: auto;
}

/* SCROLL BONITO */
.menu-left::-webkit-scrollbar {
    width: 6px;
}

.menu-left::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

/* =========================
   ITEM CATEGORIA
========================= */
.categoria-hover {
    position: relative;
}

.categoria-item {
    display: block;
    padding: 14px 18px;
    color: #cbd5f5;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.categoria-item:hover {
    background: #1e293b;
    color: #fff;
}

/* =========================
   PANEL DERECHO (CORREGIDO)
========================= */
.menu-right {
    flex: 1;
    padding: 25px;
    display: none;
}

/* 🔥 SOLO UNO ACTIVO */
.menu-right.active {
    display: block;
}

/* 🔥 HOVER CAMBIA CONTENIDO */
.categoria-hover:hover .menu-right {
    display: block;
}

/* TITULO */
.menu-right h6 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

/* SUBCATEGORIAS */
.menu-right a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 13px;
    transition: all 0.2s;
}

.menu-right a:hover {
    color: #fff;
    padding-left: 6px;
}

/* SIN SUB */
.menu-right span {
    color: #64748b;
    font-size: 13px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {

    .categorias-wrapper {
        width: 100%;
        left: -100%;
    }

    .categorias-wrapper.active {
        left: 0;
    }

    .mega-container {
        flex-direction: column;
    }

    .menu-left {
        width: 100%;
        max-height: 250px;
    }

    .menu-right {
        display: block !important;
        position: static;
    }
}