/* ══════════════════════════════════════════════════════════════════
  SISTEMA DE DISEÑO
  ══════════════════════════════════════════════════════════════════ */
:root {
	/* — Marca / azul corporativo (confianza, autoridad) — */
	--brand-900: oklch(0.26 0.07 250); /* ink azul, headers profundos */
	--brand-700: oklch(0.36 0.095 249);
	--brand-600: oklch(0.44 0.11 248); /* primary */
	--brand-500: oklch(0.54 0.115 247);
	--brand-100: oklch(0.93 0.028 250); /* fondos suaves */
	--brand-050: oklch(0.965 0.014 250);

	/* — Acción (ámbar/cobre, ÚNICO acento cálido, reservado a CTAs) — */
	--action-600: oklch(0.62 0.145 62);
	--action-500: oklch(0.7 0.15 65);
	--action-100: oklch(0.94 0.045 72);

	/* — Neutros tibios tipo papel (evita el gris "tech" muerto) — */
	--paper: oklch(0.985 0.006 85); /* fondo base */
	--paper-2: oklch(0.965 0.007 82); /* superficie elevada */
	--ink-900: oklch(0.24 0.02 255); /* texto principal */
	--ink-700: oklch(0.4 0.018 255); /* texto secundario */
	--ink-500: oklch(0.55 0.014 255); /* metadatos */
	--line: oklch(0.9 0.01 255); /* bordes */
	--line-strong: oklch(0.83 0.014 255);

	/* — Semánticos — */
	--ok: oklch(0.62 0.13 155);
	--warn: oklch(0.72 0.15 75);
	--danger: oklch(0.58 0.19 27);

	/* — Tipografía — */
	--font-display: "Archivo", system-ui, sans-serif;
	--font-body: "IBM Plex Sans", system-ui, sans-serif;
	--step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
	--step-0: 1rem;
	--step-1: 1.333rem;
	--step-2: clamp(1.6rem, 1.4rem + 1vw, 1.9rem);
	--step-3: clamp(2.1rem, 1.7rem + 2vw, 2.9rem);
	--step-4: clamp(2.8rem, 2.1rem + 3.4vw, 4.3rem);

	/* — Ritmo espacial (base 4pt) — */
	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-6: 24px;
	--sp-8: 32px;
	--sp-12: 48px;
	--sp-16: 64px;
	--sp-24: 96px;

	/* — Radios / sombras (Soft UI, sutiles) — */
	--r-sm: 8px;
	--r-md: 14px;
	--r-lg: 22px;
	--r-xl: 32px;
	--shadow-sm: 0 1px 2px oklch(0.3 0.05 250 / 0.06);
	--shadow-md: 0 6px 20px -8px oklch(0.3 0.05 250 / 0.18);
	--shadow-lg: 0 24px 60px -24px oklch(0.28 0.06 250 / 0.32);

	/* — Curvas de easing (aprox. de springs Framer con cubic-bezier) — */
	--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--dur-fast: 160ms;
	--dur: 320ms;
	--dur-slow: 620ms;
}

/* ══════════════════════════════════════════════════════════════════
   BASE
   ══════════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 80px;
}
html:has(.switcher) {
	scroll-padding-top: 132px;
}
body {
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	color: var(--ink-900);
	background: var(--paper);
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
	font-family: var(--font-display);
	line-height: 1.05;
	text-wrap: balance;
	letter-spacing: -0.02em;
}
p {
	text-wrap: pretty;
}
a {
	color: inherit;
	text-decoration: none;
}
img {
	display: block;
	max-width: 100%;
}
button,
a {
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}
.wrap {
	width: min(1200px, 92vw);
	margin-inline: auto;
}
:focus-visible {
	outline: 3px solid var(--brand-500);
	outline-offset: 3px;
	border-radius: 4px;
}

/* — Eyebrow / etiquetas técnicas — */
.eyebrow {
	font-family: var(--font-display);
	font-size: var(--step--1);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--brand-600);
}

/* ══════════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════════ */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: oklch(0.985 0.006 85 / 0.97);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.nav__inner {
	display: flex;
	align-items: center;
	gap: var(--sp-8);
	height: 72px;
}
.brand {
	display: flex;
	align-items: baseline;
	gap: var(--sp-2);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	color: var(--brand-900);
}
.brand span {
	color: var(--brand-600);
	font-weight: 600;
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
.nav__links {
	display: flex;
	gap: var(--sp-6);
	margin-left: auto;
}
.nav__links a {
	font-size: 0.94rem;
	color: var(--ink-700);
	font-weight: 500;
	padding: var(--sp-2) 0;
	position: relative;
	transition: color var(--dur-fast) var(--ease-out-quint);
}
.nav__links a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	height: 2px;
	width: 100%;
	background: var(--brand-600);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dur) var(--ease-out-expo);
}
.nav__links a:hover {
	color: var(--brand-900);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after {
	transform: scaleX(1);
}
.nav__links a[aria-current="page"] {
	color: var(--brand-900);
	font-weight: 700;
}
.nav__links a[aria-current="page"]::after {
	transform: scaleX(1);
}
.nav__phone {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--brand-900);
	font-size: 0.94rem;
}
.nav__phone i {
	color: var(--brand-600);
}
.nav__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 15px;
	border-radius: var(--r-sm);
	background: var(--brand-900);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.86rem;
	transition:
		transform var(--dur-fast) var(--ease-out-quint),
		background var(--dur-fast);
}
.nav__cta:hover {
	background: var(--brand-600);
	transform: translateY(-1px);
}
.nav__cta[aria-current="page"] {
	background: var(--brand-600);
}
.skip-link {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 200;
	transform: translateY(-160%);
	padding: 10px 14px;
	border-radius: var(--r-sm);
	background: var(--brand-900);
	color: #fff;
	font-weight: 700;
	transition: transform var(--dur-fast);
}
.skip-link:focus {
	transform: translateY(0);
}

/* — Hamburguesa + menú móvil (antes: .nav__toggle era un stub sin usar
   y .nav__links simplemente desaparecía en pantallas chicas, sin
   ningún reemplazo: navegar el sitio en el celular era imposible) — */
.nav__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 38px;
	height: 38px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	margin-left: var(--sp-2);
}
.nav__burger span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--brand-900);
	border-radius: 2px;
	transition:
		transform var(--dur) var(--ease-out-quint),
		opacity var(--dur-fast);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}
.nav__burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 100;
	visibility: hidden;
	pointer-events: none;
}
.mobile-menu.is-open {
	visibility: visible;
	pointer-events: auto;
}
.mobile-menu__backdrop {
	position: absolute;
	inset: 0;
	background: oklch(0.2 0.045 255 / 0.45);
	opacity: 0;
	transition: opacity var(--dur) var(--ease-out-quint);
}
.mobile-menu.is-open .mobile-menu__backdrop {
	opacity: 1;
}
.mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(320px, 84vw);
	background: var(--paper);
	box-shadow: var(--shadow-lg);
	display: flex;
	flex-direction: column;
	padding: var(--sp-6);
	transform: translateX(100%);
	transition: transform var(--dur-slow) var(--ease-out-expo);
}
.mobile-menu.is-open .mobile-menu__panel {
	transform: translateX(0);
}
.mobile-menu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: var(--sp-4);
	margin-bottom: var(--sp-2);
	border-bottom: 1px solid var(--line);
}
.mobile-menu__head .brand {
	font-size: 1.05rem;
}
.mobile-menu__close {
	background: none;
	border: none;
	color: var(--ink-700);
	cursor: pointer;
	padding: 6px;
	border-radius: 100px;
	transition: background var(--dur-fast);
}
.mobile-menu__close:hover {
	background: var(--brand-050);
	color: var(--brand-600);
}
.mobile-menu__links {
	display: flex;
	flex-direction: column;
}
.mobile-menu__links a {
	padding: var(--sp-4) 0;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.12rem;
	color: var(--brand-900);
	transition:
		color var(--dur-fast),
		padding-left var(--dur-fast);
}
.mobile-menu__links a:hover {
	color: var(--brand-600);
	padding-left: var(--sp-2);
}
.mobile-menu__cta {
	margin-top: auto;
	justify-content: center;
}

@media (max-width: 960px) {
	.nav__burger {
		display: flex;
	}
	.nav__cta {
		display: none;
	}
}
@media (min-width: 961px) {
	.mobile-menu {
		display: none;
	}
}

/* ══════════════════════════════════════════════════════════════════
   HERO
   Fondo con glow sutil rastreado por puntero (--mx / --my)
   → extracción de la lógica matemática del spotlight-card a Vanilla JS
   ══════════════════════════════════════════════════════════════════ */
.hero {
	position: relative;
	padding: var(--sp-24) 0 var(--sp-16);
	overflow: hidden;
	background:
		radial-gradient(
			42rem 42rem at var(--mx, 78%) var(--my, 8%),
			var(--brand-100),
			transparent 60%
		),
		linear-gradient(180deg, var(--paper), var(--paper));
}
.hero::after {
	/* v4 · barrido de radar — muy tenue, gira detrás de la red de nodos.
     Metáfora literal (radar/detección) coherente con el resto del hero. */
	content: "";
	position: absolute;
	z-index: -1;
	pointer-events: none;
	width: 110rem;
	height: 110rem;
	left: calc(80% - 55rem);
	top: -55rem;
	border-radius: 50%;
	background: conic-gradient(
		from 0deg at 50% 50%,
		transparent 0deg,
		var(--brand-600) 30deg,
		transparent 52deg,
		transparent 360deg
	);
	opacity: 0.08;
	animation: barrido-radar 18s linear infinite;
}
@keyframes barrido-radar {
	to {
		transform: rotate(360deg);
	}
}
@media (prefers-reduced-motion: reduce) {
	.hero::after {
		animation: none;
		opacity: 0.04;
	}
}

/* — Titular que se arma palabra por palabra (dividirTitular en script.js) — */
.titular-mask {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
}
.titular-palabra {
	display: inline-block;
	transform: translateY(115%);
	animation: palabra-sube 760ms var(--ease-out-expo) forwards;
	animation-delay: var(--pd, 0ms);
}
@keyframes palabra-sube {
	to {
		transform: translateY(0);
	}
}
.hero__net {
	/* v3 · reemplaza la retícula estática por un canvas de red de nodos
     (JS en script.js). Reutiliza el mismo --par que ya calculaba el
     parallax para la retícula anterior, en vez de dejarlo huérfano. */
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	transform: translate3d(0, var(--par, 0px), 0);
	opacity: 0.7;
}
.hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
	gap: var(--sp-16);
	align-items: center;
}

/* — Columna de texto — */
.hero__copy {
	max-width: 34rem;
}
.hero h1 {
	font-size: var(--step-4);
	font-weight: 800;
	color: var(--brand-900);
	margin: var(--sp-4) 0 var(--sp-6);
}
.hero h1 em {
	font-style: normal;
	color: var(--brand-600);
}
.hero__lead {
	font-size: var(--step-1);
	line-height: 1.45;
	color: var(--ink-700);
	max-width: 38ch;
}
.hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-top: var(--sp-8);
}
.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.98rem;
	padding: var(--sp-4) var(--sp-6);
	border-radius: var(--r-sm);
	cursor: pointer;
	border: 1px solid transparent;
	transition:
		transform var(--dur-fast) var(--ease-out-quint),
		background var(--dur-fast),
		box-shadow var(--dur);
}
.btn--action {
	background: var(--action-600);
	color: oklch(0.99 0.01 80);
	box-shadow: var(--shadow-md);
	position: relative;
	overflow: hidden;
}
.btn--action::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 55%;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		transparent,
		oklch(1 0 0 / 0.28),
		transparent
	);
	transform: translateX(-140%) skewX(-16deg);
}
.btn--action:hover::before,
.btn--action:focus-visible::before {
	animation: brillo-cta 700ms var(--ease-out-quint);
}
@keyframes brillo-cta {
	to {
		transform: translateX(320%) skewX(-16deg);
	}
}
@media (prefers-reduced-motion: reduce) {
	.btn--action::before {
		display: none;
	}
}
.btn--action:hover {
	background: var(--action-500);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}
.btn--ghost {
	background: transparent;
	color: var(--brand-900);
	border-color: var(--line-strong);
}
.btn--ghost:hover {
	border-color: var(--brand-600);
	color: var(--brand-600);
	transform: translateY(-2px);
}
/* v2 · estados active/focus del botón + flecha del CTA */
.btn:active {
	transform: translateY(0) scale(0.985);
	transition-duration: 80ms;
}
.btn:focus-visible {
	transform: translateY(-2px);
}
.btn i {
	transition: transform var(--dur) var(--ease-out-expo);
}
.btn--action:hover i,
.btn--action:focus-visible i {
	transform: translateX(3px);
}

