/**
 * =================================================================
 * PLANTILLA CSS ELEGANTE / EDITORIAL - OJS 3.5 (Default Theme)
 * =================================================================
 * Carga este archivo en:
 * Ajustes > Sitio web > Apariencia > Avanzado > Hoja de estilo del sitio
 */

/* =================================================================
   1. VARIABLES DE PALETA Y TIPOGRAFÍA (Estilo Editorial Premium)
   ================================================================= */
:root {
    /* Paleta Principal */
    --brand-dark: #111827;         /* Negro/Azul marino profundo para cabeceras y textos */
    --brand-primary: #1e293b;      /* Slate oscuro principal */
    --brand-accent: #9f7aea;       /* Púrpura/Dorado elegante para detalles */
    --accent-gold: #e21e66;        /* Tono dorado/bronce refinado */
    --accent-gold-hover: #e21e66;

    /* Fondos */
    --bg-main: #fcfbf9;            /* Blanco cálido/marfil de fondo */
    --bg-card: #ffffff;            /* Blanco puro para tarjetas */
    --bg-muted: #f4f1ea;           /* Beige sutil para destacados */

    /* Textos */
    --text-primary: #1c1917;       /* Tinta oscura */
    --text-muted: #78716c;         /* Gris cálido */

    /* Fuentes */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Cinzel', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Bordes y Sombras */
    --border-elegant: 1px solid #e21e66;
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --radius-sm: 4px;
}

/* Importar tipografía elegante desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');


/* =================================================================
   2. REINICIO Y ESTILOS GLOBALES
   ================================================================= */
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
	text-align: JUSTIFY;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, a:focus {
    color: var(--accent-gold-hover);
}


/* =================================================================
   3. CABECERA Y NAVEGACIÓN (HEADER)
   ================================================================= */
.pkp_head_wrapper {
    background-color: var(--bg-card);
    border-bottom: 1px solid #e21e66;
    box-shadow: var(--shadow-soft);
    padding: 20px 0;
}

