/*.journal-logo {
    max-height: 150px !important;
}*/

.page_submissions .author_guidelines,
.page_submissions .submission_checklist,
.page_submissions .copyright_notice,
.page_submissions .privacy_statement,
.page_submissions .section_policy {
    display: none !important;
}

/* Sobre la Revista*/
.pagina-sobre-revista p {
    text-align: justify !important;
    text-justify: inter-word;
    line-height: 1.8;
}

.pagina-sobre-revista h3 {
    margin-top: 28px;
}

/* Tipos de manuscritos */
.pagina-tipos-manuscritos {
    max-width: 850px;
    margin: 0 auto;
}

.pagina-tipos-manuscritos h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.6rem;
    font-weight: bold;
}

.pagina-tipos-manuscritos p,
.pagina-tipos-manuscritos li {
    text-align: justify !important;
    text-justify: inter-word;
}

.pagina-tipos-manuscritos ol {
    margin-left: 35px;
    margin-bottom: 25px;
}

.pagina-tipos-manuscritos li {
    margin-bottom: 8px;
}

/* Políticas y Normas */
.pagina-politicas-normas {
    max-width: 850px;
    margin: 0 auto;
}

.pagina-politicas-normas h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.6rem;
    font-weight: bold;
}

.pagina-politicas-normas p,
.pagina-politicas-normas li {
    text-align: justify !important;
    text-justify: inter-word;
}

.pagina-politicas-normas ul {
    margin-left: 35px;
    margin-bottom: 25px;
}

.pagina-politicas-normas li {
    padding-left: 8px;
    margin-bottom: 8px;
}

/* Proceso Editorial y Revisión por Pares */
.pagina-proceso-editorial {
    max-width: 850px;
    margin: 0 auto;
}

.pagina-proceso-editorial p {
    text-align: justify !important;
    text-justify: inter-word;
    margin-bottom: 18px;
}

/* Equipo Editorial */
.pagina-equipo-editorial {
    max-width: 850px;
    margin: 0 auto;
}

.pagina-equipo-editorial h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.6rem;
    font-weight: bold;
}

.pagina-equipo-editorial p {
    text-align: justify !important;
    text-justify: inter-word;
    margin-bottom: 18px;
}

/* Gestión de la Información y Privacidad */
.pagina-gestion-privacidad {
    max-width: 850px;
    margin: 0 auto;
}

.pagina-gestion-privacidad p {
    text-align: justify !important;
    text-justify: inter-word;
    margin-bottom: 18px;
}

/* Índices y accesibilidad */
.pagina-indices-accesibilidad {
    max-width: 850px;
    margin: 0 auto;
}

.pagina-indices-accesibilidad p {
    text-align: justify !important;
    text-justify: inter-word;
    margin-bottom: 18px;
}

/* Directrices para autores */
.pagina-directrices-autores {
    max-width: 850px;
    margin: 0 auto;
}

.pagina-directrices-autores ul {
    margin-left: 35px;
    margin-bottom: 25px;
}

.pagina-directrices-autores li {
    text-align: justify !important;
    text-justify: inter-word;
    padding-left: 8px;
    margin-bottom: 10px;
}

/* Instrucciones para autores/as */
.pagina-instrucciones-autores {
    max-width: 850px;
    margin: 0 auto;
}

.pagina-instrucciones-autores h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.6rem;
    font-weight: bold;
}

.pagina-instrucciones-autores p,
.pagina-instrucciones-autores li {
    text-align: justify !important;
    text-justify: inter-word;
}

.pagina-instrucciones-autores ul {
    margin-left: 35px;
    margin-bottom: 25px;
}

.pagina-instrucciones-autores li {
    padding-left: 8px;
    margin-bottom: 8px;
}

/* Verificación antes del Envío */
.pagina-verificacion-envio {
    max-width: 850px;
    margin: 0 auto;
}

.pagina-verificacion-envio p,
.pagina-verificacion-envio li {
    text-align: justify !important;
    text-justify: inter-word;
}

.pagina-verificacion-envio ul {
    margin-left: 35px;
    margin-bottom: 25px;
}

.pagina-verificacion-envio li {
    padding-left: 8px;
    margin-bottom: 8px;
}

/* =====================================================
   LOGO RESPONSIVE REAL - OJS CLASSIC
   Clase del logo: img.journal-logo
   ===================================================== */

/* Base del encabezado: permite ubicar la navegacion de usuario
   arriba a la derecha sin modificar el HTML de OJS. */
body header .header.container-fluid {
    position: relative !important;
}

body header .header.container-fluid .upper-header.row {
    position: static !important;
}

/* Contenedor completo del logo */
body header .header.container-fluid .upper-header.row h1.logo-wrapper,
body header .header.container-fluid .upper-header.row h1.logo-wrapper.col-md-7 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;

    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    text-align: center !important;
    margin: 0 auto !important;
    padding: 18px 15px 14px 15px !important;

    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Navegacion de usuario: login e idioma en la esquina superior derecha */
body header .header.container-fluid #user-nav-wrapper,
body header .header.container-fluid .upper-header.row #user-nav-wrapper,
body header .header.container-fluid .upper-header.row #user-nav-wrapper.col-md-5 {
    position: absolute !important;
    top: 16px !important;
    right: clamp(14px, 4vw, 56px) !important;
    z-index: 20 !important;

    float: none !important;
    width: auto !important;
    max-width: calc(100% - 28px) !important;
    flex: 0 0 auto !important;

    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;

    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body header .header.container-fluid #user-nav-wrapper #navigationUser {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px 14px !important;

    margin: 0 !important;
    padding: 0 !important;
}

