/* --- HEADER CONTENEDOR --- */
#headerNavigationContainer {
    background: #015A8C !important;
    overflow: visible !important;
    position: relative !important;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    width: 100%;
}

/* --- ESTRUCTURA VERTICAL --- */
#headerNavigationContainer .container-fluid {
    display: flex !important;
    flex-direction: column !important; /* Logo arriba, menú debajo */
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    width: 100%;
}

/* --- LOGO ARRIBA Y CENTRADO --- */
.navbar-header {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important; /* apila logo y menú */
    justify-content: center !important;
    align-items: center !important;
    padding: 15px 0 10px 0 !important;
    float: none !important;
    position: relative !important;
    z-index: 20;
}

/* --- IMAGEN DEL LOGO --- */
.navbar-brand {
    height: auto !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.navbar-brand-logo img {
    max-height: 120px !important; /* tamaño controlado */
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block;
    transition: transform 0.3s ease;
}

.navbar-brand-logo img:hover {
    transform: scale(1.02); /* microinteracción */
}

/* --- NAVBAR DEBAJO DEL LOGO --- */
#nav-menu {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    margin-top: 10px !important;
    position: relative !important;
    z-index: 15;
    background: rgba(0, 0, 0, 0.05);
}

/* --- MENÚ CENTRADO --- */
#main-navigation {
    display: flex !important;
    gap: 20px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
}

/* --- ITEMS DEL MENÚ --- */
#main-navigation > li > a {
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
}

/* --- HOVER E INTERACTIVIDAD --- */
#main-navigation > li > a:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* --- BUSCADOR --- */
.navbar-form {
    position: absolute !important;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    margin: 0 !important;
}

.navbar-form .form-control {
    border-radius: 20px 0 0 20px !important;
    border: none !important;
    padding: 6px 12px !important;
    outline: none !important;
}

.navbar-form .btn {
    border-radius: 0 20px 20px 0 !important;
    background-color: #ffffff !important;
    color: #015A8C !important;
    font-weight: 600 !important;
    border: none !important;
    transition: background 0.3s ease !important;
}

.navbar-form .btn:hover {
    background-color: #e2e8f0 !important;
}

/* --- BARRA DE USUARIO --- */
.pkp_navigation_user-wrapper {
    position: relative !important;
    z-index: 30 !important;
}

/* --- RESPONSIVO MÓVIL --- */
@media (max-width: 768px) {
    .navbar-brand-logo img {
        max-height: 80px !important;
    }
    #main-navigation {
        flex-direction: column;
        gap: 10px;
    }
}
