/* ==========================================================================
   Grupo SAR — estilos del tema
   1. Tokens  2. Base  3. Utilidades  4. Botones  5. Cabecera  6. Héroe
   7. Clientes  8. Empresa  9. Servicios  10. Metodología  11. Nosotros
   12. Obras  13. Catálogos  14. Contacto  15. Pie  16. WhatsApp
   17. Visor  18. Páginas internas  19. 404  20. Animaciones
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
	--ink-950: #05090f;
	--ink-900: #08101c;
	--ink-850: #0c1626;
	--ink-800: #111d31;
	--ink-700: #1a2942;
	--steel-500: #6b7890;
	--steel-400: #8d99ad;
	--steel-300: #b3bccb;
	--steel-200: #d3d9e2;
	--paper: #f3f4f0;
	--paper-2: #e9ebe5;
	--white: #fbfbf9;
	--text: #0b1322;
	--text-muted: #556074;
	--blue-700: #163fae;
	--blue-600: #1f52e0;
	--blue-500: #2f6bff;
	--blue-400: #5c8cff;
	--blue-300: #9cb8ff;
	--amber-500: #ffae1a;
	--amber-400: #ffc457;
	--wa: #25d366;

	--line-dark: rgba(255, 255, 255, 0.09);
	--line-dark-strong: rgba(255, 255, 255, 0.16);
	--line-light: rgba(11, 19, 34, 0.12);

	--font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--container: 1280px;
	--gutter: clamp(20px, 4vw, 48px);
	--section-y: clamp(88px, 11vw, 160px);
	--radius-sm: 8px;
	--radius: 16px;
	--radius-lg: 24px;
	--topbar-h: 40px;
	--header-h: 76px;
	--ease: cubic-bezier(0.22, 0.7, 0.12, 1);
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--ink-950);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

html.nav-open {
	overflow: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

a {
	color: inherit;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 600;
	font-stretch: 108%;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

p {
	margin: 0;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

:focus-visible {
	outline: 2px solid var(--blue-400);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--blue-500);
	color: #fff;
}

.icon {
	width: 1em;
	height: 1em;
	flex: none;
}

/* 3. Utilidades
   ========================================================================== */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px;
	left: 12px;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 18px;
	background: #fff;
	color: var(--text);
	border-radius: var(--radius-sm);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	position: relative;
	padding-block: var(--section-y);
}

.section--dark {
	background: var(--ink-900);
	color: var(--steel-200);
}

.section--light {
	background: var(--paper);
}

.section--white {
	background: var(--white);
}

.muted {
	color: var(--text-muted);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--steel-400);
}

.section--light .eyebrow,
.section--white .eyebrow {
	color: var(--text-muted);
}

.live-dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--amber-500);
	box-shadow: 0 0 0 0 rgba(255, 174, 26, 0.6);
	animation: live 2.4s ease-out infinite;
}

.live-dot--off {
	background: var(--steel-500);
	animation: none;
}

@keyframes live {
	0% { box-shadow: 0 0 0 0 rgba(255, 174, 26, 0.55); }
	70%, 100% { box-shadow: 0 0 0 10px rgba(255, 174, 26, 0); }
}

/* Encabezado de sección */
.section-head__meta {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-top: 18px;
	margin-bottom: clamp(28px, 4vw, 44px);
	border-top: 1px solid var(--line-light);
}

.section--dark .section-head__meta {
	border-top-color: var(--line-dark);
}

.section-head__index {
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 500;
	color: var(--blue-600);
}

.section--dark .section-head__index {
	color: var(--amber-500);
}

.section-head__index span {
	color: var(--steel-400);
}

.section-title {
	max-width: 17ch;
	font-size: clamp(2.1rem, 4.6vw, 4rem);
	font-weight: 600;
	font-stretch: 110%;
	line-height: 1.02;
	letter-spacing: -0.035em;
	color: var(--text);
}

.section--dark .section-title {
	color: #fff;
}

.section-title em {
	font-style: normal;
	color: var(--text-muted);
}

.section--dark .section-title em {
	color: var(--steel-500);
}

.section-lead {
	max-width: 52ch;
	margin-top: 22px;
	font-size: clamp(17px, 1.3vw, 19px);
	color: var(--text-muted);
}

.section--dark .section-lead {
	color: var(--steel-400);
}

