
/* ============================================
   UPC - Revistas Científicas - HEADER FULL
   Manual Identidad 2024 - v2
   Paleta oficial: #137B41 #45A648 #8FC96B #F2EA16
   ============================================ */

:root {
  --upc-verde-oscuro: #137B41;
  --upc-verde-principal: #45A648;
  --upc-verde-claro: #8FC96B;
  --upc-amarillo: #F2EA16;
  --upc-rojo: #D6212E;
  --upc-azul: #349DD4;
}

/* RESET HEADER - Que ocupe todo */
.pkp_structure_head {
    background-image: url('/public/site/images/banner-upc-revistas.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--upc-verde-oscuro);
    position: relative;
    border-bottom: 8px solid var(--upc-amarillo);
}

/* Si no tienes banner JPG, usa el degradado oficial del manual */
.pkp_structure_head.no-banner {
    background-image: linear-gradient(105deg, var(--upc-verde-oscuro) 0%, var(--upc-verde-principal) 50%, var(--upc-verde-claro) 100%);
}

/* Capa verde para legibilidad - ocupa TODO el header */
.pkp_structure_head::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(19,123,65,0.92) 0%, rgba(69,166,72,0.75) 45%, rgba(19,123,65,0.4) 100%);
    z-index: 1;
}

.pkp_head_wrapper, .pkp_site_name_wrapper, .pkp_navigation_primary_wrapper {
    position: relative;
    z-index: 2;
}

/* HEADER FULL HEIGHT - 280px de alto */
.pkp_site_name_wrapper {
    background: transparent !important;
    padding: 0 !important;
    min-height: 200px;
    display: flex;
    align-items: center;
    border: none !important;
}

.pkp_site_name {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
}

.pkp_site_name .is_img img {
    background: white;
    border-radius: 50%;
    padding: 10px;
    width: 120px;
    height: 120px;
    object-fit: contain;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    border: 4px solid white;
}

.pkp_site_name .is_text {
    color: white !important;
    font-family: 'Arial Bold', Arial, sans-serif !important;
    font-weight: 800;
    font-size: 32px;
    text-transform: uppercase;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Subtítulo si existe */
.pkp_site_name .is_text small {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: var(--upc-amarillo) !important;
    margin-top: 5px;
}

/* NAVEGACIÓN PEGADA ABAJO DEL HEADER FULL */
.pkp_navigation_primary_wrapper {
    background-color: rgba(10, 92, 51, 0.95) !important;
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 0 -15px;
    padding: 0 15px;
}

.pkp_navigation_primary > li > a {
    color: white !important;
    font-family: 'Arial Bold', Arial, sans-serif !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.8px;
    padding: 16px 18px;
    transition: all 0.2s ease;
}

.pkp_navigation_primary > li > a:hover {
    background-color: var(--upc-amarillo) !important;
    color: var(--upc-verde-oscuro) !important;
}

/* BUSCADOR Y LOGIN EN BLANCO SOBRE VERDE */
.pkp_search button, .pkp_navigation_user > li > a {
    color: white !important;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .pkp_site_name_wrapper {
        min-height: 160px;
    }
    .pkp_site_name .is_img img {
        width: 90px;
        height: 90px;
    }
    .pkp_site_name .is_text {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .pkp_structure_head {
        background-position: center;
    }
    .pkp_site_name {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }
    .pkp_site_name_wrapper {
        min-height: auto;
    }
}