/* — Barra de señales de confianza — */
.trust {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-6);
	margin-top: var(--sp-12);
	padding-top: var(--sp-6);
	border-top: 1px solid var(--line);
}
.trust__item {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
}
.trust__item i {
	color: var(--brand-600);
	flex: none;
}
.trust__k {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.4rem;
	color: var(--brand-900);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.trust__l {
	font-size: 0.82rem;
	color: var(--ink-500);
	line-height: 1.2;
}

/* — Panel "monitoreo en vivo" bajo el acordeón — ejemplo ilustrativo del
   tipo de panel que recibe un cliente, no telemetría real de Umbrella TSG.
   v3.1 · antes flotaba superpuesto sobre el acordeón (bug: con paneles tan
   angostos, tapaba 3-4 de ellos); ahora vive en flujo normal, debajo. */
.hero__visual {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
}
.ops-widget {
	width: 100%;
	background: oklch(0.99 0.006 85 / 0.88);
	backdrop-filter: blur(14px);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: var(--sp-4);
	box-shadow: var(--shadow-md);
}
.ops-widget__head {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	margin-bottom: var(--sp-3);
	padding-bottom: var(--sp-3);
	border-bottom: 1px solid var(--line);
}
.ops-widget__live {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 0.66rem;
	letter-spacing: 0.09em;
	color: var(--ok);
}
.ops-widget__title {
	font-size: 0.72rem;
	color: var(--ink-500);
	margin-left: auto;
	text-align: right;
}
.ops-widget__rows {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-8);
}
.ops-widget__rows li {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	font-size: 0.82rem;
	color: var(--ink-700);
}
.ops-widget__rows b {
	margin-left: 6px;
	font-family: var(--font-display);
	font-variant-numeric: tabular-nums;
	color: var(--brand-900);
}
.ops-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex: none;
}
.ops-dot--ok {
	background: var(--ok);
	box-shadow: 0 0 0 0 oklch(0.62 0.13 155 / 0.55);
	animation: ops-pulse 2.2s infinite;
}
.ops-dot--warn {
	background: var(--action-500);
}
@keyframes ops-pulse {
	0% {
		box-shadow: 0 0 0 0 oklch(0.62 0.13 155 / 0.55);
	}
	70% {
		box-shadow: 0 0 0 7px oklch(0.62 0.13 155 / 0);
	}
	100% {
		box-shadow: 0 0 0 0 oklch(0.62 0.13 155 / 0);
	}
}
@media (max-width: 560px) {
	.ops-widget__rows {
		flex-direction: column;
	}
}

/* ══════════════════════════════════════════════════════════════════
   ACORDEÓN DE IMÁGENES  (interactive-image-accordion transpilado)
   React useState(activeIndex) → clase .is-active vía Vanilla JS
   transición de anchura con cubic-bezier (aprox. del spring 700ms)
   ══════════════════════════════════════════════════════════════════ */
.accordion {
	display: flex;
	gap: var(--sp-3);
	height: clamp(360px, 46vw, 470px);
	padding: var(--sp-2);
}
.acc-item {
	position: relative;
	flex: 1 1 0; /* inactivo: reparte espacio */
	min-width: 56px;
	border-radius: var(--r-lg);
	overflow: hidden;
	cursor: pointer;
	isolation: isolate;
	box-shadow: var(--shadow-md);
	transition:
		flex-grow var(--dur-slow) var(--ease-out-expo),
		box-shadow var(--dur) var(--ease-out-quint);
}
.acc-item.is-active {
	flex-grow: 6;
	box-shadow: var(--shadow-lg);
}
.acc-item img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.05);
	transition: transform var(--dur-slow) var(--ease-out-expo);
}
.acc-item.is-active img {
	transform: scale(1);
}
/* v2 · pista de zoom al pasar sobre paneles colapsados */
.acc-item:not(.is-active):hover img,
.acc-item:not(.is-active):focus-visible img {
	transform: scale(1.1);
}
.acc-item::after {
	/* velo para contraste WCAG del texto */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		200deg,
		oklch(0.26 0.07 250 / 0.15) 15%,
		oklch(0.18 0.05 255 / 0.72) 88%
	);
}
.acc-cap {
	position: absolute;
	z-index: 2;
	left: 0;
	bottom: 0;
	width: 100%;
	padding: var(--sp-6);
	color: oklch(0.99 0.01 250);
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.acc-num {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	opacity: 0.85;
}
.acc-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.18rem;
	line-height: 1.15;
	white-space: nowrap;
}
.acc-desc {
	font-size: 0.9rem;
	line-height: 1.4;
	max-width: 34ch;
	opacity: 0;
	transform: translateY(8px);
	transition:
		opacity var(--dur) var(--ease-out-quint) 120ms,
		transform var(--dur) var(--ease-out-expo) 120ms;
}
.acc-item.is-active .acc-desc {
	opacity: 0.92;
	transform: none;
}
/* v2 · línea de barrido sobre el panel activo — eco visual del propio
   producto (video vigilancia / detección), no decoración gratuita */
.acc-item.is-active::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	z-index: 2;
	top: -2px;
	pointer-events: none;
	mix-blend-mode: screen;
	background: linear-gradient(
		90deg,
		transparent,
		oklch(0.88 0.09 200 / 0.55),
		transparent
	);
	animation: scan-sweep 3400ms var(--ease-in-out) infinite;
}
@keyframes scan-sweep {
	0% {
		top: -2px;
		opacity: 0;
	}
	10% {
		opacity: 0.85;
	}
	50% {
		top: 100%;
		opacity: 0.4;
	}
	92% {
		opacity: 0;
	}
	100% {
		top: 100%;
		opacity: 0;
	}
}
/* rótulo vertical cuando está colapsado */
.acc-item:not(.is-active) .acc-cap {
	transform: rotate(180deg);
	writing-mode: vertical-rl;
	padding: var(--sp-4);
	width: auto;
	bottom: 0;
	left: 0;
}
.acc-item:not(.is-active) .acc-title {
	font-size: 1rem;
}

/* ── REVEAL v2 · animación (no transición) para no pisar los estados
   hover de las tarjetas; stagger con tope asignado por JS (--reveal-delay) */
.reveal {
	opacity: 0;
}
.reveal.in {
	opacity: 1;
	animation: reveal-in var(--dur-slow) var(--ease-out-expo) backwards;
	animation-delay: var(--reveal-delay, 0ms);
}
@keyframes reveal-in {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
}

/* ══════════════════════════════════════════════════════════════════
   TIRA DE CLIENTES (prueba social real)
   ══════════════════════════════════════════════════════════════════ */
.clients {
	margin-top: var(--sp-16);
}
.clients__label {
	text-align: center;
	color: var(--ink-500);
	font-size: 0.86rem;
	letter-spacing: 0.02em;
	margin-bottom: var(--sp-8);
}
.clients__row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--sp-6) var(--sp-12);
}
.client-chip {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.02rem;
	color: var(--ink-500);
	letter-spacing: -0.01em;
	white-space: nowrap;
	transition: color var(--dur-fast) var(--ease-out-quint);
}
.client-chip:hover {
	color: var(--brand-700);
}

/* — Marquee continuo de clientes (reemplaza la fila estática) — */
.clients__marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(
		90deg,
		transparent,
		#000 8%,
		#000 92%,
		transparent
	);
	mask-image: linear-gradient(
		90deg,
		transparent,
		#000 8%,
		#000 92%,
		transparent
	);
}
.clients__track {
	display: flex;
	align-items: center;
	width: max-content;
	gap: var(--sp-12);
	animation: marquee-scroll 34s linear infinite;
}
.clients__marquee:hover .clients__track {
	animation-play-state: paused;
}
@keyframes marquee-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* — Pie de página real (antes anidado sin estilos dentro de un <p>) — */
.site-footer {
	border-top: 1px solid var(--line);
	padding: var(--sp-6) 0;
	margin-top: var(--sp-8);
}
.site-footer__inner {
	text-align: center;
}
.site-footer p {
	color: var(--ink-500);
	font-size: 0.84rem;
}

/* ══════════════════════════════════════════════════════════════════
   FOOTER v4 — franja de contacto + "acerca de + mapa" + franja de
   marca con redes. Inspirado en el pie del sitio actual en vivo, pero
   en la paleta de la marca en vez de negro puro.
   ══════════════════════════════════════════════════════════════════ */
.footer-contact-bar {
	background: var(--brand-900);
	color: oklch(0.9 0.02 250);
}
.footer-contact-bar__inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sp-6);
	padding: var(--sp-6) 0;
}
.footer-contact-bar__item {
	display: flex;
	gap: var(--sp-3);
	align-items: flex-start;
}
.footer-contact-bar__item i {
	color: var(--action-500);
	flex: none;
	margin-top: 2px;
}
.footer-contact-bar__item b {
	display: block;
	font-family: var(--font-display);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: oklch(0.7 0.03 250);
	font-weight: 600;
	margin-bottom: 2px;
}
.footer-contact-bar__item span,
.footer-contact-bar__item a {
	color: #fff;
	font-size: 0.94rem;
	line-height: 1.35;
}
.footer-contact-bar__item a:hover {
	color: var(--action-500);
}
@media (max-width: 820px) {
	.footer-contact-bar__inner {
		grid-template-columns: 1fr;
		gap: var(--sp-4);
		padding: var(--sp-6) 0;
	}
}

.footer-main {
	background: var(--brand-900);
	padding-bottom: var(--sp-12);
}
.footer-main__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-12);
	padding: var(--sp-12) 0 var(--sp-8);
	border-top: 1px solid oklch(1 0 0 / 0.08);
}
.footer-main__label {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--action-500);
	margin-bottom: var(--sp-4);
}
.footer-main__brand {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.6rem;
	color: #fff;
	margin-bottom: var(--sp-4);
	letter-spacing: -0.01em;
}
.footer-main__brand span {
	color: var(--action-500);
}
.footer-main__text {
	color: oklch(0.78 0.02 250);
	font-size: 0.96rem;
	line-height: 1.6;
	max-width: 40ch;
}
.footer-main__map {
	border-radius: var(--r-md);
	overflow: hidden;
	aspect-ratio: 16/10;
	border: 1px solid oklch(1 0 0 / 0.1);
}
.footer-main__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(0.15) contrast(1.05);
}
@media (max-width: 820px) {
	.footer-main__grid {
		grid-template-columns: 1fr;
		gap: var(--sp-8);
	}
}
.footer-main .clients__label {
	color: oklch(0.7 0.03 250);
}
.footer-main .client-chip {
	color: oklch(0.85 0.02 250);
}
.footer-main .client-chip:hover {
	color: var(--action-500);
}
.footer-main .clients__marquee {
	-webkit-mask-image: linear-gradient(
		90deg,
		transparent,
		#000 8%,
		#000 92%,
		transparent
	);
	mask-image: linear-gradient(
		90deg,
		transparent,
		#000 8%,
		#000 92%,
		transparent
	);
}

.site-footer--band {
	background: var(--brand-600);
	border-top: none;
	margin-top: 0;
	padding: var(--sp-4) 0;
}
.site-footer--band .site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--sp-3);
}
.site-footer--band p {
	color: oklch(0.94 0.02 250);
	font-size: 0.84rem;
}
.site-footer__social {
	display: flex;
	gap: var(--sp-2);
}
.site-footer__social a {
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 100px;
	background: oklch(1 0 0 / 0.14);
	color: #fff;
	transition: background var(--dur-fast) var(--ease-out-quint);
}
.site-footer__social a:hover {
	background: oklch(1 0 0 / 0.26);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE  (redisñado, no encogido)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
	.nav__links {
		display: none;
	}
	.nav__inner {
		gap: var(--sp-3);
	}
	.nav__phone {
		margin-left: auto;
	}
	.nav__burger {
		margin-left: 0;
	}
	.hero__grid {
		grid-template-columns: 1fr;
		gap: var(--sp-12);
	}
	.hero {
		padding-top: var(--sp-16);
	}
	.hero__copy {
		max-width: none;
	}
}
@media (max-width: 620px) {
	/* El acordeón horizontal no funciona con el pulgar: se vuelve pila vertical */
	.accordion {
		flex-direction: column;
		height: auto;
		gap: var(--sp-3);
	}
	.acc-item {
		flex: none;
		height: 120px;
	}
	.acc-item.is-active {
		height: 230px;
	}
	.acc-item:not(.is-active) .acc-cap {
		writing-mode: horizontal-tb;
		transform: none;
		padding: var(--sp-4);
	}
	.acc-item:not(.is-active) .acc-title {
		font-size: 1.05rem;
	}
	.nav__phone span {
		display: none;
	}
}
/* ── Entrada de página y transición entre documentos ──
   Solo opacity/transform · crossfade nativo (progressive enhancement) */
