/* =========================
   BASE
========================= */
body{
    background:#f4f6f8;
    font-family:"Segoe UI", Arial, sans-serif;
    color:#333;
}

/* =========================
   HEADER USTA
========================= */

/* línea roja */
#headerNavigationContainer::before{
    content:"";
    display:block;
    width:100%;
    height:5px;
    background:#c8102e;
}

/* contenedor principal */
#headerNavigationContainer{
    background:#0b3a6f !important;
    min-height:170px !important;
    padding:0 30px !important;
    position:relative;
    text-align:center;

    /* 🔥 espacio para el menú */
    padding-bottom:110px !important;
}

/* barra superior */
#navigationUser{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    background:#f4d000;
    padding:6px 20px;
    display:flex;
    justify-content:flex-end;
    gap:12px;
}

#navigationUser a{
    color:#0b3a6f !important;
    font-size:13px;
    font-weight:600;
}

/* LOGO + TITULO */
.navbar-header{
    display:inline-flex;
    align-items:center;
    gap:25px;
    justify-content:center;
    padding-top:50px;
    width:100%;
}

.navbar-brand img{
    max-height:110px !important;
}

.site-name a{
    font-size:42px !important;
    font-weight:700;
    color:#f4d000 !important;
}

/* =========================
   🔥 MENÚ (FIX REAL)
========================= */

/* contenedor menú */
#nav-menu{
    position:absolute !important;
    bottom:8px; /* 🔥 controla altura */
    left:50%;
    transform:translateX(-50%);

    width:100%;
    display:flex !important;
    justify-content:center !important;
}

/* ul menú */
#main-navigation{
    display:flex !important;
    gap:30px;
    justify-content:center;
    align-items:center;
}

/* corregir OJS */
.navbar-collapse{
    position:static !important;
}

.navbar-nav{
    float:none !important;
}

/* links */
#main-navigation > li > a{
    color:#ffffff !important;
    font-size:20px;
    font-weight:500;
}

#main-navigation > li > a:hover{
    color:#f4d000 !important;
}

/* =========================
   BUSCADOR
========================= */
.navbar-form{
    position:absolute;
    right:40px;
    top:10px;
    display:flex;
    gap:8px;
}

.navbar-form input{
    height:34px;
    width:180px;
    border-radius:20px;
    border:none;
    padding:0 10px;
}

.navbar-form button{
    height:34px;
    padding:0 14px;
    border:none;
    background:#f4d000;
    color:#0b3a6f;
    border-radius:20px;
    font-weight:600;
}

/* =========================
   CONTENIDO
========================= */
.pkp_structure_content{
    max-width:1100px;
    margin:auto;
}

/* =========================
   DESCRIPCIÓN PRO
========================= */
.journal-description{
    background:#ffffff !important;
    padding:35px !important;
    margin-top:30px !important;
    border-radius:14px !important;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.20),
        0 8px 20px rgba(0,0,0,0.10) !important;

    border:1px solid rgba(0,0,0,0.08) !important;

    font-size:17px !important;
    line-height:1.9 !important;
    color:#2f2f2f !important;

    transform:translateY(-2px);
}

.journal-description:hover{
    transform:translateY(-4px);
}

/* =========================
   ARTÍCULOS
========================= */
.article-summary{
    border-bottom:1px solid #ddd;
    padding:15px 0;
}

.article-summary h3 a{
    font-size:17px;
    font-weight:600;
    color:#0b3c6f;
}

.article-summary .authors{
    font-size:14px;
    color:#555;
}

/* =========================
   BOTONES PDF
========================= */
.galley-link{
    background:#2c3e46;
    color:#fff !important;
    font-size:12px;
    padding:6px 14px;
    border-radius:4px;
    display:inline-flex;
    align-items:center;
}

.galley-link::before{
    content:"📄";
    margin-right:6px;
}

.galley-link:hover{
    background:#1b2c31;
}

/* =========================
   🔥 FIX DROPDOWN (VISIBLE ENCIMA)
========================= */

