/* ============================================================
   genultra — «PANEL DE INSTRUMENTOS» (blueprint 2026-09)
   2 colores: verde señal (acción/verificación) + índigo tinta
   (estructura). 2 familias self-hosted. Contrastes = tabla §2.
   ============================================================ */
@layer tokens, base, layout, components, utilities;

/* ------------------------------------------------ FUENTES (§3) */
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-var.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Public Sans";
	src: url("../fonts/public-sans-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
/* Fallbacks métricos (CLS≈0) */
@font-face {
	font-family: "Public Sans Fallback";
	src: local("Arial");
	size-adjust: 105%;
	ascent-override: 90%;
	descent-override: 24%;
	line-gap-override: 0%;
}
@font-face {
	font-family: "Archivo Fallback";
	src: local("Arial");
	size-adjust: 102%;
	ascent-override: 92%;
	descent-override: 24%;
	line-gap-override: 0%;
}

@layer tokens {
	:root {
		/* ACCIÓN (verde señal) */
		--gu-go-400: #35D07F;
		--gu-go-500: #12A150; /* iconos/bordes; nunca texto */
		--gu-go-700: #0B7A3F;
		--gu-go-800: #075A2E;
		--gu-go-050: #E9FBF1;
		/* ESTRUCTURA (índigo tinta) */
		--gu-indigo-700: #3B2E9C;
		--gu-indigo-800: #241B63;
		--gu-indigo-200: #A99BFF;
		--gu-indigo-050: #F1EFFE;
		/* NEUTROS */
		--gu-ink: #14132B;
		--gu-mute: #5B5872;
		--gu-paper: #FBFBFE;
		--gu-surface: #FFFFFF;
		--gu-line: #E3E2EF;
		--gu-line-form: #8E8AAE;
		--gu-error: #B3261E;
		/* Derivados de contexto */
		--gu-link: var(--gu-indigo-700);
		--gu-chassis: #241B63;
		--gu-chassis-ink: #FFFFFF;
		--gu-focus: #3B2E9C;
		--gu-cta-ink: #0B1220;
		/* Tipo */
		--gu-font: "Public Sans", "Public Sans Fallback", Arial, sans-serif;
		--gu-display: "Archivo", "Archivo Fallback", Arial, sans-serif;
		--gu-fs-h1: clamp(1.875rem, 1.46rem + 1.77vw, 3.125rem);
		--gu-fs-h2: clamp(1.5rem, 1.29rem + 0.88vw, 2.125rem);
		--gu-fs-h3: clamp(1.25rem, 1.15rem + 0.44vw, 1.5625rem);
		--gu-fs-lead: clamp(1.1875rem, 1.13rem + 0.22vw, 1.375rem);
		--gu-fs-body: clamp(1.0625rem, 1.037rem + 0.11vw, 1.125rem);
		--gu-fs-meta: clamp(0.875rem, 0.85rem + 0.08vw, 0.9375rem);
		/* Espacio / forma / sombra */
		--gu-shell: 1200px;
		--gu-rail-w: 336px;
		--gu-r-chip: 4px;
		--gu-r-btn: 8px;
		--gu-r-card: 12px;
		--gu-r-panel: 20px;
		--gu-sh-1: 0 1px 1px rgb(20 19 43 / .05), 0 2px 6px rgb(20 19 43 / .06);
		--gu-sh-2: 0 2px 4px rgb(20 19 43 / .06), 0 12px 24px -8px rgb(20 19 43 / .18);
		--gu-section: clamp(40px, 3.4vw + 27px, 80px);
		color-scheme: light dark;
	}
	html.gu-light { color-scheme: light; }
	/* MODO PANEL (oscuro): literales, no inversión (§2). */
	html.gu-dark {
		color-scheme: dark;
		--gu-ink: #E7E6F2;
		--gu-mute: #A7A3C4;
		--gu-paper: #12102B;
		--gu-surface: #1B1846;
		--gu-line: #2E2A5E;
		--gu-line-form: #6F6A96;
		--gu-indigo-050: #221E52;
		--gu-go-050: #10321F;
		--gu-go-800: #7DE0AC;
		--gu-link: #A99BFF;
		--gu-chassis: #1B1846;
		--gu-focus: #35D07F;
		--gu-sh-1: none;
		--gu-sh-2: none;
	}
	@media (prefers-color-scheme: dark) {
		html:not(.gu-light) {
			color-scheme: dark;
			--gu-ink: #E7E6F2;
			--gu-mute: #A7A3C4;
			--gu-paper: #12102B;
			--gu-surface: #1B1846;
			--gu-line: #2E2A5E;
			--gu-line-form: #6F6A96;
			--gu-indigo-050: #221E52;
			--gu-go-050: #10321F;
			--gu-go-800: #7DE0AC;
			--gu-link: #A99BFF;
			--gu-chassis: #1B1846;
			--gu-focus: #35D07F;
			--gu-sh-1: none;
			--gu-sh-2: none;
		}
	}
}

@layer base {
	*, *::before, *::after { box-sizing: border-box; }
	html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
	@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
	body {
		margin: 0;
		background: #FBFBFE; /* literal; el token lo re-pinta abajo */
		background: var(--gu-paper);
		color: var(--gu-ink);
		font-family: var(--gu-font);
		font-size: var(--gu-fs-body);
		line-height: 1.65;
		text-rendering: optimizeLegibility;
	}
	html.gu-dark body { background: #12102B; color: #E7E6F2; }
	@media (prefers-color-scheme: dark) { html:not(.gu-light) body { background: #12102B; color: #E7E6F2; } }
	h1, h2, h3, h4 {
		font-family: var(--gu-display);
		font-optical-sizing: auto;
		color: var(--gu-ink);
		margin: 0 0 .5em;
		text-wrap: balance;
	}
	h1 { font-size: var(--gu-fs-h1); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
	h2 { font-size: var(--gu-fs-h2); font-weight: 700; line-height: 1.18; letter-spacing: -0.015em; }
	h3 { font-size: var(--gu-fs-h3); font-weight: 700; line-height: 1.3; }
	h2 strong, h3 strong { font-weight: inherit; }
	p { margin: 0 0 1em; }
	a { color: var(--gu-link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
	a:hover { text-decoration-thickness: 2px; }
	img { max-width: 100%; height: auto; }
	em, i { font-style: normal; font-weight: 600; } /* sin itálica embarcada: prohibida la oblicua sintética */
	:focus-visible { outline: 3px solid var(--gu-focus); outline-offset: 2px; border-radius: 2px; }
	::selection { background: var(--gu-indigo-700); color: #fff; }
	.gu-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}

@layer layout {
	.gu-shell { max-width: var(--gu-shell); margin-inline: auto; padding-inline: 16px; }
	@media (min-width: 768px) { .gu-shell { padding-inline: 32px; } }
	@media (min-width: 1280px) { .gu-shell { padding-inline: 40px; } }
	@media (min-width: 1920px) { :root { --gu-shell: 1320px; } }
	.gu-main { min-height: 60vh; }
	/* contenido 720 + rail 336 */
	.gu-layout { display: grid; gap: 48px; padding-block: 8px var(--gu-section); }
	@media (min-width: 1280px) { .gu-layout { grid-template-columns: minmax(0, 1fr) var(--gu-rail-w); } }
	.gu-colmain { max-width: 720px; min-width: 0; }
	.gu-layout--narrow { grid-template-columns: minmax(0, 720px); justify-content: center; }
	.gu-rail { display: none; }
	@media (min-width: 1280px) { .gu-rail { display: block; } }
}

@layer components {

/* ---------------------------------------------------- skip + progreso */
.gu-skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--gu-surface); color: var(--gu-link); padding: 10px 16px; border-radius: var(--gu-r-btn); box-shadow: var(--gu-sh-2); }
.gu-skip:focus { left: 8px; }
.gu-progress {
	position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120;
	background: var(--gu-go-400); transform: scaleX(var(--gu-scroll, 0)); transform-origin: 0 50%;
}
@supports (animation-timeline: scroll(root)) {
	.gu-progress { animation: gu-grow linear both; animation-timeline: scroll(root); }
	@keyframes gu-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* --------------------------------------------------------- HUD (§4a) */
.gu-hud { position: sticky; top: 0; z-index: 100; background: var(--gu-chassis); border-bottom: 1px solid rgb(255 255 255 / .08); }
.gu-hud__in { max-width: var(--gu-shell); margin-inline: auto; padding-inline: 16px; min-height: 56px; display: flex; align-items: center; gap: 24px; }
@media (min-width: 768px) { .gu-hud__in { padding-inline: 32px; } }
@media (min-width: 1280px) { .gu-hud__in { padding-inline: 40px; } }
.gu-brand { font-family: var(--gu-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.gu-brand:hover { text-decoration: none; }
.gu-led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gu-go-400); flex: none; }
.gu-led--brand { width: 9px; height: 9px; box-shadow: 0 0 0 3px rgb(53 208 127 / .18); }
.gu-nav { margin-left: auto; }
.gu-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.gu-nav__list a { display: block; padding: 8px 12px; color: rgb(255 255 255 / .92); font-size: 15px; font-weight: 600; text-decoration: none; border-radius: var(--gu-r-btn); }
.gu-nav__list a:hover { background: rgb(255 255 255 / .09); }
.gu-nav__list .current-menu-item > a,
.gu-nav__list .current_page_item > a { box-shadow: inset 0 -2px 0 var(--gu-go-400); border-radius: var(--gu-r-btn) var(--gu-r-btn) 0 0; }
.gu-hud__tools { display: flex; align-items: center; gap: 4px; }
.gu-nav + .gu-hud__tools { margin-left: 0; }
.gu-tool, .gu-burger { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: rgb(255 255 255 / .92); font: 600 14px var(--gu-font); padding: 9px 10px; border-radius: var(--gu-r-btn); cursor: pointer; }
.gu-tool:hover, .gu-burger:hover { background: rgb(255 255 255 / .09); }
.gu-tool svg, .gu-burger svg { width: 18px; height: 18px; }
.gu-tool__label { display: none; }
@media (min-width: 1280px) { .gu-tool__label { display: inline; } }
.gu-burger { display: none; }
/* búsqueda desplegable */
.gu-search { background: var(--gu-chassis); border-top: 1px solid rgb(255 255 255 / .08); }
.gu-search__in { max-width: 720px; margin-inline: auto; padding: 16px; }
/* móvil: hamburguesa + panel a pantalla completa */
@media (max-width: 1023.5px) {
	.gu-burger { display: inline-flex; }
	.gu-nav { position: fixed; inset: 56px 0 0 0; background: var(--gu-chassis); padding: 24px 16px; transform: translateX(100%); visibility: hidden; transition: transform .28s cubic-bezier(.2,.7,.2,1), visibility .28s; overflow: auto; z-index: 99; margin: 0; }
	html.gu-navopen .gu-nav { transform: translateX(0); visibility: visible; }
	html.gu-navopen { overflow: hidden; }
	.gu-nav__list { flex-direction: column; gap: 0; }
	.gu-nav__list a { font-size: 22px; font-family: var(--gu-display); font-weight: 700; padding: 14px 8px; border-bottom: 1px solid rgb(255 255 255 / .08); }
	.gu-nav__list .current-menu-item > a { box-shadow: inset 4px 0 0 var(--gu-go-400); padding-left: 16px; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) { .gu-nav { transition: none; } }

/* ------------------------------------------------------- HERO (§4a) */
.gu-hero { background: var(--gu-paper); padding-block: clamp(40px, 6vw, 96px) var(--gu-section); border-bottom: 1px solid var(--gu-line); }
.gu-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1280px) { .gu-hero__grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.gu-hero__h1 { margin: 12px 0 16px; max-width: 14ch; }
.gu-hero__mark { box-shadow: inset 0 -0.16em 0 var(--gu-go-400); }
.gu-hero__lead { font-size: var(--gu-fs-lead); color: var(--gu-mute); max-width: 46ch; margin-bottom: 24px; }
.gu-hero__cta { margin: 0 0 16px; }
.gu-hero__meta { font-size: var(--gu-fs-meta); color: var(--gu-mute); font-variant-numeric: tabular-nums; margin: 0; }
/* CTA verde: tinta oscura 9.3:1, borde go-700, sweep en hover */
.gu-cta {
	position: relative; display: inline-flex; align-items: center; gap: 10px;
	background: var(--gu-go-400); color: var(--gu-cta-ink); border: 1px solid var(--gu-go-700);
	font: 700 17px/1 var(--gu-font); padding: 15px 26px; min-height: 48px; border-radius: var(--gu-r-btn);
	text-decoration: none; overflow: hidden;
}
.gu-cta:hover { text-decoration: none; }
@media (max-width: 767.5px) { .gu-hero__cta .gu-cta { width: 100%; justify-content: center; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.gu-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / .45) 50%, transparent 60%); transform: translateX(-110%); }
	.gu-cta:hover::after, .gu-cta:focus-visible::after { transition: transform .6s ease; transform: translateX(110%); }
}
/* Panel de estado (sorpresa óptima §9-27) */
.gu-panel { background: var(--gu-surface); border: 1px solid var(--gu-line); border-radius: var(--gu-r-panel); box-shadow: var(--gu-sh-2); padding: 20px 24px 8px; }
html.gu-dark .gu-panel { box-shadow: inset 0 1px 0 rgb(255 255 255 / .05); }
.gu-panel__label { margin-bottom: 4px; }
.gu-panel__list { list-style: none; margin: 0; padding: 0; }
.gu-panel__list li { display: flex; align-items: baseline; gap: 10px; padding: 13px 0; border-top: 1px solid var(--gu-line); }
.gu-panel__list li:first-child { border-top: 0; }
.gu-panel__list .gu-led { align-self: center; }
.gu-panel__list a { flex: 1; min-width: 0; color: var(--gu-ink); font-weight: 600; font-size: 15px; line-height: 1.35; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gu-panel__list a:hover { color: var(--gu-link); text-decoration: underline; }
.gu-panel__rev { color: var(--gu-mute); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --------------------------------------------------- etiquetas HUD */
.gu-hudlabel { font-family: var(--gu-font); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gu-mute); margin: 0 0 8px; }
@media (min-width: 1280px) { .gu-hudlabel { font-size: 13px; } }
.gu-hudlabel--dark { color: rgb(255 255 255 / .72); }

/* ------------------------------------------------ puertas de silo */
.gu-start, .gu-fresh { padding-block: var(--gu-section); }
.gu-fresh { padding-top: 0; content-visibility: auto; contain-intrinsic-size: auto 900px; }
.gu-h2 { margin-bottom: 24px; }
.gu-start__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gu-start__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .gu-start__grid { grid-template-columns: repeat(4, 1fr); } }
.gu-door { position: relative; background: var(--gu-surface); border: 1px solid var(--gu-line); border-radius: var(--gu-r-card); box-shadow: var(--gu-sh-1); padding: 20px; }
.gu-door__icon { display: inline-flex; width: 40px; height: 40px; color: var(--gu-indigo-700); background: var(--gu-indigo-050); border-radius: 10px; padding: 8px; }
html.gu-dark .gu-door__icon { color: var(--gu-indigo-200); }
.gu-door__icon svg { width: 100%; height: 100%; }
.gu-door__title { font-size: 19px; margin: 12px 0 6px; }
.gu-door__title a { color: var(--gu-ink); text-decoration: none; }
.gu-door__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--gu-r-card); }
.gu-door__blurb { color: var(--gu-mute); font-size: 15px; line-height: 1.5; margin: 0 0 12px; }
.gu-door__count { color: var(--gu-link); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; margin: 0; }

/* ----------------------------------------------------- tarjetas */
.gu-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .gu-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .gu-grid { grid-template-columns: repeat(3, 1fr); } }
.gu-card { position: relative; display: flex; flex-direction: column; background: var(--gu-surface); border: 1px solid var(--gu-line); border-radius: var(--gu-r-card); box-shadow: var(--gu-sh-1); overflow: hidden; }
html.gu-dark .gu-card { box-shadow: inset 0 1px 0 rgb(255 255 255 / .05); }
.gu-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--gu-indigo-050); }
.gu-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gu-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.gu-pill { align-self: flex-start; background: var(--gu-indigo-050); color: var(--gu-link); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--gu-r-chip); margin: 0; }
.gu-card__title { font-size: clamp(1.125rem, 1.08rem + 0.16vw, 1.25rem); font-stretch: 88%; line-height: 1.3; margin: 0; flex: 1; }
.gu-card__title a { color: var(--gu-ink); text-decoration: none; }
.gu-card__title a:hover { color: var(--gu-link); }
.gu-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gu-updated { display: flex; align-items: center; gap: 7px; color: var(--gu-mute); font-size: 14px; font-variant-numeric: tabular-nums; margin: 0; }
.gu-updated .gu-led { width: 6px; height: 6px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.gu-card, .gu-door { transition: transform .16s ease, box-shadow .16s ease; }
	.gu-card:hover, .gu-door:hover { transform: translateY(-2px); box-shadow: var(--gu-sh-2); }
}

/* -------------------------------------------- banda de confianza */
.gu-trust { background: var(--gu-chassis); color: #fff; padding-block: var(--gu-section); content-visibility: auto; contain-intrinsic-size: auto 480px; }
.gu-trust__grid { display: grid; gap: 32px; }
@media (min-width: 1280px) { .gu-trust__grid { grid-template-columns: 4fr 7fr; column-gap: 64px; } .gu-trust__link { grid-column: 2; } }
.gu-trust__h2 { color: #fff; margin: 0; }
.gu-trust__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.gu-trust__list li { padding-left: 20px; position: relative; color: rgb(255 255 255 / .82); line-height: 1.6; }
.gu-trust__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gu-go-400); }
.gu-trust__list strong { color: #fff; }
.gu-trust__link { margin: 0; }
.gu-trust__link a { color: #fff; font-weight: 700; }

/* ------------------------------------------------------- migas */
.gu-crumb { font-size: 14px; color: var(--gu-mute); margin-bottom: 16px; }
.gu-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.gu-crumb li + li::before { content: "›"; margin-right: 6px; color: var(--gu-line-form); }
.gu-crumb a { color: var(--gu-mute); text-decoration: none; }
.gu-crumb a:hover { color: var(--gu-link); text-decoration: underline; }
.gu-crumb [aria-current] { color: var(--gu-ink); font-weight: 600; }

/* ------------------------------------------------------ artículo */
.gu-article__head { padding-top: 32px; }
.gu-article__h1 { max-width: 720px; margin-bottom: 12px; }
/* Frase persuasiva grande (cognitiva) + H1 keyword compacto (semántico).
   El DOM mantiene h1 como título del documento; la jerarquía VISUAL la lleva la claim. */
.gu-claim {
	font-family: var(--gu-display); font-weight: 800; font-size: var(--gu-fs-h1);
	line-height: 1.08; letter-spacing: -0.02em; color: var(--gu-ink);
	max-width: 720px; margin: 0 0 14px; text-wrap: balance;
}
.gu-claim::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--gu-go-400); margin-right: 12px; vertical-align: 0.12em; }
.gu-article__h1--kw {
	font-size: clamp(1.125rem, 1.06rem + 0.25vw, 1.3125rem);
	font-weight: 700; letter-spacing: 0; line-height: 1.35;
	color: var(--gu-mute); margin: 0 0 10px;
}

/* ------------------------------------------------- mini-apps gu-app */
.gu-app { background: var(--gu-surface); border: 1px solid var(--gu-line); border-radius: var(--gu-r-panel); box-shadow: var(--gu-sh-1); padding: 22px 22px 20px; margin: 28px 0; }
html.gu-dark .gu-app { box-shadow: inset 0 1px 0 rgb(255 255 255 / .05); }
.gu-app__head { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.gu-app__head .gu-hudlabel { margin: 0; }
.gu-app__lead { font-size: 14.5px; color: var(--gu-mute); margin: 0 0 16px; }
.gu-app__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; }
.gu-app__row > label:first-child, .gu-app__lbl { font-weight: 600; font-size: 15px; color: var(--gu-ink); min-width: 150px; }
.gu-app select, .gu-app input[type="number"] {
	font: 16px var(--gu-font); color: var(--gu-ink); background: var(--gu-surface);
	border: 1px solid var(--gu-line-form); border-radius: var(--gu-r-btn); padding: 10px 12px;
}
.gu-app input[type="range"] { flex: 1; min-width: 150px; accent-color: var(--gu-indigo-700); }
html.gu-dark .gu-app input[type="range"] { accent-color: var(--gu-go-400); }
.gu-app output, .gu-app__val { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gu-ink); min-width: 84px; }
.gu-app__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.gu-app__pill {
	border: 1px solid var(--gu-line-form); border-radius: 999px; padding: 9px 15px; cursor: pointer;
	font: 600 14px var(--gu-font); background: var(--gu-surface); color: var(--gu-ink); min-height: 40px;
}
.gu-app__pill[aria-pressed="true"] { background: var(--gu-indigo-700); border-color: var(--gu-indigo-700); color: #fff; }
html.gu-dark .gu-app__pill[aria-pressed="true"] { background: var(--gu-indigo-200); border-color: var(--gu-indigo-200); color: #12102B; }
.gu-app__result { background: var(--gu-go-050); border: 1px solid var(--gu-go-500); border-radius: var(--gu-r-card); padding: 16px 18px; margin-top: 14px; }
.gu-app__result > :first-child { margin-top: 0; }
.gu-app__result > :last-child { margin-bottom: 0; }
.gu-app__big { display: block; font: 800 clamp(1.625rem, 1.4rem + 1vw, 2.25rem)/1.15 var(--gu-display); font-variant-numeric: tabular-nums; color: var(--gu-ink); margin: 2px 0 6px; }
.gu-app__result p { margin: 0 0 6px; font-size: 15px; }
.gu-app__result ol, .gu-app__result ul { margin: 6px 0 0; padding-left: 1.25em; font-size: 15px; }
.gu-app__result li { margin-bottom: 6px; }
.gu-app__note { font-size: 13.5px; color: var(--gu-mute); margin: 12px 0 0; }
.gu-app__check { list-style: none; margin: 0; padding: 0; }
.gu-app__check li { position: relative; padding: 10px 0 10px 34px; border-top: 1px solid var(--gu-line); cursor: pointer; }
.gu-app__check li:first-child { border-top: 0; }
.gu-app__check li::before { content: ""; position: absolute; left: 0; top: .85em; width: 18px; height: 18px; border: 2px solid var(--gu-line-form); border-radius: 5px; background: var(--gu-surface); }
.gu-app__check li[data-on="1"]::before { border-color: var(--gu-go-500); background: var(--gu-go-400); }
.gu-app__check li[data-on="1"]::after { content: ""; position: absolute; left: 5px; top: calc(.85em + 4px); width: 8px; height: 5px; border: 2px solid #0B1220; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.gu-app__bar { height: 8px; border-radius: 999px; background: var(--gu-indigo-050); overflow: hidden; margin: 10px 0 4px; }
.gu-app__bar i { display: block; height: 100%; background: var(--gu-go-400); border-radius: 999px; transition: width .25s ease; }
@media (prefers-reduced-motion: reduce) { .gu-app__bar i { transition: none; } }
@media (max-width: 640px) {
	.gu-app { padding: 18px 16px; }
	.gu-app__row > label:first-child, .gu-app__lbl { min-width: 100%; }
	.gu-app select { width: 100%; }
}
.gu-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--gu-mute); font-size: var(--gu-fs-meta); font-variant-numeric: tabular-nums; margin: 0 0 8px; }
.gu-byline__sep { color: var(--gu-line-form); }
.gu-byline__cat { font-weight: 700; }
.gu-prose { max-width: 720px; }
.gu-prose > p:first-of-type { font-size: var(--gu-fs-lead); line-height: 1.55; color: var(--gu-ink); }
.gu-prose h2 { margin: 1.7em 0 .6em; scroll-margin-top: 76px; }
.gu-prose h3 { margin: 1.4em 0 .5em; scroll-margin-top: 76px; }
.gu-prose ul, .gu-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; line-height: 1.6; }
.gu-prose li { margin-bottom: .4em; }
.gu-prose img { border-radius: var(--gu-r-card); margin: 8px 0; }
.gu-prose figure { margin: 24px 0; }
.gu-prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gu-indigo-700); color: var(--gu-mute); }
.gu-prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-variant-numeric: tabular-nums; margin: 24px 0; font-size: 15px; }
.gu-prose th, .gu-prose td { border: 1px solid var(--gu-line); padding: 10px 14px; text-align: left; }
.gu-prose th { background: var(--gu-indigo-050); color: var(--gu-ink); font-family: var(--gu-display); }
.gu-prose hr { border: 0; border-top: 1px solid var(--gu-line); margin: 32px 0; }
/* Neutralización del legado (§8) */
.gu-prose :where(p, span, strong, em, b, u, font, big, small, li, a)[style] { color: inherit !important; background: transparent !important; float: none !important; }
.gu-prose [style*="font-size"] { font-size: inherit !important; }