/* 4. Botones y enlaces
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 52px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.005em;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}

.btn:has(.btn__icon) {
	padding-right: 10px;
}

.btn .icon {
	font-size: 18px;
}

.btn__icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	transition: transform 0.4s var(--ease);
}

.btn__icon .icon {
	font-size: 16px;
}

.btn:hover .btn__icon {
	transform: rotate(-45deg);
}

.btn:active {
	transform: scale(0.98);
}

.btn--primary {
	background: var(--blue-500);
	color: #fff;
	box-shadow: 0 12px 32px -12px rgba(47, 107, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
	background: var(--blue-400);
}

.btn--ghost {
	background: rgba(255, 255, 255, 0.02);
	color: #fff;
	border-color: var(--line-dark-strong);
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.28);
}

.btn--ghost .btn__icon {
	background: rgba(255, 255, 255, 0.08);
}

.btn--dark {
	background: var(--ink-950);
	color: #fff;
}

.btn--dark:hover {
	background: var(--ink-700);
}

.btn--outline {
	background: transparent;
	color: var(--text);
	border-color: var(--line-light);
}

.btn--outline:hover {
	border-color: var(--text);
}

.btn--sm {
	height: 44px;
	padding: 0 18px;
	font-size: 14px;
	gap: 8px;
}

.btn--block {
	width: 100%;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid currentColor;
	font-weight: 600;
	text-decoration: none;
	transition: gap 0.3s var(--ease), color 0.3s;
}

.link-arrow:hover {
	gap: 16px;
	color: var(--blue-600);
}

/* 5. Cabecera
   ========================================================================== */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	color: #fff;
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(5, 9, 15, 0.74);
	border-bottom: 1px solid var(--line-dark);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	opacity: 0;
	transition: opacity 0.4s;
}

.site-header.is-scrolled::before {
	opacity: 1;
}

.topbar {
	position: relative;
	height: var(--topbar-h);
	border-bottom: 1px solid var(--line-dark);
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--steel-300);
	overflow: hidden;
	transition: height 0.4s var(--ease), opacity 0.3s, border-color 0.4s;
}

.site-header.is-scrolled .topbar {
	height: 0;
	opacity: 0;
	border-color: transparent;
}

.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--topbar-h);
}

.topbar__info {
	display: flex;
	gap: 28px;
}

.topbar__info li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.topbar__info .icon {
	font-size: 14px;
	color: var(--amber-500);
}

.topbar a {
	text-decoration: none;
	transition: color 0.2s;
}

.topbar a:hover {
	color: #fff;
}

.social {
	display: flex;
	gap: 6px;
}

.social a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--line-dark);
	border-radius: 50%;
	color: var(--steel-300);
	transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.social a:hover {
	color: #fff;
	border-color: var(--line-dark-strong);
	background: rgba(255, 255, 255, 0.06);
}

.social .icon {
	font-size: 16px;
}

.topbar__social a {
	width: 28px;
	height: 28px;
	border: 0;
}

.header__inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: 28px;
	height: var(--header-h);
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-right: auto;
	color: #fff;
	text-decoration: none;
}

.brand__mark {
	width: 42px;
	height: 42px;
	flex: none;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.brand__text strong {
	font-size: 19px;
	font-weight: 700;
	font-stretch: 105%;
	letter-spacing: -0.02em;
}

.brand__text small {
	margin-top: 6px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--steel-400);
}

.custom-logo {
	width: auto;
	max-height: 52px;
}

.nav-list {
	display: flex;
	gap: 2px;
}

.nav-list a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--steel-200);
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s;
}

.nav-list a:hover,
.nav-list .is-active > a,
.nav-list .current-menu-item > a {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
	display: none;
	position: relative;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--line-dark-strong);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	cursor: pointer;
}

.nav-toggle__bar {
	position: absolute;
	left: 14px;
	right: 14px;
	height: 1.5px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}

.nav-toggle__bar:nth-child(1) {
	top: 18px;
}

.nav-toggle__bar:nth-child(2) {
	top: 26px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
	top: 22px;
	transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
	top: 22px;
	transform: rotate(-45deg);
}

.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 49;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	padding: calc(var(--header-h) + 32px) var(--gutter) 32px;
	background: var(--ink-950);
	color: #fff;
	overflow-y: auto;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.35s var(--ease), visibility 0s 0.35s;
}

.mobile-nav.is-open {
	visibility: visible;
	opacity: 1;
	transition: opacity 0.35s var(--ease);
}

.mobile-nav .nav-list {
	flex-direction: column;
	gap: 0;
}

.mobile-nav .nav-list a {
	padding: 14px 0;
	border-radius: 0;
	border-bottom: 1px solid var(--line-dark);
	background: none;
	font-size: clamp(26px, 7vw, 38px);
	font-weight: 600;
	font-stretch: 110%;
	letter-spacing: -0.03em;
	color: #fff;
}

.mobile-nav__footer {
	display: grid;
	gap: 20px;
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--steel-400);
}

.mobile-nav__footer a {
	text-decoration: none;
}

.mobile-nav__footer .btn {
	font-family: var(--font-sans);
}

@media (max-width: 1100px) {
	.primary-nav,
	.header__cta {
		display: none;
	}

	.nav-toggle {
		display: block;
	}
}

@media (max-width: 860px) {
	.topbar {
		display: none;
	}
}

@media (min-width: 1101px) {
	.mobile-nav {
		display: none;
	}
}

/* 6. Héroe
   ========================================================================== */
.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: calc(var(--topbar-h) + var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(150px, 18vw, 220px);
	overflow: hidden;
	background: var(--ink-950);
	color: #fff;
}

.hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--line-dark) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
	background-size: 72px 72px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 15%, transparent 75%);
	mask-image: radial-gradient(ellipse 80% 70% at 70% 35%, #000 15%, transparent 75%);
	opacity: 0.55;
}

