:root {
	--tb-primary: #1E6292;
	/* Variantes legibles del color principal: las calcula el tema según el
	   color elegido (classes/Colors.php). Estos son los valores del azul por
	   defecto. */
	--tb-on-primary-l: #ffffff;
	--tb-on-accent-l: #ffffff;
	--tb-on-accent-dm: #111111;
	--tb-primary-ink: #1e6292;
	--tb-primary-dm: #58a6dd;
	--tb-on-primary-dm: #111111;
	--tb-primary-hover-l: #1a5784;
	--tb-primary-hover-dm: #4c8fbe;
	--tb-accent: #B45309;
	--tb-accent-dm: #e8a26a;
	--tb-font-serif: "Crimson Text", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
	--tb-font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tb-font-system: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--tb-font-heading: var(--tb-font-serif);
	--tb-font-body: var(--tb-font-sans);
}

body.tb {
	--tb-bg: #ffffff;
	--tb-surface: #f6f7f9;
	--tb-surface-2: #eef1f5;
	--tb-text: #2f3640;
	--tb-text-soft: #4b5563;
	--tb-muted: #6b7280;
	--tb-border: #dde2e8;
	--tb-border-strong: #c3cad4;
	--tb-link: var(--tb-primary-ink);
	--tb-primary-soft: color-mix(in srgb, var(--tb-primary) 9%, var(--tb-bg));
	--tb-accent-soft: color-mix(in srgb, var(--tb-accent) 12%, var(--tb-bg));
	--tb-on-primary: var(--tb-on-primary-l);
	--tb-on-accent: var(--tb-on-accent-l);
	--tb-primary-hover: var(--tb-primary-hover-l);
	--tb-focus: var(--tb-primary-ink);
	--tb-radius: 10px;
	--tb-radius-sm: 6px;
	--tb-shadow: 0 1px 2px rgb(16 24 40 / .06), 0 1px 3px rgb(16 24 40 / .08);
	--tb-shadow-lg: 0 12px 32px -12px rgb(16 24 40 / .25);
	--tb-container: 1240px;
	--tb-measure: 72ch;
	--tb-header-h: 64px;
	color-scheme: light;
}

/* Modo oscuro: sólo si la opción está activa (data-tb-dm en <html>) y el
   lector lo eligió con el botón. Por defecto el sitio se ve en claro, sin
   seguir la preferencia del sistema. */
