/**
 * Estilo OJS 3.4 - Inspiración Institucional Taylor & Francis
 * Versión: Ultra-Compacta y Alineada
 */

/* 1. TIPOGRAFÍA Y BASES GENERALES */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    color: #333;
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    font-size: 15px; /* Ligeramente menor para compactar */
}

/* ELIMINACIÓN DE MÁRGENES LATERALES Y LÍNEAS VERTICALES */
.pkp_structure_page, 
.pkp_structure_content, 
.container {
    max-width: 98% !important; 
    width: 98% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ELIMINACIÓN TOTAL DE LÍNEAS VERTICALES (Pseudo-elementos) */
.pkp_structure_main::after, 
.pkp_structure_main::before,
.pkp_structure_sidebar::after,
.pkp_structure_sidebar::before,
.obj_article_details::after,
.obj_article_details::before,
.main_entry::after,
.main_entry::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    border: none !important;
}

/* 2. TÍTULOS Y ALINEACIÓN (FORZADO AL MISMO EJE) */

/* Título principal de la página */
.obj_article_details h1.page_title,
h1.page_title {
    font-family: "Charter", Georgia, serif !important;
    font-weight: 400 !important;
    font-size: 2.5rem !important; /* Tamaño original para el título principal */
    color: #003b5c !important; 
    line-height: 1.05 !important;
    margin: 0 0 0.4em 0 !important; /* Margen izquierdo 0 */
    padding: 0 !important;
    letter-spacing: -0.02em;
    text-align: left !important;
}

/* Títulos de artículos y enlaces */
.obj_article_details .title,
.obj_article_details .main_entry > .title {
    font-family: "Charter", Georgia, serif !important;
    font-weight: 400 !important;
    font-size: 1rem !important; /* Tamaño reducido para títulos de secciones */
    color: #003b5c !important; 
    line-height: 1.05 !important;
    margin: 0 0 0.4em 0 !important; /* Margen izquierdo 0 */
    padding: 0 !important;
    letter-spacing: -0.02em;
    text-align: left !important;
}

/* 3. COMPACTACIÓN DE TEXTO Y ELEMENTOS */
p, .abstract, .item, section {
    line-height: 1.4 !important; /* Interlineado más compacto */
    margin-bottom: 8px !important; /* Menos espacio entre bloques */
}

.obj_article_details .main_entry .item,
.obj_article_details .main_entry section {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* 4. CONTROL DE AUTORES (GRID COMPACTO) */
.obj_article_details ul.authors,
ul.authors {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px 16px !important; /* Gap reducido */
    margin: 15px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

ul.authors li .name {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}

.obj_article_details ul.authors li .affiliation {
    display:block !important;    
    font-size: 0.8rem !important;
    line-height: 1.1 !important; /* Interlineado deseado con mayor especifidad */
    font-weight: 250 !important;
    margin-top: 2px !important;
    text-decoration: none !important;
}

/* 5. COLOR VERDE ORCID (CORREGIDO) */
.orcid, .orcid a, 
ul.authors li .orcid, 
ul.authors li .orcid a {
    color: #a6ce39 !important; /* Verde Oficial ORCID */
    font-weight: 250 !important;
    font-size: 0.8rem !important; /* Tamaño controlado para el ORCID */
    line-height: 1 !important; /* Interlineado consistente con la afiliación */
    text-decoration: none !important;
}

.orcid a:hover {
    text-decoration: underline !important;
}

/* 6. METADATOS Y KEYWORDS (ALINEADOS Y COMPACTOS) */
h2.label,
.obj_article_details h2.label,
section.item.keywords h2.label {
    font-family: "Charter", Georgia, serif !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #003b5c !important;
    margin: 15px 0 5px 0 !important;
    padding: 0 !important;
    display: block !important;
}

.obj_article_details .item.keywords .value,
section.item.keywords .value {
    margin-left: 0 !important;
    padding-left: 0 !important;
    font-size: 0.95rem !important;
    display: block !important;
    line-height: 1.3 !important;
}

/* 7. AJUSTE DE PANELES (DIMENSIONES Y ALINEACIÓN) */
@media (min-width: 992px) {
    .obj_article_details .main_entry {
        float: left !important;
        width: 74% !important;
        padding: 0 !important;
        margin: 0 !important;
        border-right: none !important;
    }

    .obj_article_details .entry_details {
        float: right !important;
        width: 24% !important; 
        padding: 15px !important; /* Compactado */
        margin-top: 0 !important;
    }
    
    .pkp_structure_main {
        width: 78% !important;
        padding-right: 30px !important;
    }
}

/* 8. SECCIÓN DE REFERENCIAS COMPACTA */
.obj_article_details .item.references .value p {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
}

/* 9. RESET GENERAL DE ALINEACIÓN PARA HIJOS DE MAIN_ENTRY */
.main_entry > *,
.obj_article_details > * {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* 10. ELIMINAR ESPACIOS EN BLANCO EN EL TOP */
.pkp_structure_main {
    padding-top: 10px !important;
}

/* EFECTO PANEL LATERAL */
.obj_article_details .entry_details {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    border: 1px solid #e1e4e8 !important;
}