/* ==========================================================================
   Humano — Estilos base globales
   Reset ligero, tipografía, contenedor, botones, header y footer.
   Los estilos de cada sección viven en blocks/<nombre>/style.css.
   ========================================================================== */

/* --- Reset ligero --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: 1.6;
	color: var(--ink);
	background: var(--blanco);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	line-height: var(--lh-h2);
	font-weight: var(--fw-bold);
	letter-spacing: var(--tracking-h2);
	text-wrap: balance;
}
/* Display / H1: más ceñido y con interlineado más corto (spec §1) */
h1 { letter-spacing: var(--tracking-display); line-height: var(--lh-display); }
h3, h4 { letter-spacing: var(--tracking-h3); line-height: 1.2; }
p { margin: 0 0 1rem; }

/* --- Accesibilidad -------------------------------------------------------- */
:focus-visible { outline: 3px solid var(--verde); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--verde-oscuro); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --- Contenedor / layout -------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
@media (max-width: 640px) {
	.container { padding-inline: var(--gutter-mobile); }
}
.section { padding-block: var(--section-pad); }

/* --- Tipografía utilitaria ----------------------------------------------- */
.eyebrow {
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--verde-oscuro);
	margin: 0 0 1rem;
}
.text-verde { color: var(--verde); }

/* --- Botones (spec §2) ---------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.9em 1.6em;
	border-radius: var(--radius-pill);
	font-weight: 700;
	font-size: 0.9375rem;
	letter-spacing: 0.02em;
	text-decoration: none;
	border: 1px solid transparent;
	transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
	background: var(--verde);
	color: var(--ink);
	box-shadow: 0 10px 30px -12px rgba(0, 224, 168, 0.7);
}
/* Hover con acento: brillo de marca + glow verde más presente */
.btn--primary:hover {
	background: var(--verde-brillo);
	box-shadow: 0 14px 38px -10px rgba(0, 240, 184, 0.85);
}
.btn--secondary {
	background: var(--verde-oscuro);
	color: var(--blanco);
}
.btn--secondary:hover {
	background: #013a2b;
	box-shadow: 0 12px 30px -14px rgba(0, 41, 31, 0.6), inset 0 0 0 1px rgba(0, 224, 168, 0.35);
}
.btn--ghost {
	background: transparent;
	color: var(--verde-oscuro);
	border-color: var(--borde);
}
.btn--ghost:hover { border-color: var(--verde); color: var(--verde-oscuro); }
.btn--link {
	background: none;
	color: var(--verde-oscuro);
	padding: 0;
	border-radius: 0;
}
/* Enlace de acción: subrayado verde que crece y flecha que avanza */
.btn--link { position: relative; }
.btn--link::after { content: "→"; transition: transform 0.18s ease; }
.btn--link::before {
	content: "";
	position: absolute;
	left: 0; bottom: -3px;
	width: 100%; height: 2px;
	background: var(--verde);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.22s ease;
}
.btn--link:hover::before { transform: scaleX(1); }
.btn--link:hover::after { transform: translateX(3px); }

/* ==========================================================================
   Header (sticky, blur al hacer scroll)
   ========================================================================== */
.humano-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: saturate(140%) blur(8px);
	-webkit-backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.humano-header.is-scrolled {
	border-bottom-color: var(--borde);
	box-shadow: 0 6px 24px -18px rgba(0, 41, 31, 0.4);
}
.humano-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 72px;
}
.humano-brand { display: inline-flex; align-items: center; }
.humano-brand img { height: 28px; width: auto; }

.humano-nav { display: flex; align-items: center; gap: 8px; }
.humano-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
}
.humano-nav a {
	display: inline-block;
	padding: 8px 14px;
	text-decoration: none;
	color: var(--ink);
	font-weight: 500;
	font-size: 0.9375rem;
	border-radius: var(--radius-pill);
	transition: background-color 0.15s ease, color 0.15s ease;
}
.humano-nav a:hover { background: var(--gris-fondo); color: var(--verde-oscuro); }
.humano-nav .current-menu-item > a { color: var(--verde-oscuro); }

