/* ============================================================
   PULULART CUSTOM MENU
   MENÚ FULLSCREEN
   ============================================================ */

#custom-menu-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

#custom-menu {
    position: relative;
    width: 100%;
    z-index: 1000;

    font-family: var(--primary-font);
    color: var(--font-color);
}


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

#inner-menu-wrapper {

    position: relative;
    z-index: 100;

    width: 100%;

    transition: all 0.3s ease-out;
}

#custom-menu .summary {

    display: flex !important;

    flex-direction: row;

    justify-content: space-between;

    align-items: center;

    box-sizing: border-box;

    width: 100%;

    padding: 20px 30px;

    gap: 20px;

    background-color: transparent;
}


/* ============================================================
   LOGO
   ============================================================ */

.pululart-logo-container {

    display: flex;

    align-items: center;
}

.page-logo {

    display: block;
}

.pululart-menu-logo {

    display: block;

    width: auto;

    max-width: 162px;

    max-height: 80px;

    height: auto;
}


/* ============================================================
   ICONO MENÚ
   ============================================================ */

#menu_icon {

    display: block;

    width: 50px;
    height: 50px;

    min-width: 50px;
    min-height: 50px;

    flex: 0 0 50px;

    padding: 0;
    margin: 0;

    border: none !important;

    background-color: transparent !important;

    background-repeat: no-repeat;

    background-position: center;

    background-size: contain;

    cursor: pointer;
}


/* Cerrado */

#menu_icon.menu_icon {

    background-image:
        var(--menu-icon-closed-url);
}


/* Abierto */

#menu_icon.menu_icon2 {

    background-image:
        var(--menu-icon-open-url);
}


/* ============================================================
   BODY
   ============================================================ */

body.modal-open {

    overflow: hidden;
}


/* ============================================================
   MENÚ FULLSCREEN
   ============================================================ */

.menu_content {

    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    box-sizing: border-box;

    background-color:
        var(--background-color);

    opacity: 0;

    visibility: hidden;

    overflow-y: auto;

    transition:
        opacity 0.4s ease,
        visibility 0.4s ease;

    z-index: 99;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* Menú abierto */

.menu_content.show {

    opacity: 1;

    visibility: visible;
}


/* ============================================================
   LISTA PRINCIPAL
   ============================================================ */

#custom-menu .menu_content > ul {

    width: 100%;

    max-width: 60vw;

    box-sizing: border-box;

    margin: 0;

    padding: 0;

    list-style: none;

    display: flex;

    flex-direction: column;

    gap: 40px;
}


/* ============================================================
   ELEMENTOS PRINCIPALES
   ============================================================ */

#custom-menu .menu_content > ul > li {

    position: relative;

    width: 100%;

    box-sizing: border-box;

    font-size: 18px;

    font-weight: 700;

    color: var(--font-color);

    text-align: left;

    text-transform: uppercase;

    border-bottom: 1px solid #B09363;
}


/* ============================================================
   ENLACES
   ============================================================ */

#custom-menu .menu_content a {

    color: var(--font-color);

    font-family: var(--primary-font);

    font-size: 16px;

    font-style: normal;

    font-weight: 400;

    line-height: normal;

    text-decoration: none;
}


/* ============================================================
   ELEMENTO DESPLEGABLE
   ============================================================ */

#custom-menu #desp {

    display: flex;

    flex-direction: row;

    align-items: center;

    justify-content: flex-start;

    width: 100%;

    cursor: pointer;
}


/* ============================================================
   FLECHA
   ============================================================ */

#custom-menu #arrow-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 20px;

    height: 20px;

    margin-left: 10px;

    padding: 0;

    transition:
        transform 0.3s ease;
}


#custom-menu #arrow-icon::after {

    content: url("../assets/arrow2.svg");

    display: block;

    line-height: 1;
}


/* Flecha abierta */

#custom-menu #desp.despActive #arrow-icon {

    transform: rotate(90deg);
}


/* ============================================================
   SUBMENÚ
   ============================================================ */

#custom-menu .submenu {

    display: none !important;

    position: static !important;

    width: 100%;

    box-sizing: border-box;

    margin: 20px 0 0 0 !important;

    padding: 0 !important;

    list-style: none;

    border: 0 !important;

    box-shadow: none !important;
}


/* ============================================================
   SUBMENÚ ABIERTO
   ============================================================ */

#custom-menu .submenu.show-submenu {

    display: flex !important;

    flex-direction: column;

    gap: 15px;
}


/* ============================================================
   ELEMENTOS DEL SUBMENÚ
   ============================================================ */

#custom-menu .submenu li {

    display: flex;

    align-items: center;

    width: 100%;

    padding: 0 !important;

    margin: 0;

    border: 0 !important;
}


/* ============================================================
   ENLACES DEL SUBMENÚ
   ============================================================ */

#custom-menu .submenu li a {

    display: inline-flex;

    align-items: center;

    width: auto;

    padding: 0 !important;

    color: var(--font-color);

    font-family: var(--primary-font);

    font-size: 16px;

    font-weight: 400;

    text-transform: none;

    text-decoration: none;
}


/* ============================================================
   ICONO DE LOS HIJOS
   ============================================================ */

#custom-menu .submenu .desp-icon {

    display: inline-block;

    width: 15px;

    margin-right: 5px;

    flex: 0 0 15px;
}


/* ============================================================
   FLECHA DE LOS HIJOS
   ============================================================ */

#custom-menu .submenu .desp-icon::after {

    content: url("../assets/arrow.svg");

    display: inline-block;
}


/* ============================================================
   MENU ACTIVE
   ============================================================ */

.menuActive {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 1001;
}


/* ============================================================
   ACCESIBILIDAD
   ============================================================ */

#custom-menu .menu_content a:focus {

    outline: 2px solid currentColor;

    outline-offset: 3px;
}


/* ============================================================
   MÓVIL
   ============================================================ */

@media (max-width: 768px) {

    #custom-menu {

        width: 100%;
    }

    #custom-menu .menu_content {

        width: 100vw;

        height: 100vh;
    }

    #custom-menu .menu_content > ul {

        width: 90%;

        max-width: none;
    }

}