/* Fondo gris general */
body {
    background-color: #F0F2F4;
}

.pkp_structure_content {
    width: 100%;
    padding-left: 22px;
    padding-right: 22px;
    display: flex;
}

.pkp_structure_main {
    border-right: 1px solid #ddd;
    flex: 1;
}
.pkp_structure_main:before,
.pkp_structure_main:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background: none;
}

.pkp_structure_head {
    background-color: #E0E3E6;
    background-position: center center;
    background-size: cover;
    margin-bottom: 0px;
    width: 100%;
    display: flow-root;
    background-repeat: no-repeat;
    background-image: url(../img/header-bg.png);
}
.pkp_structure_sidebar {
    width: 25%;
}

.pkp_structure_head_bg_image {
    background-position: center center;
    background-size: cover;
    height: auto;
    padding: 180px 5% 30px 5%;
    display: inline-block;
    width: 100%;
}

.has_site_logo .pkp_head_wrapper {
    padding-top: 12px;
}

.has_site_logo .pkp_head_wrapper .pkp_site_name_wrapper {
    background-position: center center;
    background-repeat: no-repeat;
	background-size: contain;
}

.pkp_site_name {
    margin-bottom: 10px;
}

.pkp_site_name .is_img img {
    max-height: 140px;
}

/* Barra de menú */
.pkp_site_nav_menu {
    padding-top: 2px;
    padding-bottom: 2px;
    background: #40B0C0;
}

.pkp_navigation_user a {
    color: #8DB63C;
    font-size: 14px;
}
.pkp_navigation_user a:hover,
.pkp_navigation_user a:focus {
    color: #A5D044;
}

.pkp_block {
    background-color: #f4f4f4;
}

.pkp_block .title {
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    background-color: #40B0C0 !important;
    box-shadow: 7px 8px 25px -8px rgba(0, 0, 0, 0.75);
}

.obj_article_summary>.title a {
    font-size: 16px;
}
.obj_article_summary>.title a:hover,
.obj_article_summary>.title a:focus {
    color: #5BC5D3;
}

.pkp_structure_footer_wrapper {
    background: #2A7A85 !important;
    color: #fff;
}
.pkp_structure_footer_wrapper a {
    color: #fff;
}
.pkp_navigation_user_wrapper {
    top: 25%;
}