body header .header.container-fluid #user-nav-wrapper #navigationUser > li,
body header .header.container-fluid #user-nav-wrapper #navigationUser > ul,
body header .header.container-fluid #user-nav-wrapper .nav-item {
    margin: 0 !important;
}

body header .header.container-fluid #user-nav-wrapper a,
body header .header.container-fluid #user-nav-wrapper button,
body header .header.container-fluid #user-nav-wrapper .nav-link {
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

body header .header.container-fluid #user-nav-wrapper a:hover,
body header .header.container-fluid #user-nav-wrapper a:focus,
body header .header.container-fluid #user-nav-wrapper .nav-link:hover,
body header .header.container-fluid #user-nav-wrapper .nav-link:focus {
    color: #e6e6e6 !important;
}

body header .header.container-fluid #user-nav-wrapper .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    text-align: left !important;
}

/* OJS Classic 3.5 usa en este tema el id "user-nav-wraper"
   con una sola p. Este selector por prefijo cubre ambas variantes. */
body header .header.container-fluid [id^="user-nav-wrap"],
body header .header.container-fluid .upper-header.row [id^="user-nav-wrap"],
body header .header.container-fluid .upper-header.row [id^="user-nav-wrap"].col-md-5 {
    position: absolute !important;
    top: 16px !important;
    right: clamp(14px, 4vw, 56px) !important;
    left: auto !important;
    z-index: 30 !important;

    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 28px) !important;
    flex: 0 0 auto !important;

    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px 14px !important;

    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body header .header.container-fluid [id^="user-nav-wrap"] #navigationUser,
body header .header.container-fluid [id^="user-nav-wrap"] #languageNav {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex: 0 0 auto !important;

    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

body header .header.container-fluid [id^="user-nav-wrap"] #navigationUser > li,
body header .header.container-fluid [id^="user-nav-wrap"] #languageNav > li {
    margin: 0 !important;
}

body header .header.container-fluid [id^="user-nav-wrap"] a,
body header .header.container-fluid [id^="user-nav-wrap"] button,
body header .header.container-fluid [id^="user-nav-wrap"] .nav-link {
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

body header .header.container-fluid [id^="user-nav-wrap"] .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    text-align: left !important;
}

/* Enlace que contiene el logo */
body header .header.container-fluid .upper-header.row h1.logo-wrapper a.home-link {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 auto !important;
    padding: 0 !important;

    overflow: hidden !important;
}

/* Imagen real del logo */
body header .header.container-fluid .upper-header.row h1.logo-wrapper a.home-link img.journal-logo,
img.journal-logo {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-height: none !important;
    object-fit: contain !important;

    margin-left: auto !important;
    margin-right: auto !important;
}


/* PC grande */
@media screen and (min-width: 1400px) {
    body header .header.container-fluid .upper-header.row h1.logo-wrapper a.home-link img.journal-logo,
    img.journal-logo {
        width: 950px !important;
        max-width: 88vw !important;
    }
}

/* PC / laptop */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    body header .header.container-fluid .upper-header.row h1.logo-wrapper a.home-link img.journal-logo,
    img.journal-logo {
        width: 850px !important;
        max-width: 88vw !important;
    }
}

/* Laptop pequeña */
@media screen and (min-width: 992px) and (max-width: 1199px) {
    body header .header.container-fluid .upper-header.row h1.logo-wrapper a.home-link img.journal-logo,
    img.journal-logo {
        width: 720px !important;
        max-width: 86vw !important;
    }
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 991px) {
    body header .header.container-fluid .upper-header.row h1.logo-wrapper a.home-link img.journal-logo,
    img.journal-logo {
        width: 560px !important;
        max-width: 86vw !important;
    }
}

/* Celular */
@media screen and (max-width: 767px) {
    body header .header.container-fluid .upper-header.row h1.logo-wrapper,
    body header .header.container-fluid .upper-header.row h1.logo-wrapper.col-md-7 {
        padding: 38px 10px 12px 10px !important;
    }

    body header .header.container-fluid #user-nav-wrapper,
    body header .header.container-fluid .upper-header.row #user-nav-wrapper,
    body header .header.container-fluid .upper-header.row #user-nav-wrapper.col-md-5,
    body header .header.container-fluid [id^="user-nav-wrap"],
    body header .header.container-fluid .upper-header.row [id^="user-nav-wrap"],
    body header .header.container-fluid .upper-header.row [id^="user-nav-wrap"].col-md-5 {
        top: 10px !important;
        right: 12px !important;
    }

    body header .header.container-fluid #user-nav-wrapper #navigationUser {
        gap: 4px 10px !important;
    }

    body header .header.container-fluid #user-nav-wrapper a,
    body header .header.container-fluid #user-nav-wrapper button,
    body header .header.container-fluid #user-nav-wrapper .nav-link,
    body header .header.container-fluid [id^="user-nav-wrap"] a,
    body header .header.container-fluid [id^="user-nav-wrap"] button,
    body header .header.container-fluid [id^="user-nav-wrap"] .nav-link {
        font-size: 0.82rem !important;
    }

    body header .header.container-fluid .upper-header.row h1.logo-wrapper a.home-link img.journal-logo,
    img.journal-logo {
        width: 360px !important;
        max-width: 82vw !important;
    }
}

/* Celular pequeño */
@media screen and (max-width: 430px) {
    body header .header.container-fluid .upper-header.row h1.logo-wrapper a.home-link img.journal-logo,
    img.journal-logo {
        width: 320px !important;
        max-width: 80vw !important;
    }
}

/* Celular muy pequeño */
@media screen and (max-width: 360px) {
    body header .header.container-fluid .upper-header.row h1.logo-wrapper a.home-link img.journal-logo,
    img.journal-logo {
        width: 270px !important;
        max-width: 78vw !important;
    }
}
