@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&display=swap');


/* =====================================================
   ESTILO GENERAL OJS - UNICAES
===================================================== */

body {

    font-family: 'Lato', sans-serif;

    background: #f5f5f5;

    margin: 0;

    padding: 0;
}

/* =====================================================
   CABECERA PRINCIPAL
===================================================== */

.pkp_structure_head {

    background-color: #8b0000 !important;
}

/* Banner principal */

.pkp_site_name_wrapper {

    background-image: url('/capacitacion/public/unicaes/Banner_Unicaes.png');

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    min-height: 260px;
}

/* Oculta logo/texto original OJS */

.pkp_site_name {

    display: none !important;
}

/* =====================================================
   MENÚ SUPERIOR
===================================================== */

.pkp_navigation_primary_row {

    background: #d4a62a !important;

    border-top: 2px solid rgba(255,255,255,0.2);

    border-bottom: 2px solid rgba(255,255,255,0.2);
}

/* Links menú */

.pkp_navigation_primary > li > a {

    color: #ffffff !important;

    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    padding: 12px 16px;
}

.pkp_navigation_primary > li > a:hover {

    background: rgba(255,255,255,0.15);

    border-radius: 4px;
}

/* Buscador */

.pkp_search {

    color: #ffffff !important;
}

/* =====================================================
   CONTENIDO PRINCIPAL
===================================================== */

.obj_journal_summary {

    background: #ffffff;

    border: 1px solid #dddddd;

    padding: 25px;

    margin-bottom: 25px;

    border-radius: 5px;
}

/* Títulos */

h1,
h2,
h3 {

    color: #8b0000;
}

/* Links */

a {

    color: #005a9c;
}

a:hover {

    color: #8b0000;
}

/* =====================================================
   BOTONES
===================================================== */

.cmp_button,
.obj_galley_link {

    background: #c79a1b !important;

    border-color: #c79a1b !important;

    color: #ffffff !important;
}

.cmp_button:hover,
.obj_galley_link:hover {

    background: #a87e10 !important;
}

/* =====================================================
   FOOTER PRINCIPAL
===================================================== */

.pkp_structure_footer_wrapper {

    background: #8b0000 !important;

    color: #ffffff !important;

    padding: 25px 20px !important;
}

/* OCULTAR LOGO PKP/OJS */

.pkp_brand_footer {

    display: none !important;
}

/* =====================================================
   FOOTER UNICAES - 3 COLUMNAS
===================================================== */

.footer-unicaes {

    display: grid !important;

    grid-template-columns: 1fr 1.20fr 1fr !important;

    column-gap: 50px !important;

    max-width: 1250px;

    margin: auto;

    align-items: start;
}

/* COLUMNAS */

.footer-col {

    color: #ffffff;

    font-size: 14px;

    line-height: 1.5;
}

/* Espaciado compacto */

.footer-col p {

    margin: 6px 0 !important;
}

/* TITULOS FOOTER */

.footer-col h3 {

    color: #edbd3f;

    margin-bottom: 10px !important;

    font-size: 17px;
}

/* LOGO */

.footer-logo {

    width: 150px !important;

    max-width: 150px !important;

    height: auto;

    margin-bottom: 10px !important;
}

/* LINKS FOOTER */

.footer-col a {

    color: #ffffff !important;

    text-decoration: none;
}

.footer-col a:hover {

    color: #edbd3f !important;
}

/* =====================================================
   REDES SOCIALES
===================================================== */

.footer-redes {

    display: flex;

    gap: 12px;

    margin-top: 10px;

    align-items: center;
}

.footer-redes img {

    width: 26px !important;

    height: 26px !important;

    transition: 0.3s;
}