.humano-header__actions { display: flex; align-items: center; gap: 12px; }

/* Hamburguesa */
.humano-nav-toggle {
	display: none;
	width: 44px; height: 44px;
	border: 1px solid var(--borde);
	background: var(--blanco);
	border-radius: 12px;
	align-items: center;
	justify-content: center;
}
.humano-nav-toggle span,
.humano-nav-toggle span::before,
.humano-nav-toggle span::after {
	content: "";
	display: block;
	width: 20px; height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.humano-nav-toggle span { position: relative; }
.humano-nav-toggle span::before { position: absolute; top: -6px; }
.humano-nav-toggle span::after { position: absolute; top: 6px; }
.humano-nav-toggle[aria-expanded="true"] span { background: transparent; }
.humano-nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.humano-nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
	.humano-nav-toggle { display: inline-flex; }
	.humano-nav {
		position: fixed;
		inset: 72px 0 auto 0;
		background: var(--blanco);
		border-bottom: 1px solid var(--borde);
		flex-direction: column;
		align-items: stretch;
		padding: 16px var(--gutter-mobile) 24px;
		gap: 4px;
		transform: translateY(-120%);
		/* Oculto del todo cuando está cerrado: si no, un menú corto (o vacío) queda
		   aparcado sobre el header y tapa el logo y el CTA con su fondo blanco. */
		visibility: hidden;
		pointer-events: none;
		transition: transform 0.25s ease, visibility 0.25s ease;
		box-shadow: var(--shadow-soft);
	}
	.humano-nav[data-open="true"] {
		transform: translateY(0);
		visibility: visible;
		pointer-events: auto;
	}
	.humano-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.humano-nav a { padding: 12px 14px; }

	/* En móvil: marca a la izquierda; CTA de demo + hamburguesa juntos a la derecha. */
	.humano-header__inner { gap: 10px; }
	.humano-header__actions { order: 2; margin-left: auto; }
	.humano-nav-toggle { order: 3; }
	.humano-header__cta {
		padding: 0.6em 1.05em;
		font-size: 0.8125rem;
		letter-spacing: 0.01em;
	}
}