.hero__glow {
	position: absolute;
	top: -320px;
	right: -220px;
	width: 980px;
	height: 980px;
	background: radial-gradient(circle, rgba(47, 107, 255, 0.3), transparent 60%);
}

.hero__glow::after {
	content: "";
	position: absolute;
	left: -700px;
	top: 700px;
	width: 760px;
	height: 760px;
	background: radial-gradient(circle, rgba(255, 174, 26, 0.09), transparent 60%);
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: center;
}

.hero__title {
	margin: 26px 0;
	font-size: clamp(2.7rem, 6.4vw, 6rem);
	font-weight: 600;
	font-stretch: 112%;
	line-height: 0.98;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.hero__title em {
	position: relative;
	display: inline-block;
	font-style: normal;
	color: transparent;
	background: linear-gradient(100deg, #fff 10%, var(--blue-300) 90%);
	-webkit-background-clip: text;
	background-clip: text;
}

.hero__title em::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -0.1em;
	height: 0.16em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q10 -1 20 5 T40 5' fill='none' stroke='%23ffae1a' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x 0 50% / 0.64em 0.16em;
	animation: wave-slide 1.6s linear infinite;
}

@keyframes wave-slide {
	to { background-position-x: 0.64em; }
}

.hero__lead {
	max-width: 50ch;
	font-size: clamp(17px, 1.35vw, 20px);
	line-height: 1.6;
	color: var(--steel-300);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 40px;
}

.hero__facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	max-width: 640px;
	margin: clamp(48px, 6vw, 72px) 0 0;
	padding-top: 22px;
	border-top: 1px solid var(--line-dark);
}

.hero__facts dt {
	margin-bottom: 6px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--steel-500);
}

.hero__facts dd {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--steel-200);
}

.hero__visual {
	position: relative;
	justify-self: end;
	width: 100%;
	max-width: 440px;
}

.hero__fig {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--steel-400);
}

.hero__fig span {
	color: var(--amber-500);
}

.hero__photo {
	position: relative;
	margin: 0;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--ink-800);
}

.hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.15) brightness(0.92);
	transform: scale(1.04);
	transition: transform 2s var(--ease);
}

.hero__visual:hover .hero__photo img {
	transform: scale(1);
}

.hero__photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(47, 107, 255, 0.55) 0%, rgba(22, 63, 174, 0.65) 55%, rgba(5, 9, 15, 0.92) 100%);
	mix-blend-mode: multiply;
}

.hero__photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: inherit;
	pointer-events: none;
}

.tick {
	position: absolute;
	width: 14px;
	height: 14px;
	border-color: var(--steel-500);
	border-style: solid;
	border-width: 0;
}

.tick--tl { top: 18px; left: -12px; border-top-width: 1px; border-left-width: 1px; }
.tick--tr { top: 18px; right: -12px; border-top-width: 1px; border-right-width: 1px; }
.tick--bl { bottom: -12px; left: -12px; border-bottom-width: 1px; border-left-width: 1px; }
.tick--br { bottom: -12px; right: -12px; border-bottom-width: 1px; border-right-width: 1px; }

.readout {
	position: absolute;
	left: -56px;
	bottom: 36px;
	z-index: 2;
	width: 290px;
	padding: 16px 16px 14px;
	border: 1px solid var(--line-dark-strong);
	border-radius: var(--radius);
	background: rgba(8, 16, 28, 0.72);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--steel-300);
}

.readout__head {
	display: flex;
	align-items: center;
	gap: 8px;
}

.readout__phases {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-left: auto;
	color: var(--steel-400);
}

.readout__phases i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--blue-400);
}

.readout__phases i:nth-of-type(2) { background: var(--amber-500); margin-left: 4px; }
.readout__phases i:nth-of-type(3) { background: var(--steel-200); margin-left: 4px; }

.waves--scope {
	height: 64px;
	margin: 12px 0;
	border-block: 1px dashed var(--line-dark);
}

.readout__values {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.readout__values small {
	display: block;
	font-size: 9.5px;
	color: var(--steel-500);
}

.readout__values strong {
	font-family: var(--font-sans);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
	text-transform: none;
	color: #fff;
}

/* Ondas trifásicas */
.waves {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.waves__axis {
	stroke: var(--line-dark-strong);
	stroke-width: 1;
	stroke-dasharray: 2 6;
}

.waves__phase {
	fill: none;
	stroke-width: 1.5;
	stroke-linejoin: round;
}

.waves__phase--1 { stroke: var(--blue-400); }
.waves__phase--2 { stroke: var(--amber-500); opacity: 0.85; }
.waves__phase--3 { stroke: var(--steel-300); opacity: 0.6; }

.waves__run {
	animation: wave-run 8s linear infinite;
}

.waves--scope .waves__run {
	animation-duration: 2.6s;
}

@keyframes wave-run {
	to { transform: translateX(calc(var(--lambda) * -1)); }
}

.hero__waves {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	height: clamp(130px, 18vw, 240px);
	opacity: 0.75;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	pointer-events: none;
}

.hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 28px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	transform: translateX(-50%);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--steel-400);
	text-decoration: none;
}

