/* ==========================================================================
   REVISTA EDUCACIÓN Y HUMANIDADES - TEMA ROJO AMAZÓNICO PREMIUM (UNAP IQUITOS)
   Paleta:
   - Rojo Achiote (Primario): #9E1B1B
   - Sangre de Grado (Oscuro / Barra Nav / Pie): #5A0B0B / #6E1010
   - Arcilla Amazónica (Botones PDF / Acción): #C83E2B
   - Dorado Aguaje (Cenefa Geométrica Kené / Acentos): #D99B26
   - Crema Cumala (Fondo cálido de tarjetas): #FAF7F4
   ========================================================================== */

/* 1. CABECERA CON IMAGEN DE BANNER AMAZÓNICO (Editable desde OJS -> Apariencia -> Imagen de inicio) */
.pkp_structure_head {
	background-color: #6E1010;
	background-position: center center !important;
	background-size: cover !important;
	border-bottom: none !important;
	position: relative;
	box-shadow: 0 6px 20px rgba(90, 11, 11, 0.25) !important;
}

/* Velo degradado cálido sobre la imagen de cabecera para garantizar lectura perfecta del título */
.pkp_structure_head::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(
		180deg,
		rgba(110, 16, 16, 0.30) 0%,
		rgba(140, 22, 22, 0.22) 50%,
		rgba(74, 10, 10, 0.78) 100%
	);
	pointer-events: none;
	z-index: 0;
}

.pkp_head_wrapper {
	position: relative;
	z-index: 1;
	padding-top: 48px;
}

/* Título principal "Educación y Humanidades" sobre el banner */
.pkp_site_name_wrapper {
	padding-top: 28px;
	padding-bottom: 22px;
}

.pkp_site_name .is_text {
	color: #FFFFFF !important;
	font-size: 2.15rem !important;
	font-weight: 800 !important;
	letter-spacing: 0.5px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.8);
	display: inline-block;
	border-bottom: 3px solid #D99B26;
	padding-bottom: 6px;
}

/* 2. BARRA DE NAVEGACIÓN (Corrige la franja verde anterior por Rojo Sangre de Grado translúcido) */
.pkp_site_nav_menu {
	background-color: rgba(74, 10, 10, 0.90) !important;
	backdrop-filter: blur(6px);
	border-top: 1px solid rgba(217, 155, 38, 0.40);
	padding: 2px 16px;
	border-radius: 8px 8px 0 0;
}

.pkp_navigation_primary > li > a,
.pkp_navigation_user > li > a,
.pkp_search_desktop {
	color: #FFFFFF !important;
	font-weight: 600 !important;
	letter-spacing: 0.2px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
	transition: all 0.2s ease;
}

.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_user > li > a:hover,
.pkp_search_desktop:hover {
	color: #FDE68A !important;
	border-bottom-color: #D99B26 !important;
}

/* Submenús desplegables ("Acerca de") */
.pkp_navigation_primary ul {
	background-color: #5A0B0B !important;
	border-top: 3px solid #D99B26 !important;
	border-radius: 0 0 8px 8px !important;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28) !important;
}

.pkp_navigation_primary ul li a {
	color: #FFFFFF !important;
	border-color: rgba(255, 255, 255, 0.08) !important;
}

.pkp_navigation_primary ul li a:hover {
	color: #FDE68A !important;
	background-color: rgba(217, 155, 38, 0.16) !important;
}

/* 3. CENEFA GEOMÉTRICA AMAZÓNICA (KENÉ DORADO) BAJO EL ENCABEZADO */
.pkp_structure_head::after {
	content: "";
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	height: 14px;
	background-color: #4A0A0A !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M0 6 L12 0 L24 6 L36 0 L48 6 L36 12 L24 6 L12 12 Z' fill='none' stroke='%23D99B26' stroke-width='1.7'/%3E%3Ccircle cx='12' cy='6' r='2' fill='%23FAF7F4'/%3E%3Ccircle cx='36' cy='6' r='2' fill='%23FAF7F4'/%3E%3C/svg%3E") !important;
	background-repeat: repeat-x;
	background-position: center;
	border-top: 1px solid rgba(217, 155, 38, 0.55);
	border-bottom: 2px solid #D99B26;
}

/* 4. ENLACES, MIGAS DE PAN (BREADCRUMBS) Y TÍTULOS DE PÁGINA */
.pkp_structure_main a {
	color: #9E1B1B;
	transition: color 0.15s ease;
}

.pkp_structure_main a:hover {
	color: #C83E2B;
}

.cmp_breadcrumbs {
	background-color: #FAF7F4;
	border: 1px solid #EDE0D6;
	border-left: 4px solid #D99B26;
	border-radius: 6px;
	padding: 8px 14px !important;
	margin-bottom: 20px;
	font-size: 0.9rem;
}

.cmp_breadcrumbs ol {
	margin: 0;
	padding: 0;
}

.cmp_breadcrumbs a {
	color: #9E1B1B !important;
	font-weight: 600;
}

.page_issue_archive h1,
.page_issue_archive h2,
.obj_issue_toc .sections > .section > h2,
.page_index_journal .current_issue h2,
.pkp_page_title,
h1.page_title {
	color: #7A1212 !important;
	border-left: 5px solid #D99B26;
	padding-left: 12px;
	font-weight: 700;
}