html[data-tb-dm][data-tb-scheme="dark"] body.tb {
	--tb-bg: #0f1216;
	--tb-surface: #171b21;
	--tb-surface-2: #1e232b;
	--tb-text: #e7eaee;
	--tb-text-soft: #c9ced6;
	--tb-muted: #9aa3af;
	--tb-border: #2a313b;
	--tb-border-strong: #3a434f;
	/* En oscuro el color principal pasa a su variante clara: enlaces,
	   estados activos y botones se leen aunque se haya elegido un color
	   muy oscuro. */
	--tb-primary: var(--tb-primary-dm);
	--tb-accent: var(--tb-accent-dm);
	--tb-on-primary: var(--tb-on-primary-dm);
	--tb-on-accent: var(--tb-on-accent-dm);
	--tb-primary-hover: var(--tb-primary-hover-dm);
	--tb-link: var(--tb-primary-dm);
	--tb-primary-soft: color-mix(in srgb, var(--tb-primary-dm) 16%, var(--tb-bg));
	--tb-accent-soft: color-mix(in srgb, var(--tb-accent) 22%, var(--tb-bg));
	--tb-focus: var(--tb-primary-dm);
	color-scheme: dark;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
html:has(body.tb) { scroll-behavior: smooth; scroll-padding-top: calc(var(--tb-sticky-top, var(--tb-header-h)) + 16px); }
@media (prefers-reduced-motion: reduce) { html:has(body.tb) { scroll-behavior: auto; } }

/* El Default fija html en 14px; con 16px todo el texto del theme (que va en rem) queda legible. */
html:has(body.tb) { font-size: 16px; }

body.tb {
	background: var(--tb-bg);
	color: var(--tb-text);
	font-family: var(--tb-font-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
/* Encabezados del theme; dentro de una galerada en modo "galley" mandan sus
   propios estilos. Los enlaces e imágenes usan :where() (especificidad
   mínima) para que el CSS de la galerada pueda ganarles. */
body.tb :is(h1, h2, h3, h4):where(:not(.tb-galley--galley *)) {
	font-family: var(--tb-font-heading);
	color: var(--tb-text);
	line-height: 1.25;
	font-weight: 650;
	letter-spacing: -0.01em;
}
:where(body.tb) a { color: var(--tb-link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
/* El Default pinta los enlaces en hover con un azul fijo (lighten(#006798)),
   que no sigue al color elegido: el enlace conserva su color y sólo se
   engrosa el subrayado. */
:where(body.tb) a:is(:hover, :focus) { color: var(--tb-link); text-decoration-thickness: 2px; }
/* Subrayado: los enlaces dentro de un texto (descripciones, resumen, texto
   completo, pie, avisos) van subrayados, para no distinguirse sólo por el
   color (WCAG 1.4.1). Los enlaces sueltos de navegación (títulos, listas,
   "Ver todos", DOI de las tarjetas) se subrayan al pasar el mouse. */
body.tb :is(.tb-hero__more, .tb-hero__cover, .tb-link-more,
	.tb-cardart__doi, .tb-kicker__issue, .tb-author__orcid, .tb-closedissue, .cmp_breadcrumbs a) { text-decoration: none; }
body.tb :is(.tb-hero__more, .tb-link-more,
	.tb-cardart__doi, .tb-kicker__issue, .cmp_breadcrumbs a):is(:hover, :focus-visible) { text-decoration: underline; }
body.tb :focus-visible {
	outline: 3px solid var(--tb-focus);
	outline-offset: 2px;
	border-radius: 3px;
}
:where(body.tb) img { max-width: 100%; height: auto; }
body.tb [hidden] { display: none !important; }
body.tb .pkp_screen_reader { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

body.tb .tb-icon { display: inline-block; vertical-align: -0.15em; flex: none; }

/* Botones */
body.tb .tb-btn,
body.tb .obj_galley_link,
body.tb .cmp_button,
body.tb .pkp_button {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	min-height: 40px;
	padding: .5em 1.05em;
	border: 1px solid var(--tb-border-strong);
	border-radius: 999px;
	background: var(--tb-bg);
	color: var(--tb-text);
	font: 600 .9rem/1.2 var(--tb-font-sans);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
body.tb .tb-btn:hover,
body.tb .obj_galley_link:hover { border-color: var(--tb-accent); color: var(--tb-on-accent); background: var(--tb-accent); }
body.tb .tb-btn--primary,
body.tb .obj_galley_link.pdf {
	background: var(--tb-primary);
	border-color: var(--tb-primary);
	color: var(--tb-on-primary);
}
body.tb .tb-btn--primary:hover,
body.tb .obj_galley_link.pdf:hover {
	background: var(--tb-accent);
	border-color: var(--tb-accent);
	color: var(--tb-on-accent);
}
/* El Default dibuja el icono del PDF con FontAwesome: lo reemplazamos por un SVG. */
body.tb .obj_galley_link.pdf::before,
body.tb .obj_galley_link.file::before { content: none; }
body.tb .obj_galley_link.pdf::after {
	content: "";
	width: 1em; height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Galerada de acceso restringido: contorno punteado y candado en lugar del
   botón relleno, para distinguirla de las que se pueden abrir. */
body.tb .obj_galley_link.restricted {
	background: var(--tb-surface);
	border: 1px dashed var(--tb-border-strong);
	color: var(--tb-text-soft);
}
body.tb .obj_galley_link.restricted::before { content: none; }
body.tb .obj_galley_link.restricted::after {
	content: "";
	width: 1em; height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
body.tb .obj_galley_link.restricted:is(:hover, :focus-visible) { border-style: solid; }

body.tb .tb-badge {
	display: inline-flex; align-items: center; gap: .3em;
	padding: .15em .6em;
	border-radius: 999px;
	font: 600 .75rem/1.4 var(--tb-font-sans);
	letter-spacing: .02em;
}
body.tb .tb-badge--oa { background: color-mix(in srgb, #F68212 14%, var(--tb-bg)); color: color-mix(in srgb, #F68212 55%, var(--tb-text)); }

/* ==========================================================================
   3. Estructura: contenedor y grilla (reemplaza los floats del Default)
   ========================================================================== */
body.tb .pkp_structure_page { background: var(--tb-bg); }

body.tb .pkp_structure_content,
body.tb .pkp_structure_footer,
body.tb .pkp_head_wrapper {
	max-width: var(--tb-container);
	width: 100%;
	margin-inline: auto;
	padding-inline: clamp(16px, 3vw, 32px);
}

body.tb .pkp_structure_content {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	padding-top: 2rem;
	padding-bottom: 4rem;
}
@media (min-width: 992px) {
	body.tb .pkp_structure_content { grid-template-columns: minmax(0, 1fr) 320px; }
}
body.tb .pkp_structure_main,
body.tb .pkp_structure_sidebar {
	float: none;
	width: auto;
	padding: 0;
	margin: 0;
}
body.tb .pkp_structure_main::before,
body.tb .pkp_structure_main::after,
body.tb .pkp_structure_content::before,
body.tb .pkp_structure_content::after { content: none; display: none; }
body.tb .pkp_structure_main:first-child:last-child { grid-column: 1 / -1; margin: 0; max-width: none; }

/* Artículo e inicio: los bloques van dentro de la columna lateral de la propia
   página (tb-rail / tb-home__aside), así que la grilla general es de una columna. */
body.tb.pkp_page_article.pkp_op_view .pkp_structure_content,
body.tb.pkp_page_index.pkp_op_index .pkp_structure_content { grid-template-columns: minmax(0, 1fr); }

/* Barra lateral: columna de tarjetas. */
body.tb .pkp_structure_sidebar { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
/* Contenido y barra lateral siempre en la primera fila. */
@media (min-width: 992px) {
	body.tb .pkp_structure_content > .pkp_structure_main { grid-column: 1; grid-row: 1; }
	body.tb .pkp_structure_content > .pkp_structure_sidebar { grid-column: 2; grid-row: 1; }
}
/* flex/width fijos: neutraliza CSS de revistas pensado para el Default
   (por ejemplo, ".pkp_block { flex: 0 0 25% }"). */
body.tb .pkp_structure_sidebar > .pkp_block { margin: 0; flex: 0 0 auto; width: auto; }

/* Clearfix del Default: en contenedores grid/flex el ::before ocuparía una
   celda y correría el contenido. */
body.tb :is(.obj_issue_toc .heading, .obj_issue_summary, .obj_article_summary, .cmp_announcements, .issues_archive,
	.pkp_footer_content, .pkp_head_wrapper, .pkp_site_nav_menu, .pkp_navigation_primary_row,
	.pkp_navigation_primary, .cmp_search, .cmp_search .search_input, .pkp_structure_sidebar)::before,
body.tb :is(.obj_issue_toc .heading, .obj_issue_summary, .obj_article_summary, .cmp_announcements, .issues_archive,
	.pkp_footer_content, .pkp_head_wrapper, .pkp_site_nav_menu, .pkp_navigation_primary_row,
	.pkp_navigation_primary, .cmp_search, .cmp_search .search_input, .pkp_structure_sidebar)::after { content: none; display: none; }


/* ==========================================================================
   4. Cabecera
   ========================================================================== */
body.tb .pkp_structure_head {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--tb-bg) 92%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--tb-border);
	box-shadow: none;
}
body.tb .pkp_head_wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1.5rem;
	min-height: var(--tb-header-h);
	padding-top: .5rem;
	padding-bottom: .5rem;
	position: relative;
}
body.tb .pkp_site_name_wrapper {
	display: flex;
	align-items: center;
	gap: .75rem;
	width: auto;
	height: auto;
	padding: 0;
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
}
body.tb .pkp_site_name {
	margin: 0;
	padding: 0;
	font: 700 1.2rem/1.2 var(--tb-font-heading);
	width: auto;
}
body.tb .pkp_site_name .is_text { color: var(--tb-text); text-decoration: none; }
body.tb .pkp_site_name .is_img img { max-height: 48px; width: auto; }
/* Modo claro: la barra de cabecera lleva el color principal (como la banda de
   Manuscript), para que se vean los logos con texto blanco. El texto, los
   bordes y los botones usan el color de texto que corresponde al principal
   (--tb-on-primary-l). En modo oscuro la barra no cambia. */
html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head {
	--tb-hd: var(--tb-on-primary-l);
	background: var(--tb-primary);
	border-bottom-color: transparent;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	color: var(--tb-hd);
}
html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head :is(.pkp_site_name .is_text, .pkp_navigation_primary > li > a, .tb-nav-more__btn, .pkp_navigation_search_wrapper a, .tb-scheme-toggle, .tb-lang--inline a, details.tb-lang > summary, .pkp_navigation_user > li > a, .pkp_site_nav_toggle) { color: var(--tb-hd); }
html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head :is(.pkp_navigation_search_wrapper a, .tb-scheme-toggle, .tb-lang--inline, details.tb-lang > summary) { border-color: color-mix(in srgb, var(--tb-hd) 45%, transparent); background: transparent; }
html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head :is(.pkp_navigation_search_wrapper a, .tb-scheme-toggle, .tb-lang--inline a, details.tb-lang > summary):is(:hover, :focus-visible) { color: var(--tb-hd); background: color-mix(in srgb, var(--tb-hd) 16%, transparent); border-color: color-mix(in srgb, var(--tb-hd) 45%, transparent); }
html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head .tb-lang--inline a[aria-current] { background: var(--tb-hd); color: var(--tb-primary) !important; }
html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head .pkp_site_nav_toggle { background: color-mix(in srgb, var(--tb-hd) 16%, transparent); }
html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head :focus-visible { outline-color: var(--tb-hd); }
/* Fondo del menú al pasar, enfocar o hacer clic: el color de destacados (ítems de la barra y de los desplegables). */
html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head :is(.pkp_navigation_primary > li > a, .tb-nav-more__btn):is(:hover, :focus-visible, :active),
html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head .pkp_navigation_primary > li:not(.tb-nav-more):is(:hover, :has(:focus-visible)) > a,
html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head .tb-nav-more.is-open .tb-nav-more__btn,
html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head :is(.tb-nav-more__menu a, .pkp_navigation_primary ul a, .pkp_navigation_user > li > ul a):is(:hover, :focus-visible, :active) { background: var(--tb-accent); color: var(--tb-on-accent); }
html[data-tb-dm][data-tb-scheme="dark"] body.tb .pkp_structure_head :is(.pkp_navigation_primary > li > a, .tb-nav-more__btn):is(:hover, :focus-visible, :active),
html[data-tb-dm][data-tb-scheme="dark"] body.tb .pkp_structure_head .pkp_navigation_primary > li:not(.tb-nav-more):is(:hover, :has(:focus-visible)) > a,
html[data-tb-dm][data-tb-scheme="dark"] body.tb .pkp_structure_head .tb-nav-more.is-open .tb-nav-more__btn,
html[data-tb-dm][data-tb-scheme="dark"] body.tb .pkp_structure_head :is(.tb-nav-more__menu a, .pkp_navigation_primary ul a, .pkp_navigation_user > li > ul a):is(:hover, :focus-visible, :active) { background: var(--tb-accent); color: var(--tb-on-accent); }
/* Desplegables (Más, submenús, menú de usuario, idiomas): también con el color principal, como en Manuscript. */
html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head :is(.tb-nav-more__menu, .pkp_navigation_primary ul, .pkp_navigation_user > li > ul, details.tb-lang > ul) { background: var(--tb-primary); border-color: color-mix(in srgb, var(--tb-hd) 22%, transparent); }
html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head :is(.tb-nav-more__menu a, .pkp_navigation_primary ul a, .pkp_navigation_user > li > ul a, details.tb-lang li a, details.tb-lang li a[aria-current]) { color: var(--tb-hd); }
html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head details.tb-lang li a:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--tb-hd) 16%, transparent); color: var(--tb-hd); }
body.tb .pkp_site_nav_toggle { border-radius: var(--tb-radius-sm); background: var(--tb-surface); color: var(--tb-text); }

body.tb .pkp_site_nav_menu { background: transparent; }
@media (min-width: 992px) {
	body.tb .pkp_site_nav_menu {
		display: flex;
		align-items: center;
		gap: 1rem;
		position: static;
		width: auto;
		padding: 0;
	}
	body.tb .pkp_navigation_primary_row,
	body.tb .pkp_navigation_primary_wrapper {
		display: flex;
		align-items: center;
		gap: 1rem;
		padding: 0;
		background: transparent;
	}
	body.tb .pkp_navigation_primary { display: flex; gap: .25rem; margin: 0; padding: 0; }
	body.tb .pkp_navigation_primary > li > a {
		margin: 0;
		padding: .5rem .75rem;
		border: 0;
		border-radius: var(--tb-radius-sm);
		color: var(--tb-text-soft);
		font: 550 .925rem/1.2 var(--tb-font-sans);
	}
	body.tb .pkp_navigation_primary > li > a:hover,
	body.tb .pkp_navigation_primary > li > a:focus { color: var(--tb-text); background: var(--tb-primary-soft); border: 0; }
	body.tb .pkp_navigation_primary ul {
		background: var(--tb-bg);
		border: 1px solid var(--tb-border);
		border-radius: var(--tb-radius);
		box-shadow: var(--tb-shadow-lg);
		padding: .4rem;
	}
	body.tb .pkp_navigation_primary ul a { border-radius: var(--tb-radius-sm); padding: .45rem .7rem; color: var(--tb-text); border: 0; }
	body.tb .pkp_navigation_primary ul a:hover { background: var(--tb-surface); color: var(--tb-text); }
	body.tb .pkp_navigation_search_wrapper { float: none; padding: 0; margin: 0; }
}
body.tb .pkp_navigation_search_wrapper a {
	display: inline-flex; align-items: center; gap: .35em;
	position: static; width: auto; height: auto; margin: 0;
	padding: .45rem .8rem;
	border: 1px solid var(--tb-border);
	border-radius: 999px;
	color: var(--tb-text-soft);
	font: 550 .875rem/1.2 var(--tb-font-sans);
	text-decoration: none;
}
body.tb .pkp_navigation_search_wrapper a:hover { border-color: var(--tb-primary); color: var(--tb-primary); }

/* Menú de usuario: fila fina arriba a la derecha (escritorio). */
body.tb .pkp_navigation_user { display: flex; gap: .9rem; margin: 0; padding: 0; }
body.tb .pkp_navigation_user > li > a { color: var(--tb-muted); font: 500 .8rem/1.4 var(--tb-font-sans); padding: 0; }
body.tb .pkp_navigation_user > li > a:hover { text-decoration: underline; }
@media (min-width: 992px) {
	body.tb .pkp_head_wrapper { flex-wrap: nowrap; padding-top: 2rem; padding-bottom: .75rem; }
	body.tb .pkp_site_name_wrapper { flex: 0 1 auto; }
	body.tb .pkp_site_nav_menu { flex: 1 1 auto; justify-content: flex-end; min-width: 0; }
	body.tb .pkp_navigation_primary_row { flex-wrap: nowrap; justify-content: flex-end; min-width: 0; flex: 1 1 auto; }
	body.tb .pkp_navigation_primary_wrapper { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
	body.tb .pkp_navigation_primary { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
	body.tb .pkp_navigation_primary > li { flex: none; }
	body.tb .pkp_navigation_primary > li > a { white-space: nowrap; }
	body.tb .pkp_navigation_search_wrapper { flex: none; }
	/* El Default le fija ancho (1160px) y left: quedaba fuera de pantalla. */
	body.tb .pkp_navigation_user_wrapper {
		position: absolute !important;
		top: .4rem !important;
		right: clamp(16px, 3vw, 32px) !important;
		left: auto !important;
		width: auto !important;
		max-width: none;
		padding: 0;
		margin: 0;
		z-index: 1000;
	}
	body.tb .pkp_navigation_user { justify-content: flex-end; width: auto !important; }
	body.tb .pkp_navigation_user_wrapper { transform: none !important; }
	body.tb .pkp_navigation_user > li { width: auto !important; position: relative; }
	/* Submenú del usuario con sesión (Panel de control, Perfil, Salir): mismo
	   criterio que el menú principal, alineado a la derecha y sin hueco. */
	body.tb .pkp_navigation_user > li > ul {
		display: none !important;
		position: absolute !important; top: 100% !important; right: 0 !important; left: auto !important;
		transform: none !important; inset-inline-start: auto !important;
		margin: 6px 0 0 !important; padding: .4rem 0 !important; min-width: 200px; z-index: 1001;
		list-style: none;
		background: var(--tb-bg); border: 1px solid var(--tb-border); border-radius: 12px; box-shadow: var(--tb-shadow-lg);
	}
	body.tb .pkp_navigation_user > li:is(:hover, :has(:focus-visible)) > ul,
	body.tb .pkp_navigation_user > li > ul.show { display: block !important; }
	body.tb .pkp_navigation_user > li:has(> ul)::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
	body.tb .pkp_navigation_user > li > ul a { display: block; padding: .45rem 1rem; border: 0 !important; color: var(--tb-text); font: 500 .85rem/1.35 var(--tb-font-sans); white-space: nowrap; text-decoration: none; }
	body.tb .pkp_navigation_user > li > ul a:hover { background: var(--tb-primary-soft); color: var(--tb-text); }
}

/* Botón de modo oscuro (lo inserta tikary.js) */
body.tb .tb-scheme-toggle {
	display: inline-grid; place-items: center;
	width: 34px; height: 34px;
	border: 1px solid var(--tb-border);
	border-radius: 999px;
	background: var(--tb-bg);
	color: var(--tb-text-soft);
	cursor: pointer;
	flex: none;
}
body.tb .tb-scheme-toggle:hover { color: var(--tb-primary); border-color: var(--tb-primary); }

/* Imagen de cabecera del Default ("usar imagen como cabecera") */
body.tb.has_site_logo .pkp_head_wrapper,
body.tb .pkp_structure_head[style] { background-size: cover; }

/* Migas de pan */
body.tb .cmp_breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1.25rem; font: 500 .825rem/1.4 var(--tb-font-sans); color: var(--tb-muted); }
body.tb .cmp_breadcrumbs li { margin: 0; }
body.tb .cmp_breadcrumbs a { color: var(--tb-muted); text-decoration: none; }
body.tb .cmp_breadcrumbs a:hover { text-decoration: underline; }
body.tb .cmp_breadcrumbs .separator { color: var(--tb-border-strong); }
body.tb .cmp_breadcrumbs .current, body.tb .cmp_breadcrumbs .current h1 { color: var(--tb-muted); font: inherit; }

/* ==========================================================================
   5. Secciones y tarjetas genéricas
   ========================================================================== */
body.tb .tb-section { margin: 0 0 3rem; }
body.tb .tb-section__head {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: .75rem 1rem;
	margin: 0 0 1.25rem;
	padding-bottom: .75rem;
	border-bottom: 1px solid var(--tb-border);
}
body.tb .tb-section__title { margin: 0; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); }
body.tb .tb-link-more, body.tb .tb-link-more.read_more { color: var(--tb-link); }
body.tb .tb-link-more { font: 600 .875rem/1.3 var(--tb-font-sans); text-decoration: none; }
body.tb .tb-link-more::after { content: " →"; }

body.tb .tb-card {
	background: var(--tb-bg);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	padding: 1.1rem 1.2rem;
}
body.tb .tb-card__title {
	margin: 0 0 .75rem;
	font: 700 .75rem/1.3 var(--tb-font-sans);
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--tb-muted);
}

/* Pestañas */
body.tb .tb-langtabs {
	display: inline-flex; flex-wrap: wrap; gap: .25rem;
	padding: .25rem;
	background: var(--tb-surface);
	border-radius: 999px;
}
body.tb .tb-langtabs [role="tab"] {
	border: 0;
	background: transparent;
	color: var(--tb-muted);
	padding: .4rem .9rem;
	border-radius: 999px;
	font: 600 .85rem/1.2 var(--tb-font-sans);
	cursor: pointer;
}
body.tb .tb-langtabs [role="tab"][aria-selected="true"] { background: var(--tb-bg); color: var(--tb-text); box-shadow: var(--tb-shadow); }

/* Texto largo */
body.tb .tb-prose { max-width: var(--tb-measure); font-size: 1.04rem; line-height: 1.72; color: var(--tb-text); }
/* En el artículo la columna central ya limita el ancho: el texto usa toda la columna. */
body.tb .tb-article .tb-prose { max-width: none; }
body.tb .tb-prose p { margin: 0 0 1em; }
body.tb .tb-prose > :last-child { margin-bottom: 0; }

/* ==========================================================================
   6. Inicio
   ========================================================================== */
body.tb .tb-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
	align-items: center;
	margin: 0 0 2.5rem;
	padding: clamp(1.5rem, 4vw, 3rem);
	border-radius: calc(var(--tb-radius) * 1.6);
	background:
		radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--tb-primary) 16%, transparent) 0%, transparent 55%),
		linear-gradient(180deg, var(--tb-primary-soft), var(--tb-bg));
	border: 1px solid var(--tb-border);
}
@media (min-width: 860px) {
	body.tb .tb-hero:has(.tb-hero__cover) { grid-template-columns: minmax(0, 1fr) 260px; }
}
/* Imagen de fondo de la cabecera (opción del tema Default): la imagen de inicio
   queda detrás de la portada bajo una capa oscura, y el texto pasa a claro en
   los dos modos para conservar el contraste. */
body.tb .tb-hero--bg {
	background: linear-gradient(rgba(8, 12, 20, .68), rgba(8, 12, 20, .78)), var(--tb-hero-img) center / cover no-repeat;
	border-color: transparent;
	color: #fff;
}
body.tb .tb-hero--bg :is(.tb-hero__title, .tb-hero__desc, .tb-hero__desc *, .tb-hero__more, .tb-hero__cover-label) { color: #fff; }
body.tb .tb-hero--bg .tb-hero__facts { color: #e5e7eb; }
body.tb .tb-hero--bg .tb-hero__facts span { color: #cbd5e1; }
body.tb .tb-hero--bg .tb-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .7); background: transparent; }
body.tb .tb-hero--bg .tb-btn--ghost:is(:hover, :focus-visible) { background: rgba(255, 255, 255, .16); color: #fff; }
body.tb .tb-hero__title { margin: 0 0 .75rem; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); letter-spacing: -0.02em; }
body.tb .tb-hero__desc { color: var(--tb-text-soft); font-size: 1.05rem; max-width: 65ch; }
/* Descripciones largas: se muestran las primeras líneas; el texto completo está en "Acerca de". */
body.tb .tb-hero__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden; }
body.tb .tb-hero__desc p { margin: 0 0 .5em; }
body.tb .tb-hero__more { display: inline-block; margin-top: .4rem; font: 600 .875rem/1.3 var(--tb-font-sans); }
body.tb .tb-hero__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 1.25rem 0; font: 500 .85rem/1.4 var(--tb-font-sans); color: var(--tb-text-soft); }
body.tb .tb-hero__facts span { color: var(--tb-muted); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; margin-right: .2em; }
body.tb .tb-hero__badges { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0 0 .9rem; }
body.tb .tb-hero__badges .tb-badge { display: inline-flex; align-items: center; gap: .35em; padding: .25rem .65rem; border-radius: 999px; font: 600 .78rem/1.2 var(--tb-font-sans); }
body.tb .tb-hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; }
body.tb .tb-hero__cover { position: relative; display: block; justify-self: center; max-width: 260px; text-decoration: none; }
/* Portada como libro: giro fijo (sin animación) con el lado izquierdo más grande,
   lomo a la izquierda (el borde izquierdo de la propia portada, oscurecido) y pliegue de la tapa sobre la imagen. */