/* Centrar el contenido del menú de usuario */
.pkp_navigation_user_wrapper .pkp_navigation_user {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.pkp_navigation_user_wrapper .pkp_navigation_user > li {
    display: flex;
    align-items: center;
}

/* Badge de tareas pendientes */
.pkp_navigation_user_wrapper .pkp_navigation_user .task_count {
    display: none;
}

.pkp_structure_footer {
    display: flex;
}
.pkp_structure_footer .pkp_footer_content {
    flex: 2;
}
.pkp_structure_footer .pkp_brand_footer {
    flex: 1;
}

.obj_issue_toc .galleys>h2, .obj_issue_toc .section>h2, .obj_issue_toc .galleys>h3, .obj_issue_toc .section>h3 {
    background: #40B0C0;
    color: #fff;
}

.obj_issue_toc .galleys:before, .obj_issue_toc .section:before {
    border-top: 1px solid #40B0C0;
    left: 15px;
    width: 95%;
}

.cmp_button,
.cmp_form .buttons button,
.page_lost_password .buttons button,
.page_search .submit button,
.block_make_submission a {
    box-shadow: none;
    color: #40B0C0;
    border: 1px solid #40B0C0;
    width: 100%;
    text-align: center;
}
.block_make_submission a:hover, .block_make_submission a:focus {
    background: #2A7A85;
    color: #fff;
}

@media (min-width: 768px) {
    .obj_issue_toc .cover {
        width: 35%;
    }
}

/* Bloques expandidos/contraidos */
.pkp_block {
    padding-left: 15px;
    padding-right: 15px;
}

.pkp_block .title {
	cursor: pointer;
	position: relative;
    padding: 5px 38px 5px 10px;
    padding-right: 38px;
    color: #fff;
    border-radius: 4px;
    background-color: #40B0C0 !important;
    margin-bottom: 0;
    box-shadow: none;
}

/* Icono por defecto: "−" (expandido) */
.pkp_block .title::after {
	content: "−";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    font-size: 1.5em;
    color: #FFF;
    background-color: #2A7A85;
    padding: 2px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Icono cuando está contraído: "+" */
.pkp_block.collapsed .title::after {
	content: "+";
}

/* Animación del contenido */
.pkp_block .content {
	max-height: 1000px;
	overflow: hidden;
	transition: max-height 0.2s ease;
    background: white;
    margin: 0;
    padding: .5rem 1.2rem;
}

.pkp_block.collapsed .content {
	max-height: 0;
}

/* ============================================
   MENÚ MÓVIL (hamburguesa)
   ============================================ */
@media (max-width: 992px) {
	/* Oculto por defecto */
	.pkp_site_nav_menu .pkp_navigation_primary_row {
		display: none !important;
	}

	.pkp_site_nav_menu.mv_nav_open,
	.pkp_site_nav_menu.mv_nav_open > .pkp_head_wrapper,
	.pkp_site_nav_menu.mv_nav_open .pkp_navigation_primary_row,
	.pkp_site_nav_menu.mv_nav_open .pkp_navigation_primary_wrapper,
	.pkp_site_nav_menu.mv_nav_open #navigationPrimary > li {
		display: block !important;
		max-height: none !important;
		height: auto !important;
		width: auto !important;
		overflow: visible !important;
		visibility: visible !important;
		opacity: 1 !important;
		position: static !important;
		transform: none !important;
		pointer-events: auto !important;
	}

	#navigationPrimary {
		display: none;
	}

	.pkp_site_nav_menu.mv_nav_open #navigationPrimary {
		display: flex !important;
		flex-direction: column !important;
		max-height: none !important;
		height: auto !important;
		width: 100% !important;
		overflow: visible !important;
		visibility: visible !important;
		opacity: 1 !important;
		position: static !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	.pkp_site_nav_toggle {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
	}

	.pkp_site_nav_menu .pkp_navigation_primary_wrapper {
		display: block;
		width: 100%;
	}

	.pkp_site_nav_menu ul.pkp_navigation_primary {
		display: flex;
		flex-direction: column;
		width: 100%;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.pkp_site_nav_menu ul.pkp_navigation_primary > li {
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	}

	.pkp_site_nav_menu ul.pkp_navigation_primary > li > a {
		display: block;
		width: 100%;
		padding: 12px 16px;
		box-sizing: border-box;
	}

	/* Submenús desplegables en mobile */
	.pkp_site_nav_menu ul.pkp_navigation_primary li ul {
		position: static;
		display: block;
		width: 100%;
		margin: 0;
		padding: 0 0 0 16px;
		box-shadow: none;
		background: rgba(0, 0, 0, 0.15);
	}

	.pkp_site_nav_menu .pkp_navigation_search_wrapper {
		width: 100%;
		padding: 12px 16px;
		box-sizing: border-box;
	}

	/* Menú de usuario en mobile */
	.pkp_navigation_user_wrapper {
		position: static !important;
		top: auto !important;
		width: 100%;
	}

	.pkp_navigation_user_wrapper .pkp_navigation_user li.profile {
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 100%;
	}

	.pkp_navigation_user_wrapper .pkp_navigation_user li.profile > a {
		display: block;
		width: 100%;
		text-align: center;
		padding: 12px 16px;
		font-weight: 700;
		font-size: 15px;
		box-sizing: border-box;
		border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	}

	.pkp_navigation_user_wrapper .pkp_navigation_user li.profile > ul {
		display: none !important;
		position: static !important;
		width: 100%;
		box-shadow: none;
		background: rgba(0, 0, 0, 0.15);
	}

	.pkp_navigation_user_wrapper.mv_user_open .pkp_navigation_user li.profile > ul {
		display: block !important;
	}

	.pkp_navigation_user_wrapper .pkp_navigation_user li.profile > ul li > a {
		display: block;
		width: 100%;
		padding: 10px 16px;
		box-sizing: border-box;
	}

	/* Sin login: "Entrar" / "Registrarse" */
	.pkp_navigation_user_wrapper .pkp_navigation_user {
		flex-direction: column;
		align-items: center;
		gap: 6px;
		width: 100%;
		padding: 8px 0;
	}

	.pkp_navigation_user_wrapper .pkp_navigation_user > li:not(.profile) {
		width: 100%;
		justify-content: center;
	}

	.pkp_navigation_user_wrapper .pkp_navigation_user > li:not(.profile) > a {
		display: block;
		width: 100%;
		text-align: center;
		padding: 8px 16px;
		box-sizing: border-box;
	}
}

/* ============================================================
   WIDGET DE ACCESIBILIDAD
   ============================================================ */

.mv_a11y_widget {
	position: relative;
	z-index: 99999;
}

/* Botón flotante */
.mv_a11y_toggle {
	position: fixed;
	left: 0;
	bottom: 16px;
	width: 52px;
	height: 52px;
	border: none;
	border-radius: 0 8px 8px 0;
	background: #40B0C0;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
	z-index: 99999;
}

.mv_a11y_toggle[hidden] {
	display: none;
}

.mv_a11y_toggle:hover {
	background: #2A7A85;
}

/* Badge indicador */
.mv_a11y_badge {
	position: absolute;
	top: -7px;
	right: -8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #FF9800;
	border: 2.5px solid #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mv_a11y_badge[hidden] {
	display: none;
}

/* Fondo oscuro detrás del panel */
.mv_a11y_overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	z-index: 99997;
}

