/*
 * NATURHEALTH — child theme
 * Estilos propios: cabecera sticky + mega-menú, slider de portada,
 * tarjetas de ejes y utilidades de accesibilidad.
 */

@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter/Inter-VariableFont_slnt,wght.ttf') format('truetype-variations');
	font-weight: 100 900;
	font-style: oblique 0deg 10deg;
	font-display: swap;
}

:root {
	/* Paleta de colores expandida */
	--nh-verde: #2f5233;
	--nh-verde-claro: #4a6b3a;
	--nh-verde-vivo: #5a8c54;
	--nh-verde-bg: #f0f4ee;
	--nh-azul: #1f4e5f;
	--nh-azul-claro: #3a7899;
	--nh-azul-bg: #eef4f9;
	--nh-tierra: #7a4b2a;
	--nh-tierra-claro: #a1653b;
	--nh-tierra-bg: #faf6f1;
	--nh-coral: #d98868;
	--nh-coral-claro: #e4a488;
	--nh-coral-oscuro: #b8613f;
	--nh-amarillo: #e8b84b;
	--nh-amarillo-claro: #f0cb76;
	--nh-texto: #1c1c1c;
	--nh-texto-gris: #555555;
	--nh-fondo: #ffffff;
	--nh-header-height: 84px;
	--nh-header-height-scrolled: 60px;
	--nh-transition: 360ms cubic-bezier(0.33, 0.66, 0.66, 1);

	/*
	 * GeneratePress pinta body/.site-header/.site-info con tres variables
	 * distintas (--base-2, --base-3, --base), lo que deja el fondo con
	 * tonos de gris distintos según la zona de la página. Las igualamos
	 * todas a --nh-fondo para que el fondo sea un único color en todo
	 * el sitio.
	 */
	--base: var(--nh-fondo);
	--base-2: var(--nh-fondo);
	--base-3: var(--nh-fondo);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	background-color: var(--nh-fondo);
}

body {
	background-color: var(--nh-fondo);
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	overflow-wrap: break-word;
	line-height: 1.6;
}

/* Tipografía mejorada */
h1, h2, h3, h4, h5, h6 {
	font-weight: 800;
	letter-spacing: -0.01em;
	margin-top: 1.5em;
	margin-bottom: 0.75em;
}

h1 {
	font-size: clamp(1.8rem, 5vw, 3rem);
}

h2 {
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	color: var(--nh-verde);
}

h3 {
	font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}

p {
	margin-bottom: 1.25em;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--nh-texto);
}

a {
	color: var(--nh-verde-vivo);
	transition: color var(--nh-transition);
}

a:hover,
a:focus-visible {
	color: var(--nh-azul-claro);
}