/* 5. TARJETAS DE ARCHIVOS DE NÚMEROS (La vista de la captura "Archivos") */
.issues_archive {
	border-top: none !important;
}

.issues_archive > li {
	background-color: #FAF7F4;
	border: 1px solid #E8D8CC !important;
	border-left: 6px solid #9E1B1B !important;
	border-radius: 12px;
	padding: 24px !important;
	margin-bottom: 24px !important;
	box-shadow: 0 4px 14px rgba(110, 16, 16, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
}

.issues_archive > li:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(110, 16, 16, 0.13);
	border-left-color: #D99B26 !important;
}

/* Portada de cada número en Archivos y en Número Actual */
.obj_issue_summary .cover img,
.obj_issue_toc .cover img {
	border-radius: 8px;
	border: 3px solid #FFFFFF;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
	transition: transform 0.25s ease;
}

.obj_issue_summary .cover img:hover,
.obj_issue_toc .cover img:hover {
	transform: scale(1.03);
}

.obj_issue_summary h2 a,
.obj_issue_summary .title {
	color: #9E1B1B !important;
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	text-decoration: none;
}

.obj_issue_summary h2 a:hover {
	color: #C83E2B !important;
}

.obj_issue_summary .series {
	display: inline-block;
	background-color: #FEE2E2;
	color: #9E1B1B !important;
	font-weight: 600;
	font-size: 0.85rem;
	padding: 2px 10px;
	border-radius: 20px;
	margin-top: 4px;
	margin-bottom: 8px;
}

/* 6. TARJETAS DE ARTÍCULOS Y BOTONES PDF */
.obj_article_summary {
	background-color: #FAF7F4;
	border: 1px solid #EDE0D6;
	border-left: 4px solid #9E1B1B;
	border-radius: 10px;
	padding: 18px 20px !important;
	margin-bottom: 16px;
	box-shadow: 0 2px 8px rgba(158, 27, 27, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-left-color 0.2s ease;
}

.obj_article_summary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(158, 27, 27, 0.11);
	border-left-color: #D99B26;
}

.obj_article_summary > .title a {
	color: #6E1010 !important;
	font-weight: 700;
	text-decoration: none;
}

.obj_article_summary > .title a:hover {
	color: #C83E2B !important;
}

.cmp_button_wire,
.obj_galley_link {
	background-color: #C83E2B !important;
	color: #FFFFFF !important;
	border: 1px solid #9E1B1B !important;
	border-bottom: 2px solid #6E1010 !important;
	border-radius: 6px !important;
	padding: 6px 14px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	box-shadow: 0 2px 4px rgba(110, 16, 16, 0.2);
	transition: all 0.2s ease !important;
}

.cmp_button_wire:hover,
.obj_galley_link:hover {
	background-color: #9E1B1B !important;
	color: #FDE68A !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(110, 16, 16, 0.28);
}

/* 7. BARRA LATERAL (SIDEBAR) */
.pkp_structure_sidebar .pkp_block {
	background-color: #FAF7F4 !important;
	border: 1px solid #E8D8CC !important;
	border-top: 4px solid #9E1B1B !important;
	border-radius: 10px;
	padding: 18px;
	margin-bottom: 22px;
	box-shadow: 0 3px 10px rgba(158, 27, 27, 0.06);
}

.pkp_structure_sidebar .pkp_block .title {
	color: #9E1B1B !important;
	font-weight: 700;
	border-bottom: 2px solid #EDE0D6 !important;
	padding-bottom: 8px;
	margin-bottom: 12px;
	position: relative;
}

.pkp_structure_sidebar .pkp_block .title::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 42px;
	height: 2px;
	background-color: #D99B26;
}

.pkp_structure_sidebar a {
	color: #8B1616 !important;
	font-weight: 500;
}

.pkp_structure_sidebar a:hover {
	color: #C83E2B !important;
}

/* 8. PIE DE PÁGINA CON CENEFA AMAZÓNICA DORADA */
.pkp_structure_footer_wrapper {
	background: linear-gradient(135deg, #5A0B0B 0%, #3B0606 100%) !important;
	color: #FAF7F4 !important;
	border-top: none !important;
	position: relative;
}

.pkp_structure_footer_wrapper::before {
	content: "";
	display: block;
	width: 100%;
	height: 14px;
	background-color: #4A0A0A !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12' viewBox='0 0 48 12'%3E%3Cpath d='M0 6 L12 0 L24 6 L36 0 L48 6 L36 12 L24 6 L12 12 Z' fill='none' stroke='%23D99B26' stroke-width='1.7'/%3E%3Ccircle cx='12' cy='6' r='2' fill='%23FAF7F4'/%3E%3Ccircle cx='36' cy='6' r='2' fill='%23FAF7F4'/%3E%3C/svg%3E") !important;
	background-repeat: repeat-x;
	background-position: center;
	border-top: 2px solid #D99B26;
	border-bottom: 1px solid rgba(217, 155, 38, 0.45);
}

.pkp_structure_footer_wrapper a {
	color: #FDE68A !important;
}