/* ------------------------------------------------------- cajas gu-* */
.gu-summary { background: var(--gu-go-050); border: 1px solid var(--gu-go-500); border-radius: var(--gu-r-card); padding: 18px 20px; margin: 0 0 24px; }
.gu-summary > :last-child { margin-bottom: 0; }
.gu-summary .gu-hudlabel { color: var(--gu-go-800); }
.gu-prose .gu-summary p { font-size: var(--gu-fs-body); color: var(--gu-ink); }
.gu-notice { background: var(--gu-indigo-050); border-left: 3px solid var(--gu-indigo-700); border-radius: 0 var(--gu-r-card) var(--gu-r-card) 0; padding: 16px 20px; margin: 24px 0; }
.gu-notice > :last-child { margin-bottom: 0; }
.gu-req { background: var(--gu-surface); border: 1px solid var(--gu-line); border-radius: var(--gu-r-card); box-shadow: var(--gu-sh-1); padding: 18px 20px; margin: 24px 0; }
.gu-req ul { list-style: none; padding: 0; margin: 0; }
.gu-req li { padding: 8px 0 8px 30px; position: relative; border-top: 1px solid var(--gu-line); }
.gu-req li:first-child { border-top: 0; }
.gu-req li::before { content: ""; position: absolute; left: 0; top: .8em; width: 16px; height: 16px; border: 2px solid var(--gu-go-500); border-radius: 4px; }
.gu-steps { counter-reset: gu-step; list-style: none; padding: 0; margin: 24px 0; }
.gu-steps > li { counter-increment: gu-step; position: relative; padding: 0 0 24px 56px; }
.gu-steps > li::before { content: counter(gu-step); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; display: grid; place-items: center; font: 800 22px var(--gu-display); font-variant-numeric: tabular-nums; color: var(--gu-link); background: var(--gu-indigo-050); border-radius: 50%; }
.gu-steps > li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--gu-line); }
.gu-steps > li:last-child::after { display: none; }
.gu-steps h3 { margin-top: 0; }
.gu-cost table { display: table; }
.gu-sources { margin: 32px 0 0; padding: 18px 20px; background: var(--gu-surface); border: 1px solid var(--gu-line); border-radius: var(--gu-r-card); }
.gu-sources ol { margin: 0; padding-left: 1.2em; font-size: 15px; }
.gu-faq h3 { margin-top: 1.2em; }

