/* ==========================================================
   ESPIRAL. Estudios sobre Estado y Sociedad
   NUEVA IDENTIDAD VISUAL INSTITUCIONAL
   OJS 3.x
   ========================================================== */


/* ==========================================================
   1. PALETA INSTITUCIONAL
   ========================================================== */

:root {
    --espiral-tinto: #8a1530;
    --espiral-tinto-oscuro: #65101f;
    --espiral-tinto-profundo: #4f0d18;

    --espiral-beige: #f1e3c3;
    --espiral-beige-claro: #f8f3e8;

    --espiral-gris: #55565a;
    --espiral-gris-medio: #7a7a7a;
    --espiral-gris-claro: #dcdcdc;

    --espiral-texto: #272727;
    --espiral-fondo: #ffffff;
}


/* ==========================================================
   2. ESTRUCTURA GENERAL
   ========================================================== */

html,
body {
    background: #ffffff;
}

body {
    color: var(--espiral-texto);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.pkp_structure_page {
    background: #ffffff;
    box-shadow: none;
}


/* ==========================================================
   3. ENCABEZADO ESPIRAL
   Banner institucional 1914 x 312 px
   ========================================================== */

.pkp_structure_head {
    background: var(--espiral-tinto-profundo);
    border-bottom: 4px solid var(--espiral-beige);
}


/* El wrapper general del encabezado ocupa todo el ancho */

.pkp_head_wrapper {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* OJS utiliza además este contenedor para el nombre/logotipo */

.pkp_site_name_wrapper {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* Contenedor del banner */

.pkp_site_name {
    display: block !important;
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 0 !important;
}


/* Enlace/contenedor de la imagen */

.pkp_site_name .is_img {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* Imagen institucional 1914 x 312 */

.pkp_site_name .is_img img {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    height: auto !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
}


/* ==========================================================
   4. NAVEGACIÓN PRINCIPAL
   ========================================================== */

.pkp_navigation_primary_wrapper {
    background: rgba(79, 13, 24, .96);
    border-top: 1px solid rgba(241, 227, 195, .45);
}

.pkp_navigation_primary {
    margin: 0;
}

.pkp_navigation_primary > li > a {
    padding-top: 14px;
    padding-bottom: 13px;

    color: var(--espiral-beige);

    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;

    border-bottom: 3px solid transparent;

    transition: all .2s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus {
    color: #ffffff;
    border-bottom-color: var(--espiral-beige);
}


/* Submenús */

.pkp_navigation_primary ul {
    background: var(--espiral-tinto-profundo);
    border: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.pkp_navigation_primary ul a {
    padding: 10px 15px;
    color: #ffffff;
    font-size: 12px;
}

.pkp_navigation_primary ul a:hover {
    background: var(--espiral-tinto);
    color: var(--espiral-beige);
}


/* ==========================================================
   5. USUARIO Y BÚSQUEDA
   ========================================================== */

.pkp_navigation_user {
    font-size: 11px;
}

.pkp_navigation_user a,
.pkp_navigation_search_wrapper a {
    color: var(--espiral-beige);
}

.pkp_navigation_user a:hover,
.pkp_navigation_search_wrapper a:hover {
    color: #ffffff;
}


/* ==========================================================
   6. ANCHO GENERAL DEL SITIO
   ========================================================== */

.pkp_structure_content,
.pkp_structure_footer {
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================
   7. CONTENIDO PRINCIPAL
   ========================================================== */

.pkp_structure_main {
    padding-top: 34px;
    padding-bottom: 60px;
}


/* ==========================================================
   8. BARRA LATERAL DERECHA
   ========================================================== */

.pkp_structure_sidebar {
    padding-top: 34px;
    padding-left: 30px;

    border-left: 1px solid #dedede;
}


/* Bloques */

.pkp_block {
    margin-bottom: 32px;
    padding-bottom: 8px;
}


/* Títulos de bloque */

.pkp_block .title {
    margin: 0 0 14px;
    padding: 8px 12px;

    color: var(--espiral-tinto);
    background: var(--espiral-beige-claro);

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;

    border-left: 4px solid var(--espiral-tinto);
    border-bottom: 1px solid #e2d4b8;
}


/* Contenido del bloque */

.pkp_block .content {
    color: var(--espiral-gris);
    font-size: 12px;
    line-height: 1.55;
}


/* Links en barra lateral */

.pkp_block a {
    color: var(--espiral-gris);
    text-decoration: none;
}

.pkp_block a:hover {
    color: var(--espiral-tinto);
}


/* ==========================================================
   9. BLOQUE DE ÍNDICES Y DIRECTORIOS
   ========================================================== */

/*
   Se estiliza de forma moderada.
   No se fuerza la estructura del bloque.
*/

.pkp_structure_sidebar img {
    max-width: 100%;
    height: auto;
}


/* Si cada índice tiene enlace alrededor de la imagen */

.pkp_structure_sidebar a img {
    opacity: .92;
    transition:
        opacity .2s ease,
        transform .2s ease;
}

.pkp_structure_sidebar a:hover img {
    opacity: 1;
    transform: translateY(-1px);
}


/* Separación visual entre logotipos */

.pkp_structure_sidebar p,
.pkp_structure_sidebar div {
    line-height: 1.5;
}


/* ==========================================================
   10. BOTÓN ENVIAR ARTÍCULO
   ========================================================== */

.cmp_button,
.pkp_block .cmp_button {
    display: inline-block;

    padding: 7px 15px;

    background: var(--espiral-tinto);
    color: var(--espiral-beige) !important;

    border: 1px solid var(--espiral-tinto);
    border-radius: 2px;

    font-size: 12px;
    font-weight: 600;

    box-shadow: none;

    transition: all .2s ease;
}

.cmp_button:hover,
.pkp_block .cmp_button:hover {
    background: var(--espiral-tinto-profundo);
    color: #ffffff !important;
    border-color: var(--espiral-tinto-profundo);
}


/* ==========================================================
   11. TÍTULOS GENERALES
   ========================================================== */

h1,
h2,
h3,
h4 {
    color: var(--espiral-texto);
}


/* ==========================================================
   12. NÚMERO ACTUAL
   ========================================================== */

.obj_issue_toc .heading .title {
    margin-bottom: 8px;

    color: var(--espiral-tinto);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 600;

    letter-spacing: .1px;
}


/* Subtítulo del número */

.obj_issue_toc .heading .subtitle {
    color: var(--espiral-gris);
}


/* Descripción */

.obj_issue_toc .description {
    margin-top: 18px;

    color: #404040;

    font-size: 13px;
    line-height: 1.75;

    text-align: justify;
}


/* Fecha publicación */

.obj_issue_toc .published {
    margin-top: 15px;

    color: var(--espiral-gris);

    font-size: 12px;
}


/* ==========================================================
   13. PORTADA DEL NÚMERO
   ========================================================== */

.obj_issue_toc .cover img {
    border: 1px solid #d3d3d3;

    box-shadow:
        0 3px 9px rgba(0, 0, 0, .12);
}


/* ==========================================================
   14. SECCIONES
   ========================================================== */

.obj_issue_toc .section {
    margin-top: 38px;
}


/* Título de sección */

.obj_issue_toc .section > h2,
.obj_issue_toc .section > h3 {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 10px;

    color: var(--espiral-gris);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 400;

    text-align: center;
}


/* Líneas laterales */

.obj_issue_toc .section > h2::before,
.obj_issue_toc .section > h2::after,
.obj_issue_toc .section > h3::before,
.obj_issue_toc .section > h3::after {
    content: "";

    flex: 1;
    height: 1px;

    background: #d3d3d3;
}


/* ==========================================================
   15. RESÚMENES DE ARTÍCULOS
   ========================================================== */

.obj_article_summary {
    margin: 0;

    padding-top: 20px;
    padding-bottom: 22px;

    border-bottom: 1px solid #ececec;
}

.obj_article_summary:last-child {
    border-bottom: none;
}


/* Título */

.obj_article_summary .title {
    margin-bottom: 5px;
}

.obj_article_summary .title a {
    color: var(--espiral-tinto);

    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;

    text-decoration: none;

    transition: color .2s ease;
}

.obj_article_summary .title a:hover {
    color: var(--espiral-tinto-profundo);
}


/* Subtítulo */

.obj_article_summary .subtitle {
    color: var(--espiral-gris-medio);
    font-size: 12px;
}


/* Autores */

.obj_article_summary .authors {
    margin-top: 6px;

    color: #444444;

    font-size: 11px;
}


/* ==========================================================
   16. BOTONES PDF / HTML / XML
   ========================================================== */

.obj_galley_link {
    min-width: 72px;

    padding: 5px 13px;

    background: #ffffff;
    color: var(--espiral-tinto) !important;

    border: 1px solid var(--espiral-tinto);
    border-radius: 14px;

    font-size: 10px;
    font-weight: 600;

    text-align: center;

    transition: all .2s ease;
}

.obj_galley_link:hover,
.obj_galley_link:focus {
    background: var(--espiral-tinto);
    color: var(--espiral-beige) !important;
}


/* ==========================================================
   17. ENLACES GENERALES
   ========================================================== */

a {
    color: var(--espiral-tinto);
}

a:hover {
    color: var(--espiral-tinto-profundo);
}


/* ==========================================================
   18. ESTADÍSTICAS / ANUNCIOS / BLOQUES DE PORTADA
   ========================================================== */

.obj_announcement_summary {
    padding: 20px 22px;

    background: #fafafa;

    border-left: 3px solid var(--espiral-beige);
    border-bottom: 1px solid #e8e8e8;
}

.obj_announcement_summary .title a {
    color: var(--espiral-tinto);
}

.obj_announcement_summary .date {
    color: var(--espiral-gris-medio);
    font-size: 11px;
}


/* ==========================================================
   19. MIGAS DE PAN
   ========================================================== */

.cmp_breadcrumbs {
    font-size: 11px;
}

.cmp_breadcrumbs a {
    color: var(--espiral-gris);
}

.cmp_breadcrumbs a:hover {
    color: var(--espiral-tinto);
}


/* ==========================================================
   20. FORMULARIOS
   ========================================================== */

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border: 1px solid #cacaca;
    border-radius: 2px;

    background: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--espiral-tinto);

    outline: none;

    box-shadow:
        0 0 0 2px rgba(138, 21, 48, .10);
}


/* ==========================================================
   21. PIE DE PÁGINA
   ========================================================== */

.pkp_structure_footer_wrapper {
    margin-top: 50px;

    background: var(--espiral-tinto-profundo);
    color: var(--espiral-beige);

    border-top: 5px solid var(--espiral-beige);
}

.pkp_structure_footer {
    padding-top: 35px;
    padding-bottom: 35px;
}

.pkp_structure_footer a {
    color: var(--espiral-beige);
}

.pkp_structure_footer a:hover {
    color: #ffffff;
}


/* ==========================================================
   22. RESPONSIVO
   ========================================================== */

@media (max-width: 991px) {

    .pkp_structure_head {
        min-height: 150px;
        background-size: cover;
    }

    .pkp_site_name {
        min-height: 105px;
    }

    .pkp_structure_sidebar {
        margin-top: 30px;

        padding-left: 0;
        padding-top: 28px;

        border-left: none;
        border-top: 1px solid #dddddd;
    }

}


/* ==========================================================
   23. MÓVILES
   ========================================================== */

@media (max-width: 600px) {

    .pkp_structure_head {
        min-height: 115px;
    }

    .pkp_site_name {
        min-height: 75px;
    }

    .obj_issue_toc .heading .title {
        font-size: 21px;
    }

    .obj_article_summary .title a {
        font-size: 13px;
    }

    .pkp_structure_content {
        padding-left: 15px;
        padding-right: 15px;
    }
}
/* ==========================================================
   24. CENTRADO DEL MENÚ PRINCIPAL - ESPIRAL
   ========================================================== */

/* Fila completa de navegación */
.pkp_navigation_primary_row {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}


/* Menú principal */
ul.pkp_navigation_primary,
.pkp_navigation_primary {
    display: table !important;

    width: auto !important;
    max-width: none !important;

    float: none !important;
    clear: both !important;

    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;

    padding-left: 0 !important;

    text-align: center !important;
}


/* Elementos del menú */
ul.pkp_navigation_primary > li,
.pkp_navigation_primary > li {
    display: inline-block !important;

    float: none !important;

    margin: 0 !important;

    vertical-align: middle !important;
}


/* Enlaces */
.pkp_navigation_primary > li > a {
    display: block !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}
}