body.tb .tb-book__stage { display: block; perspective: 900px; padding: .5rem 16px 1rem 24px; }
body.tb .tb-book { position: relative; display: block; transform: rotateY(18deg); transform-origin: 50% 50%; transform-style: preserve-3d; }
body.tb .tb-book img { display: block; width: 100%; height: auto; border-radius: 1px 4px 4px 1px; box-shadow: 10px 16px 26px -8px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .25); }
body.tb .tb-book::before {
	content: ""; position: absolute; top: 1px; bottom: 1px; left: -4px; width: 4px; pointer-events: none;
	background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25)), var(--tb-cover) left center / auto 100% no-repeat;
	border-radius: 2px 0 0 2px;
}
body.tb .tb-book::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 9%; max-width: 22px; pointer-events: none;
	background: linear-gradient(90deg, rgba(0, 0, 0, .28) 0, rgba(255, 255, 255, .14) 18%, transparent 60%);
	border-radius: 1px 0 0 1px;
}
body.tb .tb-hero__cover-label { display: block; margin-top: .5rem; text-align: center; font: 600 .85rem/1.3 var(--tb-font-sans); color: var(--tb-text-soft); }

/* Publicación continua: número en curso y último número cerrado */
body.tb .tb-openissue .tb-section__head { align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; }
body.tb .tb-openissue__badge { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .35rem; font: 700 .72rem/1.2 var(--tb-font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--tb-accent); }
body.tb .tb-openissue__dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: tb-pulse 2s infinite; }
@keyframes tb-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70% { box-shadow: 0 0 0 .45rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { body.tb .tb-openissue__dot { animation: none; } }
body.tb .tb-openissue .tb-section__title a { color: inherit; text-decoration: none; }
body.tb .tb-openissue .tb-section__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
body.tb .tb-openissue__note { margin: .35rem 0 0; max-width: 40rem; font: 400 .9rem/1.5 var(--tb-font-sans); color: var(--tb-muted); }
body.tb .tb-openissue__all { margin: 1.25rem 0 0; text-align: center; }
body.tb .tb-openissue__empty { color: var(--tb-muted); }
body.tb .tb-closedissue {
	display: inline-flex; align-items: center; gap: .75rem; padding: .5rem .9rem .5rem .5rem;
	border: 1px solid var(--tb-border); border-radius: var(--tb-radius); background: var(--tb-surface);
	color: var(--tb-text); text-decoration: none; transition: border-color .15s;
}
body.tb .tb-closedissue:hover { border-color: var(--tb-primary); }
body.tb .tb-closedissue img { width: 44px; height: 58px; object-fit: cover; object-position: top; border-radius: 4px; }
body.tb .tb-closedissue > span { display: flex; flex-direction: column; }
body.tb .tb-closedissue__kicker { font: 700 .68rem/1.2 var(--tb-font-sans); text-transform: uppercase; letter-spacing: .07em; color: var(--tb-muted); }
body.tb .tb-closedissue__label { font: 600 .92rem/1.3 var(--tb-font-sans); }

body.tb .tb-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
body.tb .tb-cardart {
	display: flex; flex-direction: column; gap: .5rem;
	padding: 1.1rem 1.2rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-bg);
	transition: border-color .15s;
}
body.tb .tb-cardart:hover { border-color: var(--tb-border-strong); }
body.tb .tb-cardart__meta { display: flex; flex-wrap: wrap; gap: .4rem .75rem; font: 600 .75rem/1.3 var(--tb-font-sans); color: var(--tb-muted); }
body.tb .tb-cardart__section { color: var(--tb-accent); text-transform: uppercase; letter-spacing: .06em; }
body.tb .tb-cardart__title { margin: 0; font-size: 1.1rem; line-height: 1.35; letter-spacing: 0; word-spacing: .02em; }
body.tb .tb-cardart__title a { color: var(--tb-text); text-decoration: none; }
body.tb .tb-cardart__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
body.tb .tb-cardart__authors { margin: 0; color: var(--tb-text-soft); font-size: .9rem; }
body.tb .tb-cardart__foot { margin-top: auto; padding-top: .5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font: 500 .8rem/1.3 var(--tb-font-sans); color: var(--tb-muted); }
body.tb .tb-cardart__doi { color: var(--tb-muted); word-break: break-all; }
body.tb .tb-cardart__pdf { margin-left: auto; padding: .2rem .6rem; border-radius: 999px; background: var(--tb-primary-soft); color: var(--tb-link); font-weight: 700; text-decoration: none; }


/* ==========================================================================
   7. Número (TOC) y archivo
   ========================================================================== */
body.tb .obj_issue_toc .heading {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
	margin: 0 0 2rem;
	padding: 0 0 2rem;
	border-bottom: 1px solid var(--tb-border);
}
@media (min-width: 640px) {
	body.tb .obj_issue_toc .heading:not(.tb-issue__head--nocover) { grid-template-columns: 180px minmax(0, 1fr); align-items: start; }
}
body.tb .obj_issue_toc .heading > * { float: none; margin: 0; padding: 0; width: auto; }
body.tb .obj_issue_toc .cover img { display: block; width: 100%; max-width: 180px; height: auto; border-radius: var(--tb-radius-sm); box-shadow: var(--tb-shadow-lg); }
body.tb .tb-issue__info { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
body.tb .tb-issue__info .description { margin: 0; color: var(--tb-text-soft); }
body.tb .tb-issue__info .description > :first-child { margin-top: 0; }
body.tb .tb-issue__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin: 0; font: 500 .875rem/1.4 var(--tb-font-sans); }
body.tb .tb-issue__meta > div { display: flex; gap: .4rem; min-width: 0; padding: 0; margin: 0; }
body.tb .tb-issue__meta dt { margin: 0; color: var(--tb-muted); font-weight: 700; }
body.tb .tb-issue__meta dd { margin: 0; color: var(--tb-text); overflow-wrap: anywhere; }
body.tb .obj_issue_toc .galleys.tb-issue__galleys { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0; padding: 0; border: 0; }
body.tb .tb-issue__galleys-label { font: 700 .75rem/1.3 var(--tb-font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--tb-muted); }
body.tb .obj_issue_toc .galleys_links { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
body.tb .obj_issue_toc .galleys_links li { margin: 0; padding: 0; border: 0; }
body.tb .obj_issue_toc .sections .section { margin: 0 0 3rem; padding: 0; }
body.tb .obj_issue_toc :is(.galleys, .section)::before { content: none; display: none; }
body.tb .obj_issue_toc .galleys_links { margin-top: 0; }
body.tb .obj_issue_toc .articles { margin-top: 0; padding: 0; }
body.tb .obj_issue_toc .sections .section > :is(h2, h3, h4) { display: block; position: static; left: auto; background: none; line-height: 1.3; }
body.tb .obj_issue_toc .galleys, body.tb .obj_issue_toc .section { position: static; }
body.tb .obj_issue_toc .sections:not(:first-child) { margin-top: 0; }
body.tb .obj_issue_toc .sections .section > h2,
body.tb .obj_issue_toc .sections .section > h3 {
	font: 700 1.375rem/1.3 var(--tb-font-heading);
	text-transform: none;
	letter-spacing: 0;
	color: var(--tb-accent);
	border-bottom: 2px solid var(--tb-border);
	padding: 0 0 .75rem;
	margin: 3rem 0 1rem;
}
body.tb .obj_issue_toc .sections .section:first-child > :is(h2, h3) { margin-top: 1.5rem; }
body.tb .obj_issue_toc .sections .section > h2::before,
body.tb .obj_issue_toc .sections .section > h3::before,
body.tb .obj_issue_toc .sections .section::before { content: none; display: none; }
body.tb .cmp_article_list { padding: 0; margin: 0; }
body.tb .cmp_article_list > li { margin: 0; padding: 0; border-bottom: 1px solid var(--tb-border); }
body.tb .obj_article_summary { padding: .35rem 0 1.5rem; }
/* Fecha sobre el título en las listas de artículos (la pone el theme, no un plugin). */
/* DOI de la lista (lo escribe el plugin «DOI in TOC»): sólo se suaviza con CSS, sin tocar su HTML. */
body.tb .obj_article_summary .doiInSummary { margin: .15rem 0 .35rem; font-size: .8rem; color: var(--tb-muted); }
body.tb .obj_article_summary .doiInSummary strong { font-weight: 600; }
body.tb .obj_article_summary .title { font-family: var(--tb-font-heading); font-weight: 650; letter-spacing: 0; font-size: 1.12rem; line-height: 1.35; margin: 0 0 .35rem; }
body.tb .obj_article_summary .pages { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--tb-muted); }
body.tb .obj_article_summary .title a { color: var(--tb-text); text-decoration: none; }
body.tb .obj_article_summary .title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
body.tb .obj_article_summary .subtitle { display: block; margin-top: .25rem; font-size: .95rem; color: var(--tb-text-soft); font-weight: 450; }
body.tb .obj_article_summary .meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--tb-muted); font-size: .875rem; }
body.tb .obj_article_summary .authors { color: var(--tb-text-soft); font-size: .9375rem; line-height: 1.5; }
body.tb .obj_article_summary .galleys_links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; padding: 0; list-style: none; }
body.tb .obj_article_summary .galleys_links .obj_galley_link { min-height: 28px; padding: .25em .75em; font-size: .8125rem; }