/* --------------------------------------------------------- TOC */
.gu-toc--inline { background: var(--gu-indigo-050); border-radius: var(--gu-r-card); padding: 4px 20px 4px; margin: 0 0 28px; }
.gu-toc--inline summary { cursor: pointer; font: 700 15px var(--gu-font); color: var(--gu-link); padding: 12px 0; list-style-position: outside; }
.gu-toc--inline[open] summary { border-bottom: 1px solid rgb(59 46 156 / .15); margin-bottom: 8px; }
@media (min-width: 1280px) { .gu-toc--inline { display: none; } }
.gu-toc__list { list-style: none; counter-reset: toc; margin: 0; padding: 4px 0 12px; }
.gu-toc__list li { counter-increment: toc; margin: 0; }
.gu-toc__list a { display: block; padding: 7px 10px; font-size: 15px; line-height: 1.4; color: var(--gu-link); text-decoration: none; border-left: 2px solid transparent; border-radius: 0 var(--gu-r-btn) var(--gu-r-btn) 0; }
.gu-toc__list a::before { content: counter(toc) " · "; color: var(--gu-mute); font-variant-numeric: tabular-nums; }
.gu-toc__list a:hover { background: rgb(59 46 156 / .07); }
.gu-toc--rail { background: var(--gu-indigo-050); border-radius: var(--gu-r-card); padding: 16px 12px 8px 16px; margin-bottom: 24px; }
.gu-toc--rail .gu-hudlabel { padding-left: 10px; }
.gu-toc--rail .gu-toc__list a.is-active { border-left-color: var(--gu-indigo-700); background: rgb(59 46 156 / .08); font-weight: 700; }
html.gu-dark .gu-toc--rail .gu-toc__list a.is-active { border-left-color: var(--gu-indigo-200); background: rgb(169 155 255 / .12); }