/* Espaciado de contenido */
main,
.site-content {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

@media (min-width: 768px) {
	main,
	.site-content {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.nh-skip-link {
	position: fixed;
	top: -100px;
	left: 1rem;
	z-index: 10000;
	background: var(--nh-verde);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 6px 6px;
	transition: top var(--nh-transition);
}

.nh-skip-link:focus {
	top: 0;
	width: auto;
	height: auto;
	clip: auto;
	overflow: visible;
}

/* -----------------------------------------------------------
 * Cabecera / mega-menú
 * --------------------------------------------------------- */

.nh-header {
	position: sticky;
	top: 0;
	z-index: 999;
	width: 100%;
	background: var(--nh-fondo);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nh-header__main {
	transition: padding var(--nh-transition);
	padding: clamp(0.85rem, 1.5vw, 1.25rem) 0;
}

.nh-header__main-inner {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 clamp(1rem, 3vw, 3rem);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem clamp(1rem, 3vw, 3rem);
}

.nh-header__brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	text-decoration: none;
	min-width: 0;
	flex-shrink: 0;
}

.nh-header__brand-icon {
	width: clamp(34px, 4vw, 44px);
	height: clamp(34px, 4vw, 44px);
	flex-shrink: 0;
	transition: all var(--nh-transition);
}

.nh-header__brand-text {
	font-size: clamp(1.1rem, 1.1rem + 0.6vw, 1.5rem);
	font-weight: 800;
	line-height: 1.1;
	white-space: nowrap;
	transition: font-size var(--nh-transition);
}

.nh-header__brand-text .nh-header__brand-natur {
	color: var(--nh-verde);
}

.nh-header__brand-text .nh-header__brand-health {
	color: var(--nh-verde-vivo);
}

.nh-header__brand-logo {
	display: block;
	max-height: 56px;
	width: auto;
	transition: max-height var(--nh-transition);
}

/* Icono de contacto (email) */
.nh-header__contact {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(36px, 3.5vw, 44px);
	height: clamp(36px, 3.5vw, 44px);
	border-radius: 50%;
	border: 2px solid var(--nh-texto);
	color: var(--nh-texto);
	flex-shrink: 0;
	transition: all var(--nh-transition);
}

.nh-header__contact:hover,
.nh-header__contact:focus-visible {
	background: var(--nh-verde);
	border-color: var(--nh-verde);
	color: #fff;
}

.nh-header__contact svg {
	width: 55%;
	height: 55%;
}

/* Estado "scrolled": cabecera compacta */
.nh-header.is-scrolled .nh-header__main {
	padding: 0.5rem 0;
}

.nh-header.is-scrolled .nh-header__brand-text {
	font-size: 1.1rem;
}

.nh-header.is-scrolled .nh-header__brand-icon {
	width: 32px;
	height: 32px;
}

.nh-header.is-scrolled .nh-header__brand-logo {
	max-height: 40px;
}

/* Navegación principal: enlaces planos con subrayado de color */
.nh-mega-nav__list {
	list-style: none;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: clamp(0.25rem, 1.2vw, 0.5rem);
	margin: 0;
	padding: 0;
}

.nh-mega-nav__list > li {
	position: relative;
}

.nh-mega-nav__list > li > a {
	display: block;
	padding: 0.4rem 0.6rem 0.55rem;
	color: var(--nh-texto);
	text-decoration: none;
	font-weight: 700;
	font-size: clamp(0.85rem, 1vw, 1rem);
	border-bottom: 3px solid transparent;
	transition: all var(--nh-transition);
}

/* Color de subrayado por sección, siguiendo el orden del menú */
.nh-mega-nav__list > li:nth-child(1) > a { border-bottom-color: var(--nh-coral); }
.nh-mega-nav__list > li:nth-child(2) > a { border-bottom-color: var(--nh-azul-claro); }
.nh-mega-nav__list > li:nth-child(3) > a { border-bottom-color: var(--nh-verde-claro); }
.nh-mega-nav__list > li:nth-child(4) > a { border-bottom-color: var(--nh-tierra-claro); }
.nh-mega-nav__list > li:nth-child(5) > a { border-bottom-color: var(--nh-verde-vivo); }
.nh-mega-nav__list > li:nth-child(6) > a { border-bottom-color: var(--nh-amarillo); }

.nh-mega-nav__list > li > a:hover,
.nh-mega-nav__list > li > a:focus-visible,
.nh-mega-nav__list > li.is-open > a {
	color: var(--nh-verde);
}

.nh-mega-nav__list a:focus-visible {
	outline: 3px solid var(--nh-azul);
	outline-offset: 2px;
}

/* Panel de mega-menú */
.mega-menu-panel {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, 8px);
	min-width: clamp(300px, 90vw, 680px);
	max-width: 90vw;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
	padding: clamp(1rem, 1.5vw, 1.5rem);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--nh-transition), transform var(--nh-transition), visibility var(--nh-transition);
	z-index: 20;
}

.has-mega-menu:hover > .mega-menu-panel,
.has-mega-menu.is-open > .mega-menu-panel,
.has-mega-menu:focus-within > .mega-menu-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.mega-menu-panel__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.5rem 2rem;
}

.mega-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: contents;
}

.mega-menu-list > li > a {
	display: block;
	padding: 0.55rem 0.5rem;
	color: var(--nh-texto);
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.95rem;
	overflow-wrap: break-word;
}

.mega-menu-list > li > a:hover,
.mega-menu-list > li > a:focus-visible {
	background-color: rgba(47, 82, 51, 0.08);
	color: var(--nh-verde);
}