/* Dar prioridad al header */
#headerNavigationContainer{
    z-index: 9999 !important;
}

/* Permitir que el menú sobresalga */
#nav-menu,
#main-navigation{
    position: relative;
    z-index: 9999;
    overflow: visible !important;
}

/* Dropdown (submenu) */
.dropdown-menu{
    z-index: 10000 !important;
    position: absolute !important;
}

/* Asegurar que ningún contenedor lo corte */
.pkp_structure_content,
.page{
    overflow: visible !important;
}

/* container/
/* =========================
   🔥 CARD TIPO BOOTSTRAP
========================= */

.article-summary{
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #dcdfe3;

    overflow: hidden;
    display: flex;
    flex-direction: column;

    height: 100%;
    min-height: 200px;

    transition: all 0.2s ease;
}

/* hover */
.article-summary:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* =========================
   🔥 HEADER (como la imagen)
========================= */

.article-summary h3{
    margin: 0;
    padding: 10px 14px;

    background: #0b3a6f; /* 🔵 institucional */
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* link */
.article-summary h3 a{
    color: #ffffff !important;
}

/* =========================
   🔥 CUERPO
========================= */

.article-summary .media-body{
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* =========================
   🔥 AUTORES
========================= */

.article-summary .authors{
    font-size: 14px;
    color: #555;

    display: flex;
    align-items: center;
    gap: 6px;
}

/* icono usuario */
.article-summary .authors::before{
    content: "";
    width: 14px;
    height: 14px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23666' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.7 0 5-2.3 5-5s-2.3-5-5-5-5 2.3-5 5 2.3 5 5 5zm0 2c-3.3 0-10 1.7-10 5v3h20v-3c0-3.3-6.7-5-10-5z'/%3E%3C/svg%3E");
    background-size: contain;
}

/* =========================
   🔥 PÁGINAS
========================= */

.article-summary .pages{
    font-size: 13px;
    color: #777;

    display: flex;
    align-items: center;
    gap: 6px;
}

.article-summary .pages::before{
    content: "";
    width: 14px;
    height: 14px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23888' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v12H4zM2 4v16h20V4H2z'/%3E%3C/svg%3E");
    background-size: contain;
}

/* =========================
   🔥 BOTÓN
========================= */

.galley-link{
    margin-top: auto;

    background: #f5f7fa !important;
    color: #0b3a6f !important;
    border: 1px solid #ced6df;
    border-radius: 6px;

    padding: 6px 12px;
    font-size: 13px;

    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* icono PDF */
.galley-link::before{
    content: "";
    width: 16px;
    height: 16px;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23d32f2f' viewBox='0 0 24 24'%3E%3Cpath d='M6 2a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8l-6-6H6zm7 1.5L19.5 10H13V3.5zM8 15h8v1H8v-1zm0-3h8v1H8v-1z'/%3E%3C/svg%3E");
    background-size: contain;
}

/* hover */
.galley-link:hover{
    background: #e9edf2 !important;
}

/* =========================
🔥 SLIDER ÚLTIMOS NÚMEROS (FUNCIONA EN OJS NUEVO)
========================= */

.slider-revistas{
    overflow-x:auto;
    padding:10px 0;
}

.slider-track{
    display:flex;
    gap:12px;
}

.slider-item{
    min-width:130px;
    text-align:center;
    text-decoration:none;
}

/* imagen */
.slider-item img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:10px;

    box-shadow:0 5px 12px rgba(0,0,0,0.2);

    transition:transform .3s;
}

/* hover */
.slider-item:hover img{
    transform:scale(1.08);
}

/* texto */
.slider-item span{
    display:block;
    font-size:12px;
    margin-top:5px;
    color:#0b3a6f;
}

/* scrollbar bonita */
.slider-revistas::-webkit-scrollbar{
    height:5px;
}

.slider-revistas::-webkit-scrollbar-thumb{
    background:#ccc;
    border-radius:10px;
}
