/* =========================================================
   EDICIONES FIECYT
   OMP 3.4
   CSS UNIFICADO
   ========================================================= */


/* =========================================================
   1. COLORES INSTITUCIONALES
   ========================================================= */

:root {
    --fiecyt-blue: #123b5d;
    --fiecyt-blue-dark: #0b2942;
    --fiecyt-blue-light: #1e587e;
    --fiecyt-gold: #b99a5b;
    --fiecyt-gold-light: #d2b878;
}


/* =========================================================
   2. FONDO GENERAL BLANCO
   ========================================================= */

html,
body,
.pkp_structure_page,
.pkp_structure_content,
.pkp_structure_main,
main {
    background: #ffffff !important;
}


/* =========================================================
   3. ENCABEZADO
   ========================================================= */

header {
    background: var(--fiecyt-blue) !important;
    border-bottom: 3px solid var(--fiecyt-gold) !important;
}


/* =========================================================
   4. MENÚ PRINCIPAL
   ========================================================= */

.navbar {
    background: var(--fiecyt-blue) !important;
    border: none !important;
}

.navbar-nav > li > a {
    color: #ffffff !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    color: var(--fiecyt-gold-light) !important;
    background: transparent !important;
}

.navbar-nav > li.active > a {
    color: var(--fiecyt-gold-light) !important;
    background: transparent !important;
}


/* =========================================================
   5. TÍTULOS GENERALES
   ========================================================= */

h1,
h2,
h3 {
    color: var(--fiecyt-blue-dark) !important;
}

main h2::after {
    content: "";
    display: block;
    width: 55px;
    height: 3px;
    background: var(--fiecyt-gold);
    margin-top: 12px;
}


/* =========================================================
   6. ENLACES GENERALES
   ========================================================= */

main a {
    color: var(--fiecyt-blue-light) !important;
    transition: color 0.3s ease;
}

main a:hover {
    color: var(--fiecyt-gold) !important;
    text-decoration: none;
}

/* =========================================================
   EDICIONES FIECYT
   CATÁLOGO DE PUBLICACIONES
   4 COLUMNAS SIN AMPLIAR EXCESIVAMENTE LAS PORTADAS
   ========================================================= */


/* ---------------------------------------------------------
   PUBLICACIONES
   --------------------------------------------------------- */

.row > .obj_monograph_summary {
    box-sizing: border-box !important;

    float: none !important;

    display: inline-block !important;

    vertical-align: top !important;

    width: 23% !important;

    margin: 0 0.8% 40px !important;

    padding: 0 !important;

    text-align: center !important;

    background: transparent !important;

    border: none !important;

    box-shadow: none !important;
}


/* ---------------------------------------------------------
   PORTADAS
   --------------------------------------------------------- */

.row > .obj_monograph_summary .cover {
    display: block !important;

    width: 100% !important;

    margin-bottom: 15px !important;
}


.row > .obj_monograph_summary .cover img {
    display: block !important;

    width: auto !important;

    max-width: 100% !important;

    /*
       No forzamos la imagen a ocupar toda la tarjeta.
       Esto reduce la ampliación y evita pixelación.
    */

    max-height: 250px !important;

    height: auto !important;

    object-fit: contain !important;

    margin: 0 auto !important;
}


/* ---------------------------------------------------------
   TÍTULOS
   --------------------------------------------------------- */

.row > .obj_monograph_summary .title {
    margin: 14px 0 0 !important;

    font-size: 14px !important;

    line-height: 1.4 !important;

    min-height: 60px !important;
}


.row > .obj_monograph_summary .title a {
    font-size: 14px !important;

    line-height: 1.4 !important;

    color: #123b5d !important;
}


/* ---------------------------------------------------------
   OCULTAR AUTORES Y FECHAS
   --------------------------------------------------------- */

.row > .obj_monograph_summary .author,
.row > .obj_monograph_summary .date {
    display: none !important;
}


/* =========================================================
   3 COLUMNAS EN PANTALLAS MEDIANAS
   ========================================================= */

@media (max-width: 1100px) {

    .row > .obj_monograph_summary {
        width: 31% !important;

        margin-left: 1% !important;

        margin-right: 1% !important;
    }
}


/* =========================================================
   2 COLUMNAS EN TABLETS
   ========================================================= */

@media (max-width: 750px) {

    .row > .obj_monograph_summary {
        width: 47% !important;
    }

    .row > .obj_monograph_summary .cover img {
        max-height: 280px !important;
    }
}


/* =========================================================
   1 COLUMNA EN MÓVILES
   ========================================================= */

@media (max-width: 520px) {

    .row > .obj_monograph_summary {
        display: block !important;

        width: 100% !important;

        margin: 0 0 45px !important;
    }

    .row > .obj_monograph_summary .cover img {
        max-height: 380px !important;
    }
}
/* =========================================================
   AJUSTE VISUAL DEL CATÁLOGO
   REDUCCIÓN DEL ESPACIO BLANCO
   ========================================================= */


/* Contenedor de publicaciones */

.row:has(> .obj_monograph_summary) {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 45px 35px !important;
}


/* Cada publicación */

.row:has(> .obj_monograph_summary)
> .obj_monograph_summary {
    flex: 0 0 calc(33.333% - 35px) !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}


/* Portada */

.row:has(> .obj_monograph_summary)
.obj_monograph_summary .cover {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}


/* Imagen */

.row:has(> .obj_monograph_summary)
.obj_monograph_summary .cover img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 300px !important;
    height: auto !important;
    margin: 0 auto !important;
    object-fit: contain !important;
}


/* Título */

.row:has(> .obj_monograph_summary)
.obj_monograph_summary .title {
    width: 100% !important;
    margin-top: 15px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    text-align: center !important;
}


/* Ocultar autores y fechas */

.row:has(> .obj_monograph_summary)
.obj_monograph_summary .author,

.row:has(> .obj_monograph_summary)
.obj_monograph_summary .date {
    display: none !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .row:has(> .obj_monograph_summary)
    > .obj_monograph_summary {
        flex-basis: calc(50% - 35px) !important;
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 550px) {

    .row:has(> .obj_monograph_summary)
    > .obj_monograph_summary {
        flex-basis: 100% !important;
    }
}
.pkp_page_index .obj_monograph_summary {
    margin-top: 15px !important;
}

.pkp_page_index .row {
    padding-top: 25px !important;
}