/**
    Menu superior del layout cliente
*/
.MenuCustom {
    position: relative;
    color: white !important;
    border-radius: 8px;
}

.MenuCustom a {
    color: white;
}

.is-fixed .MenuCustom {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.MenuCustomElement {
    display: inline-block;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    color: white;
    background: transparent;
    transition: transform 0.25s ease, color 0.25s ease;
}

.MenuCustomElement:hover {
    color: var(--color-web-2);
    transform: scale(1.05);
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #333;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 999;
    padding: 5%;
    list-style: none;
}

.sub-menu--profile {
    display: block;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.MenuCustom.open > .sub-menu {
    display: block !important;
    background: white;
    color: var(--color-web-text-gray);
}

.MenuCustom.open > .sub-menu--profile {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.sub-menu li a {
    display: block;
    padding: 8px 15px;
    color: var(--color-web-text-gray);
    text-decoration: none;
    transition: background 0.2s;
}

.sub-menu li a:hover {
    background: var(--color-web-text-gray-lighter) !important;
}

.toggle-submenu {
    display: none !important;
}

.MenuCustom--admin-mobile {
    display: none;
}

.MenuCustom--login-mobile {
    display: none;
}

.MenuCustomElement--admin-mobile,
.MenuCustomElement--login-mobile {
    background: var(--color-web-darker);
    color: #fff !important;
    border-radius: 0.5rem;
    margin-top: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 5%;
}

.MenuCustomElement--admin-mobile:hover,
.MenuCustomElement--admin-mobile:focus,
.MenuCustomElement--login-mobile:hover,
.MenuCustomElement--login-mobile:focus {
    background: var(--color-web-lighter);
    color: #fff !important;
}

.MenuCustomElement--login-mobile {
    background: rgb(250, 144, 8);
}

.MenuCustomElement--login-mobile:hover,
.MenuCustomElement--login-mobile:focus {
    background: rgb(232, 129, 5) !important;
}

.MenuCustomElement--toggle {
    min-width: 52px;
    height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 0.9rem !important;
    border-radius: 0.5rem;
    background: rgb(250, 144, 8) !important;
    color: #fff !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.MenuCustomElement--toggle:hover,
.MenuCustomElement--toggle:focus {
    background: rgb(232, 129, 5) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 29, 64, 0.18);
}

.MenuCustomElement--toggle i,
.MenuCustomElement--toggle span {
    background: transparent !important;
    color: inherit !important;
}

.MenuCustomElement__label {
    display: none;
    color: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
}

.MenuCustomElement--toggle .fa-chevron-down {
    padding-left: 0 !important;
    font-size: 0.75rem;
    transition: transform 0.18s ease;
}

.MenuCustom.open > .MenuCustomElement--toggle .fa-chevron-down {
    transform: rotate(180deg);
}
@media (max-width: 991.98px) {
    #BotonAdministrar {
        display: none !important;
    }

    .MenuCustom {
        width: 100%;
    }

    .MenuCustom--admin-mobile {
        display: list-item;
    }

    .MenuCustom--login-mobile {
        display: list-item;
    }

    .MenuCustomElement--toggle {
        width: 100%;
        justify-content: center;
        gap: 0.55rem;
        padding: 0.85rem 1rem !important;
        margin-top: 0.5rem;
    }

    .MenuCustomElement__label {
        display: inline;
    }

    .MenuCustom.open > .sub-menu {
        position: static;
        min-width: 100%;
        margin-top: 0.6rem;
        padding: 0.35rem;
        /*border-radius: 10px;*/
        box-shadow: none;
        background: var(--color-web-alphalowest);
        display: block !important;
    }

    .sub-menu--profile {
        text-align: left;
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
        padding-top: 0;
        padding-bottom: 0;
        transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.2s ease, padding 0.2s ease;
    }

    .MenuCustom.open > .sub-menu--profile {
        max-height: 260px;
        margin-top: 0.6rem;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    .sub-menu li a {
        color: #fff;
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    .sub-menu li a:hover {
        background: rgba(255, 255, 255, 0.14) !important;
        color: #fff !important;
    }
}

@media (max-width: 768px) {
    .MenuCustomElement--toggle {
        background: rgb(0,0,0,0) !important;
        transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    }

        .MenuCustomElement--toggle:hover,
        .MenuCustomElement--toggle:focus {
            background: rgb(0,0,0,0.1) !important;
        }

    .MenuCustomElement__label {
        font-size: 15px !important;
    }

    .sub-menu--profile {
        display: block !important;
        position: relative !important;
        text-align: center !important;
        background: rgba(0, 0, 0, 0.5);
    }

    .MenuCustomElement__label,
    .SubMenuCustom > a {
        font-size: 1rem !important;
    }
}
