/**
    Menu en la barra superior del layout
*/
.MenuCustom {
    position: relative;
    color: white !important;
    border-radius: 8px;
}

.MenuCustom a {
    color: white;
}

.is-fixed .MenuCustom {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (max-width: 768px) {

}

.MenuCustomElement {
    display: inline-block; /* necesario para transform/hover */
    /*padding: 10px 15px;*/
    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;
}

/* hover */
.MenuCustomElement:hover {
    color: var(--color-web-2); /* cambia a color visible */
    transform: scale(1.05); /* no tan exagerado */
}

/* hover para mostrar submenu en desktop */
.MenuCustom:hover > .sub-menu {
    display: block;
    background: white;
    color: var(--color-web-text-gray);
}

/* submenu oculto por defecto */
.sub-menu {
    display: none; /* oculto hasta hover o click */
    position: absolute; /* posicionamiento respecto al li padre */
    top: 100%; /* justo debajo del enlace */
    left: 0; /* alineado a la izquierda del li */
    min-width: 180px; /* ancho mínimo */
    background: #333; /* fondo del dropdown */
    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 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;
}


.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/**
    Vista de PC
*/
@media (min-width: 768px) {

    /* IZQUIERDA */
    .header-left {
        flex: 0 0 auto;
    }

    /* CENTRO */    
    .header-center {
        flex: 1;
        display: flex;
        justify-content: flex-end;
        padding-right: 1.5%;
    }

    .header-center ul.navbar-nav {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .header-center .navbar-nav {
        display: flex;
        gap: 20px; /* separación limpia */
    }

    /* DERECHA */
    .header-right {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
    }
}

/**
    Vista de móvil
*/
@media (max-width: 768px) {
    div#LogoContainer.logo-header {
        width: 25%;
    }

    #navbarNavDropdown {
        text-align: center;
        width: 100%;
        top: 75px;
        left: 0;
        position: absolute;
        z-index: 10;
    }

    #ListaMenus {
        padding: 5% 0;
        background: rgba(20, 20, 20, 0.5);
        gap: 25px;
    }
}


.IconoLayout {
    margin-right: 2px;
    font-size: 10px;
}

#ImagenLogoLayout {
    max-height: 100px;
    width: auto;
    display: none;
}

#ImagenTextoLayout {
    height: 100%;
    width: 100%;
    max-width: 100%;
    display: block;
}
