/* =========================================
   REVISTA JURÍDICA ADEPY
   Diseño institucional
   ========================================= */


/* =========================================
   ENCABEZADO
   ========================================= */

.pkp_structure_head {
    background: #173F5F !important;
}

.pkp_navigation_primary_wrapper {
    background: #173F5F !important;
}


/* =========================================
   MENÚ PRINCIPAL
   ========================================= */

.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a,
.pkp_search_desktop {
    color: #FFFFFF !important;
    transition: .25s;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_user > li > a:hover,
.pkp_search_desktop:hover {
    color: #B65E23 !important;
}


/* =========================================
   MENÚ DESPLEGABLE
   ========================================= */

.pkp_navigation_primary ul {
    background: #FFFFFF !important;
    border: 1px solid #DDDDDD;
}

.pkp_navigation_primary ul li a {
    color: #2F343A !important;
    background: #FFFFFF !important;
}

.pkp_navigation_primary ul li a:hover,
.pkp_navigation_primary ul li a:focus {
    background: #F5F5F5 !important;
    color: #B65E23 !important;
}


/* =========================================
   PIE DE PÁGINA
   ========================================= */

.pkp_structure_footer_wrapper {
    background: #122E47 !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

.pkp_structure_footer,
.pkp_footer_content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.pkp_footer_content p {
    margin: 6px 0 !important;
}

.pkp_structure_footer_wrapper,
.pkp_structure_footer_wrapper p,
.pkp_structure_footer_wrapper a {
    color: #FFFFFF !important;
}


/* =========================================
   OCULTAR MARCA PKP
   ========================================= */

.pkp_brand_footer,
.cmp_brand_footer {
    display: none !important;
}
/* ===========================================================
   1. BARRA LATERAL
   =========================================================== */

.pkp_structure_sidebar .pkp_block {
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #E5E7EB;
}

/* Título del bloque */
.pkp_structure_sidebar .pkp_block .title {
    display: block;
    width: 100%;
    font-weight: 700;
    font-size: .95rem;
    color: #3F3F46;
    margin-bottom: 1rem;
}


/* ===========================================================
   2. CUADRÍCULA DE LOGOS (2 COLUMNAS)
   =========================================================== */

.pkp_structure_sidebar .pkp_block .content {
    display: grid;
    grid-template-columns: repeat(2, minmax(95px,1fr));
    gap: 16px 14px;
    justify-items: center;
    align-items: center;
}

/* Cada párrafo o enlace pasa a ser una celda */
.pkp_structure_sidebar .pkp_block .content p,
.pkp_structure_sidebar .pkp_block .content a {
    margin: 0;
    width: 100%;
    text-align: center;
}


/* ===========================================================
   3. ESTILO UNIFICADO DE LOS LOGOS
   =========================================================== */

.pkp_structure_sidebar .pkp_block img {
    width: 120px !important;
    height: 80px !important;

    max-width: 100% !important;
    object-fit: contain !important;

    display: block;
    margin: 0 auto;

    transition: transform .2s ease;
}

.pkp_structure_sidebar .pkp_block img:hover {
    transform: scale(1.04);
}


/* ===========================================================
   4. BLOQUES CON UN SOLO LOGO
      (Editado por, Originalidad, Licencia)
   =========================================================== */

.pkp_block[id*="editado"] .content,
.pkp_block[id*="originalidad"] .content,
.pkp_block[id*="licencia"] .content {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.pkp_block[id*="editado"] img,
.pkp_block[id*="originalidad"] img,
.pkp_block[id*="licencia"] img {
    width: 170px !important;
    height: auto !important;
}


/* ===========================================================
   5. AJUSTES ESPECÍFICOS DE RISALP
   =========================================================== */

/* La licencia Creative Commons se ve un poco más grande */
.pkp_structure_sidebar img[alt*="Creative"],
.pkp_structure_sidebar img[src*="creativecommons"] {
    width: 180px !important;
    height: auto !important;
}

/* Turnitin */
.pkp_structure_sidebar img[src*="turnitin"] {
    width: 150px !important;
    height: auto !important;
}

/* Crossref */
.pkp_structure_sidebar img[src*="crossref"] {
    width: 135px !important;
    height: auto !important;
}


/* ===========================================================
   6. RESPONSIVE
   =========================================================== */

@media (max-width: 768px){

    .pkp_structure_sidebar .pkp_block .content{
        grid-template-columns: repeat(2,1fr);
        gap: 12px;
    }

    .pkp_structure_sidebar .pkp_block img{
        width: 95px !important;
        height: 65px !important;
    }

}

@media (max-width: 480px){

    .pkp_structure_sidebar .pkp_block .content{
        grid-template-columns: 1fr;
    }

}