.pkp_site_name .is_img img {
    max-height: 120px; /* prueba 120, 150 o 180 */
    width: auto;
}

.pkp_site_name_wrapper img,
.pkp_site_name_link img {
    max-height: 180px !important;
    width: auto !important;
}

.pkp_structure_footer_wrapper {
  background: #4E6AA3;
  position: relative;
   padding: 20px 20px 40px; 110px; /* M s espacio porque agregamos m s texto */
}

.pkp_structure_footer_wrapper {
  position: relative;
}


  
  white-space: pre-line;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: 500px;
}

/* Header en columna */
.pkp_site_name_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo centrado */
.pkp_site_name {
    float: none;
    text-align: center;
    margin-bottom: 12px;
}

/* Men  principal debajo del logo */
.pkp_navigation_primary_wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Men  horizontal */
.pkp_navigation_primary {
    display: flex;
    justify-content: center;
}

/* Cambiar logo OJS / PKP a blanco */
.pkp_brand_footer img {
    filter: brightness(0) invert(1);
}

/* 1. Aseguramos que el contenedor del bloque sea ancho suficiente */
#customblock-via-pro-desarrollo {
    width: 100%;       /* ocupa todo el ancho del sidebar */
    max-width: none;   /* elimina l mites impuestos por la plantilla */
}

/* Forzar tama o del logo en OJS 3.5 */
.pkp_site_name img,
.pkp_site_name_link img,
.pkp_site_name_wrapper img {
    max-height: none !important;
    height: 180px !important; /* Cambia a lo que necesites */
    width: auto !important;
}

/* Dar espacio al header si el logo crece */
.pkp_site_name_wrapper {
    min-height: 180px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== Corrección del menú móvil ===== */
@media (max-width: 768px) {

    .pkp_navigation_primary,
    .pkp_navigation_primary_wrapper {
        display: block !important;
        width: 100% !important;
    }

    .pkp_navigation_primary > li {
        display: block !important;
        width: 100%;
    }

    .pkp_navigation_primary a {
        display: block;
        padding: 10px 15px;
    }

    .pkp_site_name_wrapper {
        display: block !important;
        text-align: center;
    }

    .pkp_site_name img {
        max-height: 150px !important;
        width: auto !important;
    }

}



/* ===== Licencia CC BY arriba del texto ===== */

/* Ajustar bloque de licencia CC */
.pkp_brand_footer {
    margin-left: 20px !important;
    margin-bottom: 20px !important;
    text-align: left !important;
}

.pkp_brand_footer img {
    vertical-align: middle;
    margin-right: 10px;
}

/* Alinear la licencia con el texto del footer */
.pkp_brand_footer {
    margin-left: -90px !important;
    text-align: left !important;
}

.pkp_brand_footer p {
    margin: 0 !important;
}

/* Subir el bloque "Platform & workflow by OJS/PKP" */
.pkp_brand_footer {
    position: absolute !important;
    top: 20px !important;
    bottom: auto !important;
    right: 20px !important;
}

/* Ajustar el contenido del footer */
.pkp_footer_content > div {
    padding-left: 0 !important;
    margin-left: -15px !important; /* Ajusta el valor si hace falta */
}