/* --------------------------------------------------------- rail */
.gu-rail__box { position: sticky; top: 76px; background: var(--gu-surface); border: 1px solid var(--gu-line); border-radius: var(--gu-r-card); box-shadow: var(--gu-sh-1); padding: 16px 18px; }
.gu-toc--rail + .gu-rail__box { position: static; }
.gu-rail__list { list-style: none; margin: 0; padding: 0; }
.gu-rail__item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--gu-line); }
.gu-rail__item:first-child { border-top: 0; }
.gu-rail__thumb { flex: none; width: 64px; height: 48px; border-radius: var(--gu-r-btn); overflow: hidden; background: var(--gu-indigo-050); }
.gu-rail__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gu-rail__item a { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--gu-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gu-rail__item a:hover { color: var(--gu-link); text-decoration: underline; }
.gu-rail__all { margin: 12px 0 0; font-size: 14px; }
.gu-rail__all a { font-weight: 700; }

/* -------------------------------------------------------- autor */
.gu-author { margin: 40px 0 0; padding: 18px 20px; border: 1px solid var(--gu-line); border-left: 3px solid var(--gu-indigo-700); border-radius: var(--gu-r-card); background: var(--gu-surface); font-size: 15px; }
.gu-author p:last-child { margin: 0; }

/* ------------------------------------------- siguiente paso (verde) */
.gu-next { margin: 32px 0 0; background: var(--gu-go-400); border: 1px solid var(--gu-go-700); border-radius: var(--gu-r-card); padding: 20px 24px; }
.gu-next__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gu-go-800); margin: 0 0 6px; }
html.gu-dark .gu-next__label { color: #075A2E; }
.gu-next__link { display: inline-block; font: 700 clamp(1.125rem, 1.06rem + 0.3vw, 1.375rem)/1.3 var(--gu-display); color: var(--gu-cta-ink); text-decoration: none; }
.gu-next__link:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.gu-relwrap { margin-top: 48px; content-visibility: auto; contain-intrinsic-size: auto 460px; }
@media (min-width: 1280px) { .gu-grid--rel { grid-template-columns: repeat(3, 1fr); } }
/* mini-barra fija en móvil (Fitts: aparece con compromiso de lectura) */
.gu-nextbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; background: var(--gu-go-400); border: 1px solid var(--gu-go-700); border-radius: var(--gu-r-card); box-shadow: var(--gu-sh-2); padding: 12px 16px; transform: translateY(140%); }
.gu-nextbar a { display: block; font: 700 15px/1.3 var(--gu-font); color: var(--gu-cta-ink); text-decoration: none; }
.gu-nextbar.is-on { transform: translateY(0); }
@media (min-width: 768px) { .gu-nextbar { display: none; } }
@media (prefers-reduced-motion: no-preference) { .gu-nextbar { transition: transform .3s cubic-bezier(.2,.7,.2,1); } }