/* Botón hamburguesa (móvil) */
.nh-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	background: none;
	border: 1px solid transparent;
	border-radius: 6px;
	cursor: pointer;
}

.nh-menu-toggle__bar {
	width: 24px;
	height: 2px;
	background: var(--nh-texto);
	margin: 0 auto;
}

.nh-menu-toggle:focus-visible {
	outline: 3px solid var(--nh-azul);
	outline-offset: 2px;
}

@media (max-width: 900px) {
	.nh-menu-toggle {
		display: flex;
	}

	.nh-mega-nav {
		position: fixed;
		inset: var(--nh-header-height) 0 0 0;
		background: #fff;
		overflow-y: auto;
		transform: translateY(-12px);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity var(--nh-transition), transform var(--nh-transition), visibility var(--nh-transition);
		padding: 1rem 1.5rem 3rem;
	}

	.nh-mega-nav.is-open {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateY(0);
	}

	.nh-mega-nav__list {
		flex-direction: column;
		align-items: stretch;
	}

	.mega-menu-panel {
		position: static;
		transform: none;
		box-shadow: none;
		max-width: none;
		min-width: 0;
		padding: 0.5rem 0 0.5rem 1rem;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		display: none;
	}

	.has-mega-menu.is-open > .mega-menu-panel {
		display: block;
	}

	.mega-menu-panel__inner {
		grid-template-columns: 1fr;
	}
}

/* -----------------------------------------------------------
 * Portada a sangre completa
 *
 * GeneratePress maqueta .site-content como FLEX EN FILA (pensado para
 * "contenido + barra lateral") y encajona #page en 1200px centrados.
 * En la portada eso hacía que el hero y la banda de bloques quedaran
 * uno AL LADO del otro y estirados los dos a la misma altura (la del
 * hero, ~100vh): de ahí que el banner "no se viera" y que los bloques
 * salieran altísimos con hueco vacío. Aquí anulamos ambas cosas para
 * que las secciones se apilen y ocupen todo el ancho.
 * --------------------------------------------------------- */

.home #page.grid-container {
	max-width: 100%;
	padding: 0;
}

.home .site-content {
	display: block;
	padding: 0;
}

/* -----------------------------------------------------------
 * Banner de las páginas-hub y de Jornadas
 * --------------------------------------------------------- */

.nh-hub-page #page.grid-container {
	max-width: 100%;
	padding: 0;
}

.nh-hub-page .site-content,
.nh-hub-page .inside-article {
	padding: 0;
}

.nh-hub-page main.site-main {
	padding: 0;
	margin: 0;
}

.nh-hub-page .entry-content {
	margin-top: 0;
}

.nh-page-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	min-height: clamp(280px, 42vw, 520px);
	background-color: var(--nh-verde);
	background-position: center;
	background-size: cover;
	overflow: hidden;
}

.nh-page-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.38) 60%, rgba(0, 0, 0, 0.78) 100%);
}

.nh-page-hero__content {
	position: relative;
	z-index: 1;
	max-width: min(960px, 92%);
	padding: clamp(1.5rem, 4vw, 4rem);
	text-align: right;
	color: #fff;
}

.nh-page-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(2rem, 5vw, 4rem);
	line-height: 1.05;
	text-transform: uppercase;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	text-wrap: balance;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.nh-page-hero__subtitle {
	margin: 0.75rem 0 0;
	color: #fff;
	font-size: clamp(0.9rem, 1.5vw, 1.1rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.5;
	text-transform: uppercase;
	filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.45));
}

/* -----------------------------------------------------------
 * Hero / slider de portada
 * --------------------------------------------------------- */

.nh-hero {
	position: relative;
	height: calc(100vh - var(--nh-header-height));
	min-height: 480px;
	overflow: hidden;
}

.nh-hero__track {
	position: relative;
	width: 100%;
	height: 100%;
}

.nh-hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	background-size: cover;
	background-position: center;
	color: #fff;
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 900ms ease;
}

.nh-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.nh-hero__slide:focus-visible {
	outline: 4px solid #fff;
	outline-offset: -8px;
}