body.tb .issues_archive { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); padding: 0; list-style: none; }
body.tb .issues_archive > li { margin: 0; padding: 0; border: 0; }
body.tb .obj_issue_summary { display: flex; flex-direction: column; gap: .5rem; }
body.tb .obj_issue_summary .cover { float: none; width: auto; margin: 0; }
body.tb .obj_issue_summary .cover img { border-radius: var(--tb-radius); box-shadow: var(--tb-shadow); aspect-ratio: 3/4; object-fit: cover; width: 100%; }
body.tb .obj_issue_summary h2 { font-size: 1rem; margin: 0; }
body.tb .obj_issue_summary .description { font-size: .875rem; color: var(--tb-text-soft); }

/* ==========================================================================
   8. Artículo
   ========================================================================== */
body.tb .tb-article, body.tb.pkp_page_article { --tb-rail-w: 320px; }
body.tb .tb-notice {
	margin: 0 0 1.5rem;
	padding: .8rem 1rem;
	border-left: 4px solid var(--tb-accent);
	background: var(--tb-accent-soft);
	border-radius: var(--tb-radius-sm);
	font-size: .925rem;
}

body.tb .tb-article__header {
	padding: 0 0 2rem;
	margin: 0 0 2rem;
	border-bottom: 1px solid var(--tb-border);
}
/* El título y sus versiones en otros idiomas ocupan todo el ancho de la cabecera. */
body.tb .tb-article__header > :is(.tb-article__title, .tb-article__subtitle, .tb-article__alt-title) { max-width: none; }
body.tb .tb-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: 1rem; font: 600 .8rem/1.3 var(--tb-font-sans); color: var(--tb-muted); }
body.tb .tb-kicker__type { color: var(--tb-accent); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
body.tb .tb-kicker__issue { color: var(--tb-muted); }
body.tb .tb-article__title {
	margin: 0 0 .5rem;
	font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.65rem);
	line-height: 1.18;
	letter-spacing: -0.02em;
	font-weight: 680;
	text-wrap: pretty;
}
body.tb .tb-article__subtitle { margin: 0 0 .75rem; font: 450 clamp(1.3rem, 1.1rem + .8vw, 1.6rem)/1.35 var(--tb-font-heading); color: var(--tb-text-soft); }
body.tb .tb-article__alt-title { margin: .4rem 0 0; font: italic 400 clamp(1.3rem, 1.1rem + .8vw, 1.65rem)/1.35 var(--tb-font-heading); color: var(--tb-text-soft); text-wrap: pretty; }

body.tb .tb-authors { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; list-style: none; padding: 0; margin: 1.5rem 0 .75rem; }
body.tb .tb-author { display: inline-flex; align-items: baseline; gap: .3rem; font: 600 1rem/1.4 var(--tb-font-sans); }
body.tb .tb-author__refs { font-size: .7em; font-weight: 600; }
body.tb .tb-author__refs a { text-decoration: none; }
body.tb .tb-author__orcid { align-self: center; display: inline-flex; }
body.tb .tb-author__role { font-weight: 450; color: var(--tb-muted); font-size: .9em; }

body.tb .tb-corresponding { margin: .6rem 0 0; font-size: .9rem; color: var(--tb-text-soft); }
body.tb .tb-corresponding__label { font-weight: 700; color: var(--tb-text); }
body.tb .tb-affiliations { margin: 0 0 1.25rem; font-size: .9rem; color: var(--tb-text-soft); }
body.tb .tb-affiliations summary { cursor: pointer; font: 600 .825rem/1.4 var(--tb-font-sans); color: var(--tb-link); width: max-content; }
body.tb .tb-affiliations ol { margin: .5rem 0 0; padding-left: 1.5rem; }
body.tb .tb-affiliations li { margin: .15rem 0; }
body.tb .tb-ror { margin-left: .35em; padding: 0 .35em; border-radius: 4px; background: var(--tb-surface-2); color: var(--tb-muted); font: 700 .65rem/1.6 var(--tb-font-sans); text-decoration: none; vertical-align: .1em; }
body.tb .tb-ror:hover { text-decoration: underline; }

