/* Ibero Research | Presentacion institucional | v2.0
   Reemplaza v1. Solo portada OJS, tema por defecto.
   Requiere 8 parrafos: identificacion, titular, descripcion, enlaces,
   y cuatro credenciales en parrafos separados (Enter, no Shift+Enter).
   No requiere JavaScript, fuentes externas ni cambios de PHP. */

.page_index_journal .homepage_about {
    --ir-navy: #092D46;
    --ir-light: #F0F4F7;
    --ir-inset: clamp(18px, 2.5vw, 30px);
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    box-sizing: border-box;
    margin: 12px 0 8px;
    padding: 0;
    background: var(--ir-navy);
    color: #E1EBF3;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    font-family: inherit;
    text-align: left;
    overflow-wrap: break-word;
}
/* Mantener el titulo semantico de OJS disponible para lectores de pantalla. */
.page_index_journal .homepage_about > h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.page_index_journal .homepage_about > p {
    grid-column: 1 / -1;
    box-sizing: border-box;
    margin: 0 var(--ir-inset) 12px;
    padding: 0;
    color: #E1EBF3;
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}
.page_index_journal .homepage_about > p:nth-of-type(1) {
    padding-top: var(--ir-inset);
    color: #D4E3ED;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1.5;
    margin-bottom: 10px;
}
.page_index_journal .homepage_about > p:nth-of-type(2) {
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.22;
    letter-spacing: -.025em;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
}
.page_index_journal .homepage_about > p:nth-of-type(2) strong {
    color: inherit;
    font-weight: 700;
}
/* Oculta solo el separador de texto entre los enlaces; no sus etiquetas. */
.page_index_journal .homepage_about > p:nth-of-type(4):has(a) {
    font-size: 0;
    line-height: 0;
    margin-top: 0;
    margin-bottom: 18px;
}
/* El boton principal es blanco incluso si el editor cambia la URL de envio. */
.page_index_journal .homepage_about > p:nth-of-type(4) a[href] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 15px;
    margin: 0 8px 4px 0;
    border: 1px solid #FFFFFF;
    border-radius: 5px;
    background: #FFFFFF;
    color: #092D46;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
}
/* Selecciona el segundo enlace aunque OJS lo envuelva en strong o b. */
.page_index_journal .homepage_about > p:nth-of-type(4) a[href*="formato" i],
.page_index_journal .homepage_about > p:nth-of-type(4) a[href*="requisitos" i],
.page_index_journal .homepage_about > p:nth-of-type(4) a[href] ~ a[href],
.page_index_journal .homepage_about > p:nth-of-type(4) :is(strong, b, span):has(a[href]) ~ :is(strong, b, span) a[href],
.page_index_journal .homepage_about > p:nth-of-type(4) a[href] ~ :is(strong, b, span) a[href],
.page_index_journal .homepage_about > p:nth-of-type(4) :is(strong, b, span):has(a[href]) ~ a[href] {
    background: transparent;
    border-color: #AFC4D4;
    color: #FFFFFF;
}
.page_index_journal .homepage_about > p:nth-of-type(4) a[href]:hover {
    background: #E1EBF3;
    border-color: #E1EBF3;
    color: #092D46;
    text-decoration: underline;
}
.page_index_journal .homepage_about > p:nth-of-type(4) a[href]:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}
/* Alternativa legible si todavia no se separaron las cuatro credenciales. */
.page_index_journal .homepage_about > p:nth-of-type(5) {
    margin: 0;
    padding: 12px var(--ir-inset);
    background: var(--ir-light);
    color: var(--ir-navy);
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
}
/* Cuatro celdas con texto HTML real e iconos SVG decorativos integrados. */
.page_index_journal .homepage_about:has(> p:nth-of-type(8)) > p:nth-of-type(n+5):nth-of-type(-n+8) {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin: 0;
    padding: 12px 6px 13px;
    background: var(--ir-light);
    color: var(--ir-navy);
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}
.page_index_journal .homepage_about:has(> p:nth-of-type(8)) > p:nth-of-type(n+5):nth-of-type(-n+8)::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
/* Escudo con marca de verificacion */
.page_index_journal .homepage_about:has(> p:nth-of-type(8)) > p:nth-of-type(5)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23092D46' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-3.5 8-10V5l-8-3-8 3v7c0 6.5 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}
/* Libro abierto */
.page_index_journal .homepage_about:has(> p:nth-of-type(8)) > p:nth-of-type(6)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23092D46' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 7v14M3 4h4a5 5 0 0 1 5 4 5 5 0 0 1 5-4h4v15h-4a6 6 0 0 0-5 2 6 6 0 0 0-5-2H3Z'/%3E%3C/svg%3E");
}
/* Huella: identificacion persistente DOI */
.page_index_journal .homepage_about:has(> p:nth-of-type(8)) > p:nth-of-type(7)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23092D46' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 18 0M5 19c1.5-2 2-4 2-7a5 5 0 0 1 10 0c0 3-.3 6-1.7 9M10 21c1.5-3 2-6 2-9M3 16c.4-1.2.5-2.4.5-4M20 16l-.6 3M9 16c-.3 2-.8 3.5-1.5 4.5M14.5 15c.1-1 .2-2 .2-3'/%3E%3C/svg%3E");
}
/* Globo */
.page_index_journal .homepage_about:has(> p:nth-of-type(8)) > p:nth-of-type(8)::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23092D46' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9'/%3E%3Cpath d='M3 12h18'/%3E%3C/svg%3E");
}
@media (max-width: 600px) {
    .page_index_journal .homepage_about {
        --ir-inset: 18px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 8px;
    }
    .page_index_journal .homepage_about > p:nth-of-type(2) {font-size: 26px;}
    .page_index_journal .homepage_about:has(> p:nth-of-type(8)) > p:nth-of-type(n+5):nth-of-type(-n+8) {
        padding: 12px 8px;
    }
}
@media (max-width: 380px) {
    .page_index_journal .homepage_about > p:nth-of-type(4) a[href] {
        display: flex;
        width: 100%;
        margin: 0 0 8px;
    }
}