@keyframes page-enter {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
}
body {
	animation: page-enter 480ms var(--ease-out-quint) backwards;
}
@view-transition {
	navigation: auto;
}

/* Sombra del nav al hacer scroll (opacity, sin animar box-shadow) */
.nav::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: var(--shadow-md);
	opacity: 0;
	transition: opacity var(--dur) var(--ease-out-quint);
}
.nav.is-scrolled::after {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	* {
		transition-duration: 0.01ms !important;
		animation: none !important;
	}
	.reveal {
		opacity: 1;
		transform: none;
	}
	.hero__net {
		display: none;
		transform: none;
	}
	.clients__marquee {
		mask-image: none;
		-webkit-mask-image: none;
	}
	.clients__track {
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
		transform: none;
	}
	.clients__track [aria-hidden="true"] {
		display: none;
	}
	.svc-hero__media img {
		transform: none;
	}
	.ops-dot--ok {
		box-shadow: none;
	}
	.spot::before,
	.spot::after {
		display: none;
	}
	.sec-hero__glow {
		transform: none;
	}
}

/* ══════════════════════════════════════════════════════════════════
   PÁGINA "CONTACTO" — antes vivía duplicado en un <style> inline con
   su propio :root; se retira de aquí porque ya comparte el de arriba.
   ══════════════════════════════════════════════════════════════════ */
.head {
	padding: var(--sp-16) 0 var(--sp-8);
}
.head h1 {
	font-size: var(--step-4);
	color: var(--brand-900);
	font-weight: 800;
	margin: var(--sp-3) 0 var(--sp-4);
	max-width: 18ch;
}
.head p {
	font-size: var(--step-1);
	line-height: 1.5;
	color: var(--ink-700);
	max-width: 52ch;
}

.grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: var(--sp-16);
	padding-bottom: var(--sp-24);
	align-items: start;
}
@media (max-width: 880px) {
	.grid {
		grid-template-columns: 1fr;
		gap: var(--sp-12);
	}
}

.form {
	display: flex;
	flex-direction: column;
	gap: var(--sp-6);
}
.field {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}
.field label {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--brand-900);
}
.field label .req {
	color: var(--danger);
}
.field input,
.field select,
.field textarea {
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--ink-900);
	padding: var(--sp-3) var(--sp-4);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	background: var(--paper);
	transition:
		border-color var(--dur-fast),
		box-shadow var(--dur-fast);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--brand-600);
	box-shadow: 0 0 0 3px oklch(0.54 0.115 247 / 0.18);
}
.field textarea {
	resize: vertical;
	min-height: 120px;
}
.field.two {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-4);
}
.field.two > div {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
}
@media (max-width: 520px) {
	.field.two {
		grid-template-columns: 1fr;
	}
}
.field .err {
	font-size: 0.82rem;
	color: var(--danger);
	display: none;
}
.invalid input,
.invalid select,
.invalid textarea {
	border-color: var(--danger);
	animation: sacudida-suave 220ms var(--ease-out-quint);
}
.invalid .err {
	display: block;
}
@keyframes sacudida-suave {
	20% {
		transform: translateX(-3px);
	}
	60% {
		transform: translateX(3px);
	}
}
.form__note {
	font-size: 0.84rem;
	color: var(--ink-500);
}

.success {
	display: none;
	text-align: center;
	padding: var(--sp-16) var(--sp-8);
	background: var(--brand-050);
	border: 1px solid var(--brand-100);
	border-radius: var(--r-lg);
	animation: success-in 480ms var(--ease-out-expo);
}
@keyframes success-in {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.99);
	}
}
.success i {
	color: var(--ok);
}
.success h2,
.success h3 {
	font-size: var(--step-2);
	color: var(--brand-900);
	margin: var(--sp-4) 0 var(--sp-2);
}
.success p {
	color: var(--ink-700);
	max-width: 44ch;
	margin-inline: auto;
}
.success__action {
	margin-top: var(--sp-6);
}

.aside {
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
}
.channel {
	display: flex;
	gap: var(--sp-4);
	padding: var(--sp-6);
	border-radius: var(--r-md);
	background: var(--paper-2);
	border: 1px solid var(--line);
	transition:
		transform var(--dur) var(--ease-out-quint),
		box-shadow var(--dur);
}
.channel:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}
.channel i {
	color: var(--brand-600);
	flex: none;
	margin-top: 2px;
}
.channel h2,
.channel h4 {
	font-size: 1rem;
	color: var(--brand-900);
	margin-bottom: 2px;
}
.channel a,
.channel p {
	color: var(--ink-700);
	font-size: 0.95rem;
}
.channel a:hover {
	color: var(--brand-600);
}
.aside__map {
	border-radius: var(--r-md);
	overflow: hidden;
	border: 1px solid var(--line);
	aspect-ratio: 16/10;
	background: var(--brand-900);
	position: relative;
}
.aside__map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	filter: grayscale(0.2) contrast(1.05);
}
/* ══════════════════════════════════════════════════════════════════
   PÁGINA "NOSOTROS" — antes vivía duplicado en un <style> inline.
   Se renombra su .head a .about-head porque contacto.html ya usa
   .head para un bloque distinto (evita que dos páginas compartiendo
   style.css se pisen el mismo nombre de clase con reglas diferentes).
   ══════════════════════════════════════════════════════════════════ */
.about-head {
	padding: var(--sp-16) 0 var(--sp-12);
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: var(--sp-16);
	align-items: center;
}
.about-head h1 {
	font-size: var(--step-4);
	color: var(--brand-900);
	font-weight: 800;
	margin: var(--sp-3) 0 var(--sp-4);
}
.about-head p {
	font-size: var(--step-1);
	line-height: 1.5;
	color: var(--ink-700);
	max-width: 48ch;
}
.about-head__aside {
	background: var(--brand-900);
	border-radius: var(--r-lg);
	padding: var(--sp-8);
	color: oklch(0.9 0.02 250);
}
.about-head__aside h2,
.about-head__aside h3 {
	color: #fff;
	font-size: 1.15rem;
	margin-bottom: var(--sp-4);
}
.about-head__aside ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: var(--sp-3);
}
.about-head__aside li {
	display: flex;
	gap: var(--sp-3);
	align-items: flex-start;
	font-size: 0.95rem;
}
.about-head__aside i {
	color: var(--action-500);
	flex: none;
	margin-top: 2px;
}
@media (max-width: 820px) {
	.about-head {
		grid-template-columns: 1fr;
		gap: var(--sp-8);
	}
}

.metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--sp-8);
}
.metric b {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 2.6rem;
	color: var(--brand-900);
	line-height: 1;
	display: block;
	font-variant-numeric: tabular-nums;
}
.metric span {
	color: var(--ink-700);
	font-size: 0.94rem;
}

.steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--sp-8) var(--sp-12);
	counter-reset: step;
}
.step {
	counter-increment: step;
	padding-top: var(--sp-6);
	border-top: 2px solid var(--brand-100);
}
.step::before {
	content: "0" counter(step);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.3rem;
	color: var(--brand-600);
}
.step h3,
.step h4 {
	font-size: 1.1rem;
	color: var(--brand-900);
	margin: var(--sp-2) 0 6px;
}
.step p {
	color: var(--ink-700);
	font-size: 0.95rem;
	line-height: 1.55;
}

.values {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--sp-4);
}
.value {
	display: flex;
	gap: var(--sp-4);
	padding: var(--sp-4) 0;
	border-bottom: 1px solid var(--line);
}
.value i {
	color: var(--brand-600);
	flex: none;
	margin-top: 2px;
}
.value b {
	font-family: var(--font-display);
	color: var(--brand-900);
	display: block;
}
.value span {
	color: var(--ink-700);
	font-size: 0.94rem;
}

.certs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-4);
}
.cert {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: var(--sp-4) var(--sp-6);
	border-radius: var(--r-md);
	background: var(--brand-050);
	border: 1px solid var(--brand-100);
	transition: transform var(--dur) var(--ease-out-quint);
}
.cert:hover {
	transform: translateY(-2px);
}
.cert i {
	color: var(--brand-600);
	flex: none;
}
.cert b {
	font-family: var(--font-display);
	color: var(--brand-900);
	display: block;
	font-size: 0.98rem;
}
.cert span {
	font-size: 0.82rem;
	color: var(--ink-500);
}

.nap {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--sp-6);
	padding: var(--sp-8);
	background: var(--paper-2);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
}
.nap__item {
	display: flex;
	gap: var(--sp-3);
	align-items: flex-start;
}
.nap__item i {
	color: var(--brand-600);
	flex: none;
	margin-top: 2px;
}
.nap__item h3,
.nap__item h4 {
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-500);
	margin-bottom: 4px;
}
.nap__item p {
	color: var(--ink-900);
	font-size: 0.98rem;
	line-height: 1.4;
}
.nap__item a {
	color: var(--brand-600);
}

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin.woff2") format("woff2");
	font-style: normal;
	font-weight: 500 800;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Sans";
	src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
}

/* ══════════════════════════════════════════════════════════════════
   PÁGINA "PROYECTOS" · CASOS EDITORIALES
   ══════════════════════════════════════════════════════════════════ */
.projects-hero {
	position: relative;
	overflow: hidden;
	padding: var(--sp-16) 0;
	background:
		radial-gradient(
			44rem 32rem at 4% -20%,
			oklch(0.47 0.12 248 / 0.7),
			transparent 65%
		),
		linear-gradient(135deg, var(--brand-900), oklch(0.2 0.055 252));
}
.projects-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.11;
	background-image:
		linear-gradient(oklch(1 0 0 / 0.14) 1px, transparent 1px),
		linear-gradient(90deg, oklch(1 0 0 / 0.14) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(90deg, #000, transparent 72%);
}
.projects-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
	gap: var(--sp-16);
	align-items: center;
}
.projects-hero__copy .eyebrow {
	color: var(--action-500);
}
.projects-hero__copy h1 {
	font-size: var(--step-4);
	color: #fff;
	font-weight: 800;
	max-width: 13ch;
	margin: var(--sp-4) 0 var(--sp-6);
}
.projects-hero__copy > p:not(.eyebrow) {
	color: oklch(0.85 0.022 250);
	font-size: var(--step-1);
	max-width: 46ch;
	line-height: 1.55;
}
.projects-hero__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--sp-6);
	margin-top: var(--sp-8);
}
.text-link--light {
	color: oklch(0.91 0.03 250);
}
.text-link--light:hover {
	color: var(--action-500);
}

.featured-case {
	position: relative;
	width: 100%;
	aspect-ratio: 16/10;
	overflow: hidden;
	border: 1px solid oklch(1 0 0 / 0.18);
	border-radius: var(--r-lg);
	padding: 0;
	background: var(--brand-700);
	color: #fff;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 32px 80px -30px oklch(0.06 0.04 250 / 0.8);
	isolation: isolate;
	transition:
		transform var(--dur) var(--ease-out-quint),
		border-color var(--dur);
}
.featured-case:hover,
.featured-case:focus-visible {
	transform: translateY(-5px);
	border-color: oklch(1 0 0 / 0.38);
}
.featured-case > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.04);
	transition: transform 900ms var(--ease-out-expo);
}
.featured-case:hover > img,
.featured-case:focus-visible > img {
	transform: scale(1);
}
.featured-case__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		oklch(0.16 0.05 250 / 0.08),
		oklch(0.13 0.055 250 / 0.94)
	);
}
.featured-case__scan {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	height: 1px;
	top: 8%;
	background: linear-gradient(
		90deg,
		transparent,
		oklch(0.86 0.11 200 / 0.9),
		transparent
	);
	box-shadow: 0 0 18px oklch(0.75 0.12 210 / 0.5);
	opacity: 0;
	transition: opacity var(--dur);
}
.featured-case:hover .featured-case__scan,
.featured-case:focus-visible .featured-case__scan {
	opacity: 1;
	animation: featured-scan 2.8s var(--ease-in-out) infinite;
}
@keyframes featured-scan {
	0% {
		top: 8%;
	}
	50%,
	100% {
		top: 92%;
	}
}
.featured-case__content {
	position: absolute;
	z-index: 3;
	inset: 0;
	padding: var(--sp-8);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-start;
}
.featured-case__top {
	position: absolute;
	top: var(--sp-6);
	left: var(--sp-6);
	right: var(--sp-6);
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--action-500);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.76rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.featured-case__client {
	color: oklch(0.8 0.025 250);
	font-size: 0.9rem;
	margin-bottom: 6px;
}
.featured-case__content strong {
	font-family: var(--font-display);
	font-size: var(--step-2);
	max-width: 20ch;
	line-height: 1.1;
}
.featured-case__services {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: var(--sp-4);
}
.featured-case__services span {
	padding: 4px 9px;
	border: 1px solid oklch(1 0 0 / 0.18);
	border-radius: 100px;
	background: oklch(0.22 0.055 250 / 0.7);
	color: oklch(0.9 0.02 250);
	font-size: 0.72rem;
}