body.tb .tb-meta {
	display: flex; flex-wrap: wrap; gap: .75rem 1.75rem;
	margin: 1.25rem 0 1.5rem;
	padding: .9rem 1.1rem;
	background: var(--tb-surface);
	border-radius: var(--tb-radius);
	font: 500 .85rem/1.4 var(--tb-font-sans);
}
body.tb .tb-meta div { min-width: 0; }
body.tb .tb-meta dt { margin: 0; color: var(--tb-muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
body.tb .tb-meta dd { margin: 0; color: var(--tb-text); }
body.tb .tb-meta__doi dd { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
body.tb .tb-meta__doi a { word-break: break-all; }
body.tb .tb-copy {
	display: inline-flex; align-items: center; gap: .3em;
	border: 1px solid var(--tb-border-strong);
	background: var(--tb-bg);
	color: var(--tb-text-soft);
	border-radius: 999px;
	padding: .15rem .6rem;
	font: 600 .75rem/1.4 var(--tb-font-sans);
	cursor: pointer;
}
body.tb .tb-copy:hover { border-color: var(--tb-primary); color: var(--tb-primary); }
body.tb .tb-copy[data-copied] { border-color: #15803d; color: #15803d; }

body.tb .tb-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
body.tb .tb-share { position: relative; display: inline-flex; }
body.tb .tb-share-menu {
	position: absolute; z-index: 40;
	top: 100%; left: 0;
	margin: .4rem 0 0;
	padding: .4rem;
	min-width: 220px;
	background: var(--tb-bg);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	box-shadow: var(--tb-shadow-lg);
	list-style: none;
}
body.tb .tb-share-menu a, body.tb .tb-share-menu button {
	display: block; width: 100%;
	padding: .5rem .7rem;
	border: 0; background: none;
	border-radius: var(--tb-radius-sm);
	color: var(--tb-text);
	font: 500 .9rem/1.3 var(--tb-font-sans);
	text-align: left; text-decoration: none; cursor: pointer;
}
body.tb .tb-share-menu a:hover, body.tb .tb-share-menu button:hover { background: var(--tb-surface); color: var(--tb-text); }
body.tb .tb-share-menu--end { left: auto; right: 0; }
body.tb .tb-share-menu li { margin: 0; }

/* Dos columnas, como el Default: texto (main_entry) a la izquierda y detalles
   (entry_details) + bloques a la derecha. En pantallas chicas el índice sube
   primero y el resto de las tarjetas va después del texto. */
body.tb .tb-article__layout { display: grid; gap: 1.25rem 2.5rem; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
	body.tb .tb-article__layout { grid-template-columns: minmax(0, 1fr) var(--tb-rail-w); }
}
@media (max-width: 899px) {
	body.tb .tb-rail { display: contents; }
	body.tb .tb-article__main { order: 1; }
	body.tb .tb-rail > * { order: 2; }
}

body.tb .tb-article__main { min-width: 0; }
body.tb .tb-article__main .tb-section__title { font-size: 1.45rem; }
body.tb .tb-abstract .tb-prose { font-size: 1.06rem; }
body.tb .tb-keywords { margin-top: 1.25rem; }
body.tb .tb-keywords__label { margin: 0 0 .5rem; font: 700 .75rem/1.3 var(--tb-font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--tb-muted); }
body.tb .tb-keywords ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
body.tb .tb-keywords a { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: var(--tb-primary-soft); color: var(--tb-link); font: 550 .82rem/1.3 var(--tb-font-sans); text-decoration: none; }
body.tb .tb-keywords a:hover { background: var(--tb-primary); color: var(--tb-on-primary); }

/* Referencias */
/* Sin numeración y con sangría francesa (APA): el orden es alfabético, no numérico. */
body.tb .tb-references__list { list-style: none; margin: 0; padding-left: 0; font-size: .925rem; line-height: 1.55; color: var(--tb-text-soft); counter-reset: none; }
body.tb .tb-references__list li { list-style: none; margin: 0 0 .7rem; padding-left: 2rem; text-indent: -2rem; overflow-wrap: anywhere; }
body.tb .tb-references__list li:target { background: var(--tb-accent-soft); border-radius: 4px; }
body.tb .tb-references__raw { padding-left: 0; text-indent: 0; }
body.tb .tb-references--collapsed li:nth-child(n+11) { display: none; }
body.tb .tb-references__more { margin-top: .5rem; }

body.tb .tb-bio { margin: 0 0 1.25rem; }
body.tb .tb-bio__name { margin: 0 0 .3rem; font: 650 1rem/1.3 var(--tb-font-sans); }

/* Panel lateral */
body.tb .tb-rail { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
body.tb .tb-article .main_entry,
body.tb .tb-article .entry_details { float: none; width: auto; margin: 0; padding: 0; border: 0; }
body.tb .tb-article .row { margin: 0; }
body.tb .tb-rail .item { margin: 0; }
body.tb .tb-rail .tb-card.item { padding: 1.1rem 1.2rem; border: 1px solid var(--tb-border); }
body.tb .tb-rail .galleys_links,
body.tb .tb-rail .supplementary_galleys_links { display: flex; flex-direction: column; gap: .5rem; padding: 0; margin: 0; list-style: none; }
body.tb .tb-rail .galleys_links li, body.tb .tb-rail .supplementary_galleys_links li { margin: 0; }
body.tb .tb-rail .obj_galley_link { width: 100%; justify-content: center; }
body.tb .tb-metrics dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
body.tb .tb-metrics dt { color: var(--tb-muted); font: 600 .75rem/1.3 var(--tb-font-sans); }
body.tb .tb-metrics dd { margin: 0; font: 700 1.5rem/1.2 var(--tb-font-sans); color: var(--tb-text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body.tb .tb-versions { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
body.tb .tb-license { font-size: .825rem; color: var(--tb-text-soft); }
body.tb .tb-license img { margin: .25rem 0; }
body.tb .tb-license__terms:empty { display: none; }
body.tb .tb-plugins:not(:has(> *)) { display: none; }
body.tb .tb-plugins .item { margin: 0 0 1rem; }
body.tb .tb-plugins .item:last-child { margin-bottom: 0; }
body.tb .tb-plugins .label, body.tb .tb-plugins h2 {
	margin: 0 0 .6rem;
	font: 700 .75rem/1.3 var(--tb-font-sans);
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--tb-muted);
}
/* Bloque "Cómo citar" del plugin Citation Style Language */
body.tb .citation_display #citationOutput { font-size: .875rem; line-height: 1.5; padding: .75rem; background: var(--tb-surface); border-radius: var(--tb-radius-sm); overflow-wrap: anywhere; }
body.tb .citation_formats { margin-top: .6rem; border: 0; }
body.tb .citation_formats_button {
	width: 100%; text-align: left;
	border: 1px solid var(--tb-border-strong); border-radius: var(--tb-radius-sm);
	background: var(--tb-bg); color: var(--tb-text);
	padding: .5rem .75rem; font: 600 .825rem/1.3 var(--tb-font-sans);
}
body.tb .citation_formats_list { border: 1px solid var(--tb-border); border-top: 0; border-radius: 0 0 var(--tb-radius-sm) var(--tb-radius-sm); }
body.tb .citation_formats_styles { list-style: none; margin: 0; padding: .35rem; }
body.tb .citation_formats_styles a { display: block; padding: .35rem .5rem; border-radius: 4px; font-size: .85rem; border: 0; }
body.tb .citation_formats_styles a:hover { background: var(--tb-surface); }
body.tb .citation_formats .label { padding: .5rem .5rem 0; }

/* ==========================================================================
   9. Texto completo inline
   ========================================================================== */
body.tb .tb-fulltext { border-top: 1px solid var(--tb-border); padding-top: 2rem; }
body.tb .tb-galley--theme { font-family: var(--tb-font-heading); font-size: 1.08rem; line-height: 1.75; }
body.tb .tb-galley--theme h1 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
body.tb .tb-galley--theme h2 { font-size: 1.45rem; margin: 2.5rem 0 1rem; padding-top: .5rem; }
body.tb .tb-galley--theme h3 { font-size: 1.2rem; margin: 2rem 0 .75rem; }
body.tb .tb-galley--theme h4 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; font-family: var(--tb-font-sans); }
body.tb .tb-galley--theme ul, body.tb .tb-galley--theme ol { padding-left: 1.5rem; margin: 0 0 1em; }
body.tb .tb-galley--theme li { margin: .25em 0; }
body.tb .tb-galley--theme blockquote { margin: 1.5em 0; padding: .25em 1.25em; border-left: 3px solid var(--tb-primary); color: var(--tb-text-soft); }
body.tb .tb-galley--theme figure { margin: 2rem 0; padding: 1rem; background: var(--tb-surface); border-radius: var(--tb-radius); }
body.tb .tb-galley--theme figcaption, body.tb .tb-galley--theme caption { margin-top: .75rem; font: 450 .875rem/1.5 var(--tb-font-sans); color: var(--tb-text-soft); text-align: left; caption-side: top; }
body.tb .tb-galley--theme table { width: 100%; border-collapse: collapse; font: 450 .85rem/1.45 var(--tb-font-sans); }
body.tb .tb-galley--theme th, body.tb .tb-galley--theme td { padding: .5rem .65rem; border-bottom: 1px solid var(--tb-border); text-align: left; vertical-align: top; }
body.tb .tb-galley--theme thead th { background: var(--tb-surface-2); font-weight: 700; border-bottom: 2px solid var(--tb-border-strong); }
body.tb .tb-galley--theme sup a, body.tb .tb-galley--theme a[href^="#ref"], body.tb .tb-galley--theme a[href^="#bib"] { text-decoration: none; font-weight: 600; }
body.tb .tb-galley img { cursor: zoom-in; border-radius: 4px; }
body.tb .tb-galley { overflow-wrap: break-word; }
body.tb .tb-galley--galley { max-width: none; }
/* Modo "galley": los elementos heredan la tipografía de la galerada en vez de
   la del theme padre. El CSS de la galerada, que va
   después y con la misma especificidad (0,1,1) gracias al :scope explícito,
   sigue ganando. */
.tb-galley--galley :is(h1, h2, h3, h4, h5, h6, p, li, td, th, caption, figcaption, blockquote) { font-family: inherit; font-size: revert; line-height: inherit; color: inherit; letter-spacing: normal; margin: revert; }
body.tb .tb-table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); }
body.tb .tb-table-wrap > table { margin: 0; }

/* Tooltip de referencias y lightbox (tikary.js) */
body.tb .tb-tip {
	position: absolute; z-index: 60;
	max-width: min(420px, calc(100vw - 32px));
	padding: .75rem .9rem;
	background: var(--tb-bg);
	color: var(--tb-text);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	box-shadow: var(--tb-shadow-lg);
	font: 450 .85rem/1.5 var(--tb-font-sans);
}
body.tb dialog.tb-lightbox {
	max-width: min(96vw, 1400px); max-height: 94vh;
	padding: 0; border: 0; border-radius: var(--tb-radius);
	background: var(--tb-bg); color: var(--tb-text);
}
body.tb dialog.tb-lightbox::backdrop { background: rgb(0 0 0 / .75); }
body.tb dialog.tb-lightbox img { display: block; max-width: 100%; max-height: 86vh; margin: 0 auto; cursor: zoom-out; }
body.tb dialog.tb-lightbox p { margin: 0; padding: .75rem 1rem; font: 450 .875rem/1.5 var(--tb-font-sans); }
body.tb dialog.tb-lightbox button { position: absolute; top: .5rem; right: .5rem; }

/* ==========================================================================
   10. Barra lateral (bloques) y formularios
   ========================================================================== */
body.tb .pkp_block {
	padding: 1.1rem 1.2rem;
	margin: 0 0 1rem;
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	background: var(--tb-bg);
	font-size: .9rem;
}
body.tb .pkp_block .title {
	display: block;
	margin: 0 0 .75rem;
	font: 700 .75rem/1.3 var(--tb-font-sans);
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--tb-muted);
}
body.tb .pkp_block .content ul { padding: 0; margin: 0; list-style: none; }
body.tb .pkp_block .content li { padding: .2rem 0; }
body.tb .block_make_submission_link {
	display: inline-flex; align-items: center; justify-content: center; width: 100%;
	padding: .6rem 1rem; border-radius: 999px; border: 0;
	background: var(--tb-primary); color: var(--tb-on-primary); font: 600 .9rem var(--tb-font-sans); text-decoration: none;
}
body.tb .block_make_submission_link::before { content: none; }
body.tb .block_make_submission_link:hover { background: var(--tb-accent); color: var(--tb-on-accent); }

body.tb input[type="text"], body.tb input[type="email"], body.tb input[type="password"], body.tb input[type="search"],
body.tb input[type="url"], body.tb input[type="tel"], body.tb input[type="date"], body.tb select, body.tb textarea {
	border: 1px solid var(--tb-border-strong);
	border-radius: var(--tb-radius-sm);
	background: var(--tb-bg);
	color: var(--tb-text);
	padding: .5rem .7rem;
	font: inherit;
}
body.tb input:focus, body.tb select:focus, body.tb textarea:focus { border-color: var(--tb-primary); outline: 2px solid color-mix(in srgb, var(--tb-primary) 30%, transparent); outline-offset: 0; }
body.tb .page_title { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); margin: 0 0 1.5rem; }
body.tb.pkp_page_article .page_title { margin-bottom: .5rem; }
body.tb .cmp_notification { border-radius: var(--tb-radius); border-left-width: 4px; background: var(--tb-surface); }
body.tb .cmp_pagination { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; }

/* Avisos (announcements) */
body.tb .cmp_announcements { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 0 0 3rem; border: 0; }
body.tb .cmp_announcements > .obj_announcement_summary,
body.tb .cmp_announcements .obj_announcement_summary { padding: 1.1rem 1.2rem; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); }
body.tb .obj_announcement_summary h2, body.tb .obj_announcement_summary h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
body.tb .obj_announcement_summary .date { font: 600 .75rem var(--tb-font-sans); color: var(--tb-muted); }
body.tb .obj_announcement_summary .date::before { content: none; }

/* ==========================================================================
   11. Pie de página y crédito
   ========================================================================== */
body.tb .pkp_structure_footer_wrapper {
	background: var(--tb-surface);
	border-top: 1px solid var(--tb-border);
	color: var(--tb-text-soft);
}
body.tb .pkp_structure_footer { padding-top: 3rem; padding-bottom: 2rem; display: flex; flex-direction: column; gap: 2.5rem; }
/* El clearfix del Default (::before/::after) sería un ítem más del flex y
   sumaría un espacio arriba y otro abajo. */
body.tb .pkp_structure_footer::before, body.tb .pkp_structure_footer::after { content: none; display: none; }
body.tb .pkp_footer_content { padding: 0; font-size: .9rem; line-height: 1.6; }
body.tb .pkp_footer_content a { color: var(--tb-text-soft); }
body.tb .pkp_footer_content a:hover { color: var(--tb-text); }
body.tb .tb-footer__grid { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
	body.tb .tb-footer__grid--2, body.tb .tb-footer__grid--3, body.tb .tb-footer__grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
	body.tb .tb-footer__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	body.tb .tb-footer__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Línea final: © año, institución editorial y crédito (datos de OJS + crédito del theme). */
body.tb .tb-footer__legal { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1.5rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--tb-border); font: 500 .8125rem/1.5 var(--tb-font-sans); color: var(--tb-text-soft); }
body.tb .tb-footer__platform { margin-left: auto; text-align: right; }
body.tb .tb-footer__legal p { margin: 0; }
body.tb .tb-footer__legal a { color: var(--tb-text-soft); text-decoration: underline; }
body.tb .tb-footer__legal a:is(:hover, :focus-visible) { color: var(--tb-link); }
body.tb .tb-footer__col { min-width: 0; }
body.tb .tb-footer__col > :first-child { margin-top: 0; }
body.tb .tb-footer__col > :last-child { margin-bottom: 0; }
body.tb .tb-footer__col p { margin: 0 0 .6rem; }
body.tb .tb-footer__col img { max-width: 100%; height: auto; vertical-align: middle; }
body.tb .tb-footer__col :is(h2, h3, h4) { margin: 0 0 .75rem; font: 700 .75rem/1.3 var(--tb-font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--tb-muted); }
/* La insignia de Crossmark está pensada para fondo claro: en modo oscuro va sobre una placa clara. */
html[data-tb-dm][data-tb-scheme="dark"] body.tb .tb-crossmark img { background: #fff; padding: 4px 8px; border-radius: var(--tb-radius-sm); }

/* Submenús del menú principal (escritorio): se abren al pasar el mouse, con
   el teclado (focus-within) o con clic (clase .show de Bootstrap). Sin hueco
   entre el enlace y el submenú, para que no se cierre al bajar el mouse. */
@media (min-width: 992px) {
	body.tb .pkp_navigation_primary > li { position: relative; }
	body.tb .pkp_navigation_primary > li:not(.tb-nav-more) > ul {
		display: none !important;
		position: absolute !important; top: 100% !important; left: 0 !important; right: auto !important;
		transform: none !important; margin: 6px 0 0 !important; min-width: 220px; z-index: 60;
	}
	body.tb .pkp_navigation_primary > li:not(.tb-nav-more):is(:hover, :has(:focus-visible)) > ul,
	body.tb .pkp_navigation_primary > li:not(.tb-nav-more) > ul.show { display: block !important; }
	/* Puente invisible entre el ítem y su submenú. */
	body.tb .pkp_navigation_primary > li:has(> ul)::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
	body.tb .tb-nav-more:is(:hover, :has(.tb-nav-more__menu :focus-visible)) > .tb-nav-more__menu { display: block !important; }
}

/* Menú "Más" (lo arma tikary.js cuando los ítems no entran en una línea) */
body.tb .tb-nav-more { position: relative; }
body.tb .tb-nav-more__btn {
	display: inline-flex; align-items: center; gap: .25rem;
	padding: .5rem .75rem; border: 0; border-radius: var(--tb-radius-sm);
	background: none; color: var(--tb-text-soft);
	font: 550 .925rem/1.2 var(--tb-font-sans); cursor: pointer; white-space: nowrap;
}
body.tb .tb-nav-more__btn:hover, body.tb .tb-nav-more.is-open .tb-nav-more__btn { color: var(--tb-text); background: var(--tb-primary-soft); }
body.tb .tb-nav-more__btn svg { transition: transform .15s; }
body.tb .tb-nav-more__btn::before, body.tb .tb-nav-more__btn::after { content: none !important; display: none !important; }
body.tb .tb-nav-more.is-open .tb-nav-more__btn svg { transform: rotate(180deg); }
body.tb .tb-nav-more__menu {
	display: none;
	position: absolute; right: 0; top: 100%; z-index: 60;
	min-width: 250px; max-height: calc(100vh - 120px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
	margin: .35rem 0 0; padding: .4rem;
	list-style: none;
	background: var(--tb-bg);
	border: 1px solid var(--tb-border);
	border-radius: var(--tb-radius);
	box-shadow: var(--tb-shadow-lg);
}
body.tb .tb-nav-more.is-open .tb-nav-more__menu { display: block; }
body.tb .tb-nav-more:not(.is-open):not(:hover):not(:has(.tb-nav-more__menu :focus-visible)) .tb-nav-more__menu { display: none !important; }
body.tb .tb-nav-more > .tb-nav-more__menu { left: auto !important; right: 0 !important; top: 100% !important; transform: none !important; width: max-content; max-width: min(340px, 90vw); }
body.tb .tb-nav-more__menu li { margin: 0; float: none; }
body.tb .tb-nav-more__menu a {
	display: block; padding: .5rem .7rem; border: 0; border-radius: var(--tb-radius-sm);
	color: var(--tb-text); font: 500 .9rem/1.3 var(--tb-font-sans); text-decoration: none; white-space: normal;
}
body.tb .tb-nav-more__menu a:hover, body.tb .tb-nav-more__menu a:focus { background: var(--tb-surface); color: var(--tb-text); }
body.tb .tb-nav-more__menu > li > a[aria-haspopup], body.tb .tb-nav-more__menu > li > a[data-toggle] { font-weight: 650; pointer-events: none; }
body.tb .tb-nav-more__menu > li > a::after { content: none !important; }
body.tb .tb-nav-more__menu ul {
	display: block !important; position: static !important; left: auto !important; top: auto !important; transform: none !important;
	float: none !important; min-width: 0 !important; width: auto !important;
	margin: 0 0 .25rem !important; padding: 0 0 0 .75rem !important;
	border: 0 !important; box-shadow: none !important; background: none !important;
}

/* Crossmark */
body.tb .tb-crossmark { display: inline-flex; margin-left: auto; cursor: pointer; line-height: 0; }
body.tb .tb-crossmark img { width: 150px; height: auto; }

/* Ventanas (Cómo citar) */
body.tb dialog.tb-dialog {
	width: min(680px, calc(100vw - 32px));
	max-height: min(86vh, 760px);
	padding: 0;
	border: 1px solid var(--tb-border);
	border-radius: 16px;
	background: var(--tb-bg);
	color: var(--tb-text);
	box-shadow: 0 24px 60px rgb(0 0 0 / .25);
	overflow: auto;
}
body.tb dialog.tb-dialog::backdrop { background: rgb(15 23 42 / .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
body.tb .tb-dialog__head {
	position: sticky; top: 0; z-index: 1;
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1rem 1.25rem; border-bottom: 1px solid var(--tb-border); background: var(--tb-bg);
}
body.tb .tb-dialog__title { margin: 0 !important; font: 700 1.15rem/1.3 var(--tb-font-heading) !important; color: var(--tb-text); }
body.tb .tb-dialog__close {
	display: inline-grid; place-items: center; width: 36px; height: 36px;
	border: 0; border-radius: 999px; background: var(--tb-surface); color: var(--tb-text-soft); cursor: pointer;
}
body.tb .tb-dialog__close:hover { color: var(--tb-text); background: var(--tb-surface); }
body.tb .tb-dialog__body { padding: 1.25rem; display: flex; flex-direction: column; gap: .85rem; }
body.tb .tb-cite__label { font: 700 .75rem/1.3 var(--tb-font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--tb-muted); }
body.tb .tb-cite__select { width: 100%; }
body.tb .tb-cite__output {
	padding: 1rem 1.1rem;
	border: 1px solid var(--tb-border); border-left: 4px solid var(--tb-primary);
	border-radius: var(--tb-radius-sm);
	background: var(--tb-surface);
	font-size: .95rem; line-height: 1.6;
	overflow-wrap: anywhere;
	transition: opacity .15s;
}
body.tb .tb-cite__output[aria-busy="true"] { opacity: .45; }
body.tb .tb-cite__output .csl-bib-body, body.tb .tb-cite__output .csl-entry { margin: 0; padding: 0; }
body.tb .tb-cite__output :is(.csl-left-margin, .csl-right-inline) { display: inline; float: none; margin: 0; padding: 0; }
body.tb .tb-cite__output .csl-left-margin { margin-right: .35em; }
body.tb .tb-cite__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
body.tb .tb-cite__dl-label { margin-left: auto; font: 600 .8rem/1.3 var(--tb-font-sans); color: var(--tb-muted); }
body.tb .tb-dialog--inline { position: static; display: block; width: auto; margin: 1rem 0; box-shadow: none; }
body.tb .tb-rail .tb-plugins:not(:has(> :not(.citation))) { display: none; }

/* ==========================================================================
   Otras páginas: contenido general, formularios, búsqueda, archivo
   ========================================================================== */
body.tb .pkp_structure_main { min-width: 0; }
body.tb .pkp_structure_main :where(p, li) { line-height: 1.65; }
/* Páginas de texto (Sobre, Envíos, Contacto, páginas estáticas, avisos...):
   una columna de lectura centrada, sea cual sea el contenido que cargue el
   editor. Quedan fuera las de grilla (inicio, números, artículo, catálogo). */
body.tb .pkp_structure_main > .page:not(:is(.page_index_journal, .page_index_site, .page_issue_archive, .page_issue, .page_article, .page_catalog_category, .page_catalog, .page_search, .page_announcements, .page_login, .page_register, .page_lost_password, .page_reset_password, .page_activate_user)) {
	max-width: 48rem;
	margin-inline: auto;
}
body.tb .pkp_structure_main > :is(.page_search, .page_announcements) { max-width: 60rem; margin-inline: auto; }
/* Contenido pegado por el editor con anchos fijos o floats. */
body.tb .pkp_structure_main > .page :where(img, iframe, video, table) { max-width: 100% !important; }
body.tb .pkp_structure_main > .page :where(p, div)[style*="width"] { max-width: 100% !important; }
body.tb .pkp_structure_main :where(.page_about, .page_static_page, .page_submissions, .page_privacy, .page_editorial_team) :where(h2, h3) { margin: 2rem 0 .75rem; }
body.tb .pkp_structure_main img { max-width: 100%; height: auto; }
body.tb .pkp_structure_main :where(table) { border-collapse: collapse; max-width: 100%; }
body.tb .pkp_structure_main :where(td, th) { border: 1px solid var(--tb-border); padding: .4rem .6rem; }

/* Formularios genéricos (login, registro, contacto, perfil) */
body.tb .cmp_form fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
body.tb .cmp_form legend { padding: 0; margin: 0 0 1rem; font: 700 1.1rem/1.3 var(--tb-font-heading); color: var(--tb-text); }
body.tb .cmp_form .fields > div, body.tb .cmp_form .fields > fieldset > div { margin: 0 0 1rem; }
body.tb .cmp_form label { display: block; }
body.tb .cmp_form .label { display: block; margin: 0 0 .3rem; font: 600 .875rem/1.35 var(--tb-font-sans); color: var(--tb-text); }
body.tb .cmp_form .required { color: #b91c1c; }
body.tb .cmp_form :is(input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], select, textarea) { width: 100%; max-width: 100%; box-sizing: border-box; }
body.tb .cmp_form label:has(> input[type="checkbox"]), body.tb .cmp_form label:has(> input[type="radio"]) { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; }
body.tb .cmp_form input[type="checkbox"], body.tb .cmp_form input[type="radio"] { margin-top: .25rem; accent-color: var(--tb-primary); }
body.tb .cmp_form .buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }
body.tb .cmp_form .buttons a { font: 600 .9rem var(--tb-font-sans); }
body.tb :is(.cmp_form button.submit, .cmp_form .buttons button[type="submit"], .cmp_button, button.cmp_button) {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 40px; padding: .5rem 1.25rem;
	border: 0; border-radius: 999px;
	background: var(--tb-primary); color: var(--tb-on-primary);
	font: 600 .9rem/1.2 var(--tb-font-sans); text-transform: none; letter-spacing: 0;
	box-shadow: none; cursor: pointer;
}
body.tb :is(.cmp_form button.submit, .cmp_form .buttons button[type="submit"], .cmp_button):hover { background: var(--tb-accent); border-color: var(--tb-accent); color: var(--tb-on-accent); }
body.tb :is(.page_login, .page_register, .page_lost_password, .page_reset_password, .page_activate_user) { max-width: 560px; margin-inline: auto; }
body.tb .page_register { max-width: 720px; }
body.tb :is(.page_login, .page_register, .page_lost_password) .cmp_form {
	width: auto; max-width: none; float: none;
	padding: 1.5rem; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); background: var(--tb-bg);
}
body.tb .page_register .cmp_form fieldset + fieldset { padding-top: 1.25rem; border-top: 1px solid var(--tb-border); }

/* Búsqueda */
body.tb .page_search form.cmp_form .search_input { display: flex; gap: .5rem; margin: 0 0 1rem; }
body.tb .page_search form.cmp_form .search_input input.query { flex: 1 1 auto; min-height: 44px; font-size: 1rem; border-radius: 999px; padding-inline: 1.1rem; width: auto; }
body.tb .page_search form.cmp_form fieldset.search_advanced {
	margin: 0 0 1rem; padding: 1rem 1.25rem;
	border: 1px solid var(--tb-border); border-radius: var(--tb-radius); background: var(--tb-surface);
	display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
body.tb .page_search form.cmp_form fieldset.search_advanced legend { float: left; width: 100%; grid-column: 1 / -1; margin: 0; font: 700 .75rem/1.3 var(--tb-font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--tb-muted); }
body.tb .page_search form.cmp_form .date_range { display: contents; }
body.tb .page_search form.cmp_form :is(.from, .to, .author) { min-width: 0; margin: 0; }
body.tb .page_search form.cmp_form :is(.from, .to) select { width: auto; margin: 0 .25rem .25rem 0; }
body.tb .page_search form.cmp_form .author input { width: 100%; }
body.tb .page_search form.cmp_form .submit { display: flex; justify-content: flex-end; }
body.tb .search_results { list-style: none; padding: 0; margin: 2rem 0 0; }
body.tb .search_results > li, body.tb .search_results > div { border-bottom: 1px solid var(--tb-border); margin: 0; }
body.tb .page_search .cmp_pagination { font: 500 .9rem var(--tb-font-sans); }
/* Icono Font Awesome del Default: queda tapando el texto con el padding del theme. */
body.tb .page_search .submit button::before, body.tb .page_search .submit button::after { content: none; display: none; }

/* Archivo de números */
body.tb .obj_issue_summary { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 0; }
body.tb .obj_issue_summary .cover { float: none; width: auto; margin: 0; display: block; }
body.tb .obj_issue_summary .cover img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: var(--tb-radius-sm); box-shadow: var(--tb-shadow); transition: transform .15s, box-shadow .15s; }
body.tb .obj_issue_summary .cover:hover img { box-shadow: var(--tb-shadow-lg); }
body.tb .obj_issue_summary h2, body.tb .obj_issue_summary h3 { margin: 0; font: 650 .95rem/1.35 var(--tb-font-sans); }
body.tb .obj_issue_summary .title { color: var(--tb-text); text-decoration: none; }
body.tb .obj_issue_summary .series { display: block; margin-top: .15rem; font: 500 .825rem/1.35 var(--tb-font-sans); color: var(--tb-muted); }
body.tb .obj_issue_summary .description { font-size: .85rem; color: var(--tb-text-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.tb .page_issue_archive .cmp_pagination { margin-top: 2.5rem; }
body.tb .page_issue .obj_issue_toc { margin-top: 1rem; }

/* Selector de idioma (reemplaza al bloque "Idioma") */
body.tb .tb-lang { flex: none; margin: 0; padding: 0; list-style: none; font: 600 .8rem/1 var(--tb-font-sans); }
body.tb .tb-lang--inline { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--tb-border); border-radius: 999px; }
body.tb .tb-lang--inline li { margin: 0; }
body.tb .tb-lang--inline a { display: block; padding: .35rem .5rem; border-radius: 999px; color: var(--tb-text-soft); text-decoration: none; letter-spacing: .03em; }
body.tb .tb-lang--inline a:hover { color: var(--tb-text); background: var(--tb-surface); }
body.tb .tb-lang--inline a[aria-current] { background: var(--tb-primary); color: var(--tb-on-primary) !important; }
body.tb .pkp_navigation_search_wrapper { float: none; }
body.tb details.tb-lang { position: relative; }
body.tb details.tb-lang > summary {
	display: inline-flex; align-items: center; gap: .3rem; list-style: none; cursor: pointer;
	padding: .45rem .7rem; border: 1px solid var(--tb-border); border-radius: 999px; color: var(--tb-text-soft);
}
body.tb details.tb-lang > summary::-webkit-details-marker { display: none; }
body.tb details.tb-lang > summary:hover, body.tb details.tb-lang[open] > summary { color: var(--tb-primary); border-color: var(--tb-primary); }
body.tb details.tb-lang > ul {
	position: absolute; right: 0; top: calc(100% + .35rem); z-index: 60;
	min-width: 200px; margin: 0; padding: .4rem; list-style: none;
	background: var(--tb-bg); border: 1px solid var(--tb-border); border-radius: var(--tb-radius); box-shadow: var(--tb-shadow-lg);
}
body.tb details.tb-lang li { margin: 0; }
body.tb details.tb-lang li a { display: block; padding: .5rem .7rem; border-radius: var(--tb-radius-sm); color: var(--tb-text); font: 500 .9rem/1.3 var(--tb-font-sans); text-decoration: none; }
body.tb details.tb-lang li a:hover { background: var(--tb-surface); color: var(--tb-text); }
body.tb details.tb-lang li a[aria-current] { font-weight: 700; color: var(--tb-primary); }
@media (max-width: 991px) {
	body.tb .tb-lang { margin: 1rem 0 .5rem; }
	body.tb .tb-lang--inline { display: inline-flex; }
	body.tb details.tb-lang > ul { position: static; box-shadow: none; margin-top: .4rem; }
}

/* Barra de avisos */
body.tb .tb-annbar { background: var(--tb-primary); color: var(--tb-on-primary); font: 500 .875rem/1.4 var(--tb-font-sans); }
body.tb .tb-annbar[hidden] { display: none !important; }
body.tb .tb-annbar__in { display: flex; align-items: center; gap: .75rem; max-width: var(--tb-container); margin-inline: auto; padding: .55rem clamp(16px, 3vw, 32px); }
body.tb .tb-annbar__label { flex: none; padding: .1rem .5rem; border-radius: 999px; background: rgb(255 255 255 / .18); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
body.tb .tb-annbar__link { flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.tb .tb-annbar__link:hover { color: inherit; text-decoration-thickness: 2px; }
body.tb .tb-annbar__close { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
body.tb .tb-annbar__close:hover { background: rgb(255 255 255 / .18); }

/* Avisos del inicio en tarjetas */
body.tb .tb-news__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
body.tb .tb-newscard {
	display: flex; flex-direction: column; gap: .4rem;
	padding: 1.1rem 1.2rem; border: 1px solid var(--tb-border); border-top: 3px solid var(--tb-accent);
	border-radius: var(--tb-radius); background: var(--tb-bg);
}
body.tb .tb-newscard__date { font: 700 .72rem/1.3 var(--tb-font-sans); text-transform: uppercase; letter-spacing: .07em; color: var(--tb-muted); }
body.tb .tb-newscard__title { margin: 0; font: 650 1.02rem/1.35 var(--tb-font-heading); letter-spacing: 0; }
body.tb .tb-newscard__title a { color: var(--tb-text); text-decoration: none; }
body.tb .tb-newscard__title a::after { content: ""; position: absolute; inset: 0; }
body.tb .tb-newscard { position: relative; transition: border-color .15s, box-shadow .15s; }
body.tb .tb-newscard:hover { border-color: var(--tb-border-strong); box-shadow: var(--tb-shadow); }
body.tb .tb-newscard:hover .tb-newscard__title a { text-decoration: underline; text-decoration-thickness: 1px; }
body.tb .tb-newscard__summary { margin: 0; font-size: .9rem; color: var(--tb-text-soft); }

/* Licencia en el encabezado del artículo */
body.tb .tb-badge--peer { display: inline-flex; align-items: center; gap: .3em; background: var(--tb-accent-soft); color: var(--tb-primary); }
body.tb .tb-badge--license { display: inline-flex; align-items: center; gap: .3em; padding: .15rem .5rem; border: 1px solid var(--tb-border-strong); border-radius: 999px; color: var(--tb-text-soft); font: 600 .72rem/1.4 var(--tb-font-sans); text-decoration: none; }
body.tb .tb-badge--license:hover { border-color: var(--tb-primary); color: var(--tb-primary); }

/* Información del artículo (al final del texto) */
body.tb .tb-info { min-width: 0; }
body.tb .tb-info__block { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--tb-border); }
body.tb .tb-info__label { margin: 0 0 .5rem; font: 700 .75rem/1.3 var(--tb-font-sans); text-transform: uppercase; letter-spacing: .08em; color: var(--tb-muted); }
body.tb .tb-license p { margin: 0 0 .5rem; }
body.tb .tb-license__badge img { max-width: 120px; height: auto; }
body.tb .tb-license__terms { font-size: .9rem; color: var(--tb-text-soft); }
body.tb .tb-license__more { margin-top: .5rem; }
body.tb .tb-license__more > summary { cursor: pointer; font: 600 .85rem/1.4 var(--tb-font-sans); color: var(--tb-link); }
body.tb .tb-license__more[open] > summary { margin-bottom: .5rem; }
body.tb .tb-info__list { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); margin: 0; font-size: .9rem; }
body.tb .tb-info__list dt { margin: 0 0 .15rem; font: 700 .72rem/1.3 var(--tb-font-sans); text-transform: uppercase; letter-spacing: .07em; color: var(--tb-muted); }
body.tb .tb-info__list dd { margin: 0; overflow-wrap: anywhere; }
body.tb .tb-info__list .tb-versions { margin: 0; padding: 0; list-style: none; }

/* Panel lateral: listas de enlaces (citado por, relacionados) */
body.tb .tb-linklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
body.tb .tb-linklist li { margin: 0; padding: 0; }
body.tb .tb-linklist a { display: block; font: 600 .875rem/1.4 var(--tb-font-sans); color: var(--tb-text); text-decoration: none; }
body.tb .tb-linklist a:hover { text-decoration: underline; }
body.tb .tb-linklist__meta { display: block; margin-top: .2rem; font: 450 .78rem/1.4 var(--tb-font-sans); color: var(--tb-muted); }
body.tb .tb-card__foot { margin: .9rem 0 0; font: 500 .78rem/1.4 var(--tb-font-sans); color: var(--tb-muted); }
body.tb .tb-rail .tb-card { padding: 1.1rem 1.2rem; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); background: var(--tb-bg); }

/* Volver arriba, con anillo de progreso de lectura */
body.tb .tb-totop {
	position: fixed; right: clamp(12px, 2.5vw, 28px); bottom: clamp(12px, 2.5vw, 28px); z-index: 70;
	width: 48px; height: 48px; padding: 0;
	display: grid; place-items: center;
	border: 0; border-radius: 999px;
	background: var(--tb-bg); color: var(--tb-primary);
	box-shadow: var(--tb-shadow-lg);
	cursor: pointer;
	opacity: 0; transform: translateY(12px); pointer-events: none;
	transition: opacity .2s, transform .2s;
}
body.tb .tb-totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
body.tb .tb-totop:hover { background: var(--tb-primary-soft); }
body.tb .tb-totop svg.tb-totop__ring { position: absolute; inset: 0; width: 48px; height: 48px; transform: rotate(-90deg); }
body.tb .tb-totop__track { fill: none; stroke: var(--tb-border); stroke-width: 3; }
body.tb .tb-totop__bar { fill: none; stroke: var(--tb-primary); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
body.tb .tb-totop__arrow { position: relative; }
@media (prefers-reduced-motion: reduce) { body.tb .tb-totop, body.tb .tb-totop__bar { transition: none; } }
@media print { body.tb .tb-totop { display: none !important; } }

/* Aviso de cookies (opcional) */
body.tb .tb-cookies {
	position: fixed; left: clamp(12px, 2.5vw, 28px); bottom: clamp(12px, 2.5vw, 28px); z-index: 80;
	display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
	max-width: min(40rem, calc(100vw - 2 * clamp(12px, 2.5vw, 28px)));
	padding: 1rem 1.25rem; box-sizing: border-box;
	background: var(--tb-bg); color: var(--tb-text);
	border: 1px solid var(--tb-border); border-radius: 14px; box-shadow: var(--tb-shadow-lg);
	font: 400 .875rem/1.5 var(--tb-font-sans);
}
body.tb .tb-cookies[hidden] { display: none !important; }
body.tb .tb-cookies__text { flex: 1 1 18rem; margin: 0; }
body.tb .tb-cookies__text a { color: var(--tb-primary); font-weight: 600; }
body.tb .tb-cookies__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 640px) {
	body.tb .tb-cookies { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 14px 14px 0 0; border-width: 1px 0 0; }
	body.tb .tb-cookies__actions { width: 100%; }
	body.tb .tb-cookies__actions .tb-btn { flex: 1 1 0; justify-content: center; }
	/* En móvil la barra ocupa el borde inferior: la flecha sube por encima. */
	body.tb:has(.tb-cookies:not([hidden])) .tb-totop { bottom: calc(var(--tb-cookies-h, 0px) + 12px); }
}
@media print { body.tb .tb-cookies { display: none !important; } }

/* ==========================================================================
   12. Responsive: menú móvil del Default
   ========================================================================== */
@media (max-width: 991px) {
	body.tb .pkp_site_nav_menu {
		background: var(--tb-bg);
		border-top: 1px solid var(--tb-border);
	}
	body.tb .pkp_navigation_primary > li > a { color: var(--tb-text); padding: .65rem 0; }
	body.tb .pkp_navigation_user_wrapper { display: none; }
	body.tb .pkp_site_nav_menu.pkp_site_nav_menu--isOpen .pkp_navigation_user_wrapper { display: block; }
	/* Logo a la izquierda; modo oscuro y botón de menú a la derecha. */
	body.tb .pkp_head_wrapper { padding-top: .5rem; padding-bottom: .5rem; min-height: 64px; }
	body.tb .pkp_site_name_wrapper { display: flex; align-items: center; gap: .5rem; width: 100%; height: auto; min-height: 48px; }
	body.tb .pkp_site_name { position: static; top: auto; left: auto; transform: none; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; }
	body.tb .pkp_site_name .is_img img { max-height: 40px; max-width: 100%; }
	body.tb .pkp_site_name .is_text { font-size: 1rem; line-height: 1.25; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden !important; }
	body.tb .pkp_site_name_wrapper .tb-scheme-toggle { order: 2; }
	body.tb .pkp_site_nav_toggle { position: relative; top: auto; left: auto; order: 3; flex: none; margin: 0; }
	body.tb .pkp_site_nav_toggle { width: 40px; height: 40px; border: 1px solid var(--tb-border); box-shadow: none; background: var(--tb-bg); }
	body.tb .pkp_site_nav_toggle > span { border-bottom-color: var(--tb-text); }
	body.tb .pkp_site_nav_toggle > span::before, body.tb .pkp_site_nav_toggle > span::after { background: var(--tb-text); }
	body.tb .pkp_navigation_primary ul { display: block; position: static; padding: 0 0 .35rem .9rem; margin: 0; border: 0; box-shadow: none; background: none; }
	body.tb .pkp_navigation_primary ul a { display: block; padding: .4rem 0; color: var(--tb-text-soft); font: 500 .9rem/1.3 var(--tb-font-sans); border: 0; }
	body.tb .pkp_navigation_primary ul a:hover { color: var(--tb-text); }
	body.tb .pkp_site_nav_menu--isOpen { padding-inline: clamp(16px, 3vw, 32px); box-shadow: var(--tb-shadow-lg); }
	/* La cabecera es fija: el panel abierto se desplaza dentro de la pantalla
	   para poder llegar a todos los ítems. */
	body.tb .pkp_site_nav_menu--isOpen { max-height: calc(100vh - var(--tb-header-h, 64px)); max-height: calc(100dvh - var(--tb-header-h, 64px)); overflow-y: auto; overscroll-behavior: contain; }
	/* Sin subrayado al tocar, pasar o enfocar ningún ítem del menú. */
	body.tb .pkp_site_nav_menu :is(a, a:hover, a:focus, a:focus-visible, a:active) { text-decoration: none !important; }
	/* Ítems a todo el ancho del panel: el fondo al tocar o pasar (color de
	   destacados) cubre la fila entera y no solo el texto. */
	body.tb .pkp_site_nav_menu--isOpen { --tb-nav-pad: clamp(16px, 3vw, 32px); }
	body.tb .pkp_site_nav_menu .pkp_navigation_primary > li > a { display: block; margin-inline: calc(var(--tb-nav-pad) * -1); padding-inline: var(--tb-nav-pad); -webkit-tap-highlight-color: transparent; }
	body.tb .pkp_site_nav_menu .pkp_navigation_primary ul a { margin-inline: calc((var(--tb-nav-pad) + .9rem) * -1) calc(var(--tb-nav-pad) * -1); padding-inline: calc(var(--tb-nav-pad) + .9rem) var(--tb-nav-pad); -webkit-tap-highlight-color: transparent; }
	/* Modo claro: el panel lleva el color de la cabecera (antes quedaba blanco
	   con texto blanco). */
	html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head .pkp_site_nav_menu { background: var(--tb-primary); border-top: 1px solid color-mix(in srgb, var(--tb-hd) 25%, transparent); }
	html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head .pkp_site_nav_toggle { border-color: color-mix(in srgb, var(--tb-hd) 45%, transparent); }
	html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head .pkp_site_nav_toggle > span { border-bottom-color: var(--tb-hd); }
	html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head .pkp_site_nav_toggle > span::before,
	html:not([data-tb-dm][data-tb-scheme="dark"]) body.tb .pkp_structure_head .pkp_site_nav_toggle > span::after { background: var(--tb-hd); }
}

/* ==========================================================================
   13. Impresión
   ========================================================================== */
@media print {
	body.tb .pkp_structure_head, body.tb .tb-rail, body.tb .tb-actions,
	body.tb .pkp_structure_sidebar, body.tb .cmp_breadcrumbs { display: none !important; }
	body.tb .tb-article__layout { display: block; }
	body.tb { --tb-bg: #fff; --tb-text: #000; }
	body.tb a { color: #000; }
}

/* ==========================================================================
   Inicio: cuerpo + barra lateral derecha (bloques)
   ========================================================================== */
body.tb .tb-home__layout { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 992px) {
	body.tb .tb-home__layout:not(.tb-home__layout--solo) { grid-template-columns: minmax(0, 1fr) 320px; }
}
body.tb .tb-home__main { min-width: 0; }
body.tb .tb-home__aside { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }


/* Panel de detalles del artículo: descargas, fechas y bloques en la columna derecha */
/* Descargas: todas las galeradas en una fila de botones chicos; debajo, «Cómo citar» y «Compartir» en la misma fila. */
body.tb .tb-rail .tb-actions { display: grid; gap: .6rem; }
body.tb .tb-rail .tb-actions__galleys { display: flex; flex-wrap: wrap; gap: .4rem; }
body.tb .tb-rail .tb-actions__galleys > * { flex: 1 1 auto; min-width: 0; box-sizing: border-box; }
body.tb .tb-rail .tb-actions__galleys :is(.tb-btn, .obj_galley_link) { width: 100%; box-sizing: border-box; justify-content: center; padding: .4rem .7rem; font-size: .8rem; min-height: 0; white-space: nowrap; }
body.tb .tb-rail .tb-actions__tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
body.tb .tb-rail .tb-actions__tools > *, body.tb .tb-rail .tb-share { width: 100%; box-sizing: border-box; min-width: 0; }
body.tb .tb-rail .tb-actions__tools :is(.tb-btn), body.tb .tb-rail .tb-share .tb-share-toggle { width: 100%; box-sizing: border-box; justify-content: center; padding: .4rem .5rem; font-size: .8rem; min-height: 0; }
body.tb .tb-rail .tb-share { display: flex; }
body.tb .tb-meta--doi { margin: 1rem 0 1.5rem; }
/* Inicio: sin bloques ni artículos, el cuerpo ocupa todo el ancho */
body.tb .tb-home__layout:has(> .tb-home__aside:not(:has(*))) { grid-template-columns: minmax(0, 1fr); }


/* Métricas en las listas de artículos */
body.tb .tb-listmetrics { display: flex; flex-wrap: wrap; gap: .15rem .9rem; margin: .1rem 0 0; font: 500 .8rem/1.4 var(--tb-font-sans); color: var(--tb-muted); font-variant-numeric: tabular-nums; }
body.tb .tb-listmetrics__item { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
body.tb .tb-listmetrics__n { font-weight: 650; color: var(--tb-text-soft); }
body.tb .tb-listalt { margin: -.1rem 0 .35rem; font: italic 400 .95rem/1.4 var(--tb-font-heading); color: var(--tb-text-soft); }
body.tb .cmp_article_list > li.tb-listrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: start; padding: .35rem 0 1.5rem; }
body.tb .tb-listrow::before, body.tb .tb-listrow::after { content: none; display: none; }
body.tb .tb-listrow > .obj_article_summary { display: contents; }
body.tb .tb-listrow > .obj_article_summary > * { grid-column: 1; min-width: 0; }
/* Fila 1: título | página. Fila 2: DOI y autores. Fila 3: galeradas | métricas. */
body.tb .tb-listrow__head { grid-row: 1; }
body.tb .tb-listrow__body { grid-row: 2; }
body.tb .tb-listrow > .obj_article_summary > .galleys_links { grid-row: 3; }
body.tb .tb-listrow > .tb-listpage { grid-column: 2; grid-row: 1; align-self: center; position: static; margin: 0; font-size: .875rem; text-align: right; }
body.tb .tb-listrow > .tb-listmetrics { grid-column: 2; grid-row: 3; margin: .65rem 0 0; align-self: center; flex-wrap: nowrap; gap: .15rem .9rem; justify-content: flex-end; }
/* DOI y autores juntos */
body.tb .tb-listrow__body .doiInSummary { margin: .1rem 0 .1rem; }
body.tb .tb-listrow__body .meta { padding-top: 0; }
@media (max-width: 639px) {
	body.tb .cmp_article_list > li.tb-listrow { grid-template-columns: minmax(0, 1fr); }
	body.tb .tb-listrow__head, body.tb .tb-listrow__body, body.tb .tb-listrow > .obj_article_summary > .galleys_links { grid-row: auto; }
	body.tb .tb-listrow > .tb-listpage, body.tb .tb-listrow > .tb-listmetrics { grid-column: 1; grid-row: auto; justify-content: flex-start; text-align: left; margin-top: .25rem; }
}

/* ==========================================================================
   Visor de PDF (página de la galerada). El Default pinta la franja con el
   color base; aquí queda con el color principal elegido, el título se subraya
   al pasar el mouse y los botones usan el color de destacados. Sin depender de
   body.tb: esta página puede no llevar esa clase.
   ========================================================================== */
body .header_view { background: var(--tb-primary); color: var(--tb-on-primary-l); }
body .header_view .title { color: var(--tb-on-primary-l); }
body .header_view .title:is(:hover, :focus) { background: transparent; color: var(--tb-on-primary-l); text-decoration: underline; }
body .header_view :is(.return, .download) { background: #fff; color: var(--tb-primary-ink); }
body .header_view :is(.return, .download):is(:hover, :focus) { background: var(--tb-accent); color: var(--tb-on-accent-l); }
html[data-tb-dm][data-tb-scheme="dark"] body .header_view { background: var(--tb-primary-dm); color: var(--tb-on-primary-dm); }
html[data-tb-dm][data-tb-scheme="dark"] body .header_view .title,
html[data-tb-dm][data-tb-scheme="dark"] body .header_view .title:is(:hover, :focus) { color: var(--tb-on-primary-dm); }
html[data-tb-dm][data-tb-scheme="dark"] body .header_view :is(.return, .download):is(:hover, :focus) { background: var(--tb-accent-dm); color: var(--tb-on-accent-dm); }

/* ==========================================================================
   Idiomas de derecha a izquierda (árabe, persa, hebreo, urdu…). OJS marca
   <html dir="rtl"> según el idioma activo; aquí se espejan las reglas con
   lados físicos. Los iconos y el libro 3D de la portada no se espejan.
   ========================================================================== */
html[dir="rtl"] body.tb { direction: rtl; }
html[dir="rtl"] body.tb .tb-hero__facts span { margin-right: 0; margin-left: .2em; }
html[dir="rtl"] body.tb :is(.tb-cardart__pdf, .obj_article_summary .pages, .tb-crossmark, .tb-cite__dl-label, .tb-footer__platform) { margin-left: 0; margin-right: auto; }
html[dir="rtl"] body.tb .tb-footer__platform { text-align: left; }
html[dir="rtl"] body.tb .tb-ror { margin-left: 0; margin-right: .35em; }
html[dir="rtl"] body.tb .tb-notice { border-left: 0; border-right: 4px solid var(--tb-accent); }
html[dir="rtl"] body.tb .tb-cite__output { border-left: 1px solid var(--tb-border); border-right: 4px solid var(--tb-primary); }
html[dir="rtl"] body.tb .tb-galley--theme blockquote { border-left: 0; border-right: 3px solid var(--tb-primary); }
html[dir="rtl"] body.tb .cmp_notification { border-left-width: 1px; border-right-width: 4px; }
html[dir="rtl"] body.tb .tb-affiliations ol,
html[dir="rtl"] body.tb .tb-galley--theme :is(ul, ol) { padding-left: 0; padding-right: 1.5rem; }
html[dir="rtl"] body.tb .tb-references__list li { padding-left: 0; padding-right: 2rem; }
html[dir="rtl"] body.tb :is(.tb-share-menu a, .tb-share-menu button, .citation_formats_button, .tb-galley--theme th, .tb-galley--theme td) { text-align: right; }
html[dir="rtl"] body.tb .tb-cite__output .csl-left-margin { margin-right: 0; margin-left: .35em; }
html[dir="rtl"] body.tb .tb-share-menu { left: auto; right: 0; }
html[dir="rtl"] body.tb .tb-share-menu--end { right: auto; left: 0; }
html[dir="rtl"] body.tb :is(.tb-nav-more__menu, details.tb-lang > ul) { right: auto; left: 0; }
html[dir="rtl"] body.tb .tb-nav-more > .tb-nav-more__menu { right: auto !important; left: 0 !important; }
html[dir="rtl"] body.tb dialog.tb-lightbox button { right: auto; left: .5rem; }
html[dir="rtl"] body.tb .tb-listrow > .tb-listpage { text-align: left; }
@media (min-width: 992px) {
	html[dir="rtl"] body.tb .pkp_navigation_user_wrapper { right: auto !important; left: clamp(16px, 3vw, 32px) !important; }
	html[dir="rtl"] body.tb .pkp_navigation_user > li > ul { right: auto !important; left: 0 !important; }
	html[dir="rtl"] body.tb .pkp_navigation_primary > li:not(.tb-nav-more) > ul { left: auto !important; right: 0 !important; }
}
@media (max-width: 639px) {
	html[dir="rtl"] body.tb .tb-listrow > .tb-listpage, html[dir="rtl"] body.tb .tb-listrow > .tb-listmetrics { text-align: right; }
}