.mv_a11y_overlay[hidden] {
	display: none;
}

/* Panel deslizante */
.mv_a11y_panel {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 340px;
	max-width: 90vw;
	background: #ffffff;
	color: #1a1a1a;
	z-index: 99998;
	overflow-y: auto;
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
	font-family: Arial, Helvetica, sans-serif;
}

.mv_a11y_panel[hidden] {
	display: none;
}

.mv_a11y_panel_header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	background: #40B0C0;
	color: #ffffff;
	position: sticky;
	top: 0;
}

.mv_a11y_panel_header h2 {
	font-size: 16px;
	margin: 0;
	color: #ffffff;
}

.mv_a11y_close {
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.mv_a11y_close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.mv_a11y_grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 18px;
}

.mv_a11y_btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 18px 8px;
	border: 2px solid #d5dbe2;
	border-radius: 8px;
	background: #ffffff;
	color: #1a1a1a;
	cursor: pointer;
	text-align: center;
	min-height: 96px;
}

.mv_a11y_btn:hover {
	border-color: #40B0C0;
	background: #E8F6F8;
}

/* Indicador de pasos */
.mv_a11y_steps {
	display: flex;
	gap: 4px;
	margin-bottom: 2px;
}

.mv_a11y_step {
	width: 18px;
	height: 4px;
	border-radius: 2px;
	background: #c9d2db;
}

.mv_a11y_step.mv_a11y_step_active {
	background: #1a1a1a;
}

.mv_a11y_btn_active .mv_a11y_step {
	background: rgba(255, 255, 255, 0.35);
}

.mv_a11y_btn_active .mv_a11y_step.mv_a11y_step_active {
	background: #ffffff;
}

.mv_a11y_icon {
	flex-shrink: 0;
}

.mv_a11y_icon_text {
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

.mv_a11y_label {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.25;
}

/* Estado activo */
.mv_a11y_btn.mv_a11y_btn_active {
	border-color: #40B0C0;
	background: #40B0C0;
	color: #ffffff;
}

.mv_a11y_btn_reset {
	grid-column: span 2;
	flex-direction: row;
	min-height: 56px;
	border-style: dashed;
}

@media (max-width: 480px) {
	.mv_a11y_panel {
		width: 300px;
	}
}

/* ------------------------------------------------------------
   EFECTOS de accesibilidad
   ------------------------------------------------------------ */

/* Resaltar enlaces */
html.mv-a11y-highlight-links a:not(.mv_a11y_widget *) {
	background-color: #ffff00 !important;
	color: #000000 !important;
	text-decoration: underline !important;
	outline: 2px solid #000000 !important;
}

/* Ocultar imágenes */
html.mv-a11y-hide-images img:not(.mv_a11y_widget *),
html.mv-a11y-hide-images picture:not(.mv_a11y_widget *) {
	visibility: hidden !important;
}

/* Interlineado */
html.mv-a11y-linespacing-1 :not(.mv_a11y_widget):not(.mv_a11y_widget *) {
	line-height: 1.5 !important;
}

html.mv-a11y-linespacing-2 :not(.mv_a11y_widget):not(.mv_a11y_widget *) {
	line-height: 1.8 !important;
}

html.mv-a11y-linespacing-3 :not(.mv_a11y_widget):not(.mv_a11y_widget *) {
	line-height: 2.2 !important;
}

/* Alineación de texto */
html.mv-a11y-align-left :not(.mv_a11y_widget):not(.mv_a11y_widget *) {
	text-align: left !important;
}

html.mv-a11y-align-center :not(.mv_a11y_widget):not(.mv_a11y_widget *) {
	text-align: center !important;
}

html.mv-a11y-align-right :not(.mv_a11y_widget):not(.mv_a11y_widget *) {
	text-align: right !important;
}

html.mv-a11y-align-justify :not(.mv_a11y_widget):not(.mv_a11y_widget *) {
	text-align: justify !important;
}

/* Espaciado de texto */
html.mv-a11y-spacing-1 :not(.mv_a11y_widget):not(.mv_a11y_widget *) {
	letter-spacing: 0.05em !important;
	word-spacing: 0.1em !important;
}

html.mv-a11y-spacing-2 :not(.mv_a11y_widget):not(.mv_a11y_widget *) {
	letter-spacing: 0.1em !important;
	word-spacing: 0.2em !important;
}

html.mv-a11y-spacing-3 :not(.mv_a11y_widget):not(.mv_a11y_widget *) {
	letter-spacing: 0.15em !important;
	word-spacing: 0.3em !important;
}

/* ============================================================
   ÍCONOS DE TIPO DE ARCHIVO en los links de galleys
   ============================================================ */
.galleys_links a {
	display: inline-flex;
	align-items: center;
}

.mv_galley_type_icon {
	height: 32px;
	width: auto;
	flex-shrink: 0;
}
