.header {
    display: flex;
    flex-direction: row;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
}

.headerShadow {
    box-shadow: 0 -6px 5px 5px rgba(0, 0, 0, 0.5);
}

.header-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 30px;
    height: 80px;
    max-width: 1200px;
    padding: 10px 20px;
}

.header .menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-end;
    flex: 1;
    font-size: 14px;
}

.header .ui-menu {
    border: none;
    padding: 0px !important;
    margin-bottom: -9px;
    font-size: 14px;
}

.logo {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 50px;
    width: 50px;
}

.logo-title {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.viaT img {
    height: 60px;
    width: 190px;
    margin-bottom: -9px;
}

.logoMinisterioTrabajo {
    max-width: 240px;
    max-height: 139px;
    height: auto;
    width: auto;
}

.logoRedEmpleoUy {
    max-width: 154px;
    max-height: 50px;
    height: auto;
    width: auto;
    aspect-ratio: 1 / 1;
}

.logoIntegraEmpleo{
    max-width: 180px;
    height: auto;
}

.logotiposCabeceraGenerados {
    max-width: 154px;
    max-height: 50px;
    height: auto;
    width: auto;
    aspect-ratio: auto;
}

.textoMinisterioTrabajo, .textoMinisterioTrabajo:hover, .textoMinisterioTrabajo:visited, .textoMinisterioTrabajo:active {
    text-decoration: none;
    line-height: 15px;
    color: #003da5;
}


@media (max-width: 768px) {

    /* La cabecera completa se organiza en vertical */
    .header .login-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        gap: 15px;
    }

    /* El contenedor del menú ocupa todo el ancho */
    .header .menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        min-width: 0;
        flex: none;
    }

    /* El menubar de PrimeFaces */
    .header .menu .ui-menubar {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border: none;
        margin: 0;
        padding: 0;
    }

    /* Elementos internos del menubar */
    .header .menu .ui-menubar > ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .header .menu .ui-menubar > ul > li {
        width: 100%;
        box-sizing: border-box;
    }
    
      /* Contenedor de los dos logotipos */
    .header .login-header > .flex {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

   /* Cada bloque ocupa exactamente el 50 % */
    .header .login-header > .flex > div {
        flex: 0 0 50%;
        width: 50%;
        min-width: 0;
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* El bloque interior del logo del Ministerio */
    .header .login-header > .flex > div > div {
        width: 100%;
        min-width: 0;
        display: flex;
        justify-content: center;
    }
    
    /* Enlaces adaptados al espacio disponible */
    .header .login-header > .flex a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-width: 0;
    }
    
     /* Logo del Ministerio: ocupa el 100% de su contenedor */
    .header .login-header .logoMinisterioTrabajo {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 100px;
        object-fit: contain;
    }
    
    /* Logo Integra Empleo: ocupa el 80% de su contenedor */
    .header .login-header .logoIntegraEmpleo {
        width: 65%;
        max-width: 100%;
        height: auto;
        max-height: 80px;
        object-fit: contain;
    }

}

/* Móviles pequeños */
@media (max-width: 480px) {
    
    

    
}