@media (max-width: 380px) {
	/* Pantallas muy estrechas: el CTA no debe empujar el logo ni la hamburguesa. */
	.humano-header__cta { padding: 0.55em 0.85em; font-size: 0.75rem; }
	.humano-brand img { height: 24px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.humano-footer {
	background: var(--verde-oscuro);
	color: rgba(255, 255, 255, 0.85);
	padding-block: clamp(48px, 6vw, 80px) 32px;
}
.humano-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.humano-footer a:hover { color: var(--verde); }
.humano-footer__top {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	justify-content: space-between;
	align-items: flex-start;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.humano-footer__brand img { height: 30px; width: auto; }
.humano-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-style: normal;
}
.humano-footer__contact-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9375rem;
	font-weight: 500;
}
.humano-footer__contact-icon {
	display: inline-flex;
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	color: var(--verde);
}
.humano-footer__contact-item:hover .humano-footer__contact-icon { color: var(--verde-brillo); }
.humano-footer__social { display: flex; gap: 12px; }
.humano-footer__social a {
	width: 40px; height: 40px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
}
.humano-footer__social a:hover { border-color: var(--verde); background: rgba(0, 224, 168, 0.1); }
.humano-footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.humano-footer__apps { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.humano-store-badge {
	display: inline-flex; align-items: center; gap: 10px;
	height: 48px; padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 10px;
	background: #000;
	color: #fff;
	text-decoration: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.humano-store-badge:hover { border-color: var(--verde); background: #0a0a0a; }
.humano-store-badge__logo { display: inline-flex; width: 24px; height: 24px; flex-shrink: 0; }
.humano-store-badge__logo svg { width: 100%; height: 100%; fill: #fff; }
.humano-store-badge__text { display: flex; flex-direction: column; line-height: 1.15; }
.humano-store-badge__pre { font-size: 10px; text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.85; }
.humano-store-badge__name { font-size: 17px; font-weight: 600; }
.humano-footer__trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.humano-footer__trust-label {
	font-size: var(--fs-caption);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.7;
}
.humano-footer__trust-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.humano-trust-chip {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 64px; padding: 8px 16px;
	background: #fff; border-radius: 10px;
}
.humano-trust-chip--eidas { padding-inline: 18px; gap: 12px; }
.humano-trust-chip__wordmark {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #3a3f46;
}
.humano-trust-chip img { display: block; width: auto; height: 48px; }
.humano-trust-shield { width: 30px; height: 30px; flex-shrink: 0; }
.humano-trust-chip__text { display: flex; flex-direction: column; line-height: 1.12; color: #284072; }
.humano-trust-chip__text strong { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.humano-trust-chip__text span { font-size: 11px; opacity: 0.8; }
.humano-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: center;
	justify-content: space-between;
	padding-top: 24px;
	font-size: var(--fs-caption);
}
.humano-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }

/* --- Placeholder de marca (mientras llegan los assets reales) ------------- */
.humano-placeholder {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: var(--ph-aspect, 4 / 3);
	width: 100%;
	border-radius: var(--radius-card);
	background: var(--grad-verde-rico), var(--verde-oscuro);
	background-blend-mode: screen;
	box-shadow: var(--shadow-glass), var(--ring-claro);
	overflow: hidden;
}
/* Halo de luz interior para dar volumen (no plano) */
.humano-placeholder::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 50% at 30% 100%, rgba(0, 41, 31, 0.45), transparent 70%);
	pointer-events: none;
}
.humano-placeholder__mark {
	position: relative;
	z-index: 1;
	width: clamp(72px, 22%, 140px);
	height: auto;
	filter: drop-shadow(0 12px 30px rgba(0, 41, 31, 0.35));
}

/* --- Glow verde reutilizable detrás de un elemento clave ------------------ */
/* Aplicar a un contenedor position:relative; pinta un resplandor difuso detrás. */
.has-glow { position: relative; isolation: isolate; }
.has-glow::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -8% -6%;
	background: radial-gradient(closest-side, rgba(0, 224, 168, 0.45), transparent 72%);
	filter: blur(28px);
	opacity: 0.9;
	pointer-events: none;
}

/* --- Tarjeta glass clara (depth para tarjetas sobre fondo claro) ---------- */
.card-glass {
	background: linear-gradient(180deg, #fff, #fbfdfc);
	border: 1px solid var(--borde);
	border-radius: var(--radius-card-sm);
	box-shadow: var(--shadow-card);
}

/* --- Acento verde: subrayado decorativo bajo un titular ------------------- */
.acento-linea { position: relative; display: inline-block; }
.acento-linea::after {
	content: "";
	position: absolute;
	left: 0; bottom: -0.18em;
	width: 2.4em; height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--verde), rgba(0, 224, 168, 0));
}

/* --- Ritmo vertical y transiciones suaves entre secciones ----------------- */
/* Solape sutil: una sección sube sobre la anterior con borde redondeado. */
.section--solape {
	position: relative;
	margin-top: clamp(-72px, -6vw, -40px);
	border-top-left-radius: clamp(28px, 4vw, 48px);
	border-top-right-radius: clamp(28px, 4vw, 48px);
	z-index: 1;
}
/* Secciones más “aireadas” o más “compactas” para romper la monotonía. */
.section--amplio { padding-block: clamp(88px, 12vw, 160px); }
.section--ajustado { padding-block: clamp(48px, 7vw, 88px); }
/* Degradado de entrada hacia una sección oscura, sin costura dura. */
.section--funde-oscuro { background-image: linear-gradient(180deg, transparent, rgba(0, 41, 31, 0.04)); }

/* --- Aviso de placeholders provisionales --------------------------------- */
.is-placeholder { position: relative; }
.is-placeholder::after {
	content: "PROVISIONAL";
	position: absolute;
	top: 10px; left: 10px;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	padding: 4px 8px;
	border-radius: 6px;
	background: rgba(10, 26, 20, 0.7);
	color: var(--verde-brillo);
	pointer-events: none;
}
/* En placeholders pequeños/inline (logos, tiles, avatares) el sello "PROVISIONAL"
   se solapa con el nombre y ensucia; ahí basta con que sean cajas de marca. */
.humano-social__logo-ph.is-placeholder::after,
.humano-integra__tile-ph.is-placeholder::after,
.humano-testi__avatar.is-placeholder::after {
	content: none;
}

/* --- Reveal al entrar en viewport (lo activa reveal.js solo bajo el pliegue) -- */
.humano-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: opacity, transform;
}
.humano-reveal.is-inview {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.humano-reveal { opacity: 1; transform: none; transition: none; }
}