/* Nombre o Título de la Revista */
.pkp_site_name .is_text {
    font-family: var(--font-serif);
    color: var(--brand-dark);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Menú de Navegación */
.pkp_navigation_primary > li > a {
    font-family: var(--font-sans);
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 16px;
    transition: color 0.25s ease;
}

.pkp_navigation_primary > li > a:hover {
    color: var(--accent-gold);
}

/* Submenús Desplegables */
.pkp_navigation_primary ul {
    background: var(--bg-card);
    border: 1px solid #e21e66;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-radius: var(--radius-sm);
}


/* =================================================================
   4. INICIO Y TARJETAS DE ARTÍCULOS
   ================================================================= */
/* Bloque de número actual */
.homepage_issue {
    background: var(--bg-card);
    border: #e21e66;
    border-top: 3px solid var(--accent-gold);
    padding: 30px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
}

.homepage_issue .heading,
.cmp_cur_issue_first .heading {
    font-family: var(--font-serif);
    color: var(--brand-dark);
    font-size: 1.5rem;
    border-bottom: 1px solid #e21e66;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Tarjeta individual de artículo */
.obj_article_summary {
    background: var(--bg-card);
    border: #e21e66;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.obj_article_summary:hover {
    transform: translateY(-3px);
    border-color: #e21e66;
}

.obj_article_summary .title a {
    font-family: var(--font-serif);
    color: var(--brand-dark);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
}

.obj_article_summary .title a:hover {
    color: var(--accent-gold);
}

.obj_article_summary .authors {
    font-family: var(--font-sans);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 10px;
}


/* =================================================================
   5. BOTONES DE GALERADAS (PDF / HTML / EPUB)
   ================================================================= */
.obj_galley_link {
    font-family: var(--font-sans);
    background-color: transparent;
    color: var(--brand-dark) !important;
    border: 1px solid #e21e66;
    border-radius: 2px;
    padding: 8px 18px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 12px;
}

.obj_galley_link:hover {
    background-color: var(--accent-gold);
    color: #ffffff !important;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
}


/* =================================================================
   6. PÁGINA DETALLADA DEL ARTÍCULO
   ================================================================= */
.page_article .main_entry {
    background: var(--bg-card);
    border: #e21e66;
    padding: 40px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}

.page_article .page_title {
    font-family: var(--font-serif);
    color: var(--brand-dark);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
}

/* Bloque de Resumen (Abstract) */
.page_article .item.abstract {
    background-color: var(--bg-muted);
    padding: 30px;
    border-left: 3px solid #e21e66;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 35px 0;
}

.page_article .item.abstract h3 {
    font-family: var(--font-sans);
    color: var(--brand-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.page_article .item.abstract p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.8;
}

/* Sección de Cita */
.page_article .item.citation {
    background: var(--bg-card);
    border: 1px dashed #e21e66;
    padding: 20px;
    border-radius: var(--radius-sm);
}


/* =================================================================
   7. BARRA LATERAL (SIDEBAR)
   ================================================================= */
.pkp_block {
    background: var(--bg-card);
    border: #e21e66;
    padding: 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    box-shadow: var(--shadow-soft);
}

.pkp_block .title {
    font-family: var(--font-sans);
    color: var(--brand-dark);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-bottom: 1px solid #e21e66;
    padding-bottom: 8px;
    margin-bottom: 16px;
}


/* =================================================================
   8. PIE DE PÁGINA (FOOTER)
   ================================================================= */
.pkp_structure_footer_wrapper {
    background-color: #fff;
    color: #d6d3d1;
    margin-top: 80px;
    padding: 60px 0 30px 0;
    border-top: 3px solid #e21e66;
}

.pkp_structure_footer_wrapper a {
    color: var(--accent-gold);
}

.pkp_structure_footer_wrapper a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.pkp_footer_content {
    padding: 0.143rem;
    text-align: left;
	color:#333;
}
/* Ocultar la marca por defecto de PKP si se desea */
.pkp_brand_footer {
    display: none !important;
}

b, strong {
    font-weight: normal;
}

img {
    max-width: 50%;
    width: auto;
    height: auto;
}

.header_view {
    z-index: 2;
    position: relative;
    background: #e45d90;
}

.obj_issue_summary .cover {
        float: left;
        width: 100%;
        height: auto;
        margin-right: 1.43rem;
    }
	
	.obj_issue_toc .cover {
        float: left;
        width: 100%;
        height: auto;
        max-height: none;
        margin-right: 1.43rem;
    }
	

/* Ajuste de ancho de la tarjeta principal y lateral en escritorio */
@media (min-width: 992px) {
    /* Tarjeta principal del artículo */
    .page_article .main_entry {
        width: 70%; /* O el porcentaje/píxeles que prefieras */
        float: left;
    }

    /* Tarjeta lateral con detalles (portada, DOI, licencias) */
    .page_article .entry_details {
        width: 28%;
        float: right;
    }
}

/* 1. Reducir el relleno interno (padding) izquierdo de la tarjeta principal */
.page_article .main_entry {
    padding-left: 0; /* Por defecto suele tener entre 15px y 30px */
}

/* 2. Reducir el margen externo del contenedor global en pantallas grandes */
@media (min-width: 992px) {
    /* Reduce el espacio vacio a los lados del contenido de la página */
    .page_article .pkp_structure_content {
        padding-left: 10px; /* Por defecto suele tener 15px o más */
    }

    /* Si la tarjeta principal usa un margen interno en la cuadrícula (grid) */
    .page_article .main_entry {
        margin-left: 0;
    }
}

/* Ampliar la imagen de portada en la página del artículo */
.page_article .entry_details .cover_image {
    max-width: 100% !important; /* Permite que use todo el ancho del contenedor */
    width: 100%;               /* Fuerza la expansión horizontal */
    height: auto;              /* Mantiene la proporción de aspecto */
    margin-bottom: 20px;
}

.page_article .entry_details .cover_image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--radius-md, 8px); /* Aplica bordes redondeados si usas estilo moderno */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* Sombra suave opcional */
}

/* Contenedor de los enlaces de galeradas */
.page_article .galleys_links,
.obj_article_summary .galleys_links,
.item.galleys .value {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Forzar 2 columnas de igual tamaño */
    gap: 10px !important;                             /* Espacio horizontal y vertical entre botones */
    margin-top: 15px;
}

/* Ajustes a los elementos hijos / lista */
.page_article .galleys_links li,
.obj_article_summary .galleys_links li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ajuste del botón para que ocupe el 100% de la casilla en la cuadrícula */
.page_article .galleys_links a,
.obj_article_summary .galleys_links a,
.obj_galley_link {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* Prevenir desbordamiento en el bloque de referencias */
.page_article .item.references,
.page_article .item.references .value,
.page_article .item.references p,
.page_article .item.references li {
    /* Forzar que las palabras largas o URLs se rompan si superan el ancho del contenedor */
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}

/* Forzar el comportamiento específicamente en enlaces largos (DOI / URLs) */
.page_article .item.references a {
    word-break: break-all;
    overflow-wrap: anywhere;
}

.pkp_nav_list ul a {
	color: #666;
}

.pkp_nav_list ul a:hover {
	color: #e72166;
}

.cmp_button, .cmp_form .buttons button, .page_lost_password .buttons button, .page_search .submit button, .block_make_submission a {
    display: inline-block;
    padding: 0 1em;
    background: #eee;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-top-color: #e21e66;
    border-radius: 3px;
    box-shadow: inset 0 -1em 1em rgba(0, 0, 0, 0.1);
    font-size: .93rem;
    line-height: calc(2.143rem - 2px);
    font-weight: 700;
    color: #666;
    text-decoration: none;
}

.cmp_button, .cmp_form .buttons button, .page_lost_password .buttons button, .page_search .submit button, .block_make_submission a:hover {
    display: inline-block;
    padding: 0 1em;
    background: #eee;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-top-color: #e21e66;
    border-radius: 3px;
    box-shadow: inset 0 -1em 1em rgba(0, 0, 0, 0.1);
    font-size: .93rem;
    line-height: calc(2.143rem - 2px);
    font-weight: 700;
    color: #e72166;
    text-decoration: none;
}

    .pkp_navigation_search_wrapper a:hover {
        margin: .357rem .5em 0;
        padding: .357rem .5em calc(.714rem - 2px);
        border-bottom: 2px solid transparent;
        color: #e72166;
        text-decoration: none;
    }
	
.pkp_navigation_user a:hover {
        padding-top: .357rem;
        padding-bottom: .357rem;
        line-height: 1.43rem;
		color:#e72166;
    }	
	
.pkp_page_index .current_issue .read_more {
    display: inline-block;
    position: relative;
    padding-right: 2.143rem;
    font-size: .93rem;
    font-weight: 700;
    line-height: 2.143rem;
    color: #666;
    text-decoration: none;
    margin-bottom: 1.43rem;
}	

.pkp_page_index .current_issue .read_more:hover {
	color:#e72166;
}

.obj_issue_toc .cover img {
    display: block;       
    max-width: 100%;
}