.metrics-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: var(--sp-8);
	padding-block: var(--sp-12);
	border-bottom: 1px solid var(--line);
}
.metrics-strip .metric b {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 2.6rem;
	color: var(--brand-900);
	line-height: 1;
	display: block;
	font-variant-numeric: tabular-nums;
}
.metrics-strip .metric span {
	color: var(--ink-700);
	font-size: 0.94rem;
}

.projects-gallery {
	padding: var(--sp-24) 0;
	background: var(--paper);
}
.projects-gallery__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
	gap: var(--sp-12);
	align-items: end;
	margin-bottom: var(--sp-8);
}
.projects-gallery__head h2 {
	font-size: var(--step-3);
	color: var(--brand-900);
	font-weight: 800;
	margin-top: var(--sp-3);
}
.projects-gallery__head > p {
	color: var(--ink-700);
	font-size: 1.04rem;
	max-width: 44ch;
}
.projects-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-6);
	padding: var(--sp-6) 0 var(--sp-12);
	margin-top: var(--sp-4);
	border-top: 1px solid var(--line);
}
.filters {
	display: flex;
	flex-wrap: wrap;
	column-gap: var(--sp-3);
	row-gap: var(--sp-3);
}
.filter {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.88rem;
	color: var(--ink-700);
	padding: 10px 18px;
	border-radius: 100px;
	border: 1px solid var(--line-strong);
	background: var(--paper);
	cursor: pointer;
	transition: all var(--dur-fast) var(--ease-out-quint);
}
.filter:hover,
.filter:focus-visible {
	color: var(--brand-900);
	border-color: var(--brand-600);
	transform: translateY(-1px);
}
.filter[aria-pressed="true"] {
	color: oklch(0.98 0.01 250);
	background: var(--brand-600);
	border-color: var(--brand-600);
}
.projects-count {
	color: var(--ink-500);
	font-size: 0.86rem;
	white-space: nowrap;
}

/* Compatibilidad con la versión anterior del carrusel: si el navegador
   conserva temporalmente el HTML viejo, el indicador inferior no reaparece. */
#carrusel-dots {
	display: none !important;
}

.case-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	grid-auto-flow: dense;
	gap: var(--sp-4);
	transition:
		opacity 160ms var(--ease-out-quint),
		transform 160ms var(--ease-out-quint);
}
.case-grid.is-changing {
	opacity: 0;
	transform: translateY(10px);
}
.case-card {
	--rx: 0deg;
	--ry: 0deg;
	grid-column: span 4;
	min-height: 330px;
	perspective: 1000px;
	opacity: 0;
	animation: case-enter 620ms var(--ease-out-expo) forwards;
	animation-delay: calc(var(--card-index) * 55ms);
}
.case-card--feature {
	grid-column: span 7;
	min-height: 450px;
}
.case-card--wide {
	grid-column: span 5;
	min-height: 450px;
}
.case-card--panorama {
	grid-column: span 8;
}
@keyframes case-enter {
	from {
		opacity: 0;
		transform: translateY(22px) scale(0.985);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.case-card__button {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	min-height: inherit;
	overflow: hidden;
	isolation: isolate;
	padding: 0;
	border: 0;
	border-radius: var(--r-lg);
	background: var(--brand-900);
	color: #fff;
	text-align: left;
	cursor: pointer;
	box-shadow: var(--shadow-md);
	transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
	transition:
		transform 150ms ease-out,
		box-shadow var(--dur) var(--ease-out-quint);
}
.case-card__button:hover,
.case-card__button:focus-visible {
	box-shadow: var(--shadow-lg);
}
.case-card__media,
.case-card__shade,
.case-card__glow {
	position: absolute;
	inset: 0;
}
.case-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.76;
	transform: scale(1.055);
	transition:
		transform 850ms var(--ease-out-expo),
		opacity var(--dur);
}
.case-card__button:hover .case-card__media img,
.case-card__button:focus-visible .case-card__media img {
	transform: scale(1);
	opacity: 0.88;
}
.case-card__shade {
	z-index: 1;
	background: linear-gradient(
		180deg,
		oklch(0.16 0.05 250 / 0.05) 10%,
		oklch(0.13 0.05 250 / 0.94) 92%
	);
}
.case-card__glow {
	z-index: 2;
	opacity: 0;
	pointer-events: none;
	background: radial-gradient(
		260px circle at var(--cx, 50%) var(--cy, 50%),
		oklch(0.75 0.12 215 / 0.22),
		transparent 70%
	);
	transition: opacity var(--dur);
}
.case-card__button:hover .case-card__glow {
	opacity: 1;
}
.case-card__number {
	position: absolute;
	z-index: 3;
	top: var(--sp-6);
	right: var(--sp-6);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 0.76rem;
	color: oklch(0.92 0.02 250);
	letter-spacing: 0.1em;
}
.case-card__body {
	position: absolute;
	z-index: 3;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	padding: var(--sp-8);
}
.case-card__sector {
	color: var(--action-500);
	font-family: var(--font-display);
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: var(--sp-3);
}
.case-card__body strong {
	font-family: var(--font-display);
	font-size: 1.38rem;
	line-height: 1.12;
	max-width: 24ch;
}
.case-card--feature .case-card__body strong {
	font-size: var(--step-2);
}
.case-card__client {
	color: oklch(0.82 0.02 250);
	font-size: 0.88rem;
	margin-top: 6px;
}
.case-card__services {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: var(--sp-4);
}
.case-card__services > span {
	padding: 3px 8px;
	border: 1px solid oklch(1 0 0 / 0.16);
	border-radius: 100px;
	background: oklch(0.2 0.05 250 / 0.66);
	color: oklch(0.88 0.02 250);
	font-size: 0.69rem;
}
.case-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-height: 0;
	overflow: hidden;
	margin-top: 0;
	color: var(--action-500);
	font-family: var(--font-display);
	font-size: 0.84rem;
	font-weight: 700;
	opacity: 0;
	transform: translateY(7px);
	transition:
		max-height var(--dur),
		margin var(--dur),
		opacity var(--dur),
		transform var(--dur) var(--ease-out-expo);
}
.case-card__button:hover .case-card__more,
.case-card__button:focus-visible .case-card__more {
	max-height: 30px;
	margin-top: var(--sp-4);
	opacity: 1;
	transform: none;
}
.empty {
	grid-column: 1/-1;
	text-align: center;
	color: var(--ink-500);
	padding: var(--sp-16) 0;
}

.case-dialog {
	border: none;
	border-radius: var(--r-lg);
	padding: 0;
	max-width: 820px;
	width: 92vw;
	max-height: 92vh;
	overflow: auto;
	box-shadow: var(--shadow-lg);
	background: var(--paper);
	color: var(--ink-900);
}
.case-dialog::backdrop {
	background: oklch(0.16 0.045 255 / 0.72);
	backdrop-filter: blur(7px);
}
.case-dialog[open] {
	animation: modal-in 360ms var(--ease-out-expo);
}
.case-dialog[open]::backdrop {
	animation: backdrop-in 360ms var(--ease-out-quint);
}
.case-dialog.is-closing {
	animation: modal-out 180ms ease-in forwards;
}
.case-dialog.is-closing::backdrop {
	animation: backdrop-out 180ms ease-in forwards;
}
@keyframes modal-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
}
@keyframes backdrop-in {
	from {
		opacity: 0;
	}
}
@keyframes modal-out {
	to {
		opacity: 0;
		transform: translateY(10px) scale(0.99);
	}
}
@keyframes backdrop-out {
	to {
		opacity: 0;
	}
}
.has-dialog {
	overflow: hidden;
}
.modal__media {
	position: relative;
	aspect-ratio: 16/7;
	background: var(--brand-900);
	overflow: hidden;
}
.modal__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.9;
}
.modal__media-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		transparent 50%,
		oklch(0.15 0.05 250 / 0.72)
	);
}
.modal__index {
	position: absolute;
	left: var(--sp-6);
	bottom: var(--sp-4);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: 0.12em;
	font-size: 0.8rem;
}
.modal__close {
	position: absolute;
	top: var(--sp-3);
	right: var(--sp-3);
	z-index: 2;
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 100px;
	background: oklch(0.99 0.006 85 / 0.92);
	color: var(--ink-900);
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: var(--shadow-sm);
}
.modal__close:hover {
	transform: rotate(6deg);
}
.modal__body {
	padding: var(--sp-8) var(--sp-12) var(--sp-12);
}
.modal__tag {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--brand-600);
}
.modal__body h3 {
	font-size: var(--step-2);
	color: var(--brand-900);
	margin: var(--sp-1) 0 var(--sp-2);
}
.modal__client {
	color: var(--ink-500);
	font-size: 0.94rem;
	margin-bottom: var(--sp-8);
}
.modal__body p {
	color: var(--ink-700);
	line-height: 1.6;
}
.case-story {
	display: grid;
	gap: 0;
	margin-bottom: var(--sp-8);
}
.case-story__item {
	display: grid;
	grid-template-columns: 34px 1fr;
	gap: var(--sp-4);
	position: relative;
	padding-bottom: var(--sp-5, 20px);
}
.case-story__item:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 34px;
	bottom: 0;
	width: 1px;
	background: var(--line-strong);
}
.case-story__item > span {
	position: relative;
	z-index: 1;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	color: var(--brand-600);
	background: var(--brand-050);
	border: 1px solid var(--brand-100);
	border-radius: 50%;
}
.case-story__item h4 {
	font-family: var(--font-display);
	color: var(--brand-900);
	font-size: 0.86rem;
	margin: 2px 0 4px;
}
.case-story__item p {
	font-size: 0.94rem;
}
.case-story__item--result > span {
	color: var(--ok);
	background: oklch(0.96 0.025 155);
	border-color: oklch(0.88 0.055 155);
}
.modal__meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--sp-4);
	margin-bottom: var(--sp-6);
}
.modal__meta h4 {
	font-size: 0.72rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ink-500);
	margin-bottom: 6px;
}
.modal__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.chip {
	font-size: 0.8rem;
	color: var(--brand-700);
	background: var(--brand-050);
	border: 1px solid var(--brand-100);
	padding: 3px 10px;
	border-radius: 100px;
}
.modal__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-6);
	padding-top: var(--sp-6);
	border-top: 1px solid var(--line);
}
.modal__nav {
	display: flex;
	gap: var(--sp-2);
}
.modal__nav button {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	color: var(--brand-700);
	background: transparent;
	cursor: pointer;
	transition:
		background var(--dur-fast),
		color var(--dur-fast),
		transform var(--dur-fast);
}
.modal__nav button:hover {
	background: var(--brand-050);
	color: var(--brand-600);
	transform: translateY(-2px);
}

.project-principles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin-top: var(--sp-16);
	border-block: 1px solid var(--line);
}
.project-principles > div {
	position: relative;
	padding: var(--sp-8);
	border-right: 1px solid var(--line);
}
.project-principles > div:last-child {
	border-right: 0;
}
.project-principles span {
	position: absolute;
	right: var(--sp-6);
	top: var(--sp-6);
	color: var(--line-strong);
	font-family: var(--font-display);
	font-weight: 800;
}
.project-principles i {
	color: var(--brand-600);
	margin-bottom: var(--sp-4);
}
.project-principles h3 {
	color: var(--brand-900);
	font-size: 1.08rem;
	margin-bottom: 6px;
}
.project-principles p {
	color: var(--ink-700);
	font-size: 0.92rem;
	max-width: 28ch;
}

@media (max-width: 900px) {
	.projects-hero__grid,
	.projects-gallery__head {
		grid-template-columns: 1fr;
	}
	.projects-hero__copy h1 {
		max-width: 18ch;
	}
	.case-card {
		grid-column: span 6;
	}
	.case-card--feature,
	.case-card--panorama {
		grid-column: span 12;
	}
	.case-card--wide {
		grid-column: span 6;
	}
}
@media (max-width: 640px) {
	.projects-hero {
		padding: var(--sp-12) 0;
	}
	.projects-hero__grid {
		gap: var(--sp-12);
	}
	.projects-hero__actions {
		align-items: flex-start;
		flex-direction: column;
		gap: var(--sp-4);
	}
	.featured-case {
		aspect-ratio: 4/5;
	}
	.featured-case__content {
		padding: var(--sp-6);
	}
	.projects-gallery {
		padding: var(--sp-16) 0;
	}
	.projects-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}
	.case-card,
	.case-card--feature,
	.case-card--wide,
	.case-card--panorama {
		grid-column: span 12;
		min-height: 360px;
	}
	.case-card__body {
		padding: var(--sp-6);
	}
	.case-card__more {
		max-height: 30px;
		margin-top: var(--sp-4);
		opacity: 1;
		transform: none;
	}
	.modal__body {
		padding: var(--sp-6);
	}
	.modal__meta {
		grid-template-columns: 1fr;
	}
	.modal__footer {
		align-items: stretch;
		flex-direction: column-reverse;
	}
	.modal__footer .btn {
		justify-content: center;
	}
	.project-principles {
		grid-template-columns: 1fr;
	}
	.project-principles > div {
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}
	.project-principles > div:last-child {
		border-bottom: 0;
	}
}

