/* ----------------------------------------------------------- */
/* 1. CONFIGURACIÓN BASE (Corrección de errores de estructura) */
/* ----------------------------------------------------------- */
html {
    background: #DCE3E6;
    height: 100%;
}

body {
    background: #fff;
    color: #333;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 12pt;
    line-height: 1.6;
    /* Eliminado position: absolute que rompía el diseño */
    margin: 2em auto; 
    padding: 2em;
    width: 90%;
    max-width: 1900px; /* Tamaño estándar para lectura */
    box-shadow: 0 0.3em 1em rgba(0,0,0,0.2);
    word-break: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

/* ----------------------------------------------------------- */
/* 2. CABECERA (Uso de Flexbox en lugar de Floats)             */
/* ----------------------------------------------------------- */
#visor-cabecera {
    width: 80%;
    min-height: 80px;
    border-bottom: 8px solid #b2b2b2;
    margin-bottom: 2em;
    margin: 0 auto;
}

.herramientas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: #007684;
}

.logo-encabezado img {
    height: 70px;
    width: auto;
}

.redalyc-s {
    text-align: right;
    font-family: Helvetica, Arial, sans-serif;
    color: #777777;
    font-size: 14px;
}



/* ----------------------------------------------------------- */
/* 3. ESTRUCTURA DEL ARTÍCULO                                  */
/* ----------------------------------------------------------- */
#articulo {
    width: 80%;
    margin: 0 auto;
}

#articulo-categoria {
    font-size: 12pt;
    color: #3c3c3b;
    font-weight: bold;
    text-align: right;
}

#articulo-meta {
    width: 80%;
    color: #b2b2b2;
    font-weight: bold;
    text-align: right;
    font-size-adjust: none;
    position: relative;
    right: -20%;
    margin-bottom: 2em;
}

#articulo-meta > .articulo-titulo {
    font-size: 14pt;
}

#articulo-meta > .articulo-titulo-traduccion {
    font-size: 12pt;
    font-weight: normal;
    color: #545353;
}

#ficha-general {
    border: solid;
    border-color: #545353;
    border-width: .876pt 0px;
    padding: 10px 0px;
    font-size: 10pt;
}

/* ----------------------------------------------------------- */
/* 4. CUERPO Y TEXTO                                           */
/* ----------------------------------------------------------- */
#articulo-body {
    text-align: justify;
}
.articulo-resumen, .articulo-palabras, .articulo-resumen-traduccion, .articulo-palabras-traduccion {
    display: grid !important;
}

.resumen, .resumen-trans {
    margin: 10px 0;
}

.italica { font-style: italic; }
.negrita { font-weight: bold; }

.bibliografia {
    font-size: 11pt;
    margin-left: 2em;
    text-indent: -2em; /* Sangría francesa */
    margin-top: 1em;
}
.cuadro{
    width: auto;
    border: 1px solid #b2b2b2;
    padding: 10px;
    text-align: center;
    color: #515151;
    background-color: #efeded;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}
.captionS {
    text-align: center;
    font-size: 9pt;
}
.italica {
    font-style: italic;
}
a {
    color: #b2b2b2;
    text-decoration: none;
}
#autores-articulo .nombre, #autores-articulo .apellidos, .doi, .nombre-fecha, .funding, .collab {
    font-weight: bold;
}

/* ----------------------------------------------------------- */
/* 5. PIE DE PÁGINA                                            */
/* ----------------------------------------------------------- */
#creditos {
    margin-top: 40px;
    padding: 20px;
    background-color: #9d9d9c;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.flex-container {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
}
#logo-izquierda > img {
    width: 120px;
}

/* ----------------------------------------------------------- */
/* 6. RESPONSIVE                                               */
/* ----------------------------------------------------------- */
@media (max-width: 768px) {
    body {
        width: 95%;
        padding: 10px;
    }
    .herramientas {
        flex-direction: column;
        text-align: center;
    }
    .redalyc-s {
        text-align: center;
        margin-top: 10px;
    }
}