.nh-hero__overlay {
	position: absolute;
	inset: 0;
	/* Degradado solo en la esquina inferior derecha, donde va el texto,
	   dejando el resto de la foto limpio (como en la referencia). */
	background: linear-gradient(115deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.72) 100%);
}

.nh-hero__content {
	position: relative;
	z-index: 2;
	max-width: min(680px, 90%);
	text-align: right;
	color: #fff;
	padding: clamp(1.5rem, 4vw, 3.5rem);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
}

.nh-hero__title {
	font-size: clamp(1.8rem, 5vw, 3.2rem);
	font-weight: 800;
	margin: 0;
	letter-spacing: -0.01em;
	line-height: 1.05;
	text-transform: uppercase;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
	text-wrap: balance;
	filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

.nh-hero__subtitle {
	font-size: clamp(0.8rem, 1.4vw, 1.05rem);
	margin: 0.5rem 0 0;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.5;
	color: #fff;
	text-transform: uppercase;
	filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.4));
}

.nh-hero__dots {
	position: absolute;
	bottom: 1.25rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	gap: 0.5rem;
}

.nh-hero__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.6);
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: all var(--nh-transition);
}

.nh-hero__dot.is-active {
	background: #fff;
	border-color: #fff;
	transform: scale(1.2);
}

.nh-hero__dot:hover,
.nh-hero__dot:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.6);
}

.nh-hero__dot:focus-visible {
	outline: 3px solid var(--nh-azul);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.nh-page-hero {
		align-items: flex-end;
		justify-content: flex-start;
	}

	.nh-page-hero__overlay {
		background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.78) 100%);
	}

	.nh-page-hero__content {
		max-width: 100%;
		text-align: left;
	}

	.nh-hero__content {
		max-width: 100%;
		text-align: left;
		align-items: flex-start;
	}

	.nh-hero__overlay {
		background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
	}
}

/* -----------------------------------------------------------
 * Bloques de secciones (banda de 6 columnas a ancho completo)
 * --------------------------------------------------------- */

.nh-blocks {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: clamp(0.75rem, 1.5vw, 1.5rem);
	margin-top: clamp(0.75rem, 1.5vw, 1.5rem);
	padding: 0 clamp(0.75rem, 1.5vw, 1.5rem) clamp(0.75rem, 1.5vw, 1.5rem);
	/* align-items por defecto es "stretch": la fila mide lo que ocupa el
	   bloque con más texto (alto de contenido, sin número fijo) y el
	   resto se estira para igualar esa altura — así ninguno queda con
	   texto cortado ni con hueco de más. */
}

.nh-blocks--five {
	grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) {
	.nh-blocks {
		grid-template-columns: repeat(3, 1fr);
	}
}

.nh-block {
	display: flex;
	flex-direction: column;
	color: #fff;
	text-decoration: none;
	padding: clamp(1rem, 1.5vw, 1.5rem) clamp(1rem, 1.5vw, 1.25rem);
	transition: filter var(--nh-transition);
}

.nh-block:hover,
.nh-block:focus-visible {
	filter: brightness(1.08);
}

.nh-block:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -6px;
}

.nh-block--coral { background: var(--nh-coral); }
.nh-block--azul { background: var(--nh-azul-claro); }
.nh-block--verde { background: var(--nh-verde-claro); }
.nh-block--tierra { background: var(--nh-tierra-claro); }
.nh-block--verde-vivo { background: var(--nh-verde-vivo); }
.nh-block--amarillo { background: var(--nh-amarillo); }

/* -----------------------------------------------------------
 * Páginas-hub: navegación interna y secciones por eje
 * --------------------------------------------------------- */

.nh-hub {
	max-width: 1120px;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 4rem) clamp(1rem, 3vw, 2rem);
}

.nh-hub__eyebrow {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nh-verde-vivo);
}

.nh-hub__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
	padding-bottom: 1rem;
	border-bottom: 1px solid #d9e1d7;
}