/* ══════════════════════════════════════════════════════════════════
   PÁGINAS DE SERVICIO (6) — antes una plantilla-demo de un solo
   archivo con render 100% client-side; se separan en 6 archivos
   reales bajo /servicios/, mismo patrón que /sectores/ (switcher con
   fetch + cross-fade). .related-project en vez de .project: ese
   nombre ya lo usa proyectos.php para otra cosa.
   ══════════════════════════════════════════════════════════════════ */
.crumb code {
	font-family: ui-monospace, monospace;
	color: var(--brand-600);
	background: var(--brand-050);
	padding: 2px 8px;
	border-radius: 6px;
	font-size: 0.8rem;
}

.tab-serv {
	white-space: nowrap;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.86rem;
	color: var(--ink-700);
	padding: var(--sp-2) var(--sp-4);
	border-radius: 100px;
	border: 1px solid transparent;
	cursor: pointer;
	background: none;
	transition: all var(--dur-fast) var(--ease-out-quint);
}
.tab-serv:hover {
	color: var(--brand-900);
	background: var(--brand-050);
}
.tab-serv[aria-current="true"] {
	color: oklch(0.98 0.01 250);
	background: var(--brand-600);
}

.svc-hero {
	padding: var(--sp-8) 0 var(--sp-16);
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: var(--sp-16);
	align-items: center;
}
.svc-hero h1 {
	font-size: var(--step-4);
	color: var(--brand-900);
	font-weight: 800;
	margin: var(--sp-4) 0 var(--sp-4);
}
.svc-hero__lead {
	font-size: var(--step-1);
	line-height: 1.45;
	color: var(--ink-700);
	max-width: 40ch;
}
.svc-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-top: var(--sp-8);
}
.svc-hero__media {
	position: relative;
	border-radius: var(--r-lg);
	overflow: hidden;
	aspect-ratio: 4/3;
	box-shadow: var(--shadow-lg);
}
.svc-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: translate3d(0, var(--par, 0px), 0) scale(1.12);
}
.svc-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		200deg,
		transparent 40%,
		oklch(0.24 0.06 255 / 0.35)
	);
}
/* — Cortina que revela la imagen al cargar (una vez, JS agrega .descubierta) — */
.svc-hero__media::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: var(--brand-050);
	transform-origin: right;
}
.svc-hero__media.descubierta::before {
	animation: cortina-revela 850ms var(--ease-out-expo) 80ms both;
}
.svc-hero__media.descubierta img {
	animation: foto-asienta 1150ms var(--ease-out-expo) both;
}
@keyframes cortina-revela {
	to {
		transform: scaleX(0);
	}
}
@keyframes foto-asienta {
	from {
		transform: translate3d(0, var(--par, 0px), 0) scale(1.2);
	}
}
@media (prefers-reduced-motion: reduce) {
	.svc-hero__media::before {
		display: none;
	}
}
.svc-hero__badge {
	position: absolute;
	z-index: 1;
	left: var(--sp-4);
	bottom: var(--sp-4);
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	background: oklch(0.985 0.006 85 / 0.94);
	color: var(--brand-900);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.82rem;
	padding: var(--sp-2) var(--sp-4);
	border-radius: 100px;
	box-shadow: var(--shadow-md);
}
.svc-hero__badge i {
	color: var(--brand-600);
}

.feat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--sp-4);
}
.feat {
	padding: var(--sp-6);
	border-radius: var(--r-md);
	background: var(--paper-2);
	border: 1px solid var(--line);
	transition:
		transform var(--dur) var(--ease-out-quint),
		box-shadow var(--dur);
}
.feat:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}
.feat i {
	color: var(--brand-600);
	margin-bottom: var(--sp-3);
}
.feat h3,
.feat h4 {
	font-size: 1.05rem;
	color: var(--brand-900);
	font-weight: 700;
	margin-bottom: 6px;
}
.feat p {
	color: var(--ink-700);
	font-size: 0.94rem;
	line-height: 1.5;
}

.sectors {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
}
.sector-link {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: var(--sp-3) var(--sp-4);
	border-radius: 100px;
	border: 1px solid var(--line-strong);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--brand-900);
	transition: all var(--dur-fast) var(--ease-out-quint);
}
.sector-link:hover {
	border-color: var(--brand-600);
	color: var(--brand-600);
	transform: translateY(-2px);
}
.sector-link i {
	color: var(--brand-500);
}

.related-project {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: var(--sp-8);
	align-items: center;
	background: var(--brand-900);
	border-radius: var(--r-lg);
	overflow: hidden;
	color: oklch(0.96 0.01 250);
}
.related-project__media {
	aspect-ratio: 1/1;
	height: 100%;
}
.related-project__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.related-project__body {
	padding: var(--sp-12) var(--sp-8) var(--sp-12) 0;
}
.related-project__body .eyebrow {
	color: var(--action-500);
}
.related-project__body h3 {
	font-size: var(--step-2);
	margin: var(--sp-2) 0 var(--sp-3);
	color: #fff;
}
.related-project__body p {
	color: oklch(0.85 0.02 250);
	max-width: 44ch;
	margin-bottom: var(--sp-6);
}
.related-project__body a {
	color: var(--action-500);
	font-family: var(--font-display);
	font-weight: 700;
	display: inline-flex;
	gap: 6px;
	align-items: center;
}

.faq {
	max-width: 80ch;
}
.faq details {
	border-bottom: 1px solid var(--line);
}
.faq summary {
	list-style: none;
	cursor: pointer;
	padding: var(--sp-6) 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--sp-4);
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--brand-900);
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary i {
	flex: none;
	color: var(--brand-600);
	transition: transform var(--dur) var(--ease-out-expo);
}
.faq details[open] summary i {
	transform: rotate(45deg);
}
.faq summary:hover {
	color: var(--brand-600);
}
.faq details[open] p {
	animation: faq-in var(--dur) var(--ease-out-quint) backwards;
}
@keyframes faq-in {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
}
.faq details p {
	color: var(--ink-700);
	padding: 0 var(--sp-8) var(--sp-6) 0;
	line-height: 1.65;
	max-width: 70ch;
}

@media (max-width: 900px) {
	.svc-hero {
		grid-template-columns: 1fr;
		gap: var(--sp-8);
		padding-top: var(--sp-6);
	}
	.related-project {
		grid-template-columns: 1fr;
	}
	.related-project__media {
		aspect-ratio: 16/9;
	}
	.related-project__body {
		padding: var(--sp-8);
	}
}

/***********************************************************************************************/
/* ══════════════════════════════════════════════════════════════════
   SECCIÓN · CLÚSTER DE SERVICIOS
   ══════════════════════════════════════════════════════════════════ */
.cluster {
	padding: var(--sp-24) 0;
	position: relative;
	overflow: hidden;
}
.cluster::before {
	/* v3 · ambientación sutil detrás de la cuadrícula — antes era fondo
     plano y se sentía vacío. Mismos tonos de marca, solo más presencia. */
	content: "";
	position: absolute;
	inset: -15% -8%;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(38rem 26rem at 6% -4%, var(--brand-100), transparent 62%),
		radial-gradient(
			32rem 24rem at 102% 42%,
			var(--action-100),
			transparent 65%
		),
		radial-gradient(28rem 22rem at 32% 108%, var(--brand-050), transparent 60%);
	opacity: 0.85;
}
.cluster > .wrap {
	position: relative;
	z-index: 1;
}
.cluster__head {
	max-width: 52ch;
	margin-bottom: var(--sp-12);
}
.cluster__head h1,
.cluster__head h2 {
	font-size: var(--step-3);
	color: var(--brand-900);
	font-weight: 800;
	margin: var(--sp-3) 0 var(--sp-4);
}
.cluster__head p {
	font-size: var(--step-1);
	line-height: 1.45;
	color: var(--ink-700);
}

/* Grid tipo "bento": tamaños deliberados, sin tarjeta huérfana al final.
   Fila 1-2: feature 2x2 + tall 1x2 (llenan 3x2 exacto).
   Fila 3: wide 2x1 + normal 1x1. Fila 4: normal 1x1 + wide 2x1. */
.cluster__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: minmax(150px, auto);
	gap: var(--sp-4);
}
.spot[data-feature="true"] {
	grid-column: span 2;
	grid-row: span 2;
}
.spot[data-size="tall"] {
	grid-row: span 2;
}
.spot[data-size="wide"] {
	grid-column: span 2;
}

/* ── SPOTLIGHT CARD (transpilado) ─────────────────────────────────
   Cada tarjeta lee --xp (posición horizontal 0-1 del puntero en la
   ventana) y calcula --hue = base + xp*spread, igual que el React. */
.spot {
	--base: 248;
	--spread: 70; /* rango de tono azul corporativo */
	--spotlight: 320px; /* radio del haz */
	--hue: calc(var(--base) + (var(--xp, 0.5) * var(--spread)));
	position: relative;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	min-height: 270px;
	padding: var(--sp-8);
	border-radius: var(--r-lg);
	background: var(--paper-2);
	border: 1px solid var(--line);
	overflow: hidden;
	isolation: isolate;
	transition:
		transform var(--dur) var(--ease-out-quint),
		box-shadow var(--dur) var(--ease-out-quint),
		border-color var(--dur);
}
.spot:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: transparent;
}
/* v2 · paridad teclado/puntero + estado presionado */
.spot:focus-visible {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--brand-500);
}
.spot:active {
	transform: translateY(-2px);
}

/* Capa de relleno: haz de luz que sigue al puntero (backgroundImage del React) */
.spot::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(
		var(--spotlight) var(--spotlight) at calc(var(--x, 0) * 1px)
			calc(var(--y, 0) * 1px),
		oklch(0.62 0.13 var(--hue) / 0.14),
		transparent 70%
	);
	opacity: 0;
	transition: opacity var(--dur) var(--ease-out-quint);
}
.spot:hover::before {
	opacity: 1;
}

/* Capa de borde: línea luminosa recortada con mask (::after del React) */
.spot::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	border-radius: inherit;
	padding: 1.5px;
	background: radial-gradient(
		calc(var(--spotlight) * 0.7) calc(var(--spotlight) * 0.7) at
			calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
		oklch(0.66 0.15 var(--hue) / 0.9),
		transparent 65%
	);
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	opacity: 0;
	transition: opacity var(--dur) var(--ease-out-quint);
}
.spot:hover::after {
	opacity: 1;
}

/* Contenido */
.spot__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: var(--r-md);
	background: var(--brand-050);
	color: var(--brand-600);
	margin-bottom: var(--sp-6);
	transition:
		background var(--dur) var(--ease-out-quint),
		color var(--dur);
}
.spot:hover .spot__icon {
	background: var(--brand-600);
	color: oklch(0.98 0.01 250);
}
.spot__k {
	font-family: var(--font-display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--ink-500);
}
.spot h2,
.spot h3 {
	font-size: 1.35rem;
	color: var(--brand-900);
	font-weight: 700;
	margin: var(--sp-1) 0 var(--sp-3);
}
.spot p {
	color: var(--ink-700);
	font-size: 0.98rem;
	line-height: 1.5;
	max-width: 46ch;
}
.spot__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin-top: auto;
	padding-top: var(--sp-6);
}
.tag {
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--brand-700);
	background: var(--brand-050);
	border: 1px solid var(--brand-100);
	padding: 4px 10px;
	border-radius: 100px;
}
.spot__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: var(--sp-6);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--brand-600);
}
.spot__link i {
	transition: transform var(--dur) var(--ease-out-expo);
}
.spot:hover .spot__link i {
	transform: translateX(4px);
}

/* (fix) se elimina el transition-delay global de .spot: retrasaba también
   el hover; el stagger de entrada ahora lo asigna el JS con tope. */

@media (max-width: 900px) {
	.cluster__grid {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: auto;
	}
	.spot[data-feature="true"] {
		grid-column: span 2;
		grid-row: span 1;
	}
	.spot[data-size="tall"] {
		grid-row: span 1;
	}
	.spot[data-size="wide"] {
		grid-column: span 2;
	}
}
@media (max-width: 560px) {
	.cluster {
		padding: var(--sp-16) 0;
	}
	.cluster__grid {
		grid-template-columns: 1fr;
	}
	.spot[data-feature="true"],
	.spot[data-size="wide"] {
		grid-column: span 1;
	}
	.spot[data-size="tall"] {
		grid-row: span 1;
	}
	.spot {
		min-height: auto;
		padding: var(--sp-6);
	}
}