/* --- Páginas legales (Condiciones, Privacidad, Cookies) ------------------- */
.humano-legal {
	max-width: calc(var(--measure-text) + 8ch);
	margin-inline: auto;
	padding: var(--section-pad) var(--gutter);
	color: var(--ink);
}
@media (max-width: 640px) { .humano-legal { padding-inline: var(--gutter-mobile); } }
.humano-legal h1 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1.1;
	margin: 0 0 0.2em;
}
.humano-legal .humano-legal__lead {
	font-size: 1.05rem;
	color: var(--gris-texto);
	margin: 0 0 2.5em;
}
.humano-legal h2 {
	font-size: clamp(1.35rem, 2.4vw, 1.75rem);
	line-height: 1.2;
	margin: 2.4em 0 0.5em;
	padding-top: 1.6em;
	border-top: 1px solid var(--borde);
}
.humano-legal h3 {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--verde-oscuro);
	margin: 1.8em 0 0.4em;
}
.humano-legal p {
	margin: 0 0 1.1em;
	line-height: 1.7;
	color: var(--gris-texto);
}
.humano-legal strong { color: var(--ink); }
.humano-legal a {
	color: var(--verde-oscuro);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.humano-legal a:hover { color: var(--verde); }
.humano-legal ul { margin: 0 0 1.2em; padding-left: 1.4em; }
.humano-legal li { margin: 0 0 0.5em; line-height: 1.7; color: var(--gris-texto); }
.humano-legal ul.humano-legal__checks { list-style: none; padding-left: 0; }
.humano-legal ul.humano-legal__checks li { position: relative; padding-left: 1.8em; }
.humano-legal ul.humano-legal__checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--verde-oscuro); font-weight: 700; }
.humano-legal__datos { list-style: none; padding-left: 0; margin: 0 0 1.4em; }
.humano-legal__datos li { margin: 0 0 0.3em; }
.humano-legal .wp-block-table { margin: 0 0 1.6em; overflow-x: auto; }
.humano-legal table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.humano-legal th, .humano-legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--borde); color: var(--gris-texto); line-height: 1.5; }
.humano-legal thead th { background: var(--gris-fondo); color: var(--ink); font-weight: 700; }

/* ==========================================================================
   Mega-menú "Producto" (nav principal) — rail de categorías + módulos
   "Producto" en la barra; al abrir, rail de categorías a la izquierda y los
   módulos de la categoría activa a la derecha (estilo Factorial).
   ========================================================================== */
.humano-nav__list { margin: 0; padding: 0; list-style: none; }
.humano-nav__item { position: static; } /* el panel se posiciona respecto al header */

/* Trigger: mismo lenguaje que los enlaces del nav, pero es un <button>. */
.humano-mega__trigger {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 0;
	background: transparent;
	font: inherit;
	font-weight: 500;
	font-size: 0.9375rem;
	color: var(--ink);
	cursor: pointer;
	border-radius: var(--radius-pill);
	transition: background-color 0.15s ease, color 0.15s ease;
}
.humano-mega__trigger:hover { background: var(--gris-fondo); color: var(--verde-oscuro); }
.humano-mega__caret {
	width: 8px; height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-1px) rotate(45deg);
	transition: transform 0.2s ease;
}
.humano-has-mega[data-open="true"] .humano-mega__trigger { background: var(--gris-fondo); color: var(--verde-oscuro); }
.humano-has-mega[data-open="true"] .humano-mega__caret { transform: translateY(2px) rotate(-135deg); }