.hero__scroll::after {
	content: "";
	width: 1px;
	height: 36px;
	background: linear-gradient(var(--steel-300), transparent);
	animation: scroll-hint 2.2s var(--ease) infinite;
	transform-origin: top;
}

@keyframes scroll-hint {
	0% { transform: scaleY(0); }
	50% { transform: scaleY(1); }
	100% { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 960px) {
	.hero {
		min-height: 0;
		padding-top: calc(var(--header-h) + 64px);
	}

	.hero__inner {
		grid-template-columns: 1fr;
	}

	.hero__visual {
		justify-self: start;
		max-width: 420px;
	}

	.readout {
		left: 16px;
		right: 16px;
		bottom: 16px;
		width: auto;
	}

	.hero__scroll {
		display: none;
	}
}

@media (max-width: 560px) {
	.hero__facts {
		grid-template-columns: 1fr 1fr;
	}

	.hero__facts div:last-child {
		display: none;
	}

	.hero__actions .btn {
		flex: 1 1 100%;
	}
}

/* 7. Clientes
   ========================================================================== */
.clients {
	background: var(--ink-950);
	color: var(--steel-300);
	border-top: 1px solid var(--line-dark);
}

.clients__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 48px;
	padding-block: 30px;
}

.clients__label {
	padding-right: 48px;
	border-right: 1px solid var(--line-dark);
	font-family: var(--font-mono);
	font-size: 11px;
	line-height: 1.7;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--steel-500);
}

.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);
}

.marquee__track {
	display: flex;
	width: max-content;
	animation: marquee 45s linear infinite;
}

.marquee:hover .marquee__track {
	animation-play-state: paused;
}

.marquee__track li {
	display: flex;
	align-items: center;
	font-size: clamp(18px, 1.8vw, 24px);
	font-weight: 500;
	font-stretch: 112%;
	letter-spacing: -0.01em;
	white-space: nowrap;
	color: var(--steel-200);
}

.marquee__track li::after {
	content: "";
	width: 7px;
	height: 7px;
	margin: 0 44px;
	background: var(--blue-500);
	transform: rotate(45deg);
}

@keyframes marquee {
	to { transform: translateX(-50%); }
}

@media (max-width: 760px) {
	.clients__inner {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.clients__label {
		padding: 0;
		border: 0;
	}
}

/* 8. Empresa
   ========================================================================== */
.intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: clamp(40px, 7vw, 120px);
	align-items: end;
	margin-top: clamp(40px, 5vw, 64px);
}

.intro__statement {
	font-size: clamp(1.6rem, 3vw, 2.6rem);
	font-weight: 500;
	font-stretch: 106%;
	line-height: 1.15;
	letter-spacing: -0.025em;
	text-wrap: pretty;
}

.intro__body p {
	margin-bottom: 28px;
	font-size: 17.5px;
	color: var(--text-muted);
}

.pillars {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	margin-top: clamp(64px, 8vw, 112px);
	border-top: 1px solid var(--line-light);
}

.pillars li {
	position: relative;
	padding-top: 28px;
}

.pillars li::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--blue-600);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 1s var(--ease) calc(var(--i, 0) * 0.15s + 0.2s);
}

.pillars.is-visible li::before {
	transform: scaleX(1);
}

.pillars__num {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--text-muted);
}

.pillars h3 {
	margin: 14px 0 10px;
	font-size: 22px;
}

.pillars p {
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--text-muted);
}

@media (max-width: 960px) {
	.intro__grid {
		grid-template-columns: 1fr;
	}

	.pillars {
		grid-template-columns: 1fr 1fr;
		row-gap: 8px;
	}
}

@media (max-width: 520px) {
	.pillars {
		grid-template-columns: 1fr;
	}
}

/* 9. Servicios
   ========================================================================== */
.services {
	overflow: hidden;
}

.services::before {
	content: "";
	position: absolute;
	top: -200px;
	left: 50%;
	width: 1100px;
	height: 600px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse, rgba(47, 107, 255, 0.12), transparent 65%);
	pointer-events: none;
}

.svc-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin-top: clamp(48px, 6vw, 72px);
	border: 1px solid var(--line-dark);
	border-radius: var(--radius-lg);
	background: var(--line-dark);
	overflow: hidden;
}

.svc-card {
	--mx: 50%;
	--my: 0%;
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 380px;
	padding: clamp(28px, 3vw, 40px);
	background: var(--ink-900);
	transition: background-color 0.4s;
}

.svc-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(420px circle at var(--mx) var(--my), rgba(47, 107, 255, 0.16), transparent 60%);
	opacity: 0;
	transition: opacity 0.4s;
	pointer-events: none;
}

.svc-card:hover::before {
	opacity: 1;
}

.svc-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 48px;
}

.svc-card__num {
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--steel-500);
	transition: color 0.3s;
}

.svc-card:hover .svc-card__num {
	color: var(--amber-500);
}

.svc-card__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--line-dark-strong);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--blue-300);
	font-size: 24px;
	transition: background-color 0.4s, color 0.4s, border-color 0.4s, transform 0.5s var(--ease);
}