/***********************************************************************************************/
/* ══════════════════════════════════════════════════════════════════
   SECCIÓN · SECTORES
   ══════════════════════════════════════════════════════════════════ */

/* ── SELECTOR DE SECTOR ───────────────────────────────────────────── */
.switcher {
	position: sticky;
	top: 72px;
	z-index: 40;
	background: oklch(0.985 0.006 85 / 0.97);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
	scroll-margin-top: 132px;
}
.switcher__inner {
	display: flex;
	gap: var(--sp-1);
	overflow-x: auto;
	padding: var(--sp-3) 0;
	scrollbar-width: none;
}
.switcher__inner::-webkit-scrollbar {
	display: none;
}
.switcher__inner .brand {
	font-family: var(--font-display);
	font-weight: 800;
	color: var(--brand-900);
	font-size: 1.05rem;
	margin-right: var(--sp-6);
	white-space: nowrap;
	align-self: center;
}
.switcher__inner .brand span {
	color: var(--brand-600);
	font-size: 0.62rem;
	letter-spacing: 0.16em;
}
.tab-sec {
	white-space: nowrap;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.86rem;
	color: var(--ink-700);
	padding: var(--sp-2) var(--sp-4);
	border-radius: 100px;
	border: 1px solid transparent;
	cursor: pointer;
	background: none;
	transition: all var(--dur-fast) var(--ease-out-quint);
}
.tab-sec:hover {
	color: var(--brand-900);
	background: var(--brand-050);
}
.tab-sec[aria-current="true"] {
	color: oklch(0.98 0.01 250);
	background: var(--brand-600);
}
/* v2 · sombra del switcher al hacer scroll */
.switcher::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	box-shadow: var(--shadow-md);
	opacity: 0;
	transition: opacity var(--dur) var(--ease-out-quint);
}
.switcher.is-scrolled::after {
	opacity: 1;
}

/* ── HERO DE SECTOR (fondo profundo, distinto al hero de servicio) ── */
.sec-hero {
	position: relative;
	margin-top: var(--sp-4);
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--brand-900);
	color: oklch(0.96 0.012 250);
	padding: var(--sp-24) var(--sp-12);
	isolation: isolate;
}
.sec-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.28;
	background-image:
		linear-gradient(oklch(0.7 0.06 250 /0.5) 1px, transparent 1px),
		linear-gradient(90deg, oklch(0.7 0.06 250 /0.5) 1px, transparent 1px);
	background-size: 46px 46px;
	mask-image: radial-gradient(40rem 30rem at 78% 10%, #000, transparent 72%);
}
.sec-hero__glow {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -48px 0;
	background: radial-gradient(
		34rem 24rem at 82% 0%,
		oklch(0.45 0.11 248 / 0.7),
		transparent 65%
	);
	transform: translate3d(0, var(--par, 0px), 0);
}
.sec-hero h1 {
	font-size: var(--step-4);
	font-weight: 800;
	color: #fff;
	margin: var(--sp-4) 0 var(--sp-4);
	max-width: 18ch;
}
.sec-hero .eyebrow {
	color: var(--action-500);
}
.sec-hero__lead {
	font-size: var(--step-1);
	line-height: 1.45;
	color: oklch(0.86 0.02 250);
	max-width: 46ch;
}
.sec-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	margin-top: var(--sp-8);
}
.btn--wa {
	background: #166b3f;
	color: #fff;
}
.btn--wa:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}
.btn--ghost-dark {
	background: transparent;
	color: #fff;
	border-color: oklch(0.7 0.04 250 / 0.5);
}
.btn--ghost-dark:hover {
	border-color: #fff;
	transform: translateY(-2px);
}

/* ── SECCIÓN ──────────────────────────────────────────────────────── */
.section {
	padding: var(--sp-16) 0;
	border-top: 1px solid var(--line);
}
.section:first-of-type {
	border-top: none;
}
.section__head {
	max-width: 56ch;
	margin-bottom: var(--sp-8);
}
.section__head h2 {
	font-size: var(--step-2);
	color: var(--brand-900);
	font-weight: 700;
	margin-top: var(--sp-2);
}
.prose {
	max-width: 68ch;
}
.prose p {
	color: var(--ink-700);
	margin-bottom: var(--sp-4);
	font-size: 1.05rem;
	line-height: 1.7;
}
.prose strong {
	color: var(--ink-900);
	font-weight: 600;
}

/* ── RETOS / NECESIDADES DEL SECTOR (lista, no cards idénticas) ───── */
.needs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--sp-2) var(--sp-8);
}
.need {
	display: flex;
	gap: var(--sp-4);
	padding: var(--sp-4) 0;
	border-bottom: 1px solid var(--line);
}
.need i {
	color: var(--brand-600);
	flex: none;
	margin-top: 2px;
}
.need b {
	font-family: var(--font-display);
	color: var(--brand-900);
	display: block;
	font-size: 1rem;
}
.need span {
	color: var(--ink-700);
	font-size: 0.94rem;
	line-height: 1.5;
}

/* ── SERVICIOS RECOMENDADOS (enlazado interno anti-canibalización) ── */
.svc-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: var(--sp-3);
}
.svc-link {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: var(--sp-4) var(--sp-6);
	border-radius: var(--r-md);
	background: var(--paper-2);
	border: 1px solid var(--line);
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--brand-900);
	transition: all var(--dur) var(--ease-out-quint);
}
.svc-link:hover {
	border-color: var(--brand-600);
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}
.svc-link i:first-child {
	color: var(--brand-600);
	flex: none;
}
.svc-link .arrow {
	margin-left: auto;
	color: var(--ink-500);
	transition: transform var(--dur) var(--ease-out-expo);
}
.svc-link:hover .arrow {
	transform: translateX(4px);
	color: var(--brand-600);
}

/* ── FRANJA DE MÉTRICAS DE CONFIANZA ──────────────────────────────── */
.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--sp-8);
	padding: var(--sp-12) 0;
}
.stat b {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 2.4rem;
	color: var(--brand-900);
	line-height: 1;
	display: block;
	font-variant-numeric: tabular-nums;
}
.stat span {
	color: var(--ink-700);
	font-size: 0.95rem;
}

/* ── PROYECTO / PRUEBA SOCIAL ─────────────────────────────────────── */
.proof {
	display: flex;
	gap: var(--sp-6);
	align-items: center;
	flex-wrap: wrap;
	padding: var(--sp-8);
	border-radius: var(--r-lg);
	background: var(--brand-050);
	border: 1px solid var(--brand-100);
}
.proof i {
	color: var(--brand-600);
	flex: none;
}
.proof p {
	color: var(--ink-700);
	max-width: 60ch;
}
.proof b {
	font-family: var(--font-display);
	color: var(--brand-900);
}

/* ── CIERRE ───────────────────────────────────────────────────────── */
.closer {
	margin: var(--sp-24) 0 var(--sp-16);
	text-align: center;
	background:
		radial-gradient(30rem 20rem at 50% -10%, var(--brand-100), transparent 70%),
		var(--paper-2);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: var(--sp-16) var(--sp-8);
}
.closer h2 {
	font-size: var(--step-3);
	color: var(--brand-900);
	font-weight: 800;
	max-width: 22ch;
	margin-inline: auto;
}
.closer p {
	color: var(--ink-700);
	font-size: var(--step-1);
	margin: var(--sp-4) auto var(--sp-8);
	max-width: 52ch;
}
.closer__cta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
	justify-content: center;
}

/* v2 · transición de plantilla al cambiar de sector */
#page {
	transition:
		opacity 200ms var(--ease-out-quint),
		transform 200ms var(--ease-out-quint);
}
#page.cambiando {
	opacity: 0;
	transform: translateY(10px);
}

@media (max-width: 760px) {
	.sec-hero {
		padding: var(--sp-16) var(--sp-6);
	}
}

/* ══════════════════════════════════════════════════════════════════
   PORTADA · CONTENIDO DE CONVERSIÓN
   ══════════════════════════════════════════════════════════════════ */
.home-value {
	background: var(--paper);
}
.home-value__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: var(--sp-16);
	align-items: start;
}
.home-value .section__head {
	margin-bottom: 0;
}
.home-value .section__head h2,
.home-section-head h2,
.home-sectors h2 {
	font-size: var(--step-3);
	font-weight: 800;
	color: var(--brand-900);
	margin-top: var(--sp-3);
}
.home-value .section__head > p:last-child {
	color: var(--ink-700);
	font-size: var(--step-1);
	line-height: 1.5;
	margin-top: var(--sp-4);
}

.integration-lab {
	padding: var(--sp-24) 0;
	background:
		radial-gradient(38rem 24rem at 8% 0%, var(--brand-100), transparent 68%),
		var(--brand-050);
	border-block: 1px solid var(--line);
}
.integration-lab__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
	gap: var(--sp-12);
	align-items: end;
	margin-bottom: var(--sp-12);
}
.integration-lab__head h2 {
	font-size: var(--step-3);
	color: var(--brand-900);
	font-weight: 800;
	margin-top: var(--sp-3);
}
.integration-lab__head > p {
	color: var(--ink-700);
	font-size: 1.04rem;
	max-width: 46ch;
}
.integration-lab__shell {
	overflow: hidden;
	border: 1px solid oklch(1 0 0 / 0.12);
	border-radius: var(--r-lg);
	background: var(--brand-900);
	box-shadow: var(--shadow-lg);
	color: #fff;
}
.integration-tabs {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
.integration-tab {
	position: relative;
	min-height: 68px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	padding: var(--sp-3);
	border: 0;
	border-right: 1px solid oklch(1 0 0 / 0.1);
	color: oklch(0.73 0.025 250);
	background: transparent;
	cursor: pointer;
	font-family: var(--font-display);
	font-size: 0.78rem;
	font-weight: 700;
	transition:
		color var(--dur-fast),
		background var(--dur-fast);
}
.integration-tab:last-child {
	border-right: 0;
}
.integration-tab::after {
	content: "";
	position: absolute;
	left: 20%;
	right: 20%;
	bottom: 0;
	height: 2px;
	background: var(--action-500);
	transform: scaleX(0);
	transition: transform var(--dur) var(--ease-out-expo);
}
.integration-tab:hover,
.integration-tab:focus-visible {
	color: #fff;
	background: oklch(1 0 0 / 0.04);
}
.integration-tab.is-active {
	color: #fff;
	background: oklch(1 0 0 / 0.06);
}
.integration-tab.is-active::after {
	transform: scaleX(1);
}
.integration-tab.is-active i {
	color: var(--action-500);
}

.integration-workspace {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
	min-height: 520px;
}
.operations-plan {
	position: relative;
	overflow: hidden;
	min-height: 520px;
	isolation: isolate;
	border-right: 1px solid oklch(1 0 0 / 0.1);
	background:
		linear-gradient(oklch(1 0 0 / 0.045) 1px, transparent 1px),
		linear-gradient(90deg, oklch(1 0 0 / 0.045) 1px, transparent 1px),
		radial-gradient(
			28rem 22rem at 55% 50%,
			oklch(0.44 0.11 248 / 0.23),
			transparent 70%
		),
		oklch(0.22 0.058 250);
	background-size:
		32px 32px,
		32px 32px,
		auto,
		auto;
}
.operations-plan::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(
		110deg,
		transparent 42%,
		oklch(0.76 0.1 210 / 0.07) 50%,
		transparent 58%
	);
	transform: translateX(-100%);
	animation: plan-scan 7s var(--ease-in-out) infinite;
}
@keyframes plan-scan {
	0%,
	30% {
		transform: translateX(-100%);
	}
	65%,
	100% {
		transform: translateX(100%);
	}
}
.operations-plan__status {
	position: absolute;
	z-index: 5;
	top: var(--sp-4);
	left: var(--sp-4);
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	padding: 7px 10px;
	border: 1px solid oklch(1 0 0 / 0.12);
	border-radius: 100px;
	background: oklch(0.18 0.05 250 / 0.78);
	backdrop-filter: blur(8px);
	color: oklch(0.78 0.025 250);
	font-size: 0.69rem;
	letter-spacing: 0.04em;
}
.operations-plan__status span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ok);
	box-shadow: 0 0 0 5px oklch(0.62 0.13 155 / 0.12);
}
.plan-room {
	position: absolute;
	border: 1px solid oklch(0.74 0.065 220 / 0.2);
	background: oklch(0.3 0.06 245 / 0.16);
}
.plan-room::before {
	content: "";
	position: absolute;
	width: 26px;
	border-top: 2px solid oklch(0.58 0.09 225 / 0.45);
	background: var(--brand-900);
}
.plan-room > span {
	position: absolute;
	left: 10px;
	bottom: 8px;
	color: oklch(0.68 0.025 250);
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}
.plan-room--reception {
	left: 8%;
	top: 15%;
	width: 31%;
	height: 31%;
}
.plan-room--reception::before {
	right: -1px;
	bottom: -1px;
}
.plan-room--operations {
	left: 39%;
	top: 15%;
	width: 52%;
	height: 39%;
}
.plan-room--operations::before {
	left: 22%;
	bottom: -1px;
}
.plan-room--archive {
	left: 8%;
	top: 46%;
	width: 38%;
	height: 41%;
}
.plan-room--archive::before {
	right: -1px;
	top: 24%;
	transform: rotate(90deg) translateY(-13px);
}
.plan-room--data {
	left: 46%;
	top: 54%;
	width: 45%;
	height: 33%;
}
.plan-room--data::before {
	left: 16%;
	top: -1px;
}
.plan-connection {
	position: absolute;
	z-index: 1;
	height: 1px;
	transform-origin: left center;
	background: linear-gradient(
		90deg,
		oklch(0.62 0.12 220 / 0),
		oklch(0.68 0.14 220 / 0.48),
		oklch(0.62 0.12 220 / 0)
	);
}
.plan-connection::after {
	content: "";
	position: absolute;
	width: 5px;
	height: 5px;
	top: -2px;
	border-radius: 50%;
	background: oklch(0.78 0.12 215);
	box-shadow: 0 0 10px oklch(0.76 0.13 215);
	animation: data-packet 2.6s linear infinite;
}
.plan-connection--a {
	left: 18%;
	top: 29%;
	width: 45%;
	transform: rotate(25deg);
}
.plan-connection--b {
	left: 50%;
	top: 21%;
	width: 34%;
	transform: rotate(43deg);
}
.plan-connection--c {
	left: 21%;
	top: 73%;
	width: 42%;
	transform: rotate(-17deg);
}
.plan-connection--d {
	left: 61%;
	top: 55%;
	width: 28%;
	transform: rotate(34deg);
}
@keyframes data-packet {
	from {
		left: 0;
		opacity: 0;
	}
	15%,
	80% {
		opacity: 1;
	}
	to {
		left: 100%;
		opacity: 0;
	}
}

