/* ==========================================================================
   ESTRUCTURA DEL ENCABEZADO Y PROTECCIÓN CONTRA GOBMX
   ========================================================================== */
.zona-segura-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    width: 100% !important;
    padding: 15px 30px 10px 30px !important;
    background: white !important;
    box-sizing: border-box !important;
}

.zona-segura-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 33%;
}

.zona-segura-logos img {
    height: 65px;
    width: auto;
}

.zona-segura-titulo {
    width: 34%;
    text-align: center;
    padding-bottom: 5px;
}

.zona-segura-titulo h1 {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: #1B396B !important;
    margin: 0 !important;
    line-height: 1 !important;
}

.zona-segura-enlaces {
    width: 33%;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 20px;
    padding-bottom: 8px;
}

.zona-segura-enlaces a {
    color: #333 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: Arial, sans-serif !important;
    text-decoration: none !important;
}

.zona-segura-enlaces a:hover {
    color: #1B396B !important;
}

/* Ajuste del carrusel */
.carrusel-contenedor .item img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
}

/* ==========================================================================
   TÍTULOS DE SECCIONES INTERNAS
   ========================================================================== */
.titulo-seccion {
    color: #1B396B !important;
    border-bottom: 2px solid #1B396B !important;
    padding-bottom: 10px !important;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* ==========================================================================
   TÍTULOS DE OFERTAS DE TRABAJO
   ========================================================================== */
.titulo-oferta {
    color: #1B396B !important;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN (EL MENÚ PRINCIPAL AZUL)
   ========================================================================== */
.vinc-navbar {
    background-color: #1B396B !important;
    width: 100%;
}

.vinc-nav-container {
    display: flex;
    justify-content: center; /* Centra todo el menú en la pantalla */
    align-items: center;
    width: 100%;
}

.vinc-nav-brand, .vinc-menu-toggle {
    display: none;
}

.vinc-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vinc-menu-item {
    position: relative;
}

.vinc-menu-item a {
    display: block;
    color: white !important;
    text-decoration: none !important;
    padding: 12px 16px !important;
    font-size: 12px !important; /* Letra un poco más pequeña como en la foto */
    font-weight: normal !important;
    font-family: Arial, sans-serif !important;
    white-space: nowrap !important;
    transition: background-color 0.3s;
}

.vinc-menu-item a:hover {
    background-color: #12274A !important;
}

/* ==========================================================================
   MENÚS DESPLEGABLES (DROPDOWNS)
   ========================================================================== */
.vinc-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1B396B;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 240px;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0,0,0,0.3);
}

.vinc-dropdown:hover .vinc-dropdown-menu {
    display: block;
}

.vinc-dropdown-menu li a {
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: normal !important;
}

.vinc-dropdown-menu li a:hover {
    background-color: #12274A !important;
    color: white !important;
}

/* ==========================================================================
   BOTÓN DE INICIAR SESIÓN
   ========================================================================== */
.vinc-login-btn {
    background-color: #28a745 !important;
    border-radius: 4px;
    padding: 8px 18px !important; /* Más compacto, como en la foto */
    margin-left: 10px !important; /* Solo un pequeño espacio de separación con el texto de al lado */
}

.vinc-login-btn:hover {
    background-color: #218838 !important;
}

/* ==========================================================================
   DISEÑO RESPONSIVO (MÓVILES) - ENCABEZADO SUPERIOR
   ========================================================================== */
@media screen and (max-width: 900px) {
    /* Desactivamos el diseño en fila forzada */
    .zona-segura-header {
        flex-direction: column !important;
        align-items: center !important;
        padding: 15px !important;
        gap: 15px; /* Espacio entre los bloques */
    }

    /* Colocamos los logotipos en el centro */
    .zona-segura-logos {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .zona-segura-logos img {
        height: 50px; /* Reducimos el tamaño de los logos */
    }

    /* Ajustamos el título del portal */
    .zona-segura-titulo {
        width: 100%;
        padding-bottom: 10px;
    }

    .zona-segura-titulo h1 {
        font-size: 1.8rem !important; /* Letra un poco más pequeña */
    }

    /* Apilamos los enlaces institucionales en formato de botones */
    .zona-segura-enlaces {
        width: 100%;
        justify-content: center !important;
        flex-wrap: wrap !important; /* Permite que los enlaces pasen a otra línea si no caben */
        gap: 10px;
    }

    .zona-segura-enlaces a {
        padding: 5px 10px !important;
        background-color: #f4f4f4 !important; /* Le da un estilo de botón en móvil */
        border-radius: 4px;
        border: 1px solid #ddd;
    }

    /* ==============================================
       RESCATE DEL MENÚ DE NAVEGACIÓN
       ============================================== */

    /* Preparamos el contenedor principal para apilar */
    .vinc-nav-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
    }

    /* Sacamos el botón de hamburguesa de las sombras */
    .vinc-menu-toggle {
        display: block !important;
        background: transparent;
        border: none;
        padding: 15px;
        cursor: pointer;
    }

    /* Pintamos las tres líneas del botón */
    .vinc-hamburger {
        display: block;
        width: 30px;
        height: 3px;
        background-color: white;
        margin: 6px 0;
        border-radius: 2px;
    }

    /* Ocultamos la lista horizontal por defecto y la preparamos para columna */
    .vinc-menu {
        display: none !important; /* Se oculta hasta recibir la orden */
        flex-direction: column !important;
        width: 100% !important;
    }

    /* Esta es la clase que el detonador JS va a activar */
    .vinc-menu.activo {
        display: flex !important;
    }

    /* Ajustamos los botones del menú a lo ancho de la pantalla */
    .vinc-menu-item {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea divisoria táctica */
    }

    .vinc-menu-item a {
        padding: 15px 20px !important;
    }

    /* Modificamos los submenús para que empujen el contenido hacia abajo en vez de flotar */
    .vinc-dropdown-menu {
        position: static !important;
        width: 100% !important;
        box-shadow: none !important;
        background-color: #12274A !important; /* Un azul más oscuro para diferenciar */
    }

    .vinc-login-btn {
        margin: 15px !important;
        text-align: center;
    }
}