@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap");
.MenuPrincipal,
.MenuPrincipal button,
.MenuPrincipal a,
.MenuPrincipal h2,
.MenuPrincipal h3,
.MenuPrincipal h4 {
    font-family: "Quicksand", sans-serif;
}
/* =========================================================
   BOTÓN HAMBURGUESA
========================================================= */

.MenuBotonAbrir {
    width: 42px;
    height: 42px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 0;
    border-radius: 8px;

    background: #a90f3f;

    cursor: pointer;
}

.MenuBotonAbrir span {
    width: 20px;
    height: 2px;

    display: block;

    background: #ffffff;
}


/* =========================================================
   FONDO OSCURO
========================================================= */

.MenuFondo {
    position: fixed;
    inset: 0;

    display: block;

    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(0px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    z-index: 9998;
}

.MenuFondo.MenuFondoActivo {
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   CONTENEDOR PRINCIPAL
========================================================= */

.MenuPrincipal {
    position: fixed;

    top: 0;
    left: 0;

    width: 525px;
    max-width: calc(100% - 20px);
    height: 100vh;

    display: flex;
    align-items: flex-start;

    background: transparent;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-70px) scaleX(0.985);
    transform-origin: left center;

    z-index: 9999;

    box-shadow: none;
}

.MenuPrincipal.MenuPrincipalActivo {
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   COLUMNA DE CATEGORÍAS
========================================================= */

.MenuCategorias {
    width: 210px;
    min-width: 210px;
    height: 100%;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border-right: 1px solid #e6e6e6;
    box-shadow: 4px 0 14px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   CABECERA IZQUIERDA
========================================================= */

.MenuCabecera {
    height: 46px;
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 14px;

    background: #b40f43;
}

.MenuCabeceraTitulo {
    margin: 0;

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   BOTÓN CERRAR
========================================================= */

.MenuBotonCerrar {
    position: relative;

    width: 24px;
    height: 24px;

    border: 1px solid #ffffff;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;
}

.MenuBotonCerrar span {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 11px;
    height: 1px;

    background: #ffffff;
}

.MenuBotonCerrar span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.MenuBotonCerrar span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}


/* =========================================================
   LISTA DE CATEGORÍAS
========================================================= */

.MenuListaCategorias {
    flex: 1;

    overflow-y: auto;

    padding: 0 8px;
}

.MenuCategoriaBoton {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 6px 10px;

    border: 0;
    border-bottom: 1px solid #dddddd;

    background: #ffffff;

    color: #161616;

    text-align: left;

    cursor: pointer;
}

.MenuCategoriaBoton:hover,
.MenuCategoriaBoton.MenuCategoriaActiva {
    color: #b40f43;

    font-weight: 700;
}

.MenuCategoriaIcono {
    width: 26px;
    height: 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    color: #111111;

    font-size: 17px;
    line-height: 1;

    border: 1px solid rgba(180, 15, 67, 0.20);
    border-radius: 7px;

    background: rgba(180, 15, 67, 0.025);

    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.MenuCategoriaBoton:hover .MenuCategoriaIcono,
.MenuCategoriaBoton.MenuCategoriaActiva .MenuCategoriaIcono {
    transform: translateX(2px);
    color: #111111;
    background: rgba(0, 0, 0, 0.035);
    border-color: rgba(0, 0, 0, 0.18);
}

.MenuCategoriaNombre {
    flex: 1;

    font-size: 13.5px;
}

.MenuCategoriaFlecha {
    display: none;

    color: #b40f43;

    font-size: 20px;
    font-weight: 400;
}

.MenuCategoriaBoton.MenuCategoriaActiva .MenuCategoriaFlecha {
    display: block;
}


/* =========================================================
   BOTÓN REGRESAR
========================================================= */

.MenuBotonRegresar {
    display: none;
}


/* =========================================================
   MEGAMENÚ DERECHO
========================================================= */

.MenuMegaPanel {
    width: 305px;
    height: auto;
    max-height: calc(100vh - 70px);

    display: flex;
    flex-direction: column;

    margin-top: 58px;
    margin-left: 10px;

    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   CABECERA DERECHA
========================================================= */

.MenuMegaCabecera {
    height: 46px;
    min-height: 46px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 14px;

    background: #b40f43;
}

.MenuMegaTitulo {
    margin: 0;

    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
}

.MenuMegaVerTodo {
    padding: 4px 13px;

    border: 1px solid #ffffff;
    border-radius: 20px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
}


/* =========================================================
   CONTENIDO DEL MEGAMENÚ
========================================================= */

.MenuMegaContenido {
    flex: 0 1 auto;

    display: grid;
    grid-template-columns: 1fr;

    align-content: start;

    gap: 16px;

    padding: 18px 18px 20px;

    overflow-y: auto;
}

.MenuGrupoTitulo {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin: 0 0 8px;

    color: #b40f43;

    font-size: 12px;
    font-weight: 700;
}

.MenuGrupoTitulo::before {
    content: "";

    width: 14px;
    height: 2px;

    border-radius: 999px;

    background: #111111;
}

.MenuGrupoLista {
    display: flex;
    flex-direction: column;

    gap: 2px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.MenuGrupoLista li {
    margin: 0;
    padding: 0;
}

.MenuGrupoEnlace {
    position: relative;

    min-height: 31px;

    display: flex;
    align-items: center;

    padding: 5px 20px 5px 2px;

    border-radius: 8px;

    color: #111111;

    font-size: 12.5px;
    line-height: 1.25;
    text-decoration: none;

    transition:
        color 0.22s ease,
        background-color 0.22s ease,
        transform 0.22s ease;
}

.MenuGrupoEnlaceIcono {
    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-right: 8px;
    flex-shrink: 0;

    color: #111111;
    font-size: 13px;

    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 7px;
    background: #ffffff;

    transition:
        color 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease,
        transform 0.22s ease;
}

.MenuGrupoEnlaceTexto {
    flex: 1;
}

.MenuGrupoEnlace::after {
    content: "→";

    position: absolute;

    right: 8px;

    color: #111111;

    font-size: 14px;

    opacity: 0;
    transform: translateX(-5px);

    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.MenuGrupoEnlace:hover {
    color: #b40f43;

    background: rgba(180, 15, 67, 0.06);

    text-decoration: none;

    transform: translateX(3px);
}

.MenuGrupoEnlace:hover .MenuGrupoEnlaceIcono {
    color: #111111;
    border-color: rgba(180, 15, 67, 0.22);
    background: rgba(180, 15, 67, 0.055);
    transform: scale(1.04);
}

.MenuGrupoEnlace:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.MenuGrupoVerTodo {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 10px;
    padding: 6px 12px;

    border: 1px solid rgba(180, 15, 67, 0.28);
    border-radius: 999px;

    color: #b40f43;

    background: rgba(180, 15, 67, 0.04);

    font-size: 12px;
    font-weight: 700;
    text-decoration: none;

    transition:
        background-color 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease;
}

.MenuGrupoVerTodo::after {
    content: "→";

    font-size: 14px;
}

.MenuGrupoVerTodo:hover {
    color: #ffffff;
    background: #b40f43;
    border-color: #b40f43;
    transform: translateX(2px);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 760px) {

    .MenuPrincipal {
        width: min(100%, 420px);
        max-width: 100%;
        background: #ffffff;
    }

    .MenuCategorias {
        width: 100%;
        min-width: 100%;
    }

    .MenuMegaPanel {
        display: none;
        margin: 0;
        max-height: none;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .MenuPrincipal.MenuMostrandoDetalle .MenuCategorias {
        display: none;
    }

    .MenuPrincipal.MenuMostrandoDetalle .MenuMegaPanel {
        width: 100%;
        height: 100%;

        display: flex;
    }

    .MenuPrincipal.MenuMostrandoDetalle .MenuBotonRegresar {
        display: flex;
    }

    .MenuMegaContenido {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 30px 20px;

        padding: 28px 20px;
    }

    .MenuBotonRegresar {
        height: 45px;

        align-items: center;

        gap: 8px;

        padding: 0 14px;

        border: 0;
        border-bottom: 1px solid #dddddd;

        background: #ffffff;

        color: #b40f43;

        font-weight: 700;

        cursor: pointer;
    }

}