.nh-hub__nav a {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	padding: 0.45rem 0.85rem;
	border: 1px solid var(--nh-verde-vivo);
	border-radius: 0;
	color: var(--nh-verde);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.nh-hub__nav a:hover,
.nh-hub__nav a:focus-visible {
	background: var(--nh-verde);
	border-color: var(--nh-verde);
	color: #fff;
}

.nh-hub__section {
	padding: clamp(1.5rem, 3vw, 2.75rem) 0;
	border-bottom: 1px solid #e4e8e3;
	scroll-margin-top: calc(var(--nh-header-height) + 1rem);
}

.nh-hub__section:last-child {
	border-bottom: 0;
}

.nh-hub__section h2 {
	margin-top: 0;
}

.nh-hub__section li {
	margin-bottom: 0.75rem;
	line-height: 1.6;
}

.nh-hub__results {
	padding-left: 1.4rem;
}

.nh-one-health-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.5rem;
}

.nh-one-health-card {
	padding: 1.25rem;
	border: 1px solid #d9e1d7;
	border-radius: 0.5rem;
	background: #f7faf6;
}

.nh-one-health-card h3 {
	margin-top: 0;
	font-size: 1.1rem;
	color: var(--nh-verde);
}

.nh-one-health-card ul {
	margin: 0;
	padding-left: 1.2rem;
}

.nh-one-health-card__motto {
	margin-bottom: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--nh-verde-vivo);
}

.nh-hub__infographic {
	margin: clamp(1.5rem, 3vw, 2.5rem) 0 0;
	padding: 1rem;
	border: 1px solid #d9e1d7;
	border-radius: 0.5rem;
	background: #f7faf6;
	text-align: center;
}

.nh-hub__infographic img {
	display: block;
	width: min(100%, 780px);
	height: auto;
	margin: 0 auto;
}

.nh-hub__infographic figcaption {
	margin-top: 0.85rem;
	font-size: 0.9rem;
	color: #4f5f50;
}

@media (max-width: 900px) {
	.nh-one-health-grid {
		grid-template-columns: 1fr;
	}
}

.nh-block__title {
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	margin: 0 0 0.5rem;
	line-height: 1.2;
	color: #fff;
}

.nh-block__desc {
	font-size: 0.85rem;
	line-height: 1.4;
	margin: 0;
	color: rgba(255, 255, 255, 0.95);
	flex: 1;
}

.nh-block__cta {
	margin-top: 0.75rem;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

/* -----------------------------------------------------------
 * Documentos y jornadas (single/archive)
 * --------------------------------------------------------- */

.nh-documento,
.nh-jornada {
	max-width: 100%;
	margin: clamp(2rem, 4vw, 3rem) auto;
	padding: 0 clamp(1rem, 3vw, 3rem);
}

.nh-documento__codigo {
	display: inline-block;
	font-weight: 700;
	color: var(--nh-verde);
	letter-spacing: 0.04em;
	margin: 0 0 0.25rem;
}

.nh-documento__grupos {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0;
	margin: 0.75rem 0 0;
}

.nh-documento__grupos a {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: rgba(47, 82, 51, 0.1);
	color: var(--nh-verde);
	text-decoration: none;
	font-size: 0.85rem;
}

.nh-documento__resumen {
	font-size: 1.1rem;
	color: #444;
}

.nh-documento__enlaces {
	margin-top: 2rem;
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.nh-btn {
	display: inline-block;
	padding: 0.85rem 1.75rem;
	border-radius: 8px;
	background: var(--nh-verde-vivo);
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	transition: all var(--nh-transition);
	border: 2px solid transparent;
	cursor: pointer;
}

.nh-btn:hover,
.nh-btn:focus-visible {
	background: var(--nh-verde-claro);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(90, 140, 84, 0.3);
}

.nh-btn--outline {
	background: transparent;
	color: var(--nh-verde-vivo);
	border: 2px solid var(--nh-verde-vivo);
}

.nh-btn--outline:hover,
.nh-btn--outline:focus-visible {
	background: var(--nh-verde-vivo);
	color: #fff;
}

.nh-jornada__estado {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 999px;
	background: rgba(31, 78, 95, 0.1);
	color: var(--nh-azul);
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.nh-jornada__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	color: #555;
}

.nh-archive-header,
.nh-documentos-list,
.nh-jornadas-list {
	max-width: 100%;
	margin: clamp(1.5rem, 3vw, 2rem) auto;
	padding: 0 clamp(1rem, 3vw, 3rem);
}

.nh-documentos-list,
.nh-jornadas-list {
	list-style: none;
}

.nh-documentos-list__item,
.nh-jornadas-list__item {
	border-bottom: 1px solid #e5e5e5;
}

.nh-documentos-list__item a,
.nh-jornadas-list__item a {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.25rem 1rem;
	padding: 1rem 0;
	text-decoration: none;
	color: var(--nh-texto);
}

.nh-documentos-list__title,
.nh-jornadas-list__title {
	overflow-wrap: break-word;
	min-width: 0;
}

.nh-documentos-list__codigo {
	font-weight: 700;
	color: var(--nh-verde);
	margin-right: 0.75rem;
}

/* -----------------------------------------------------------
 * Footer personalizado
 * --------------------------------------------------------- */

.nh-footer {
	background: var(--nh-fondo);
	color: var(--nh-texto);
	margin-top: auto;
	border-top: 1px solid #e8e8e4;
}

.nh-footer__top {
	max-width: 100%;
	margin: 0 auto;
	padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 3rem);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 2rem;
}

.nh-footer__info p {
	margin: 0 0 0.4rem;
	color: var(--nh-verde);
	font-size: 0.95rem;
	line-height: 1.6;
}

.nh-footer__info p:first-child {
	font-size: 1.1rem;
	font-weight: 800;
	margin-bottom: 0.6rem;
}

.nh-footer__info a {
	color: var(--nh-verde);
	text-decoration: underline;
}

.nh-footer__social {
	display: flex;
	gap: 0.75rem;
	flex-shrink: 0;
}

.nh-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 2px solid currentColor;
	border-radius: 6px;
	transition: all var(--nh-transition);
}