.svc-card:hover .svc-card__icon {
	background: var(--blue-500);
	border-color: var(--blue-500);
	color: #fff;
	transform: rotate(-8deg);
}

.svc-card__title {
	margin-bottom: 12px;
	font-size: clamp(21px, 1.9vw, 26px);
	font-weight: 600;
	color: #fff;
}

.svc-card__text {
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--steel-400);
}

.svc-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 20px;
}

.svc-card__tags li {
	padding: 5px 10px;
	border: 1px solid var(--line-dark);
	border-radius: 999px;
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--steel-300);
}

.svc-card__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 26px;
	font-size: 14px;
	font-weight: 600;
	color: var(--blue-300);
	text-decoration: none;
	transition: gap 0.3s var(--ease), color 0.3s;
}

.svc-card__link:hover {
	gap: 12px;
	color: #fff;
}

@media (max-width: 1024px) {
	.svc-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.svc-grid {
		grid-template-columns: 1fr;
	}

	.svc-card {
		min-height: 0;
	}

	.svc-card__top {
		padding-bottom: 28px;
	}
}

/* 10. Metodología
   ========================================================================== */
.process {
	position: relative;
	margin-top: clamp(48px, 6vw, 80px);
}

.process__rail {
	position: absolute;
	top: 28px;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--line-light);
}

.process__rail::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--blue-600), var(--amber-500));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 1.8s var(--ease) 0.2s;
}

.process.is-visible .process__rail::after {
	transform: scaleX(1);
}

.process__list {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
}

.process__node {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin-bottom: 28px;
	border: 1px solid var(--line-light);
	border-radius: 50%;
	background: var(--paper);
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--text-muted);
	transition: background-color 0.5s, color 0.5s, border-color 0.5s;
	transition-delay: calc(var(--i, 0) * 0.4s + 0.3s);
}

.process.is-visible .process__node {
	background: var(--ink-950);
	border-color: var(--ink-950);
	color: #fff;
}

.process__list h3 {
	margin-bottom: 10px;
	font-size: 24px;
}

.process__list p {
	max-width: 28ch;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--text-muted);
}

@media (max-width: 860px) {
	.process__rail {
		top: 0;
		bottom: 0;
		left: 28px;
		right: auto;
		width: 1px;
		height: auto;
	}

	.process__rail::after {
		background: linear-gradient(180deg, var(--blue-600), var(--amber-500));
		transform: scaleY(0);
		transform-origin: top;
	}

	.process.is-visible .process__rail::after {
		transform: scaleY(1);
	}

	.process__list {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.process__list li {
		display: grid;
		grid-template-columns: 56px 1fr;
		column-gap: 24px;
	}

	.process__node {
		grid-row: span 2;
		margin: 0;
	}
}

/* 11. Nosotros
   ========================================================================== */
.about__cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: clamp(48px, 6vw, 72px);
}

.purpose-card {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: clamp(28px, 4vw, 48px);
	border: 1px solid var(--line-light);
	border-radius: var(--radius-lg);
	background: var(--paper);
}

.purpose-card--dark {
	border-color: transparent;
	background:
		radial-gradient(600px circle at 100% 0%, rgba(47, 107, 255, 0.25), transparent 55%),
		var(--ink-950);
	color: var(--steel-200);
}

.purpose-card__label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--blue-600);
}

.purpose-card--dark .purpose-card__label {
	color: var(--amber-500);
}

.purpose-card__label .icon {
	font-size: 18px;
}

.purpose-card__text {
	font-size: clamp(18px, 1.6vw, 21px);
	line-height: 1.55;
	letter-spacing: -0.005em;
}

.values {
	margin-top: clamp(64px, 8vw, 104px);
}

.values__title {
	margin-bottom: 28px;
	font-size: clamp(22px, 2.2vw, 28px);
}

.values__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--line-light);
}

.value {
	display: flex;
	gap: 18px;
	padding: 28px 28px 28px 0;
	border-bottom: 1px solid var(--line-light);
}

.value__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--paper);
	color: var(--blue-600);
	font-size: 20px;
	transition: background-color 0.3s, color 0.3s;
}

.value:hover .value__icon {
	background: var(--blue-600);
	color: #fff;
}

.value h4 {
	margin: 2px 0 6px;
	font-size: 18px;
}

.value p {
	font-size: 15px;
	line-height: 1.55;
	color: var(--text-muted);
}

@media (max-width: 960px) {
	.about__cards {
		grid-template-columns: 1fr;
	}

	.values__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 600px) {
	.values__grid {
		grid-template-columns: 1fr;
	}

	.value {
		padding-right: 0;
	}
}

/* 12. Obras
   ========================================================================== */
.works {
	background: var(--ink-950);
}

.works__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
}

.works__all {
	flex: none;
}

.bento {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: clamp(180px, 17vw, 250px);
	grid-auto-flow: dense;
	gap: 12px;
	margin-top: clamp(48px, 6vw, 72px);
}

.tile--wide {
	grid-column: span 2;
}

.tile--tall {
	grid-row: span 2;
}

.tile a {
	position: relative;
	display: block;
	height: 100%;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--ink-800);
	color: #fff;
	text-decoration: none;
}

.tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.85) contrast(1.05);
	transition: transform 1.2s var(--ease), filter 0.6s;
}

.tile a:hover img {
	transform: scale(1.06);
	filter: saturate(1.05);
}

.tile a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 35%, rgba(5, 9, 15, 0.55) 62%, rgba(5, 9, 15, 0.94));
	transition: opacity 0.4s;
}

.tile__cap {
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 16px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: transform 0.5s var(--ease);
}

.tile a:hover .tile__cap {
	transform: translateY(-4px);
}

.tile__cap small {
	font-family: var(--font-mono);
	font-size: 10.5px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--amber-400);
}

.tile__cap strong {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.tile__zoom {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(5, 9, 15, 0.6);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	font-size: 16px;
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.3s, transform 0.4s var(--ease);
}

.tile a:hover .tile__zoom,
.tile a:focus-visible .tile__zoom {
	opacity: 1;
	transform: none;
}

@media (max-width: 860px) {
	.works__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.bento {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 200px;
	}
}

@media (max-width: 480px) {
	.bento {
		grid-auto-rows: 160px;
		gap: 8px;
	}

	.tile__cap strong {
		display: none;
	}
}

/* 13. Catálogos
   ========================================================================== */
.catalogs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: clamp(48px, 6vw, 72px);
}

.catalog {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(24px, 3vw, 40px);
	align-items: center;
	padding: clamp(20px, 2.4vw, 32px);
	border: 1px solid var(--line-light);
	border-radius: var(--radius-lg);
	background: var(--white);
	transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.catalog:hover {
	transform: translateY(-4px);
	box-shadow: 0 40px 70px -40px rgba(11, 19, 34, 0.35);
}

.cover {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	aspect-ratio: 3 / 4;
	padding: 16px;
	border-radius: 4px 12px 12px 4px;
	background: linear-gradient(160deg, #13284d 0%, var(--ink-950) 75%);
	color: #fff;
	overflow: hidden;
	box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.1), 0 24px 40px -20px rgba(5, 9, 15, 0.7);
	transform: perspective(900px) rotateY(-10deg);
	transition: transform 0.7s var(--ease);
}

.cover--2 {
	background: linear-gradient(160deg, #2a1d05 0%, var(--ink-950) 70%);
}

.catalog:hover .cover {
	transform: perspective(900px) rotateY(0);
}

.cover::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 10px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent);
}

.cover__brand {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.cover__mark {
	width: 20px;
	height: 20px;
}

.cover__art {
	position: absolute;
	right: -14%;
	bottom: 14%;
	width: 78%;
	color: var(--blue-400);
	opacity: 0.55;
}

.cover--2 .cover__art {
	color: var(--amber-500);
}

.cover__title {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: clamp(16px, 1.5vw, 20px);
	font-weight: 600;
	font-stretch: 110%;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.cover__title small {
	font-family: var(--font-mono);
	font-size: 9px;
	font-weight: 400;
	letter-spacing: 0.2em;
	color: var(--steel-400);
}

.catalog__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.catalog__body h3 {
	margin-bottom: 10px;
	font-size: clamp(22px, 2vw, 28px);
}

.catalog__body > p:not(.catalog__meta) {
	font-size: 15.5px;
	color: var(--text-muted);
}

.catalog__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

@media (max-width: 1100px) {
	.catalogs {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.catalog {
		grid-template-columns: 1fr;
	}

	.catalog__cover {
		max-width: 200px;
	}
}

/* 14. Contacto
   ========================================================================== */
.contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(48px, 6vw, 96px);
	align-items: start;
}

.contact-list {
	margin-top: clamp(40px, 5vw, 56px);
	border-top: 1px solid var(--line-dark);
}

.contact-list li {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr);
	gap: 18px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line-dark);
}

.contact-list__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--line-dark);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.03);
	color: var(--blue-300);
	font-size: 20px;
}

.contact-list small {
	display: block;
	margin-bottom: 4px;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--steel-500);
}

.contact-list a,
.contact-list span {
	font-size: 17px;
	color: #fff;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.contact-list a:hover {
	color: var(--blue-300);
}

.contact-list .contact-list__extra {
	display: block;
	margin-top: 2px;
	font-size: 14.5px;
	color: var(--steel-400);
}

.form-card {
	position: relative;
	padding: clamp(24px, 3.5vw, 44px);
	border: 1px solid var(--line-dark-strong);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.form-card__title {
	margin-bottom: 26px;
	font-size: 22px;
	font-weight: 600;
	font-stretch: 108%;
	color: #fff;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-bottom: 26px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.field--full {
	grid-column: 1 / -1;
}

.field label {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--steel-400);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--line-dark-strong);
	border-radius: 12px;
	background: rgba(5, 9, 15, 0.55);
	color: #fff;
	font-size: 16px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
	resize: vertical;
	min-height: 120px;
}

.field select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d99ad' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 18px;
}

.field select option {
	background: var(--ink-850);
}

.field ::placeholder {
	color: var(--steel-500);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--blue-500);
	box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.2);
}