/* ----------------------------------------------------- archivos */
.gu-archead { padding-top: 32px; border-bottom: 1px solid var(--gu-line); padding-bottom: 28px; background: var(--gu-paper); }
.gu-archead__h1 { margin-bottom: 10px; }
.gu-count { display: flex; align-items: center; gap: 8px; color: var(--gu-mute); font-size: var(--gu-fs-meta); font-variant-numeric: tabular-nums; margin: 0 0 12px; }
.gu-archead__lead { max-width: 66ch; font-size: var(--gu-fs-lead); line-height: 1.55; color: var(--gu-mute); margin: 0; }
.gu-arcbody { padding-block: 40px var(--gu-section); }
.gu-arcbody .gu-next--arch { max-width: 720px; }
.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nav-links .page-numbers { display: inline-block; min-width: 44px; text-align: center; padding: 10px 14px; border: 1px solid var(--gu-line); border-radius: var(--gu-r-btn); color: var(--gu-link); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.nav-links .page-numbers.current { background: var(--gu-indigo-700); border-color: var(--gu-indigo-700); color: #fff; }
.nav-links .page-numbers:hover:not(.current) { background: var(--gu-indigo-050); }

/* ------------------------------------------------------ 404/empty */
.gu-404 { padding-block: var(--gu-section); }
.gu-404__h1 { max-width: 20ch; }
.gu-404__lead { max-width: 56ch; color: var(--gu-mute); font-size: var(--gu-fs-lead); }
.gu-404__search { max-width: 560px; margin: 24px 0 40px; }
.gu-404__doors { margin-bottom: var(--gu-section); }
.gu-empty > p { max-width: 56ch; }

/* ------------------------------------------------------ buscador */
.gu-sform { display: flex; gap: 8px; }
.gu-sform__input { flex: 1; min-width: 0; font: 16px var(--gu-font); color: var(--gu-ink); background: var(--gu-surface); border: 1px solid var(--gu-line-form); border-radius: var(--gu-r-btn); padding: 12px 14px; }
.gu-sform__input::placeholder { color: var(--gu-mute); }
.gu-sform__btn { font: 700 15px var(--gu-font); color: #fff; background: var(--gu-indigo-700); border: 0; border-radius: var(--gu-r-btn); padding: 12px 20px; cursor: pointer; }
.gu-sform__btn:hover { background: var(--gu-indigo-800); }
html.gu-dark .gu-sform__btn { background: var(--gu-indigo-200); color: #12102B; }

/* ---------------------------------------------- formularios (CF7) */
.gu-prose input[type="text"], .gu-prose input[type="email"], .gu-prose input[type="url"], .gu-prose textarea {
	width: 100%; font: 16px var(--gu-font); color: var(--gu-ink); background: var(--gu-surface);
	border: 1px solid var(--gu-line-form); border-radius: var(--gu-r-btn); padding: 12px 14px; margin: 4px 0 8px;
}
.gu-prose .wpcf7-submit { font: 700 16px var(--gu-font); color: var(--gu-cta-ink); background: var(--gu-go-400); border: 1px solid var(--gu-go-700); border-radius: var(--gu-r-btn); padding: 14px 26px; cursor: pointer; }
.gu-prose .wpcf7-not-valid-tip { color: var(--gu-error); font-size: 14px; }
.gu-prose .wpcf7-response-output { border-radius: var(--gu-r-btn); padding: 12px 16px; margin: 16px 0 0; border-color: var(--gu-indigo-700); }

/* --------------------------------------------------------- footer */
.gu-foot { background: var(--gu-chassis); color: rgb(255 255 255 / .85); margin-top: 0; content-visibility: auto; contain-intrinsic-size: auto 420px; }
.gu-foot__grid { max-width: var(--gu-shell); margin-inline: auto; padding: 56px 16px 40px; display: grid; gap: 32px; }
@media (min-width: 768px) { .gu-foot__grid { grid-template-columns: 1fr 1fr; padding-inline: 32px; } }
@media (min-width: 1280px) { .gu-foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-inline: 40px; } }
.gu-brand--foot { font-size: 20px; margin: 0 0 10px; color: #fff; }
.gu-foot__claim { font-size: 15px; line-height: 1.6; color: rgb(255 255 255 / .72); max-width: 34ch; margin: 0; }
.gu-foot__col .gu-hudlabel { color: rgb(255 255 255 / .55); }
.gu-foot__col ul { list-style: none; margin: 0; padding: 0; }
.gu-foot__col li { margin: 0 0 8px; }
.gu-foot__col a { color: rgb(255 255 255 / .85); text-decoration: none; font-size: 15px; }
.gu-foot__col a:hover { color: #fff; text-decoration: underline; }
.gu-foot__base { border-top: 1px solid rgb(255 255 255 / .12); }
.gu-foot__base p { max-width: var(--gu-shell); margin-inline: auto; padding: 18px 16px; font-size: 13.5px; color: rgb(255 255 255 / .62); }
@media (min-width: 768px) { .gu-foot__base p { padding-inline: 32px; } }
@media (min-width: 1280px) { .gu-foot__base p { padding-inline: 40px; } }

} /* fin components */

@layer utilities {
	/* Reveal (efecto 1): SOLO con animaciones permitidas y JS armado */
	@media (prefers-reduced-motion: no-preference) {
		html.gu-anim [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .32s cubic-bezier(.2,.7,.2,1), transform .32s cubic-bezier(.2,.7,.2,1); }
		html.gu-anim [data-reveal].is-in { opacity: 1; transform: none; }
		/* LED: pulso de 2 ciclos */
		.gu-panel .gu-led, .gu-byline .gu-led { animation: gu-pulse 2.4s ease-in-out 2; }
		@keyframes gu-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
		@view-transition { navigation: auto; }
	}
	@media (prefers-reduced-motion: reduce) {
		*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	}
}