.plan-node {
	position: absolute;
	z-index: 4;
	left: var(--nx);
	top: var(--ny);
	transform: translate(-50%, -50%);
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	padding: 0;
	color: oklch(0.68 0.035 235);
	background: oklch(0.24 0.06 250 / 0.88);
	border: 1px solid oklch(0.65 0.07 225 / 0.28);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 8px 24px oklch(0.1 0.03 250 / 0.3);
	transition:
		color var(--dur),
		background var(--dur),
		border-color var(--dur),
		transform var(--dur) var(--ease-out-expo),
		opacity var(--dur);
}
.plan-node > span {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 9px);
	width: max-content;
	max-width: 150px;
	transform: translate(-50%, 5px);
	padding: 5px 8px;
	border-radius: 6px;
	background: oklch(0.15 0.045 250 / 0.94);
	color: #fff;
	font-size: 0.68rem;
	opacity: 0;
	pointer-events: none;
	transition:
		opacity var(--dur-fast),
		transform var(--dur);
}
.plan-node:hover,
.plan-node:focus-visible {
	color: #fff;
	border-color: oklch(0.76 0.11 215 / 0.75);
	transform: translate(-50%, -50%) scale(1.08);
}
.plan-node:hover > span,
.plan-node:focus-visible > span,
.plan-node.is-active > span {
	opacity: 1;
	transform: translate(-50%, 0);
}
.plan-node.is-active {
	color: var(--brand-900);
	background: var(--action-500);
	border-color: oklch(0.88 0.1 75);
	box-shadow:
		0 0 0 7px oklch(0.7 0.15 65 / 0.14),
		0 0 28px oklch(0.7 0.15 65 / 0.36);
}
.plan-node.is-active::after {
	content: "";
	position: absolute;
	inset: -8px;
	border: 1px solid oklch(0.8 0.12 70 / 0.45);
	border-radius: 50%;
	animation: node-radar 1.8s ease-out infinite;
}
@keyframes node-radar {
	from {
		transform: scale(0.7);
		opacity: 1;
	}
	to {
		transform: scale(1.55);
		opacity: 0;
	}
}
.plan-node--core {
	width: 52px;
	height: 52px;
}

.integration-detail {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: var(--sp-12);
	background:
		radial-gradient(
			24rem 18rem at 100% 0%,
			oklch(0.45 0.1 248 / 0.28),
			transparent 70%
		),
		oklch(0.19 0.052 250);
}
.integration-detail__index {
	color: var(--action-500);
	font-family: var(--font-display);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.integration-detail__icon {
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	margin: var(--sp-8) 0 var(--sp-6);
	color: var(--action-500);
	border: 1px solid oklch(1 0 0 / 0.13);
	border-radius: var(--r-md);
	background: oklch(1 0 0 / 0.055);
}
.integration-detail h3 {
	color: #fff;
	font-size: var(--step-2);
	font-weight: 700;
	margin-bottom: var(--sp-4);
}
.integration-detail > p {
	color: oklch(0.8 0.025 250);
	font-size: 0.94rem;
	line-height: 1.6;
}
.integration-detail ul {
	list-style: none;
	display: grid;
	gap: var(--sp-3);
	margin: var(--sp-6) 0 var(--sp-8);
}
.integration-detail li {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	color: oklch(0.87 0.02 250);
	font-size: 0.84rem;
}
.integration-detail li i {
	color: var(--ok);
}
.integration-detail__link {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	margin-top: auto;
	color: var(--action-500);
	font-family: var(--font-display);
	font-size: 0.88rem;
	font-weight: 700;
}
.integration-detail__link i {
	transition: transform var(--dur) var(--ease-out-expo);
}
.integration-detail__link:hover i {
	transform: translateX(4px);
}
.integration-detail.is-updating > * {
	animation: integration-detail-in 420ms var(--ease-out-expo) both;
}
.integration-detail.is-updating > *:nth-child(2) {
	animation-delay: 35ms;
}
.integration-detail.is-updating > *:nth-child(3) {
	animation-delay: 55ms;
}
.integration-detail.is-updating > *:nth-child(4) {
	animation-delay: 75ms;
}
.integration-detail.is-updating > *:nth-child(5) {
	animation-delay: 95ms;
}
@keyframes integration-detail-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

.home-services {
	padding: var(--sp-24) 0;
	background:
		radial-gradient(36rem 22rem at 100% 0%, var(--action-100), transparent 68%),
		var(--paper-2);
	border-block: 1px solid var(--line);
}
.home-section-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: var(--sp-8);
	margin-bottom: var(--sp-12);
}
.home-section-head > div {
	max-width: 56ch;
}
.home-section-head__copy {
	color: var(--ink-700);
	max-width: 38ch;
}
.text-link {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	flex: none;
	color: var(--brand-600);
	font-family: var(--font-display);
	font-weight: 700;
}
.text-link i {
	transition: transform var(--dur) var(--ease-out-expo);
}
.text-link:hover i,
.text-link:focus-visible i {
	transform: translateX(4px);
}
.home-services .svc-link {
	background: oklch(0.985 0.006 85 / 0.82);
	min-height: 76px;
}

.home-process {
	background: var(--paper);
}
.process-grid {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	counter-reset: steps;
	border-top: 1px solid var(--line-strong);
}
.process-step {
	position: relative;
	padding: var(--sp-8) var(--sp-6) var(--sp-6);
	border-right: 1px solid var(--line);
}
.process-step:last-child {
	border-right: 0;
}
.process-step > span {
	position: absolute;
	top: -13px;
	left: var(--sp-6);
	padding: 2px 8px;
	background: var(--paper);
	color: var(--ink-500);
	font-family: var(--font-display);
	font-size: 0.76rem;
	font-weight: 700;
}
.process-step > i {
	color: var(--brand-600);
	margin-bottom: var(--sp-4);
}
.process-step h3 {
	color: var(--brand-900);
	font-size: 1.12rem;
	font-weight: 700;
	margin-bottom: var(--sp-2);
}
.process-step p {
	color: var(--ink-700);
	font-size: 0.94rem;
	line-height: 1.5;
}

.home-sectors {
	padding: var(--sp-24) 0;
	color: #fff;
	background:
		radial-gradient(
			40rem 28rem at 12% 0%,
			oklch(0.44 0.11 248 / 0.65),
			transparent 68%
		),
		var(--brand-900);
}
.home-sectors__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
	gap: var(--sp-16);
	align-items: center;
}
.home-sectors .eyebrow {
	color: var(--action-500);
}
.home-sectors h2 {
	color: #fff;
	max-width: 18ch;
}
.home-sectors__copy > p:not(.eyebrow) {
	color: oklch(0.84 0.02 250);
	max-width: 54ch;
	font-size: var(--step-1);
	margin: var(--sp-4) 0 var(--sp-8);
}
.home-sectors__links {
	border-top: 1px solid oklch(1 0 0 / 0.18);
}
.home-sectors__links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--sp-5, 20px) var(--sp-2);
	border-bottom: 1px solid oklch(1 0 0 / 0.18);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.08rem;
	color: oklch(0.92 0.012 250);
	transition:
		color var(--dur-fast),
		padding var(--dur) var(--ease-out-expo);
}
.home-sectors__links a:hover,
.home-sectors__links a:focus-visible {
	color: var(--action-500);
	padding-left: var(--sp-4);
}

.home-proof {
	background: var(--paper);
}
.home-proof .stats {
	padding-top: 0;
}
.home-proof .proof {
	flex-wrap: nowrap;
}
.text-link--push {
	margin-left: auto;
}

@media (max-width: 960px) {
	.home-value__grid,
	.home-sectors__grid {
		grid-template-columns: 1fr;
		gap: var(--sp-12);
	}
	.integration-lab__head {
		grid-template-columns: 1fr;
		gap: var(--sp-6);
	}
	.integration-tabs {
		grid-template-columns: repeat(3, 1fr);
	}
	.integration-tab:nth-child(3) {
		border-right: 0;
	}
	.integration-tab:nth-child(-n + 3) {
		border-bottom: 1px solid oklch(1 0 0 / 0.1);
	}
	.integration-workspace {
		grid-template-columns: 1fr;
	}
	.operations-plan {
		border-right: 0;
		border-bottom: 1px solid oklch(1 0 0 / 0.1);
	}
	.process-grid {
		grid-template-columns: repeat(2, 1fr);
		row-gap: var(--sp-8);
	}
	.process-step:nth-child(2) {
		border-right: 0;
	}
}
@media (max-width: 680px) {
	.integration-lab,
	.home-services,
	.home-sectors {
		padding: var(--sp-16) 0;
	}
	.integration-tabs {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}
	.integration-tabs::-webkit-scrollbar {
		display: none;
	}
	.integration-tab {
		flex: 0 0 auto;
		min-width: 126px;
		min-height: 58px;
		scroll-snap-align: start;
		border-bottom: 0 !important;
	}
	.integration-workspace,
	.operations-plan {
		min-height: 450px;
	}
	.operations-plan {
		min-height: 450px;
	}
	.plan-node {
		width: 38px;
		height: 38px;
	}
	.plan-node--core {
		width: 46px;
		height: 46px;
	}
	.plan-node > span {
		display: none;
	}
	.integration-detail {
		padding: var(--sp-8) var(--sp-6);
	}
	.home-section-head {
		align-items: start;
		flex-direction: column;
		margin-bottom: var(--sp-8);
	}
	.process-grid {
		grid-template-columns: 1fr;
		border-top: 0;
		row-gap: 0;
	}
	.process-step {
		border-right: 0;
		border-top: 1px solid var(--line-strong);
		padding-inline: var(--sp-4);
	}
	.process-step > span {
		left: var(--sp-4);
	}
	.home-proof .proof {
		align-items: flex-start;
		flex-wrap: wrap;
	}
	.text-link--push {
		margin-left: 0;
		width: 100%;
	}
}

/* ══════════════════════════════════════════════════════════════════
   PÁGINAS DE ERROR
   ══════════════════════════════════════════════════════════════════ */