.form-card .btn .icon {
	font-size: 20px;
}

.form-card__note {
	margin-top: 14px;
	font-family: var(--font-mono);
	font-size: 11.5px;
	text-align: center;
	color: var(--steel-500);
}

@media (max-width: 960px) {
	.contact__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.form-grid {
		grid-template-columns: 1fr;
	}
}

/* 15. Pie
   ========================================================================== */
.site-footer {
	position: relative;
	padding-top: clamp(72px, 9vw, 128px);
	overflow: hidden;
	background: var(--ink-950);
	color: var(--steel-400);
}

.footer__cta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: clamp(48px, 6vw, 72px);
	border-bottom: 1px solid var(--line-dark);
}

.footer__title {
	max-width: 15ch;
	font-size: clamp(2.2rem, 5vw, 4.4rem);
	font-stretch: 112%;
	line-height: 1;
	letter-spacing: -0.04em;
	color: #fff;
}

.footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 40px;
	padding-block: clamp(48px, 6vw, 72px);
}

.footer__brand p {
	max-width: 36ch;
	margin: 22px 0 24px;
	font-size: 15px;
	line-height: 1.6;
}

.footer__col h3 {
	margin-bottom: 18px;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--steel-500);
}

.footer__col ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__col a {
	font-size: 15px;
	color: var(--steel-300);
	text-decoration: none;
	transition: color 0.2s;
}

.footer__col a:hover {
	color: #fff;
}

.footer__contact li {
	font-size: 15px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.footer__bottom {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-block: 24px;
	border-top: 1px solid var(--line-dark);
	font-family: var(--font-mono);
	font-size: 12px;
	color: var(--steel-500);
}

.footer__bottom a {
	text-decoration: none;
}

.footer__bottom a:hover {
	color: #fff;
}

.footer__wordmark {
	margin-bottom: -0.2em;
	font-size: clamp(56px, 12.5vw, 220px);
	font-weight: 700;
	font-stretch: 125%;
	line-height: 0.85;
	letter-spacing: -0.05em;
	text-align: center;
	white-space: nowrap;
	color: transparent;
	-webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 80%);
	-webkit-background-clip: text;
	background-clip: text;
	user-select: none;
}

@media (max-width: 960px) {
	.footer__cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 520px) {
	.footer__grid {
		grid-template-columns: 1fr;
	}
}

/* 16. WhatsApp flotante
   ========================================================================== */
.wa-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 12px;
	height: 58px;
	padding: 0 22px 0 8px;
	border: 1px solid var(--line-dark-strong);
	border-radius: 999px;
	background: rgba(8, 16, 28, 0.84);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.55);
	color: #fff;
	text-decoration: none;
	transition: transform 0.4s var(--ease);
}

.wa-float:hover {
	transform: translateY(-3px);
}

.wa-float__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--wa);
	font-size: 22px;
}

.wa-float__icon::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	animation: wa-ping 2.6s ease-out infinite;
}

@keyframes wa-ping {
	0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
	70%, 100% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

.wa-float__label {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.15;
}

.wa-float__label small {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--steel-400);
}

@media (max-width: 640px) {
	.wa-float {
		padding: 0 7px;
		height: 56px;
	}

	.wa-float__label {
		display: none;
	}
}

/* Plugin «WhatsApp for WordPress»: integrado a la estética del tema */
#wa.wa__widget_container .wa__btn_popup_txt {
	padding: 10px 16px !important;
	border: 1px solid var(--line-dark-strong) !important;
	border-radius: 14px !important;
	background: rgba(8, 16, 28, 0.86) !important;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.55) !important;
	font-family: var(--font-sans) !important;
	font-size: 13px !important;
	line-height: 1.4 !important;
	color: var(--steel-200) !important;
}

#wa.wa__widget_container .wa__btn_popup_icon {
	box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.55);
}

#wa.wa__widget_container .wa__popup_chat_box {
	font-family: var(--font-sans);
	border-radius: var(--radius) !important;
	overflow: hidden;
}

/* 17. Visor de imágenes
   ========================================================================== */
.lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
}

.lightbox::backdrop {
	background: rgba(5, 9, 15, 0.94);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.lightbox[open] {
	animation: lb-in 0.35s var(--ease);
}

@keyframes lb-in {
	from { opacity: 0; transform: scale(0.98); }
}

.lightbox__figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	height: 100%;
	margin: 0;
	padding: 72px clamp(16px, 8vw, 96px) 32px;
}

.lightbox__img {
	max-width: 100%;
	max-height: calc(100vh - 160px);
	border-radius: 12px;
	object-fit: contain;
}

.lightbox figcaption {
	display: flex;
	gap: 20px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.06em;
	color: var(--steel-300);
}

.lightbox__count {
	color: var(--steel-500);
}

.lightbox__btn {
	position: fixed;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--line-dark-strong);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	transition: background-color 0.2s;
}

.lightbox__btn:hover {
	background: rgba(255, 255, 255, 0.14);
}

.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
	.lightbox__prev,
	.lightbox__next {
		top: auto;
		bottom: 20px;
		transform: none;
	}

	.lightbox__figure {
		padding-bottom: 96px;
	}
}