.nh-footer__social a svg {
	width: 20px;
	height: 20px;
}

.nh-footer__social .nh-footer__social--facebook { color: #3b5998; }
.nh-footer__social .nh-footer__social--linkedin { color: #0077b5; }
.nh-footer__social .nh-footer__social--instagram { color: #c1327a; }
.nh-footer__social .nh-footer__social--youtube { color: #d92c27; }

.nh-footer__social a:hover,
.nh-footer__social a:focus-visible {
	background: currentColor;
}

.nh-footer__social a:hover svg,
.nh-footer__social a:focus-visible svg {
	filter: brightness(0) invert(1);
}

.nh-footer__collab {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 clamp(1rem, 3vw, 3rem) clamp(1.5rem, 3vw, 2rem);
}

.nh-footer__collab p {
	color: var(--nh-verde);
	font-size: clamp(0.72rem, 1vw, 0.9rem);
	margin: 0 0 1.25rem;
	max-width: none;
	white-space: nowrap;
}

.nh-footer__sponsors {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: stretch;
}

.nh-footer__sponsor {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	min-height: 78px;
	min-width: 150px;
	max-width: 280px;
	flex: 1 1 180px;
}

.nh-footer__sponsor img {
	display: block;
	width: 100%;
	height: 64px;
	object-fit: contain;
}

.nh-footer__bottom {
	background: var(--nh-verde-vivo);
	color: #fff;
	text-align: center;
	padding: 0.85rem 1.5rem;
}

.nh-footer__copyright {
	font-size: 0.9rem;
	margin: 0;
}

.nh-footer__legal {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	font-size: 0.85rem;
	margin-top: 0.35rem;
}

.nh-footer__legal a {
	color: #fff;
	text-decoration: underline;
}

.nh-footer__legal a:hover,
.nh-footer__legal a:focus-visible {
	color: var(--nh-verde-bg);
}

.nh-footer__legal span {
	opacity: 0.6;
}

@media (max-width: 768px) {
	.nh-footer__top {
		flex-direction: column;
	}

	.nh-footer__sponsor {
		flex: 1 1 calc(50% - 1rem);
	}

	.nh-blocks {
		grid-template-columns: 1fr;
	}

	.nh-footer__collab p {
		white-space: normal;
	}
}

/* -----------------------------------------------------------
 * Accesibilidad: prefers-reduced-motion
 * --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}

	.nh-block:hover,
	.nh-block:focus-visible {
		filter: none;
	}
}