.error-page {
	min-height: 100dvh;
	display: grid;
	grid-template-rows: auto 1fr;
	background:
		radial-gradient(40rem 30rem at 85% 5%, var(--brand-100), transparent 68%),
		var(--paper);
}
.error-page__nav {
	width: min(1200px, 92vw);
	margin-inline: auto;
	min-height: 72px;
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--line);
}
.error-page__main {
	width: min(760px, 92vw);
	margin: auto;
	padding: var(--sp-16) 0;
	position: relative;
}
.error-page__code {
	position: absolute;
	top: var(--sp-8);
	right: 0;
	color: var(--brand-100);
	font-family: var(--font-display);
	font-size: clamp(6rem, 20vw, 13rem);
	font-weight: 800;
	line-height: 0.8;
	z-index: -1;
}
.error-page__main h1 {
	max-width: 13ch;
	margin: var(--sp-3) 0 var(--sp-6);
	color: var(--brand-900);
	font-size: var(--step-4);
}
.error-page__main > p:not(.eyebrow, .error-page__code) {
	max-width: 58ch;
	color: var(--ink-700);
	font-size: var(--step-1);
}
.error-page__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--sp-3) var(--sp-6);
	margin-top: var(--sp-8);
}
.error-page__detail {
	max-width: 64ch;
	margin-top: var(--sp-6);
	color: var(--ink-700);
}
.error-page__detail summary {
	cursor: pointer;
	color: var(--brand-700);
	font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════
   SECTORES · INSTALACIONES Y TECNOLOGÍAS
   Instalaciones = cards contextuales amplias.
   Tecnologías   = matriz técnica compacta.
   ══════════════════════════════════════════════════════════════════ */

/* ── Instalaciones donde trabajamos ─────────────────────────────── */
/* .facility-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--sp-4);
}
.facility-card{
  position:relative;
  min-height:172px;
  padding:var(--sp-6);
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:
    linear-gradient(145deg, oklch(0.44 0.11 248 / 0.07), transparent 56%),
    var(--paper-2);
  transition:
    transform var(--dur) var(--ease-out-expo),
    border-color var(--dur-fast) var(--ease-out-quint),
    box-shadow var(--dur) var(--ease-out-quint);
}
.facility-card::after{
  content:"";
  position:absolute;
  right:-36px;
  bottom:-54px;
  width:128px;
  height:128px;
  border:1px solid oklch(0.44 0.11 248 / 0.10);
  border-radius:50%;
  pointer-events:none;
}

.facility-card__index{
  position:absolute;
  top:var(--sp-4);
  right:var(--sp-4);
  font-family:var(--font-display);
  font-size:0.72rem;
  font-weight:800;
  line-height:1;
  letter-spacing:0.14em;
  color:var(--ink-500);
}

.facility-card__content{
  position:relative;
  z-index:1;
  display:flex;
  min-height:122px;
  flex-direction:column;
  justify-content:flex-end;
  align-items:flex-start;
  gap:var(--sp-4);
}

.facility-card__marker{
  display:grid;
  width:42px;
  height:42px;
  place-items:center;
  border:1px solid var(--brand-100);
  border-radius:var(--r-md);
  color:var(--brand-600);
  background:var(--brand-050);
}
.facility-card__name{
  max-width:20ch;
  margin:0;
  color:var(--brand-900);
  font-size:clamp(1rem,1.35vw,1.18rem);
  font-weight:700;
  line-height:1.22;
} */

.facility-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--sp-4);
}
.facility-card {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	min-height: 78px;
	gap: 12px;
	padding: 14px 16px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background:
		linear-gradient(145deg, oklch(0.44 0.11 248 / 0.07), transparent 56%),
		var(--paper-2);
	transition:
		transform var(--dur) var(--ease-out-expo),
		border-color var(--dur-fast) var(--ease-out-quint),
		box-shadow var(--dur) var(--ease-out-quint);
}
.facility-card::after {
	content: "";
	position: absolute;
	right: -36px;
	bottom: -54px;
	width: 128px;
	height: 128px;
	border: 1px solid oklch(0.44 0.11 248 / 0.1);
	border-radius: 50%;
	pointer-events: none;
}
.facility-card__marker {
	position: relative;
	z-index: 1;
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border: 1px solid var(--brand-100);
	border-radius: 10px;
	color: var(--brand-600);
	background: var(--brand-050);
}
.facility-card__name {
	position: relative;
	z-index: 1;
	min-width: 0;
	max-width: none;
	margin: 0;
	color: var(--brand-900);
	font-size: clamp(0.98rem, 1.15vw, 1.08rem);
	font-weight: 700;
	line-height: 1.25;
}
.facility-card__index {
	position: relative;
	z-index: 1;
	align-self: start;
	padding-top: 2px;
	font-family: var(--font-display);
	font-size: 0.74rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.12em;
	color: var(--ink-500);
}

/*  INSTALACIONES · RESPONSIVE */
@media (max-width: 600px) {
	.facility-card__marker {
		width: 30px;
		height: 30px;
		border-radius: 8px;
	}

	.facility-card__marker svg {
		width: 17px;
		height: 17px;
	}

	.facility-card__name {
		font-size: 0.93rem;
		line-height: 1.18;
	}

	.facility-card__index {
		align-self: center;
		padding-top: 0;
		font-size: 0.68rem;
	}
}

/* ══════════════════════════════════════════════════════════════════
   Tecnologías implementadas 
  ══════════════════════════════════════════════════════════════════ */
.technology-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	overflow: hidden;
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: var(--paper);
}
.technology-item {
	display: flex;
	align-items: center;
	min-height: 54px;
	gap: 10px;
	padding: 10px 14px;
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--surface);
	transition:
		background-color 180ms ease,
		color 180ms ease;
}
/*
.technology-item__icon{
    display:inline-grid;
    flex:0 0 auto;
    width:28px;
    height:28px;
    place-items:center;
    border-radius:999px;
    color:var(--action-500);
    background:color-mix(in oklab,var(--action-500) 9%,transparent);
}*/
.technology-item__icon {
	display: inline-grid;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	place-items: center;
	border-radius: 999px;

	color: var(--brand-600);
	background: color-mix(in oklab, var(--brand-600) 10%, transparent);
}
.technology-item__name {
	color: var(--brand-900);
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 650;
	line-height: 1.35;
}

@media (hover: hover) and (pointer: fine) {
	.facility-card:hover {
		transform: translateY(-3px);
		border-color: var(--line-strong);
		box-shadow: var(--shadow-md);
	}
	.technology-item:hover {
		background: var(--brand-050);
	}
}

@media (max-width: 900px) {
	.facility-grid,
	.technology-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {	
	.technology-grid {
		grid-template-columns: 1fr;
	}
  .facility-grid{
    grid-template-columns:1fr;
    /*gap:10px;*/
  }
	.facility-card{
    /*min-height:148px;*/
    min-height:68px;
    gap:9px;
    padding:8px 10px;
    border-radius:var(--r-md);
  }
  /*.facility-card__content{
    min-height:98px;
  }*/
	.technology-item {
		min-height: 68px;
		padding: var(--sp-4);
	}
}

@media (prefers-reduced-motion: reduce) {
	.facility-card,
	.technology-item {
		transition: none;
	}
	.facility-card:hover {
		transform: none;
	}
}
/* ══════════════════════════════════════════════════════════════════
   SECTORES · CASOS DE EXPERIENCIA
   Cards editoriales horizontales
   ══════════════════════════════════════════════════════════════════ */
.case-list{
  display:grid;
  gap:var(--sp-4);
}

.case-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:var(--sp-6);
  padding:var(--sp-6);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:
    linear-gradient(145deg, oklch(0.44 0.11 248 / 0.045), transparent 58%),
    var(--paper-2);
  transition:
    transform var(--dur) var(--ease-out-expo),
    border-color var(--dur-fast) var(--ease-out-quint),
    box-shadow var(--dur) var(--ease-out-quint);
}

.case-row__index{
  align-self:start;
  min-width:34px;
  padding-top:3px;
  color:var(--brand-600);
  font-family:var(--font-display);
  font-size:.72rem;
  font-weight:800;
  line-height:1;
  letter-spacing:.14em;
}

.case-row__content{
  min-width:0;
}

.case-row__title{
  margin:0;
  color:var(--brand-900);
  font-size:clamp(1rem,1.25vw,1.14rem);
  font-weight:700;
  line-height:1.2;
}

.case-row__description{
  max-width:72ch;
  margin-top:8px;
  color:var(--ink-700);
  font-size:.95rem;
  line-height:1.55;
}

.case-row__link{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:166px;
  color:var(--brand-600);
  font-family:var(--font-display);
  font-size:.88rem;
  font-weight:700;
  line-height:1.25;
  text-align:right;
}

.case-row__link i{
  flex:none;
  transition:transform var(--dur) var(--ease-out-expo);
}

@media (hover:hover) and (pointer:fine){
  .case-row:hover{
    transform:translateY(-2px);
    border-color:var(--line-strong);
    box-shadow:var(--shadow-md);
  }

  .case-row__link:hover i,
  .case-row__link:focus-visible i{
    transform:translateX(4px);
  }
}

@media (max-width:820px){
  .case-row{
    grid-template-columns:auto minmax(0,1fr);
  }

  .case-row__link{
    grid-column:2;
    justify-content:flex-start;
    min-width:0;
    text-align:left;
  }
}

@media (max-width:680px){
  .case-list{
    gap:var(--sp-3);
  }

  .case-row{
    grid-template-columns:1fr;
    gap:var(--sp-3);
    padding:var(--sp-5,20px);
    border-radius:var(--r-md);
  }

  .case-row__index{
    min-width:0;
    padding-top:0;
  }

  .case-row__description{
    margin-top:6px;
    font-size:.92rem;
    line-height:1.5;
  }

  .case-row__link{
    grid-column:auto;
    width:fit-content;
    padding-top:2px;
  }
}

@media (prefers-reduced-motion:reduce){
  .case-row,
  .case-row__link i{
    transition:none;
  }

  .case-row:hover{
    transform:none;
  }
}

/* ══════════════════════════════════════════════════════════════════
   SWITCHER · SOLUCIONES
   Scroll horizontal + controles desktop
   ══════════════════════════════════════════════════════════════════ */

.switcher--solutions .switcher__inner{
  display:flex;
  align-items:center;
  gap:var(--sp-6);
  overflow:visible;
}

.switcher--solutions .brand{
  flex:0 0 auto;
  margin-right:0;
  white-space:nowrap;
}


/* Contenedor completo: flecha + tabs + flecha */
.solution-tabs-shell{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;

  gap:8px;

  min-width:0;
  flex:1 1 auto;
}


/* Zona que realmente se desplaza */
.solution-tabs{
  min-width:0;

  overflow-x:auto;
  overflow-y:hidden;

  scrollbar-width:none;

  -webkit-overflow-scrolling:touch;

  overscroll-behavior-inline:contain;

  scroll-behavior:smooth;
}

.solution-tabs::-webkit-scrollbar{
  display:none;
}


/* Lista horizontal */
.solution-tabs__list{
  display:flex;
  align-items:center;

  width:max-content;

  gap:var(--sp-2);

  margin:0;
  padding:0;

  list-style:none;

  white-space:nowrap;
}

.solution-tabs__item{
  flex:0 0 auto;
}


/* Botones laterales */
.solution-tabs__control{
  display:grid;
  place-items:center;

  width:34px;
  height:34px;

  padding:0;

  border:1px solid var(--line-strong);
  border-radius:50%;

  background:var(--paper);
  color:var(--brand-700);

  cursor:pointer;

  flex:0 0 auto;

  transition:
    color var(--dur-fast) var(--ease-out-quint),
    background var(--dur-fast) var(--ease-out-quint),
    border-color var(--dur-fast) var(--ease-out-quint),
    opacity var(--dur-fast) var(--ease-out-quint);
}

.solution-tabs__control:hover:not(:disabled),
.solution-tabs__control:focus-visible:not(:disabled){
  color:#fff;

  background:var(--brand-600);
  border-color:var(--brand-600);
}


/* Inicio / final del scroll */
.solution-tabs__control:disabled{
  opacity:.32;
  cursor:default;
}


/* Tabs */
.switcher--solutions .tab-sec{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:40px;

  white-space:nowrap;

  padding:8px 16px;
}


/* ══════════════════════════════════════════════════════════════════
   MÓVIL
   Ocultar flechas y mantener swipe
   ══════════════════════════════════════════════════════════════════ */

@media (max-width:760px){

  .switcher--solutions .switcher__inner{
    gap:var(--sp-3);
  }

  .solution-tabs-shell{
    grid-template-columns:minmax(0,1fr);
  }

  .solution-tabs__control{
    display:none;
  }

  .switcher--solutions .brand{
    font-size:.95rem;
  }

  .switcher--solutions .brand span{
    font-size:.55rem;
  }

  .solution-tabs__list{
    gap:6px;
  }

  .switcher--solutions .tab-sec{
    min-height:36px;

    padding:7px 13px;

    font-size:.82rem;
  }

}
 
/*********************** footer desarrollado por *************/
.site-footer__legal{
  display:flex;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
}

.site-footer__developer{
  color:var(--ink-500);
  font-size:0.82rem;
}

.site-footer__developer a{
  color:inherit;
  font-weight:600;
  text-decoration:none;
  transition:color 180ms ease;
}

.site-footer__developer a:hover{
  color:var(--action-500);
}