/* 18. Páginas internas
   ========================================================================== */
.page-hero {
	position: relative;
	isolation: isolate;
	padding: calc(var(--topbar-h) + var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(96px, 11vw, 150px);
	overflow: hidden;
	background: var(--ink-950);
	color: #fff;
}

.page-hero .container {
	position: relative;
	z-index: 1;
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--steel-500);
}

.breadcrumbs a {
	text-decoration: none;
	color: var(--steel-300);
}

.breadcrumbs a:hover {
	color: #fff;
}

.page-hero__title {
	max-width: 20ch;
	font-size: clamp(2.4rem, 5.4vw, 4.8rem);
	font-stretch: 112%;
	line-height: 1;
	letter-spacing: -0.04em;
}

.page-hero__lead {
	max-width: 56ch;
	margin-top: 20px;
	font-size: 18px;
	color: var(--steel-300);
}

.hero__waves--page {
	height: clamp(70px, 9vw, 110px);
	opacity: 0.5;
}

.page-body {
	padding-block: clamp(56px, 8vw, 112px);
	background: var(--paper);
	color: var(--text);
}

.page-body--builder {
	padding-block: 0;
	background: #fff;
}

/* Portada en modo «Contenido de la página»: deja lugar a la cabecera fija. */
.home .page-body--builder {
	padding-top: calc(var(--topbar-h) + var(--header-h));
	background: var(--ink-950);
}

@media (max-width: 860px) {
	.home .page-body--builder {
		padding-top: var(--header-h);
	}
}

.page-body--gallery {
	background: var(--ink-900);
	color: var(--steel-200);
}

.bento--page {
	margin-top: 0;
}

.entry-thumb {
	max-width: 960px;
	margin: 0 auto 48px;
}

.entry-thumb img {
	width: 100%;
	border-radius: var(--radius-lg);
}

/* Texto largo */
.prose {
	max-width: 760px;
	margin-inline: auto;
	font-size: 18px;
	line-height: 1.75;
}

.prose > * + * {
	margin-top: 1.2em;
}

.prose h2 {
	margin-top: 2em;
	font-size: clamp(28px, 3vw, 38px);
	letter-spacing: -0.03em;
}

.prose h3 {
	margin-top: 1.8em;
	font-size: 24px;
}

.prose a {
	color: var(--blue-600);
	text-underline-offset: 3px;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose ul {
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 24px;
	border-left: 2px solid var(--blue-600);
	font-size: 21px;
	color: var(--text);
}

.prose img,
.entry-content figure img {
	border-radius: 12px;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.prose th,
.prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line-light);
	text-align: left;
}

.prose .alignwide {
	width: min(1100px, 100vw - var(--gutter) * 2);
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.prose .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text,
figcaption {
	font-size: 14px;
	color: var(--text-muted);
}

/* Galerías de WordPress con estética de mosaico */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
}

.gallery-item {
	margin: 0;
}

.gallery-item img,
.wp-block-gallery img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 12px;
	transition: transform 0.6s var(--ease);
}

.gallery-item a:hover img,
.wp-block-gallery a:hover img {
	transform: scale(1.02);
}

/* Blog */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.post-card a {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--line-light);
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--white);
	text-decoration: none;
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.post-card a:hover {
	transform: translateY(-3px);
	box-shadow: 0 30px 60px -35px rgba(11, 19, 34, 0.35);
}

.post-card__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.post-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
}

.post-card__body small {
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.post-card__body strong {
	font-size: 20px;
	line-height: 1.25;
}

.post-card__body span {
	font-size: 15px;
	color: var(--text-muted);
}

.pagination {
	margin-top: 48px;
}

.pagination .nav-links {
	display: flex;
	gap: 6px;
	justify-content: center;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--line-light);
	border-radius: 999px;
	font-size: 14px;
	text-decoration: none;
}

.pagination .current {
	background: var(--ink-950);
	border-color: var(--ink-950);
	color: #fff;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--line-light);
	border-radius: 999px;
	background: #fff;
}

.search-submit {
	height: 48px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--ink-950);
	color: #fff;
	cursor: pointer;
}

/* 19. 404
   ========================================================================== */
.error-404 {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: calc(var(--topbar-h) + var(--header-h) + 48px) 0 96px;
	overflow: hidden;
	background: var(--ink-950);
	color: #fff;
}

.error-404__code {
	margin-top: 24px;
	font-size: clamp(120px, 24vw, 300px);
	font-weight: 700;
	font-stretch: 125%;
	line-height: 0.85;
	letter-spacing: -0.06em;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
}

.error-404__line {
	display: block;
	width: min(600px, 100%);
	margin: 28px 0;
	color: var(--amber-500);
}

.error-404__text {
	max-width: 46ch;
	font-size: 18px;
	color: var(--steel-300);
}

/* 20. Animaciones de entrada
   ========================================================================== */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 1s var(--ease), transform 1s var(--ease);
	transition-delay: var(--d, 0s);
}

.js [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		transition-delay: 0s !important;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
	}

	.marquee {
		overflow-x: auto;
	}
}