/* Panel: ocupa el ancho del header y cae justo bajo la barra. */
.humano-mega__panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--blanco);
	border-top: 1px solid var(--borde);
	border-bottom: 1px solid var(--borde);
	box-shadow: var(--shadow-soft);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.humano-has-mega[data-open="true"] .humano-mega__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
/* Dos columnas reales: el panel crece con el contenido (sin desbordes). */
.humano-mega__inner {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	padding-block: 24px;
}

/* --- Rail de categorías (columna izquierda) ------------------------------ */
.humano-nav .humano-mega__rail {
	list-style: none;
	display: block;
	flex: none;
	margin: 0;
	padding: 0 24px 0 0;
	width: 312px;
	border-right: 1px solid var(--borde);
}
.humano-mega__cat { margin: 0; }
.humano-nav .humano-mega__cat-link {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 11px 14px;
	border: 0;
	background: transparent;
	font: inherit;
	text-align: left;
	text-decoration: none;
	color: var(--ink);
	cursor: pointer;
	border-radius: var(--radius-card-sm);
	transition: background-color 0.15s ease, color 0.15s ease;
}
.humano-mega__cat-link:hover,
.humano-mega__cat.is-active .humano-mega__cat-link {
	background: var(--gris-fondo);
	color: var(--verde-oscuro);
}
.humano-mega__cat-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: var(--radius-chip);
	background: var(--grad-verde-suave);
	color: var(--verde-oscuro);
	box-shadow: var(--ring-verde);
}
.humano-mega__cat-icon .humano-icon { width: 20px; height: 20px; }
.humano-mega__cat-label { flex: 1; font-weight: 500; font-size: 0.9375rem; }
.humano-mega__cat-caret {
	width: 7px; height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	opacity: 0.4;
	transition: opacity 0.15s ease;
}
.humano-mega__cat.is-active .humano-mega__cat-caret { opacity: 1; }

/* --- Panes de módulos (columna derecha): solo el activo visible ---------- */
.humano-mega__panes { flex: 1; min-width: 0; }
.humano-mega__pane { display: none; }
.humano-mega__pane.is-active { display: block; }
/* Título de categoría dentro del pane: solo en móvil (en escritorio lo da el rail). */
.humano-mega__pane-title { display: none; }
.humano-nav .humano-mega__pane-all {
	display: inline-block;
	margin-bottom: 14px;
	padding: 0;
	font-size: var(--fs-eyebrow);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--verde-oscuro);
	text-decoration: none;
	background: none;
	border-radius: 0;
}
.humano-mega__pane-all::after { content: " \2192"; }
.humano-nav .humano-mega__pane-all:hover { color: var(--verde); background: none; }

/* Módulos: rejilla horizontal (2 columnas en escritorio). */
.humano-nav .humano-mega__mods {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
}
.humano-nav .humano-mega__mod {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	height: 100%;
	padding: 12px 14px;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: var(--radius-card-sm);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.humano-nav .humano-mega__mod:hover { background: var(--gris-fondo); border-color: var(--borde); }
.humano-mega__mod-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px; height: 40px;
	border-radius: var(--radius-chip);
	background: var(--grad-verde-suave);
	color: var(--verde-oscuro);
	box-shadow: var(--ring-verde);
}
.humano-mega__mod-icon .humano-icon { width: 22px; height: 22px; }
.humano-mega__mod-text { display: flex; flex-direction: column; gap: 2px; }
.humano-mega__mod-title { font-weight: 700; color: var(--ink); font-size: 0.9375rem; }
.humano-mega__mod-desc { font-size: 0.8125rem; line-height: 1.4; color: var(--gris-texto); }

/* Mega "Soluciones": sin rail, las tarjetas de sector mantienen tamaño de
   tarjeta (no se estiran al ancho del panel) y fluyen según cuántas haya. */
.humano-has-mega[data-mega="soluciones"] .humano-mega__mods {
	grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
}

