/* ==========================================================================
   Manafast Media 1.6.0: capa de estilos añadida sobre theme.css.
   Orden: 1 titulares unificados, 2 header futurista neón (sin barra CTA fija),
   3 footer, 4 neón capítulo 1, 5 hologramas, 6 páginas nuevas (Legión,
   Industrias), 7 capítulo 7 (Proceso).
   ========================================================================== */

/* ---------- 1. Eyebrow, título y subtítulo unificados ----------
   Misma alineación (izquierda), mismos anchos máximos y mismo espaciado en
   capítulos de portada, cabeceras de página, Legión e Industrias. */
:root {
	--mf-eyebrow-gap: .75rem;
	--mf-title-gap: 1rem;
	--mf-text-max: 60ch;
	--mf-title-max: 18ch;
}
.chapter__copy,
.section__heading,
.section-head,
.service-archive__header,
.page-hero__inner,
.contact-page__header {
	text-align: left;
}
.chapter__copy .eyebrow,
.section__heading .eyebrow,
.section-head .eyebrow,
.service-archive__header .eyebrow,
.page-hero .eyebrow {
	margin: 0 0 var(--mf-eyebrow-gap);
}
.chapter__copy h2,
.section__heading h2,
.section-head h2,
.chaos-copy h2 {
	margin: 0 0 var(--mf-title-gap);
	max-width: var(--mf-title-max);
	text-wrap: balance;
}
.service-archive__header h1,
.page-hero h1,
.contact-page__header h1 {
	margin: 0 0 var(--mf-title-gap);
	max-width: 20ch;
	text-wrap: balance;
}
.chapter__copy p:not(.eyebrow),
.section__heading p:not(.eyebrow),
.section-head p:not(.eyebrow),
.service-archive__header p:not(.eyebrow),
.page-hero__text {
	margin: 0 0 1.25rem;
	max-width: var(--mf-text-max);
}
.chapter__copy,
.section__heading,
.section-head {
	max-width: 720px;
}
.section-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head h2 { color: var(--color-ink); font-size: clamp(2.1rem, 4vw, 3.6rem); font-weight: 530; line-height: 1.05; }
.section-head p:not(.eyebrow) { color: var(--color-muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.section-head .eyebrow { color: #69e6db; }

/* Cabeceras internas con el mismo ancho de contenedor que los capítulos */
.service-archive__header,
.contact-page__header {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: var(--container);
	padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 3vw, 2.5rem);
}
.service-archive__header { max-width: var(--container); }
.service-archive__header > *,
.contact-page__header > * { max-width: var(--mf-text-max); }
.service-archive__header > h1,
.contact-page__header > h1 { max-width: 20ch; }

@media (max-width: 900px) {
	:root { --mf-title-max: 16ch; }
	.chaos-copy h2 { max-width: 16ch; }
}
@media (max-width: 560px) {
	:root { --mf-eyebrow-gap: .6rem; --mf-title-max: 100%; }
	.page-hero h1, .service-archive__header h1, .contact-page__header h1 { max-width: 100%; }
}

/* ---------- 2. Header futurista con neón (sin barra CTA fija) ---------- */
:root {
	--mf-neon: #19f0dc;
	--mf-neon-soft: rgba(25, 240, 220, .55);
	--mf-violet: #8a5cff;
	--mf-ink: #05060c;
	--mf-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.site-header {
	-webkit-backdrop-filter: blur(18px) saturate(1.5);
	backdrop-filter: blur(18px) saturate(1.5);
	background: linear-gradient(180deg, rgba(6, 5, 13, .92), rgba(6, 5, 13, .74));
	border-bottom: 0;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
	z-index: 50;
}
/* Líneas de proyección muy tenues */
.site-header::before {
	background: repeating-linear-gradient(0deg, rgba(25, 240, 220, .035) 0 1px, transparent 1px 3px);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}
/* Borde neón inferior con haz de luz que recorre el header (lento y continuo) */
.site-header::after {
	animation: mf-edge 12s linear infinite;
	background: linear-gradient(90deg, rgba(25, 240, 220, .18), var(--mf-neon), var(--mf-violet), var(--mf-neon), rgba(25, 240, 220, .18)) 0 0 / 200% 100% repeat-x;
	bottom: -1px;
	box-shadow: 0 0 10px var(--mf-neon-soft), 0 0 26px rgba(138, 92, 255, .35);
	content: "";
	height: 2px;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
}
@keyframes mf-edge { to { background-position: 200% 0; } }

.site-header__inner {
	gap: 1rem;
	max-width: min(1480px, calc(100vw - 40px));
	min-height: 74px;
}
.site-branding { flex: none; }
.site-branding__fallback {
	align-items: center;
	color: #fff;
	display: inline-flex;
	font-family: var(--mf-mono);
	font-size: .86rem;
	gap: .6rem;
	letter-spacing: .2em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}
.site-branding__fallback img { filter: drop-shadow(0 0 8px rgba(25, 240, 220, .65)); }
.site-branding__fallback span { font-weight: 700; }

/* Navegación de escritorio */
.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav .site-nav__list {
	align-items: center;
	counter-reset: mfnav;
	display: flex;
	flex-wrap: nowrap;
	gap: .1rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav__item { align-items: center; counter-increment: mfnav; display: flex; position: relative; }
.site-nav__link {
	align-items: center;
	border-radius: 8px;
	color: #cdeaf0;
	display: inline-flex;
	font: 600 .7rem/1 var(--mf-mono);
	letter-spacing: .12em;
	padding: .65rem .62rem;
	position: relative;
	text-decoration: none;
	text-transform: uppercase;
	transition: color .25s ease, text-shadow .25s ease, background .25s ease;
	white-space: nowrap;
}
.site-nav__link::after {
	background: linear-gradient(90deg, var(--mf-neon), var(--mf-violet));
	border-radius: 2px;
	bottom: .22rem;
	box-shadow: 0 0 10px var(--mf-neon);
	content: "";
	height: 2px;
	left: .62rem;
	position: absolute;
	right: .62rem;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__item.current-menu-item > .site-nav__link {
	background: radial-gradient(120% 140% at 50% 120%, rgba(25, 240, 220, .16), transparent 70%);
	color: #eafffc;
	text-shadow: 0 0 12px rgba(25, 240, 220, .85);
}
.site-nav__link:hover::after,
.site-nav__link:focus-visible::after,
.site-nav__item.current-menu-item > .site-nav__link::after { transform: scaleX(1); }

/* Flecha del submenú */
.site-nav__sub-toggle {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	color: #7ffcf0;
	cursor: pointer;
	display: inline-flex;
	height: 30px;
	justify-content: center;
	margin-left: -.5rem;
	padding: 0;
	width: 22px;
}
.site-nav__sub-toggle span {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	filter: drop-shadow(0 0 4px currentColor);
	height: 6px;
	transform: rotate(45deg) translate(-1px, -1px);
	transition: transform .3s ease;
	width: 6px;
}
.site-nav__item.is-sub-open > .site-nav__sub-toggle span { transform: rotate(225deg) translate(-1px, -1px); }

/* Submenú de Servicios: panel de cristal con neón, cerrado por defecto */
.site-nav .site-nav__list li > .sub-menu {
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	background: linear-gradient(160deg, rgba(14, 12, 26, .97), rgba(6, 5, 13, .97));
	border: 1px solid rgba(25, 240, 220, .38);
	border-radius: 14px;
	box-shadow: 0 0 0 1px rgba(138, 92, 255, .12), 0 20px 60px rgba(0, 0, 0, .6), 0 0 36px rgba(25, 240, 220, .16);
	display: grid;
	gap: .1rem;
	left: -.5rem;
	list-style: none;
	margin: 0;
	max-height: min(72vh, 560px);
	min-width: 290px;
	opacity: 0;
	overflow-y: auto;
	padding: .6rem;
	pointer-events: none;
	position: absolute;
	top: calc(100% + 12px);
	transform: translateY(8px) scale(.985);
	transform-origin: 20% 0;
	transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s;
	visibility: hidden;
	z-index: 70;
}
.site-nav .sub-menu .site-nav__link {
	display: flex;
	font-size: .76rem;
	letter-spacing: .05em;
	padding: .7rem .85rem .7rem 1rem;
	text-transform: none;
	width: 100%;
}
.site-nav .sub-menu .site-nav__link::after {
	bottom: 22%;
	height: auto;
	left: 0;
	right: auto;
	top: 22%;
	transform: scaleY(0);
	width: 2px;
}
.site-nav .sub-menu .site-nav__link:hover::after,
.site-nav .sub-menu .site-nav__link:focus-visible::after { transform: scaleY(1); }
.site-nav .sub-menu .menu-item--all .site-nav__link {
	border-top: 1px solid rgba(25, 240, 220, .2);
	border-radius: 0 0 8px 8px;
	color: var(--mf-neon);
	margin-top: .3rem;
}

/* Botones del header */
.site-header__cta { align-items: center; display: flex; flex: none; gap: .6rem; }
.header-cta {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font: 700 .7rem/1 var(--mf-mono);
	justify-content: center;
	letter-spacing: .14em;
	min-height: 40px;
	padding: .5rem 1.2rem;
	text-decoration: none;
	text-transform: uppercase;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease, color .25s ease;
	white-space: nowrap;
}
.header-cta--contact {
	background: linear-gradient(120deg, var(--mf-neon), #7be3ff 55%, var(--mf-violet));
	border: 0;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset, 0 0 20px rgba(25, 240, 220, .45);
	color: var(--mf-ink);
}
.header-cta--contact:hover,
.header-cta--contact:focus-visible {
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 0 32px rgba(25, 240, 220, .75), 0 0 60px rgba(138, 92, 255, .35);
	color: var(--mf-ink);
	transform: translateY(-1px);
}
.header-cta--call {
	background: rgba(25, 240, 220, .05);
	border: 1px solid rgba(25, 240, 220, .45);
	color: #aef9f1;
}
.header-cta--call:hover,
.header-cta--call:focus-visible { border-color: var(--mf-neon); box-shadow: 0 0 18px rgba(25, 240, 220, .4); color: #fff; }
.site-nav__item--cta { display: none; }
@media (max-width: 1400px) { .site-header__cta .header-cta--call { display: none; } }

/* Escritorio: el submenú se abre con cursor, foco o la flecha */
@media (min-width: 1181px) {
	.site-nav .site-nav__list li.menu-item-has-children::after {
		content: "";
		height: 14px;
		left: 0;
		position: absolute;
		right: 0;
		top: 100%;
	}
	.site-nav .site-nav__list li.menu-item-has-children:hover > .sub-menu,
	.site-nav .site-nav__list li.menu-item-has-children:focus-within > .sub-menu,
	.site-nav .site-nav__list li.menu-item-has-children.is-sub-open > .sub-menu {
		opacity: 1;
		pointer-events: auto;
		transform: none;
		transition-delay: 0s;
		visibility: visible;
	}
	.site-nav .site-nav__list li.menu-item-has-children:hover > .site-nav__sub-toggle span { transform: rotate(225deg) translate(-1px, -1px); }
	.site-nav .sub-menu .site-nav__link:hover { background: linear-gradient(90deg, rgba(25, 240, 220, .14), transparent); }
}
@media (min-width: 1181px) and (max-width: 1360px) {
	.site-nav__link { font-size: .66rem; letter-spacing: .08em; padding: .65rem .45rem; }
	.site-nav__link::after { left: .45rem; right: .45rem; }
	.header-cta { padding-inline: .95rem; }
}
@media (min-width: 1181px) and (max-width: 1260px) {
	.site-branding__fallback span { display: none; }
}

/* Móvil y tablet: panel holográfico que se despliega, con el menú completo */
.site-nav-toggle { display: none; }
@media (max-width: 1180px) {
	html.nav-open { overflow: hidden; }
	.site-header__cta { display: none; }
	.site-nav-toggle {
		align-items: center;
		background: rgba(25, 240, 220, .07);
		border: 1px solid rgba(25, 240, 220, .5);
		border-radius: 12px;
		box-shadow: 0 0 18px rgba(25, 240, 220, .25), inset 0 0 12px rgba(25, 240, 220, .12);
		color: #7ffcf0;
		display: inline-flex;
		height: 46px;
		justify-content: center;
		margin-left: auto;
		width: 46px;
	}
	.site-nav-toggle__bar,
	.site-nav-toggle__bar::before,
	.site-nav-toggle__bar::after { box-shadow: 0 0 8px currentColor; transition: transform .3s ease, background .3s ease, top .3s ease; }
	.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar { background: transparent; box-shadow: none; }
	.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
	.site-nav-toggle[aria-expanded="true"] .site-nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

	.site-nav {
		-webkit-backdrop-filter: blur(20px);
		backdrop-filter: blur(20px);
		background: radial-gradient(120% 60% at 80% 0%, rgba(138, 92, 255, .18), transparent 60%), radial-gradient(100% 50% at 0% 100%, rgba(25, 240, 220, .12), transparent 60%), rgba(5, 4, 12, .97);
		border-bottom: 1px solid rgba(25, 240, 220, .4);
		border-top: 0;
		box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(25, 240, 220, .12);
		display: none;
		left: 0;
		max-height: calc(100vh - var(--mana-header-h, 70px));
		max-height: calc(100dvh - var(--mana-header-h, 70px));
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: .4rem 20px 2rem;
		position: absolute;
		right: 0;
		top: 100%;
	}
	.site-nav.is-open { animation: mf-drawer .45s cubic-bezier(.2, .8, .2, 1) backwards; display: block; }
	.site-nav .site-nav__list { align-items: stretch; flex-direction: column; gap: 0; justify-content: flex-start; margin: 0 auto; max-width: 720px; }
	.site-nav__item {
		border-bottom: 1px solid rgba(25, 240, 220, .13);
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.site-nav.is-open .site-nav__item { animation: mf-item .5s cubic-bezier(.2, .8, .2, 1) backwards; }
	.site-nav.is-open .site-nav__item:nth-child(2) { animation-delay: .04s; }
	.site-nav.is-open .site-nav__item:nth-child(3) { animation-delay: .08s; }
	.site-nav.is-open .site-nav__item:nth-child(4) { animation-delay: .12s; }
	.site-nav.is-open .site-nav__item:nth-child(5) { animation-delay: .16s; }
	.site-nav.is-open .site-nav__item:nth-child(6) { animation-delay: .2s; }
	.site-nav.is-open .site-nav__item:nth-child(7) { animation-delay: .24s; }
	.site-nav.is-open .site-nav__item:nth-child(8) { animation-delay: .28s; }
	.site-nav.is-open .site-nav__item:nth-child(9) { animation-delay: .32s; }
	.site-nav.is-open .site-nav__item:nth-child(10) { animation-delay: .36s; }
	.site-nav__link { border-radius: 0; font-size: .84rem; letter-spacing: .14em; padding: 1.05rem .2rem; }
	.site-nav__link::before {
		color: var(--mf-neon);
		content: counter(mfnav, decimal-leading-zero);
		font-size: .62rem;
		margin-right: .95rem;
		opacity: .85;
	}
	.site-nav__link::after { display: none; }
	.site-nav__link:hover,
	.site-nav__link:focus-visible,
	.site-nav__item.current-menu-item > .site-nav__link { background: linear-gradient(90deg, rgba(25, 240, 220, .12), transparent 70%); }
	.site-nav__sub-toggle { border-left: 1px solid rgba(25, 240, 220, .16); height: 100%; margin: 0; min-height: 48px; width: 52px; }
	.site-nav .site-nav__list li > .sub-menu {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: transparent;
		border: 0;
		border-left: 1px solid rgba(25, 240, 220, .35);
		border-radius: 0;
		box-shadow: none;
		display: none;
		grid-column: 1 / -1;
		margin: 0 0 .8rem .35rem;
		max-height: none;
		min-width: 0;
		opacity: 1;
		overflow: visible;
		padding: .1rem 0 .1rem .6rem;
		pointer-events: auto;
		position: static;
		transform: none;
		transition: none;
		visibility: visible;
	}
	.site-nav .site-nav__list li.is-sub-open > .sub-menu { animation: mf-item .35s ease-out backwards; display: grid; }
	.site-nav .sub-menu .site-nav__link { font-size: .8rem; padding: .8rem .5rem; }
	.site-nav .sub-menu .site-nav__link::before { content: "›"; font-size: .9rem; margin-right: .6rem; }
	.site-nav .sub-menu .menu-item--all .site-nav__link { border-radius: 0; border-top: 0; margin-top: 0; }
	.site-nav__item--cta { border: 0; display: flex; flex-wrap: wrap; gap: .7rem; padding: 1.4rem 0 0; }
	.site-nav__item--cta .header-cta { flex: 1 1 150px; min-height: 48px; }
}
@keyframes mf-drawer {
	from { clip-path: inset(0 0 100% 0); opacity: 0; }
	to { clip-path: inset(0 0 0 0); opacity: 1; }
}
@keyframes mf-item {
	from { filter: blur(6px); opacity: 0; translate: -14px 0; }
	to { filter: blur(0); opacity: 1; translate: 0 0; }
}

.contact-page__call { margin: 1rem 0 0; }
.contact-page__call .button { width: auto; }

/* ---------- 3. Footer en columnas ---------- */
.site-footer { padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; }
.site-footer__inner { display: block; }
.site-footer__grid {
	display: grid;
	gap: 2rem clamp(1.5rem, 3vw, 3rem);
	grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
}
.site-footer__col { min-width: 0; }
.site-footer__brand p { color: #b1acba; margin: .8rem 0 1.2rem; max-width: 34ch; }
.site-footer__cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.site-footer__title { color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .14em; margin: 0 0 .9rem; text-transform: uppercase; }
.site-footer__title--spaced { margin-top: 1.6rem; }
.site-footer__col ul, .site-footer__legal ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin: 0 0 .5rem; }
.site-footer__col a { color: #c9c4d4; font-size: .95rem; text-decoration: none; }
.site-footer__col a:hover, .site-footer__col a:focus-visible { color: #72e9de; text-decoration: underline; }
.site-footer__brand .button { color: #07100f; }
.site-footer__brand .button--secondary { color: #f5f2fa; }
.site-footer__widgets { border-top: 1px solid rgba(255, 255, 255, .09); margin-top: 2rem; padding-top: 1.5rem; }
.site-footer__legal {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, .09);
	display: flex;
	flex-wrap: wrap;
	gap: .6rem 1.5rem;
	justify-content: space-between;
	margin-top: 2.2rem;
	padding-top: 1.2rem;
}
.site-footer__legal p { color: #8f8a9b; font-size: .85rem; margin: 0; }
.site-footer__legal ul { display: flex; gap: 1.2rem; }
.site-footer__legal a { color: #b1acba; font-size: .85rem; text-decoration: none; }
.site-footer__legal a:hover { color: #72e9de; }
@media (max-width: 1100px) {
	.site-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__legal { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 4. Capítulo 1: neón que se dibuja por el borde ---------- */
.neon-border {
	fill: none;
	height: calc(100% + 2px);
	inset: -1px;
	overflow: visible;
	pointer-events: none;
	position: absolute;
	width: calc(100% + 2px);
	z-index: 2;
}
.neon-border rect { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.neon-border__glow { filter: blur(5px); stroke: rgba(54, 242, 222, .6); stroke-dasharray: 1 1; stroke-dashoffset: 0; stroke-width: 7; }
.neon-border__line { filter: drop-shadow(0 0 3px rgba(54, 242, 222, .9)); stroke: #6ff7e8; stroke-dasharray: 1 1; stroke-dashoffset: 0; stroke-width: 2; }
.neon-border__tip { filter: drop-shadow(0 0 6px #7ffcf0) drop-shadow(0 0 14px #35f2de); opacity: 0; stroke: #eafffb; stroke-dasharray: .035 1.3; stroke-dashoffset: 0; stroke-width: 3.5; }

/* Con movimiento activo el borde sólo lo da el neón; el resplandor crece con --neon (0 a 1). */
.chapter--chaos.chaos-motion .chaos-node,
.chapter--chaos.chaos-motion .chaos-node.is-active {
	border-color: rgba(255, 255, 255, .12);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .4), 0 0 calc(34px * var(--neon, 0)) rgba(37, 242, 221, calc(.24 * var(--neon, 0)));
}
.chapter--chaos.chaos-motion .chaos-node.is-lit { border-color: rgba(54, 242, 222, .22); }
@media (max-width: 900px) {
	.chapter--chaos.chaos-motion .chaos-node:not(.is-active) { opacity: .8; }
	.chaos-stage::after { transition: height .12s linear; }
}
@media (prefers-reduced-motion: reduce) {
	.neon-border__tip { display: none; }
}

/* ---------- 5. Hologramas: proyección suave, sin parpadeo ----------
   Las tarjetas y bloques se "materializan" una sola vez: un haz de luz las
   revela de arriba hacia abajo mientras se enfocan. Sin pasos bruscos
   (nada de flicker/glitch) y sin tocar `transform`, para no chocar con GSAP,
   el tilt de las tarjetas ni la órbita del capítulo 2. */
.motion-ready :is(.reveal, .holo-card, [data-fx]):not(.is-visible) { opacity: 0; }
.motion-ready .reveal { transition: border-color .35s ease, box-shadow .35s ease, background-color .6s ease; }
/* theme.css movía los .reveal con transform; ahora solo cuenta la animación */
.motion-ready .reveal:not(.is-visible) { transform: none; }

/* Texto y bloques: aparecen enfocándose, con un destello cian que se apaga */
.motion-ready .reveal.is-visible:not(.holo-card):not(.is-instant) {
	animation: mf-holo-text 1s cubic-bezier(.2, .8, .2, 1) backwards;
	animation-delay: calc(var(--mf-d, 0) * 1ms);
}
@keyframes mf-holo-text {
	0% { filter: blur(9px) saturate(1.6); opacity: 0; text-shadow: 0 0 22px rgba(25, 240, 220, .9); translate: 0 18px; }
	60% { filter: blur(1.5px) saturate(1.2); opacity: 1; }
	100% { filter: blur(0) saturate(1); opacity: 1; text-shadow: none; translate: 0 0; }
}

/* Tarjetas: rim neón permanente + proyección holográfica de entrada */
.holo-card {
	border-color: rgba(25, 240, 220, .3);
	box-shadow: 0 0 0 1px rgba(25, 240, 220, .06), 0 0 28px rgba(25, 240, 220, .1), 0 18px 50px rgba(0, 0, 0, .25);
	transition: border-color .35s ease, box-shadow .35s ease, background-color .6s ease;
}
.holo-card:hover {
	border-color: rgba(25, 240, 220, .75);
	box-shadow: 0 0 0 1px rgba(25, 240, 220, .2), 0 0 40px rgba(25, 240, 220, .28), 0 0 80px rgba(138, 92, 255, .14), 0 22px 54px rgba(0, 0, 0, .3);
}
/* Líneas de proyección fijas y casi invisibles */
.holo-card::before {
	background: repeating-linear-gradient(0deg, rgba(25, 240, 220, .05) 0 1px, transparent 1px 3px);
	border-radius: inherit;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 2;
}
/* Haz de luz de la entrada (invisible fuera de la animación) */
.holo-card::after {
	background: linear-gradient(90deg, transparent, #b8fff8 15%, #fff 50%, #b8fff8 85%, transparent);
	border-radius: 2px;
	box-shadow: 0 0 14px 2px rgba(25, 240, 220, .9), 0 0 40px 6px rgba(25, 240, 220, .45);
	content: "";
	height: 2px;
	left: -1px;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	right: -1px;
	top: 0;
	z-index: 6;
}
.motion-ready .holo-card.is-visible:not(.is-instant) {
	animation: mf-holo-card 1.05s cubic-bezier(.3, .1, .2, 1) backwards;
	animation-delay: calc(var(--mf-d, 0) * 1ms);
}
.motion-ready .holo-card.is-visible:not(.is-instant)::after {
	animation: mf-holo-beam 1.05s cubic-bezier(.45, .05, .25, 1) backwards;
	animation-delay: calc(var(--mf-d, 0) * 1ms);
}
@keyframes mf-holo-card {
	0% { clip-path: inset(-40px -40px 100% -40px); filter: blur(8px) saturate(1.8) brightness(1.2); opacity: 0; scale: .965; translate: 0 22px; }
	55% { clip-path: inset(-40px -40px -40px -40px); filter: blur(1.5px) saturate(1.35) brightness(1.1); opacity: 1; }
	100% { clip-path: inset(-40px -40px -40px -40px); filter: blur(0) saturate(1) brightness(1); opacity: 1; scale: 1; translate: 0 0; }
}
@keyframes mf-holo-beam {
	0% { opacity: 0; top: 0; }
	8% { opacity: 1; }
	86% { opacity: 1; }
	100% { opacity: 0; top: calc(100% - 2px); }
}

/* Cambios de estado que antes saltaban al hacer scroll ahora se funden */
.chaos-node, .automation-node, .system-module, .service-scene {
	transition: opacity .6s ease, filter .6s ease, border-color .5s ease, box-shadow .5s ease, background-color .6s ease;
}

/* Escenas de servicios en móvil: misma entrada suave */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
	html.mobile-scroll-ready [data-mobile-scroll] {
		filter: blur(6px);
		opacity: 0;
		transform: translate3d(0, 18px, 0);
		transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1), filter .8s ease;
	}
	html.mobile-scroll-ready [data-mobile-scroll].is-in-view { filter: blur(0); opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.holo-card::after { display: none; }
	.motion-ready .holo-card, .motion-ready .reveal { animation: none !important; }
}

/* ---------- 6. La Legión e Industrias ---------- */
.page-hero {
	background: radial-gradient(ellipse at 78% 20%, rgba(7, 186, 169, .16), transparent 42%), radial-gradient(ellipse at 15% 90%, rgba(115, 35, 167, .14), transparent 40%), #0b0911;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.page-hero__inner { margin: 0 auto; max-width: var(--container); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 540; line-height: 1.03; }
.page-hero .eyebrow { color: #69e6db; }
.page-hero__text { color: var(--color-muted); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.page-hero__actions { align-items: center; display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }

.legion-page .chapter, .industry-archive .chapter, .industry-single .chapter { background: #0b0911; padding-block: clamp(3rem, 6vw, 5.5rem); }
.legion-squad-grid, .legion-auditor-grid, .industry-grid { display: grid; gap: 1.1rem; }
.legion-squad-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.legion-auditor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.industry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.squad-card, .auditor-card, .industry-card {
	background: rgba(20, 17, 30, .85);
	border: 1px solid rgba(54, 242, 222, .22);
	border-radius: 18px;
	box-shadow: 0 0 30px rgba(37, 242, 221, .06);
	padding: 1.4rem;
}
.squad-card__role { color: #69e6db; font-size: .72rem; font-weight: 800; letter-spacing: .15em; margin: 0 0 .5rem; text-transform: uppercase; }
.squad-card h3, .auditor-card h3, .industry-card h2 { color: #fff; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 .5rem; }
.industry-card h2 a { color: inherit; text-decoration: none; }
.squad-card__text, .auditor-card p, .industry-card p { color: var(--color-muted); font-size: .98rem; margin: 0 0 1rem; }
.squad-card__bots { list-style: none; margin: 0; padding: 0; }
.squad-card__bots li { border-top: 1px solid rgba(255, 255, 255, .08); padding: .7rem 0; }
.squad-card__bots strong { color: #eafffb; display: block; font-size: .95rem; font-weight: 600; }
.squad-card__bots span { color: #a8a3b3; display: block; font-size: .88rem; line-height: 1.4; }
.industry-card__link { color: #72e9de; font-size: .92rem; font-weight: 700; }
.legion-packages .package-grid { margin-top: 0; }
.legion-packages .package-card { color: #f3f2f5; }
.legion-packages .package-card p, .legion-packages .package-card li { color: #c9c4d4; }
@media (max-width: 980px) {
	.legion-squad-grid, .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.legion-auditor-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.legion-squad-grid, .industry-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 7. Capítulo 7 (Proceso): holograma oscuro + arreglo del solape en móvil ----------
   Causa del solape: el JS antiguo ponía position:relative a las tarjetas y
   las reglas .roadmap-step--N les sumaban top:260px, 40px, 210px y 38px. */
.chapter--process {
	background: radial-gradient(ellipse at 15% 0%, rgba(138, 92, 255, .2), transparent 50%), radial-gradient(ellipse at 95% 100%, rgba(25, 240, 220, .14), transparent 50%), #07060d;
	color: #e9f6f8;
}
.chapter--process h2 { color: #fff; }
.chapter--process .chapter__copy p:not(.eyebrow) { color: #aab6c0; }
.chapter--process .eyebrow { color: #69e6db; }
.chapter--process .process-roadmap__path path {
	filter: drop-shadow(0 0 6px #19f0dc) drop-shadow(0 0 16px rgba(25, 240, 220, .6));
	stroke: #19f0dc;
	stroke-width: 4;
}
.chapter--process .roadmap-step {
	background: linear-gradient(150deg, rgba(20, 26, 40, .9), rgba(9, 9, 20, .92));
	border: 1px solid rgba(25, 240, 220, .38);
	box-sizing: border-box;
	color: #e9f6f8;
}
.chapter--process .roadmap-step h3 { color: #fff; }
.chapter--process .roadmap-step p { color: #b3bfc9; }
.chapter--process .roadmap-step span {
	background: rgba(25, 240, 220, .12);
	border: 1px solid rgba(25, 240, 220, .6);
	border-radius: 10px;
	box-shadow: 0 0 14px rgba(25, 240, 220, .35);
	color: #7ffcf0;
	display: inline-grid;
	font-family: var(--mf-mono);
	height: 2.2rem;
	min-width: 2.2rem;
	place-items: center;
}

/* Tablet y móvil: las 4 tarjetas fluyen una debajo de otra (sin posiciones absolutas) */
@media (max-width: 1100px) {
	.chapter--process .process-roadmap {
		display: grid;
		gap: 1rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		min-height: 0;
	}
	.chapter--process .process-roadmap__path { display: none; }
	.chapter--process .roadmap-step,
	.chapter--process .roadmap-step--1,
	.chapter--process .roadmap-step--2,
	.chapter--process .roadmap-step--3,
	.chapter--process .roadmap-step--4 {
		bottom: auto;
		left: auto;
		max-width: none;
		position: relative;
		right: auto;
		top: auto;
		width: auto;
	}
}
@media (max-width: 640px) {
	.chapter--process .process-roadmap { grid-template-columns: minmax(0, 1fr); }
}