.footer-redes img:hover {

    transform: scale(1.1);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {

    .pkp_site_name_wrapper {

        min-height: 160px;
    }

    .pkp_navigation_primary > li > a {

        font-size: 13px;
    }

    .footer-unicaes {

        grid-template-columns: 1fr !important;

        text-align: center;
    }

    .footer-redes {

        justify-content: center;
    }
}

/* =====================================================
   OCULTAR LOGIN SUPERIOR
===================================================== */

.pkp_navigation_user_wrapper {

    display: none !important;
}

/* =====================================================
   MENU PRINCIPAL MÁS ELEGANTE
===================================================== */

.pkp_navigation_primary_row {

    background: #d4a62a !important;

    display: flex;

    justify-content: center;

    align-items: center;
}

/* Centrar menú */

.pkp_navigation_primary_wrapper {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: center;
}

/* Menú horizontal DESKTOP */

@media screen and (min-width: 769px) {

    .pkp_navigation_primary {

    width: 100%;

    display: flex !important;

    justify-content: center !important;

    align-items: center;

    gap: 10px; /* menos separación */
   }
}

/* Links menú */

.pkp_navigation_primary > li > a {

    color: #2c1a00 !important;

    font-weight: bold;

    font-size: 13px; /* letra más pequeña */

    padding: 8px 6px; /* menos espacio entre botones */

    transition: 0.3s;
}

/* Hover */

.pkp_navigation_primary > li > a:hover {

    background: rgba(255,255,255,0.18);

    border-radius: 4px;
}

/* =====================================================
   AGREGAR ESPACIO SUPERIOR MÁS LIMPIO
===================================================== */

.pkp_head_wrapper {

    padding-top: 0 !important;
}

/* =====================================================
   HEADER FULL WIDTH REAL
===================================================== */

.pkp_head_wrapper,
.pkp_site_name_wrapper,
.pkp_navigation_primary_row,
.pkp_navigation_primary_wrapper {

    width: 100% !important;
    max-width: 100% !important;
}

/* Elimina espacios blancos */

.pkp_site_name_wrapper {

    padding: 0 !important;
    margin: 0 !important;

    background-image: url('/capacitacion/public/unicaes/Banner_Unicaes.png');

    background-size: cover !important;

    background-position: center center !important;

    background-repeat: no-repeat !important;

    min-height: 260px;

    width: 100vw !important;
}

/* Quitar contenedores internos */

.pkp_head_wrapper {

    padding: 0 !important;

    margin: 0 !important;
}

/* Menú centrado */

.pkp_navigation_primary {

    width: 100%;

    display: flex !important;

    justify-content: center !important;

    align-items: center;

    gap: 40px;
}


/* =====================================================
   TARJETAS capacitacionS MODERNAS
===================================================== */

.page_index_site {

    max-width: 1400px !important;

    margin: auto;

    padding: 40px;
}

/* Caja capacitacion */

.obj_journal_summary,
.journals ul li {

    background: #ffffff !important;

    border-radius: 10px;

    padding: 30px !important;

    margin-bottom: 35px !important;

    border: 1px solid #e5e5e5;

    box-shadow: 0 4px 15px rgba(0,0,0,0.06);

    transition: 0.3s;

    border: 2px solid #c79a1b !important;
}

/* Hover elegante */

.obj_journal_summary:hover,
.journals ul li:hover {

    transform: translateY(-3px);

    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
}

/* Imagen capacitacion */

.journals .thumb img {

    width: 180px !important;

    height: auto;

    border-radius: 8px;
}

/* Texto */

.journals .body {

    padding-left: 30px;
}

/* Título capacitacion */

.journals h3 a {

    font-size: 30px;

    color: #8b0000 !important;

    font-weight: bold;

    margin-bottom: 25px !important;
}

/* Descripción */

.journals .description {

    font-size: 18px;

    line-height: 1.8;

    color: #333;

    text-align: justify !important;

    margin-bottom: 25px !important;
}

/* Botones */

.journals .links a {

    background: #c79a1b;

    color: white !important;

    padding: 10px 18px;

    border-radius: 5px;

    text-decoration: none;

    margin-right: 10px;

    transition: 0.3s;
}

.journals .links a:hover {

    background: #8b0000;
}

/* =====================================================
   MOBILE / RESPONSIVE OJS
===================================================== */

@media screen and (max-width: 768px) {

    html,
    body {

        overflow-x: hidden !important;

        width: 100% !important;

        margin: 0 !important;

        padding: 0 !important;
    }

    /* =====================================================
       HEADER MOBILE
    ===================================================== */

    .pkp_structure_head {

        width: 100% !important;

        overflow: hidden !important;

        background: #8b0000 !important;
    }

    .pkp_head_wrapper {

        width: 100% !important;

        margin: 0 !important;

        padding: 0 !important;
    }

    .pkp_site_name_wrapper {

        width: 100% !important;

        height: 130px !important;

        min-height: 130px !important;

        background-image: url('/capacitacion/public/unicaes/Banner_Unicaes.png') !important;

        background-size: contain !important;

        background-position: center center !important;

        background-repeat: no-repeat !important;

        background-color: #8b0000 !important;

        margin: 0 !important;

        padding: 0 !important;
    }

    /* Oculta logo viejo OJS */

    .pkp_site_name {

        display: none !important;
    }

    /* =====================================================
       BOTON HAMBURGUESA
    ===================================================== */

    .pkp_site_nav_toggle {

        display: flex !important;

        align-items: center;

        justify-content: center;

        position: absolute !important;

        top: 135px !important;

        left: 15px !important;

        z-index: 99999 !important;

        width: 52px;

        height: 52px;

        border-radius: 10px;

        background: #d4a62a !important;

        border: none !important;

        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }

    .pkp_site_nav_toggle span {

        color: #ffffff !important;
    }

    /* =====================================================
       CONTENEDOR MENU
    ===================================================== */

    .pkp_site_nav_menu {

        width: 100% !important;

        position: relative !important;
    }

    /* BARRA DORADA Espacio Grande

    .pkp_navigation_primary_row {

        width: 100% !important;

        background: #d4a62a !important;

        margin-top: 0 !important;

        padding-top: 65px !important;
    }
	
	*/
	
	.pkp_navigation_primary_row {

    width: 100% !important;

    background: #d4a62a !important;

    margin-top: 0 !important;

    padding-top: 0 !important;

    position: relative !important;
}

    /* MENU OCULTO */

    .pkp_navigation_primary {

        display: none !important;

        flex-direction: column !important;

        width: 100% !important;

        background: #d4a62a !important;

        margin: 0 !important;

        padding: 0 !important;

        gap: 0 !important;
    }

    /* CUANDO ABRE */

    .pkp_site_nav_menu--isOpen .pkp_navigation_primary {

        display: flex !important;
    }

    /* ITEMS */

    .pkp_navigation_primary li {

        width: 100% !important;

        list-style: none !important;

        margin: 0 !important;
    }

    .pkp_navigation_primary li a {

        display: block !important;

        width: 100% !important;

        padding: 16px !important;

        text-align: center !important;

        color: #2c1a00 !important;

        font-weight: bold !important;

        font-size: 15px !important;

        border-bottom: 1px solid rgba(255,255,255,0.25);
    }

    /* =====================================================
       TARJETAS capacitacion
    ===================================================== */

    .page_index_site {

        width: 100% !important;

        padding: 15px !important;

        box-sizing: border-box !important;
    }

    .journals ul {

        margin: 0 !important;

        padding: 0 !important;
    }

    .journals ul li {

        display: flex !important;

        flex-direction: column !important;

        width: 100% !important;

        box-sizing: border-box !important;

        padding: 22px !important;

        margin-bottom: 25px !important;

        border-radius: 14px !important;

        overflow: hidden !important;
    }

    /* IMAGEN */

    .journals .thumb {

        width: 100% !important;

        text-align: center !important;

        margin-bottom: 18px !important;
    }

    .journals .thumb img {

        width: 120px !important;

        max-width: 100% !important;

        height: auto !important;
    }

    /* TEXTO */

    .journals .body {

        width: 100% !important;

        padding: 0 !important;

        text-align: center !important;
    }

    .journals h3 a {

        font-size: 24px !important;

        line-height: 1.3 !important;
    }

    .journals .description {

        font-size: 16px !important;

        line-height: 1.8 !important;

       text-align: justify !important;

    }

    /* BOTONES */

    .journals .links {

        display: flex !important;

        flex-direction: column !important;

        gap: 10px !important;

        margin-top: 20px !important;
    }

    .journals .links a {

        width: 100% !important;

        text-align: center !important;

        box-sizing: border-box !important;
    }

    /* =====================================================
       FOOTER MOBILE
    ===================================================== */

    .footer-unicaes {

        grid-template-columns: 1fr !important;

        text-align: center !important;

        gap: 30px !important;
    }

    .footer-redes {

        justify-content: center !important;
    }
}

/* =====================================================
   FIX MENU MOBILE OJS
===================================================== */

@media screen and (max-width: 768px) {

    /* Mostrar botón hamburguesa */

    .pkp_site_nav_toggle {

        display: flex !important;

        position: fixed !important;

        top: 85px !important;

        left: 15px !important;

        z-index: 999999 !important;

        width: 50px !important;

        height: 50px !important;

        background: #d4a62a !important;

        border-radius: 10px !important;

        align-items: center !important;

        justify-content: center !important;

        border: none !important;

        box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }

    /* Icono hamburguesa */

    .pkp_site_nav_toggle span {

        color: white !important;

        font-size: 24px !important;
    }

    /* Menú oculto inicialmente */

    .pkp_navigation_primary {

        display: none !important;

        flex-direction: column !important;

        width: 100% !important;

        background: #d4a62a !important;

        gap: 0 !important;
    }

    /* Cuando OJS abre menú */

    .pkp_site_nav_menu--isOpen .pkp_navigation_primary {

        display: flex !important;
    }

    /* Links mobile */

    .pkp_navigation_primary li {

        width: 100% !important;
    }

    .pkp_navigation_primary li a {

        display: block !important;

        width: 100% !important;

        padding: 16px !important;

        text-align: center !important;

        color: #2c1a00 !important;

        font-weight: bold !important;

        border-bottom: 1px solid rgba(255,255,255,0.25);
    }
}

/* =====================================================
   SEARCH MOBILE AL FINAL
===================================================== */

@media screen and (max-width: 768px) {

    .pkp_navigation_primary_wrapper {

        display: flex !important;

        flex-direction: column !important;

        width: 100% !important;
    }

    .pkp_navigation_search_wrapper {

        order: 999 !important;

        width: 100% !important;

        display: block !important;

        text-align: center !important;

        background: #d4a62a !important;

        padding: 14px 0 !important;

        border-top: 1px solid rgba(255,255,255,0.25);
    }

    .pkp_navigation_search_wrapper a {

        color: #2c1a00 !important;

        font-weight: bold !important;

        display: inline-block !important;
    }
}



/* =====================================================
   CENTRAR MINIATURAS DE REVISTAS EN DESKTOP
===================================================== */

.journals ul li {

    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    text-align: center !important;
}

/* Imagen centrada */

.journals .thumb {

    width: 100% !important;

    text-align: center !important;

    margin-bottom: 30px !important;
}

.journals .thumb img {

    display: block !important;

    margin: auto !important;
}

/* Texto centrado */

.journals .body {

    padding-left: 0 !important;

    text-align: center !important;
}



/* =====================================================
   FIX REAL CENTRADO MINIATURA MOBILE
===================================================== */

@media screen and (max-width: 768px) {

    .journals ul li {

        display: flex !important;

        flex-direction: column !important;

        align-items: center !important;

        text-align: center !important;
    }

    .journals .thumb {

        float: none !important;

        flex: none !important;

        width: 100% !important;

        text-align: center !important;

        margin: 0 auto 20px auto !important;

        padding: 0 !important;
    }

    .journals .thumb img {

        width: 120px !important;

        display: block !important;

        margin-left: auto !important;

        margin-right: auto !important;
    }

    .journals .body {

        width: 100% !important;

        padding: 0 !important;

        margin: 0 auto !important;

        text-align: center !important;
    }
}

/* =====================================================
   REDUCIR ESPACIO ENTRE MENU Y PRIMERA CARD
===================================================== */

.pkp_structure_main {

    padding-top: 0 !important;
    margin-top: 0 !important;
}

.page_index_site {

    padding-top: 10px !important;
    margin-top: 0 !important;
}

.journals {

    margin-top: 0 !important;
    padding-top: 0 !important;
}

.obj_journal_summary:first-child,
.journals ul li:first-child {

    margin-top: 0 !important;
}

/* =====================================================
   DESCRIPCION - SELLO EDITORIAL
===================================================== */

.about_site {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.9 !important;
    color: #333 !important;
    text-align: justify !important;
    margin-bottom: 50px !important;
}

.about_site strong:first-child {
    display: block;
    color: #880c09 !important;
    font-size: 42px !important;
    font-weight: bold !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    font-family: Arial, Helvetica, sans-serif !important;
}


/* =====================================================
   TEXTO SELLO EDITORIAL RESPONSIVE
===================================================== */

@media screen and (max-width: 768px) {

    .about_site strong:first-child {

        font-size: 28px !important;

        text-align: center !important;

        line-height: 1.2 !important;
    }
}

@media screen and (max-width: 480px) {

    .about_site strong:first-child {

        font-size: 22px !important;

        letter-spacing: 1px;
    }
}



/* =====================================================
   TARJETAS EN 2 COLUMNAS (DESKTOP)
===================================================== */

/* Contenedor de revistas */
.journals ul {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Tarjetas */
.journals ul li {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px !important;
    box-sizing: border-box !important;
}

/* Imagen más compacta */
.journals .thumb img {
    width: 110px !important;
    height: auto !important;
}

/* Título */
.journals h3 a {
    font-size: 22px !important;
}

/* Descripción */
.journals .description {
    font-size: 15px !important;
    line-height: 1.6 !important;
}


/* =====================================================
   MOBILE: 1 COLUMNA
===================================================== */

@media screen and (max-width: 768px) {

    .journals ul {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .journals ul li {
        width: 100% !important;
    }

    .journals .thumb img {
        width: 100px !important;
    }

    .journals h3 a {
        font-size: 20px !important;
    }

    .journals .description {
        font-size: 14px !important;
    }
}


/* Quitar caja alrededor de los botones */

.journals .links a {
    border: none !important;
    box-shadow: none !important;
    background-clip: padding-box !important;
}

/* Eliminar cualquier contenedor generado por OJS */

.journals .links > * {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}



/* Cards con igual altura y botones alineados */

.journals ul {
    align-items: stretch !important;
}

.journals ul li {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.journals .body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.journals .description {
    flex-grow: 1 !important;
}

.journals .links {
    margin-top: auto !important;
    padding-top: 20px !important;
}






/* =====================================================
   CONTENEDOR GENERAL TRANSPARENTE
===================================================== */

.pkp_structure_page,
.pkp_structure_content {
    background: transparent !important;
}

/* =====================================================
   SOLO CAJAS BLANCAS PARA CONTENIDO REAL
===================================================== */

/* SELLO EDITORIAL */
.about_site {
    background: #ffffff !important;
    padding: 25px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12) !important;
    margin-bottom: 30px !important;
}

/* LISTA DE REVISTAS */
.journals ul li,
.obj_journal_summary {
    background: #ffffff !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10) !important;
}

/* BLOQUES DE INFORMACIÓN (general OJS) */
.block,
.current_issue,
.obj_issue_toc,
.obj_article_details,
.page {
    background: #ffffff !important;
    padding: 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08) !important;
}

/* =====================================================
   EVITA QUE EL TEXTO SE VUELVA CAJA
===================================================== */

p, h1, h2, h3, h4, span {
    background: transparent !important;
}






/* =====================================================
   BARRA LATERAL EN CAJA BLANCA
===================================================== */

.pkp_structure_sidebar {
    background: #ffffff !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12) !important;
}

/* Cada bloque dentro de la sidebar */
.pkp_block {
    background: #ffffff !important;
    padding: 15px !important;
    margin-bottom: 15px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
}

/* Títulos de los bloques */
.pkp_block .title {
    color: #8b0000 !important;
    font-weight: bold !important;
}



/* =====================================================
   SELLO EDITORIAL CON BORDE DORADO
===================================================== */

.about_site {
    background: #ffffff !important;
    padding: 25px !important;
    border-radius: 12px !important;

    border: 5px solid #c79a1b !important;

    box-shadow: 0 4px 18px rgba(0,0,0,0.12) !important;
    margin-bottom: 30px !important;
}




/* =====================================================
   BORDE MÁS GRUESO EN LAS CARDS
===================================================== */

.journals ul li,
.obj_journal_summary {
    border: 4px solid #8b0000 !important;
}




/* =====================================================
   BOTONES CON BORDE DEL MISMO COLOR DEL FOOTER
===================================================== */

.journals .links a,
.cmp_button,
.obj_galley_link {

    background: #c79a1b !important;
    color: #ffffff !important;

    border: 3px solid #8b0000 !important;

    border-radius: 6px !important;

    box-shadow: none !important;
}

/* Hover */

.journals .links a:hover,
.cmp_button:hover,
.obj_galley_link:hover {

    background: #8b0000 !important;
    border-color: #8b0000 !important;
}



/* =====================================================
   COLOR BLANCO PARA TODO EL CONTENEDOR DEL CONTENIDO
===================================================== */

.pkp_structure_main {
    background: #ffffff !important;
    max-width: 1200px;
    margin: 20px auto !important;    /*arriba y abajo*/
    padding: 25px 40px !important;   /* izquierda y derecha */
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}



/* =====================================================
  QUITA EL FONDO DE LA BARRA LATERAL
===================================================== */

.pkp_structure_sidebar {
    background: transparent !important;
    box-shadow: none !important;
}






/* ============================================
   UNA SOLA COLUMNA
============================================ */

.journals ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* ============================================
   SIN CARDS
============================================ */

.journals ul li,
.obj_journal_summary {

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    justify-content: center !important;
    align-items: center !important;
}


/* ============================================
   OCULTAR TITULO, DESCRIPCION Y BOTONES
============================================ */

.journals h3,
.journals .description,
.journals .links,
.journals .body {

    display: none !important;
}


/* ============================================
   PORTADA CENTRADA
============================================ */

.journals .thumb {

    width: 100% !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    margin: 0 auto !important;
    padding: 0 !important;
}


.journals .thumb img {

    display: block !important;

    width: 250px !important;
    max-width: 100% !important;

    height: auto !important;

    margin: 0 auto !important;

    transition: 0.3s;
}


/* Efecto al pasar el mouse */

.journals .thumb img:hover {

    transform: scale(1.05);

}



/* Logos responsivos solo en escritorio */

@media screen and (min-width: 769px) {
    .journals .thumb img {
        width: clamp(280px, 24vw, 360px) !important;
        height: auto !important;
    }
}