/* --- Móvil: todo apilado dentro del nav desplegable (sin hover). --------- */
@media (max-width: 960px) {
	.humano-mega__trigger { width: 100%; justify-content: space-between; padding: 12px 14px; }
	.humano-mega__panel {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		box-shadow: none;
		background: transparent;
		display: none;
	}
	.humano-has-mega[data-open="true"] .humano-mega__panel { display: block; }
	.humano-mega__inner { display: block; padding: 4px 0 8px; }
	/* Sin tabs en móvil: se ocultan las categorías del rail y se apilan los panes. */
	.humano-nav .humano-mega__rail { display: none; }
	.humano-mega__pane,
	.humano-mega__pane.is-active { display: block; }
	.humano-mega__pane + .humano-mega__pane {
		border-top: 1px solid var(--borde);
		margin-top: 12px;
		padding-top: 12px;
	}
	/* Título de categoría como cabecera de cada bloque en móvil. */
	.humano-mega__pane-title {
		display: block;
		margin-bottom: 10px;
		font-weight: 700;
		font-size: 1rem;
		color: var(--ink);
		text-decoration: none;
	}
	.humano-mega__pane-all { display: none; } /* el pillar se alcanza desde el título */
	.humano-nav .humano-mega__mods { grid-template-columns: 1fr; }
}

/* Cinta de aviso de modo preview (solo se ve en preview). */
.humano-preview-ribbon {
	position: fixed;
	z-index: 200;
	right: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--blanco);
	background: var(--verde-oscuro);
	border-radius: var(--radius-pill);
	box-shadow: var(--shadow-soft);
}
.humano-preview-ribbon a { color: var(--verde-brillo); text-decoration: underline; text-underline-offset: 2px; }

/* Selector de idioma: desplegable (botón = idioma actual, menú = el resto). */
.humano-langs { position: relative; display: inline-flex; }

/* Botón: bandera + iniciales del idioma actual + caret. */
.humano-langs__current {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 11px;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1;
	color: var(--ink);
	background: var(--blanco);
	border: 1px solid var(--borde);
	border-radius: var(--radius-pill);
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.humano-langs__current:hover { border-color: var(--verde); }
.humano-langs__current:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }

.humano-langs__caret {
	width: 0;
	height: 0;
	margin-left: 1px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.7;
	transition: transform 0.18s ease;
}
.humano-langs__current[aria-expanded="true"] .humano-langs__caret { transform: rotate(180deg); }

.humano-langs__flag {
	display: block;
	width: 20px;
	height: 14px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
	flex: 0 0 auto;
}
.humano-langs__code { display: inline-block; }

/* Menú desplegable: oculto por defecto, se abre al marcar aria-expanded. */
.humano-langs__menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	min-width: 100%;
	margin: 0;
	padding: 4px;
	list-style: none;
	background: var(--blanco);
	border: 1px solid var(--borde);
	border-radius: 12px;
	box-shadow: var(--shadow-soft);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
	z-index: 60;
}
.humano-langs__current[aria-expanded="true"] + .humano-langs__menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.humano-langs__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1;
	color: var(--gris-texto);
	text-decoration: none;
	border-radius: 8px;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.humano-langs__item:hover { background: var(--gris-fondo); color: var(--verde-oscuro); }

@media (max-width: 960px) {
	.humano-header__actions .humano-langs { order: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.humano-langs__caret,
	.humano-langs__menu { transition: none; }
}

/* Landing de vídeo: cabecera + reproductor responsive. */
.humano-videopage { text-align: center; }
.humano-videopage__inner { max-width: 1040px; }
.humano-videopage__title { margin: 0 0 12px; }
.humano-videopage__lead {
	max-width: 60ch;
	margin: 0 auto 36px;
	color: var(--gris-texto);
	font-size: 1.125rem;
}
.humano-video {
	position: relative;
	margin: 0 auto;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	background: #000;
}
.humano-video__el {
	display: block;
	width: 100%;
	height: 100%;
	/* contain: muestra el frame completo sin recortar (también a pantalla completa). */
	object-fit: contain;
}
.humano-video__el:fullscreen {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Overlay de play: cubre el póster para que al pulsar la imagen arranque el
   vídeo. Se oculta en cuanto empieza la reproducción, dejando los controles
   nativos accesibles. */
.humano-video__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
.humano-video__play::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 41, 31, 0.18);
	transition: background-color 0.2s ease;
}
.humano-video__play:hover::before { background: rgba(0, 41, 31, 0.3); }
.humano-video__play-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border-radius: 999px;
	background: var(--verde);
	color: var(--ink);
	box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.55);
	transition: transform 0.2s ease, background-color 0.2s ease;
}
.humano-video__play:hover .humano-video__play-icon {
	transform: scale(1.06);
	background: var(--verde-brillo);
}
.humano-video__play:focus-visible { outline: none; }
.humano-video__play:focus-visible .humano-video__play-icon {
	outline: 3px solid var(--blanco);
	outline-offset: 3px;
}
.humano-video__play-icon svg { margin-left: 4px; } /* centra ópticamente el triángulo */
.humano-video.is-playing .humano-video__play {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}
@media (max-width: 600px) {
	.humano-video__play-icon { width: 64px; height: 64px; }
	.humano-video__play-icon svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
	.humano-video__play,
	.humano-video__play-icon { transition: none; }
}

.humano-videopage__cta {
	margin-top: 28px;
}

/* ==========================================================================
   Recursos (blog): hero, cuadrícula de tarjetas, artículo, paginación, CTA
   ========================================================================== */

/* Medida de lectura estrecha para artículos. */
.container--narrow { max-width: 760px; }

/* --- Cabecera de las vistas de Recursos --- */
.humano-blog-hero {
	background: var(--grad-oscuro), var(--verde-oscuro);
	color: #fff;
	padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px);
}
.humano-blog-hero .eyebrow { color: var(--verde); }
.humano-blog-hero__back { color: var(--verde); text-decoration: none; }
.humano-blog-hero__back:hover { color: var(--verde-brillo); }
.humano-blog-hero__title {
	font-size: var(--fs-h2);
	max-width: 22ch;
	margin: 8px 0 0;
}
.humano-blog-hero__lead {
	color: rgba(255, 255, 255, 0.82);
	font-size: var(--fs-body-lg);
	max-width: 60ch;
	margin: 18px 0 0;
}
.humano-blog-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}
.humano-blog-cats__chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: rgba(255, 255, 255, 0.92);
	font-size: var(--fs-caption);
	font-weight: var(--fw-medium);
	text-decoration: none;
	transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.humano-blog-cats__chip:hover {
	border-color: var(--verde);
	background: rgba(0, 224, 168, 0.12);
	color: #fff;
}

/* --- Cuadrícula de tarjetas --- */
.humano-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}
.humano-card {
	background: var(--blanco);
	border: 1px solid var(--borde);
	border-radius: var(--radius-card);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.humano-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.humano-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.humano-card__media {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--gris-fondo);
}
.humano-card__img { width: 100%; height: 100%; object-fit: cover; }
.humano-card__media--ph {
	display: grid;
	place-items: center;
	background: var(--grad-verde-suave), var(--gris-fondo);
}
.humano-card__media--ph img { width: 56px; height: 56px; opacity: 0.85; }
.humano-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.humano-card__cat {
	align-self: flex-start;
	font-size: var(--fs-caption);
	font-weight: var(--fw-bold);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--verde-oscuro);
}
.humano-card__title { font-size: var(--fs-h3); line-height: 1.25; margin: 0; }
.humano-card__excerpt { color: var(--gris-texto); margin: 0; }
.humano-card__more {
	margin-top: auto;
	color: var(--verde-oscuro);
	font-weight: var(--fw-bold);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.humano-card__more::after { content: "→"; transition: transform 0.18s ease; }
.humano-card:hover .humano-card__more::after { transform: translateX(3px); }

/* --- Paginación --- */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	justify-content: center;
	border-radius: var(--radius-pill);
	border: 1px solid var(--borde);
	color: var(--verde-oscuro);
	text-decoration: none;
	font-weight: var(--fw-medium);
}
.pagination .page-numbers.current { background: var(--verde-oscuro); color: #fff; border-color: var(--verde-oscuro); }
.pagination a.page-numbers:hover { border-color: var(--verde); }

/* --- Artículo individual --- */
.humano-article__head { padding-block: clamp(40px, 6vw, 72px) 8px; }
.humano-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	color: var(--gris-texto);
	font-size: var(--fs-caption);
	font-weight: var(--fw-medium);
}
.humano-article__meta a { color: var(--verde-oscuro); text-decoration: none; }
.humano-article__meta a:hover { color: var(--verde); }
.humano-article__title { font-size: var(--fs-h2); margin: 14px 0 0; }
.humano-article__body { padding-bottom: clamp(48px, 7vw, 88px); font-size: var(--fs-body-lg); line-height: 1.7; }
.humano-article__body h2 { font-size: 1.6rem; margin: 1.8em 0 0.6em; }
.humano-article__body h3 { font-size: 1.25rem; margin: 1.5em 0 0.5em; }
.humano-article__body p { margin: 0 0 1.1em; color: #1c2b25; }
.humano-article__body ul, .humano-article__body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.humano-article__body li { margin-bottom: 0.5em; }
.humano-article__body a { color: var(--verde-oscuro); text-underline-offset: 3px; }
.humano-article__body strong { color: var(--ink); }

/* CTA embebido dentro del contenido de la entrada. */
.humano-post-cta {
	margin: 2.4em 0 0.6em;
	padding: 32px;
	border-radius: var(--radius-card);
	background: var(--grad-verde-suave), var(--gris-fondo);
	border: 1px solid var(--borde);
}
.humano-post-cta__eyebrow {
	font-size: var(--fs-eyebrow);
	font-weight: var(--fw-bold);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--verde-oscuro);
	margin: 0 0 6px;
}
.humano-post-cta h3 { margin: 0 0 8px; font-size: var(--fs-h3); }
.humano-post-cta p { margin: 0 0 14px; }
.humano-post-cta p:last-child { margin-bottom: 0; display: flex; flex-wrap: wrap; gap: 12px; }

/* CTA de descarga de plantilla (embebido en el contenido). */
.humano-download {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 2em 0;
	padding: 20px 24px;
	border-radius: var(--radius-card);
	border: 1px solid rgba(0, 224, 168, 0.45);
	background: var(--grad-verde-suave), var(--blanco);
	box-shadow: var(--shadow-card);
}
.humano-download__icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-card-sm);
	background: var(--verde-oscuro);
	color: var(--verde);
}
.humano-download__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.humano-download__title { font-size: 1.0625rem; color: var(--ink); line-height: 1.25; }
.humano-download__meta { font-size: var(--fs-caption); color: var(--gris-texto); }
.humano-download__btn { flex-shrink: 0; }
@media (max-width: 560px) {
	.humano-download { flex-wrap: wrap; }
	.humano-download__btn { width: 100%; justify-content: center; }
}

/* --- Promo/CTA al pie de las vistas --- */
.humano-blog-promo { background: var(--gris-fondo); border-top: 1px solid var(--borde); }
.humano-blog-promo__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: clamp(40px, 6vw, 72px);
}
.humano-blog-promo__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 8px; }
.humano-blog-promo__lead { color: var(--gris-texto); margin: 0; max-width: 52ch; }

/* ==========================================================================
   Footer ampliado: columnas de navegación
   ========================================================================== */
.humano-footer__top {
	display: grid;
	grid-template-columns: minmax(240px, 1.2fr) 3fr;
	gap: 48px;
	align-items: start;
}
.humano-footer__intro { display: flex; flex-direction: column; gap: 18px; max-width: 320px; }
.humano-footer__tagline { color: rgba(255, 255, 255, 0.7); font-size: 0.9375rem; margin: 0; line-height: 1.5; }
.humano-footer__nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 32px 24px;
}
.humano-footer__col-title { font-size: 0.875rem; font-weight: var(--fw-bold); color: #fff; margin: 0 0 14px; letter-spacing: 0.01em; }
.humano-footer__col-title a { color: #fff; text-decoration: none; }
.humano-footer__col-title a:hover { color: var(--verde); }
.humano-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.humano-footer__links a { font-size: 0.9375rem; line-height: 1.4; }

@media (max-width: 860px) {
	.humano-footer__top { grid-template-columns: 1fr; gap: 36px; }
	.humano-footer__intro { max-width: none; }
}
