/* =========================================================================
   Innsolusa · capítulos de color
   Cada sección es un campo de color a sangre con su tinta. Una retícula de 12
   columnas y un solo par de márgenes sostienen todo el sitio.
   ========================================================================= */

:root {
	--navy: #010e2a;
	--petroleo: #003040;
	--naranja: #ff7536;
	--gris-azul: #919fbe;
	--hormigon: #f4f2ee;
	--arena: #e6e2da;
	--grafito: #1c1d1f;
	--verde: #2f7a6d;
	--blanco: #ffffff;
	--error: #a3271b;

	--fs-small: 0.9375rem;
	--fs-body: 1.125rem;
	--fs-statement: clamp(1.375rem, 2.2vw, 2.125rem);
	--fs-heading: clamp(2.25rem, 4.6vw, 4.75rem);
	--fs-display: clamp(3.25rem, 8.6vw, 8.25rem);

	--gutter: clamp(1rem, 2.4vw, 2rem);
	--margin: max(var(--gutter), calc((100vw - 1440px) / 2));
	--section: clamp(4.5rem, 9vw, 8rem);
	--radius: 16px;
	--radius-sm: 12px;
	--pill: 999px;
	--header-h: 4.25rem;

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
	--ease-press: cubic-bezier(0.23, 1, 0.32, 1);

	color-scheme: light;
	scrollbar-color: var(--petroleo) var(--hormigon);
}

/* ---- Base ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--hormigon);
	color: var(--grafito);
	font-family: Geist, "Helvetica Neue", Arial, sans-serif;
	font-size: var(--fs-body);
	line-height: 1.55;
	font-optical-sizing: auto;
	font-feature-settings: "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	caret-color: var(--naranja);
}

h1, h2, h3, h4, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; }
p, li, dd { text-wrap: pretty; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

::selection { background: var(--naranja); color: var(--navy); }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2.5px; }

:focus-visible {
	outline: 2.5px solid var(--focus, var(--naranja));
	outline-offset: 3px;
	border-radius: 2px;
}

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

.skip-link:focus {
	position: fixed !important;
	z-index: 100;
	top: 0.75rem; left: 0.75rem;
	width: auto; height: auto;
	clip: auto;
	padding: 0.75rem 1rem;
	background: var(--naranja);
	color: var(--navy);
	font-weight: 600;
}

/* Las capas de WordPress no deben imponer márgenes dentro de la retícula. */
.site-main,
.wp-site-blocks > * { margin-block: 0 !important; }
.wp-site-blocks { padding: 0 !important; }

/* ---- Capítulos ------------------------------------------------------------ */

.chapter {
	--bg: var(--hormigon);
	--ink: var(--grafito);
	--muted: #3a4458;
	--tone: var(--arena);
	--arc: var(--petroleo);
	--focus: var(--naranja);

	position: relative;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: var(--gutter);
	align-content: start;
	padding: var(--section) var(--margin);
	background: var(--bg);
	color: var(--ink);
}

.chapter > * { grid-column: 1 / -1; margin-block: 0; }
.site-main > *,
.site-main > * + * { margin-block: 0 !important; }

.chapter--hormigon { --bg: var(--hormigon); --tone: var(--arena); }
.chapter--blanco { --bg: var(--blanco); --tone: var(--hormigon); }
.chapter--arena { --bg: var(--arena); --tone: #d8d3c8; }
.chapter--navy { --bg: var(--navy); --ink: var(--hormigon); --muted: var(--gris-azul); --tone: #0d1d3c; --arc: var(--gris-azul); }
.chapter--petroleo { --bg: var(--petroleo); --ink: var(--hormigon); --muted: #a3bcc5; --tone: #0d4053; --arc: var(--gris-azul); }
.chapter--verde { --bg: var(--verde); --ink: var(--blanco); --muted: var(--blanco); --tone: #2a6c61; --arc: var(--blanco); --focus: var(--blanco); }
.chapter--gris-azul { --bg: var(--gris-azul); --ink: var(--navy); --muted: #15223f; --tone: #a6b2cc; --arc: var(--navy); --focus: var(--navy); }
.chapter--naranja { --bg: var(--naranja); --ink: var(--navy); --muted: var(--navy); --tone: #ff8c58; --arc: var(--navy); --focus: var(--navy); }
.chapter--grafito { --bg: var(--grafito); --ink: var(--hormigon); --muted: #b9bcc4; --tone: #2a2b2e; --arc: var(--gris-azul); }

.chapter__intro { display: grid; grid-template-columns: subgrid; row-gap: 1.5rem; align-items: end; }
.chapter__title { font-size: var(--fs-heading); }
.chapter__intro .chapter__title { grid-column: 1 / span 6; }
.chapter__intro .chapter__lede { grid-column: 8 / span 5; }
.chapter__lede { max-width: 52ch; font-size: 1.25rem; line-height: 1.5; color: var(--ink); }
.chapter__title + .chapter__lede { margin-top: 1.5rem; }

/* ---- Botones y enlaces --------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 3.25rem;
	padding: 0 1.5rem;
	border: 0;
	border-radius: var(--pill);
	font-size: var(--fs-body);
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.1;
	text-decoration: none;
	transition: transform 160ms var(--ease-press), background-color 200ms ease, color 200ms ease;
	-webkit-tap-highlight-color: transparent;
}

.btn:active,
.wp-block-button__link:active { transform: scale(0.97); }

.btn--primary,
.is-style-primary .wp-block-button__link { background: var(--naranja); color: var(--navy); }
.chapter--naranja .btn--primary { background: var(--navy); color: var(--naranja); }

.btn--ghost,
.is-style-ghost .wp-block-button__link { background: var(--tone, rgba(1, 14, 42, 0.08)); color: var(--ink, currentColor); }

.btn--sm { min-height: 2.75rem; padding: 0 1.25rem; font-size: 1rem; }

.btn .arrow,
.btn .icon { width: 1.1em; height: 1.1em; flex: none; transition: transform 240ms var(--ease-out); }

.is-style-primary .wp-block-button__link::after {
	content: "";
	width: 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M9 6h9v9' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M9 6h9v9' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 240ms var(--ease-out);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
	border: 0;
	background: none;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.3em;
}

.link-arrow::after {
	content: "";
	width: 0.95em;
	height: 0.95em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M9 6h9v9' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 18 18 6M9 6h9v9' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 240ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
	.btn:hover .arrow,
	.is-style-primary .wp-block-button__link:hover::after,
	.link-arrow:hover::after { transform: translate(2px, -2px); }
	.btn--primary:hover,
	.is-style-primary .wp-block-button__link:hover { background: #ff8a55; }
	.chapter--naranja .btn--primary:hover { background: var(--petroleo); }
}

/* ---- Cabecera ------------------------------------------------------------ */

.site-header {
	--hbg: var(--hormigon);
	--hink: var(--grafito);
	--harc: var(--petroleo);

	position: fixed;
	inset: 0 0 auto;
	z-index: 60;
	height: var(--header-h);
	padding: 0 var(--margin);
	background: var(--hbg);
	color: var(--hink);
	transition: background-color 450ms var(--ease-out), color 450ms var(--ease-out), transform 600ms var(--ease-out);
}

.site-header__bar { display: flex; align-items: center; gap: 2rem; height: 100%; }
.site-header[data-on="naranja"] .site-header__cta { background: var(--navy); color: var(--naranja); }
.site-header__brand { display: block; flex: none; color: inherit; --logo-arc: var(--harc); }
.site-logo { width: auto; height: 2.25rem; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 0.25rem; padding: 0; list-style: none; }
.site-nav a {
	display: block;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.45em; }
@media (hover: hover) and (pointer: fine) {
	.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.45em; }
}

.menu-toggle {
	display: none;
	align-items: center;
	gap: 0.625rem;
	min-height: 2.75rem;
	margin-left: auto;
	padding: 0 0.25rem 0 0.75rem;
	border: 0;
	background: none;
	font-weight: 600;
}
.menu-toggle__lines { position: relative; width: 1.375rem; height: 0.75rem; }
.menu-toggle__lines::before,
.menu-toggle__lines::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	transition: transform 300ms var(--ease-out), top 300ms var(--ease-out);
}
.menu-toggle__lines::before { top: 0; }
.menu-toggle__lines::after { top: calc(100% - 2px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::before { top: calc(50% - 1px); transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__lines::after { top: calc(50% - 1px); transform: rotate(-45deg); }

/* En la home, la cabecera aparece cuando la portada sale de pantalla. */
.is-home-chapters .site-header { transform: translateY(-100%); }
.is-home-chapters .site-header.is-visible,
.is-home-chapters.menu-open .site-header { transform: none; }

.menu {
	position: fixed;
	inset: 0;
	z-index: 55;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: calc(var(--header-h) + 2rem) var(--margin) 2rem;
	background: var(--navy);
	color: var(--hormigon);
	overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__list { padding: 0; list-style: none; }
.menu__list a {
	display: block;
	padding: 0.375rem 0;
	font-size: clamp(2.5rem, 11vw, 4rem);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.05;
	text-decoration: none;
}
.menu__list a[aria-current="page"] { color: var(--naranja); }
.menu__foot { display: grid; gap: 0.75rem; justify-items: start; margin-top: 2rem; }
.menu__foot .btn--ghost { --tone: #0d1d3c; --ink: var(--hormigon); }
.menu__tel { font-size: 1.25rem; }

.menu-open .site-header { --hbg: var(--navy) !important; --hink: var(--hormigon) !important; --harc: var(--gris-azul) !important; }
.menu-open { overflow: hidden; }

@media (max-width: 960px) {
	.site-nav,
	.site-header__cta { display: none; }
	.menu-toggle { display: inline-flex; }
}

@media (prefers-reduced-motion: no-preference) {
	.menu .menu__list li,
	.menu .menu__foot {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out);
		transition-delay: calc(var(--i, 0) * 40ms);
	}
	.menu.is-open .menu__list li,
	.menu.is-open .menu__foot { opacity: 1; transform: none; }
}

/* ---- Portada de la home -------------------------------------------------- */

.hero.chapter {
	min-height: 100svh;
	padding: 10px;
	column-gap: 10px;
	--bg: var(--blanco);
}

.hero__panel {
	grid-column: 1 / span 10;
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr auto;
	min-height: calc(100svh - 20px);
	overflow: hidden;
	border-radius: 24px;
	background: #c9cbcc;
	color: var(--navy);
	isolation: isolate;
}

.hero__img { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }

/* Velo neutro: aclara el cielo bajo el titular y oscurece el pie para el pie de foto. */
.hero__panel::before,
.hero__panel::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; }
.hero__panel::before { top: 0; height: 62%; background: linear-gradient(rgba(244, 242, 238, 0.62), rgba(244, 242, 238, 0.28) 60%, rgba(244, 242, 238, 0)); }
.hero__panel::after { bottom: 0; height: 22%; background: linear-gradient(rgba(1, 14, 42, 0), rgba(1, 14, 42, 0.5)); }

.hero__brand { justify-self: start; padding: 1.75rem; color: var(--navy); --logo-arc: var(--petroleo); }
.hero__logo { width: auto; height: 2.75rem; }

.hero__copy {
	align-self: start;
	display: grid;
	justify-items: center;
	gap: 2rem;
	padding: clamp(1rem, 6vh, 4.5rem) var(--gutter) 0;
	text-align: center;
}

.hero__title { max-width: 9em; font-size: var(--fs-display); font-weight: 500; line-height: 0.95; letter-spacing: -0.03em; }
.hero__lead { max-width: 46ch; font-size: 1.25rem; font-weight: 500; line-height: 1.45; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.hero__actions .is-style-ghost .wp-block-button__link { background: rgba(244, 242, 238, 0.82); color: var(--navy); }

.hero__caption {
	align-self: end;
	padding: 1.25rem 1.75rem;
	color: var(--blanco);
	font-size: var(--fs-small);
}

.swatches {
	grid-column: 11 / span 2;
	display: grid;
	grid-template-rows: repeat(5, 1fr);
	overflow: hidden;
	border-radius: 24px;
}

.swatch {
	--bg: var(--hormigon);
	--ink: var(--grafito);
	display: block;
	padding: 1.25rem;
	background: var(--bg);
	color: var(--ink);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
}
.swatch span { display: inline-block; transition: transform 300ms var(--ease-out); }
.swatch--hormigon { --bg: var(--hormigon); }
.swatch--arena { --bg: var(--arena); }
.swatch--gris-azul { --bg: var(--gris-azul); --ink: var(--navy); }
.swatch--petroleo { --bg: var(--petroleo); --ink: var(--hormigon); }
.swatch--navy { --bg: var(--navy); --ink: var(--hormigon); }
@media (hover: hover) and (pointer: fine) {
	.swatch:hover span { transform: translateX(6px); }
}

@media (prefers-reduced-motion: no-preference) {
	.hero__img img { animation: hero-settle 1800ms var(--ease-out) both; }
	@supports (animation-timeline: view()) {
		.hero__img { animation: hero-drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
	}
}
@keyframes hero-settle { from { transform: scale(1.06); } }
@keyframes hero-drift { to { transform: translateY(12%); } }

@media (max-width: 900px) {
	.hero.chapter { min-height: 0; padding: 8px; row-gap: 8px; }
	.hero__panel { grid-column: 1 / -1; min-height: 72svh; }
	.hero__panel::before { height: 88%; background: linear-gradient(rgba(244, 242, 238, 0.78), rgba(244, 242, 238, 0.6) 70%, rgba(244, 242, 238, 0)); }
	.hero__title { font-size: clamp(2.75rem, 12vw, 4.5rem); }
	.hero__lead { font-size: var(--fs-body); }
	.hero__brand { padding: 1.25rem; }
	.hero__logo { height: 2.25rem; }
	.hero__copy { gap: 1.25rem; padding-top: 0.5rem; }
	.swatches { grid-column: 1 / -1; grid-template-rows: none; }
	.swatch { display: flex; align-items: center; min-height: 3.25rem; padding: 0 1rem; font-size: 0.9375rem; }
}

/* ---- Cómo funciona -------------------------------------------------------- */

.proceso { row-gap: 4rem; }

.stages {
	--h: 32.5rem;
	container-type: inline-size;
	display: flex;
	height: var(--h);
	overflow: hidden;
	border-radius: var(--radius);
}

.stage {
	--s-bg: var(--petroleo);
	--s-ink: var(--hormigon);
	position: relative;
	flex: 1 1 0;
	min-width: 4.5rem;
	overflow: hidden;
	background: var(--s-bg);
	color: var(--s-ink);
}
.stage--2 { --s-bg: #1b4b5b; }
.stage--3 { --s-bg: #3e6b79; }
.stage--4 { --s-bg: #9db8c0; --s-ink: var(--navy); }
.stage.is-open { flex-grow: 4.2; }

.stage__head { position: absolute; inset: 0; z-index: 2; font-size: 1.25rem; letter-spacing: -0.01em; }
.stage__toggle {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	padding: 1.5rem;
	border: 0;
	background: none;
	text-align: left;
	font-weight: 600;
}
.stage__toggle span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.stage.is-open .stage__head { inset: 0 auto auto 0; }
.stage.is-open .stage__toggle { position: static; padding: 2rem; cursor: default; font-size: clamp(2rem, 3vw, 2.75rem); letter-spacing: -0.03em; }
.stage.is-open .stage__toggle span { writing-mode: horizontal-tb; transform: none; }
@media (hover: hover) and (pointer: fine) {
	.stage:not(.is-open) .stage__toggle:hover span { transform: rotate(180deg) translateY(-6px); transition: transform 300ms var(--ease-out); }
}

.stage__body {
	position: absolute;
	inset: 0 auto 0 0;
	width: 58cqw;
	display: grid;
	grid-template-columns: 1fr 1fr;
	opacity: 0;
	visibility: hidden;
	transition: opacity 250ms ease, visibility 0s linear 250ms;
}
.stage.is-open .stage__body { opacity: 1; visibility: visible; transition: opacity 350ms ease 200ms, visibility 0s; }
.stage__name { display: none; }
.stage__text { align-self: end; max-width: 36ch; padding: 2rem; font-size: var(--fs-body); }
.stage__img { width: 100%; height: 100%; object-fit: cover; }

.cure {
	display: grid;
	grid-template-columns: subgrid;
	align-items: center;
	row-gap: 2rem;
	margin-top: 2rem;
}
.cure__sample {
	grid-column: 1 / span 4;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--radius);
	color: #8f8778;
	--wet: 0;
	--set: 0;
}
.cure__sample svg { width: 100%; height: 100%; }
.cure__base { fill: #d4cdbd; }
.cure__fabric { mix-blend-mode: multiply; }
.cure__wet { fill: #5d5a52; opacity: calc(var(--wet) * 0.55); transition: opacity 300ms ease; }
.cure__set { fill: #aeaaa2; opacity: var(--set); transition: opacity 300ms ease; }
.cure__panel { grid-column: 6 / span 7; display: grid; gap: 1.25rem; }
.cure__heading { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; color: var(--muted); }
.cure__heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cure__clock { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem; margin-top: 1rem; }
.cure__label { max-width: 26ch; color: var(--muted); font-size: 1rem; }
.cure__hours { font-size: var(--fs-heading); font-weight: 400; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cure__range {
	--p: 0%;
	width: 100%;
	height: 2.75rem;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.cure__range::-webkit-slider-runnable-track { height: 0.5rem; border-radius: 1rem; background: linear-gradient(to right, var(--naranja) var(--p), var(--tone) var(--p)); }
.cure__range::-moz-range-track { height: 0.5rem; border-radius: 1rem; background: var(--tone); }
.cure__range::-moz-range-progress { height: 0.5rem; border-radius: 1rem; background: var(--naranja); }
.cure__range::-webkit-slider-thumb { -webkit-appearance: none; width: 1.75rem; height: 1.75rem; margin-top: -0.625rem; border: 0; border-radius: 50%; background: var(--naranja); transition: transform 160ms var(--ease-press); }
.cure__range::-moz-range-thumb { width: 1.75rem; height: 1.75rem; border: 0; border-radius: 50%; background: var(--naranja); }
.cure__range:active::-webkit-slider-thumb { transform: scale(1.15); }
.cure__scale { display: flex; justify-content: space-between; color: var(--muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.cure__state { min-height: 8.5rem; }
.cure__title { font-size: var(--fs-statement); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.cure__desc { max-width: 48ch; margin-top: 0.5rem; }

@media (max-width: 900px) {
	.chapter__intro .chapter__title,
	.chapter__intro .chapter__lede { grid-column: 1 / -1; }
	.stages { flex-direction: column; height: auto; }
	.stage { flex: none; min-width: 0; }
	.stage__head { position: static; }
	.stage__toggle { position: static; width: 100%; min-height: 4rem; padding: 0 1.25rem; align-items: center; font-size: 1.125rem; }
	.stage__toggle span { writing-mode: horizontal-tb; transform: none; }
	.stage.is-open .stage__toggle { padding: 1.25rem 1.25rem 0; font-size: 1.75rem; }
	.stage__body { position: static; width: auto; display: none; grid-template-columns: 1fr; opacity: 1; visibility: visible; }
	.stage.is-open .stage__body { display: grid; }
	.stage__text { padding: 1rem 1.25rem 1.5rem; font-size: 1.0625rem; }
	.stage__img { aspect-ratio: 3 / 2; height: auto; }
	.cure__sample { grid-column: 1 / span 5; }
	.cure__panel { grid-column: 1 / -1; }
}

/* ---- Impacto (una cifra domina la pantalla) ------------------------------ */

.impacto {
	grid-template-rows: auto 1fr auto auto;
	row-gap: 1.5rem;
	align-items: end;
}
.impacto__claim { grid-column: 1 / span 6; grid-row: 1; align-self: start; font-size: var(--fs-heading); }
.impacto__img { grid-column: 8 / -1; grid-row: 1 / span 4; align-self: stretch; margin: 0; min-height: 34rem; overflow: hidden; border-radius: var(--radius); }
.impacto__img img { width: 100%; height: 100%; object-fit: cover; }
.impacto__figure {
	grid-row: 2;
	grid-column: 1 / span 7;
	font-size: clamp(11rem, 23vw, 23.75rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.8;
	font-variant-numeric: lining-nums;
}
.impacto__unit { font-size: 0.33em; vertical-align: top; position: relative; top: 0.08em; margin-left: 0.04em; }
.impacto__caption { grid-row: 3; grid-column: 1 / span 6; max-width: 38ch; font-size: 1.0625rem; }
.impacto__source { grid-row: 4; grid-column: 1 / span 6; align-self: start; font-size: var(--fs-small); }

@media (max-width: 760px) {
	.impacto__claim,
	.impacto__figure,
	.impacto__caption,
	.impacto__source,
	.impacto__img { grid-column: 1 / -1; grid-row: auto; }
	.impacto__figure { font-size: 46vw; }
	.impacto__img { min-height: 0; aspect-ratio: 4 / 3; margin-top: 1rem; }
}

/* ---- Soluciones (filas colgadas de un eje) ------------------------------- */

.soluciones { row-gap: clamp(2.5rem, 5vw, 4rem); }
.soluciones__head { grid-column: 1 / span 8; }
.soluciones__head .chapter__lede { margin-top: 1.5rem; }
.solutions { display: grid; grid-template-columns: subgrid; row-gap: clamp(4.5rem, 7vw, 6.5rem); }
.solution { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: start; }
.solution__text { grid-column: 1 / span 5; display: grid; gap: 1rem; align-self: center; }
.solution__title { font-size: clamp(1.75rem, 3vw, 3rem); letter-spacing: -0.03em; }
.solution__desc { max-width: 40ch; font-size: 1.125rem; }
.solution__link { margin-top: 0.5rem; }
.solution__img { margin: 0; overflow: hidden; border-radius: var(--radius); }
.solution__img img { width: 100%; height: 100%; object-fit: cover; }
.solution__img { grid-column: 7 / -1; aspect-ratio: 16 / 10; }
.solution:nth-child(even) .solution__text { grid-column: 8 / -1; grid-row: 1; }
.solution:nth-child(even) .solution__img { grid-column: 1 / span 6; grid-row: 1; }

@media (max-width: 900px) {
	.soluciones__head,
	.solution__text { grid-column: 1 / -1; }
	.soluciones__head { padding-block: 0; }
	.solutions { row-gap: 4rem; }
	.solution { row-gap: 1.5rem; }
	.solution__img,
	.solution:nth-child(even) .solution__img,
	.solution:nth-child(even) .solution__text { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
	.solution:nth-child(even) .solution__text { aspect-ratio: auto; }
}

/* ---- Producto destacado (lámina cuadrada) -------------------------------- */

.showcase { min-height: 88svh; align-items: stretch; row-gap: 2.5rem; }
.showcase__plate { grid-column: 1 / span 6; align-self: center; margin: 0; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); }
.showcase__plate img { width: 100%; height: 100%; object-fit: cover; }
.showcase__side { grid-column: 8 / -1; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; }
.showcase__title { font-size: var(--fs-heading); }
.showcase__desc { max-width: 38ch; margin-top: 1.5rem; }
.showcase__more { font-size: 1rem; }

.tabs { display: flex; gap: 0.25rem; }
.tab {
	min-height: 2.75rem;
	padding: 0 0.875rem;
	border: 0;
	border-radius: var(--pill);
	background: none;
	color: var(--muted);
	font-size: var(--fs-body);
	font-weight: 600;
	transition: background-color 200ms ease, color 200ms ease;
}
.showcase .tab:first-child { padding-left: 0; }
.tab[aria-selected="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.5em; text-decoration-color: var(--naranja); }
@media (hover: hover) and (pointer: fine) {
	.tab:hover { color: var(--ink); }
}

.js .tabpanel[data-inactive] { display: none; }

.variant__thick { font-size: var(--fs-statement); font-weight: 600; letter-spacing: -0.02em; }
.variant__specs { width: 100%; margin-top: 1rem; border-collapse: collapse; font-size: 1rem; }
.variant__specs th,
.variant__specs td { padding: 0.625rem 0; text-align: left; vertical-align: top; }
.variant__specs th { width: 42%; color: var(--muted); font-weight: 500; }
.variant__specs td.num,
.spec-table td.num { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.9375rem; }
.variant__specs tr + tr th,
.variant__specs tr + tr td { border-top: 0; }

.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 2rem; }
.cell {
	display: flex;
	align-items: center;
	min-height: 4.5rem;
	padding: 0 1.5rem;
	border-radius: var(--pill);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-press);
}
.cell:active { transform: scale(0.98); }
.cell--ink { background: var(--naranja); color: var(--navy); }
.cell--tone { background: var(--tone); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
	.cell--ink:hover { background: #ff8a55; }
	.cell--tone:hover { background: var(--hormigon); color: var(--petroleo); }
}

@media (max-width: 900px) {
	.showcase__plate,
	.showcase__side { grid-column: 1 / -1; }
	.cells { grid-template-columns: 1fr; }
	.cell { min-height: 3.75rem; }
}

/* ---- Respaldo técnico (tablero) ------------------------------------------- */

.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-height: 11rem;
	aspect-ratio: 3 / 2;
	padding: 1.5rem;
	border-radius: var(--radius);
	background: var(--tone);
	color: var(--ink);
	text-decoration: none;
	transition: background-color 200ms ease;
}
.tile--lead { grid-column: span 2; aspect-ratio: auto; background: var(--navy); color: var(--hormigon); justify-content: space-between; }
.tile__heading { font-size: var(--fs-heading); }
.tile__mark { font-size: clamp(1.25rem, 1.8vw, 1.625rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
.tile__label { max-width: 26ch; font-size: 1rem; line-height: 1.35; }
.tile .icon { position: absolute; right: 1.25rem; bottom: 1.25rem; width: 1.5rem; height: 1.5rem; transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
	.tile--link:hover { background: var(--hormigon); }
	.tile--link:hover .icon { transform: translateY(2px); }
}

@media (max-width: 900px) {
	.board { grid-template-columns: 1fr 1fr; gap: 6px; }
	.tile { aspect-ratio: auto; min-height: 9rem; padding: 1rem; }
	.tile--lead { grid-column: 1 / -1; min-height: 7.5rem; }
	.tile__mark { font-size: 1.25rem; }
	.tile__label { font-size: 0.9375rem; }
}

/* ---- Nosotros (texto grande con resaltados) ------------------------------ */

.nosotros-home { row-gap: 3rem; }
.story {
	columns: 2;
	column-gap: 2rem;
	font-size: var(--fs-statement);
	line-height: 1.22;
	letter-spacing: -0.015em;
	color: var(--ink);
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
}
.story strong { font-weight: 600; }
.hl {
	padding: 0 0.15em;
	border-radius: 6px;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	font-weight: 500;
}
.hl { color: var(--ink); }
.hl--naranja { background: rgba(255, 117, 54, 0.28); }
.hl--petroleo { background: rgba(0, 48, 64, 0.14); }
.hl--navy { background: rgba(1, 14, 42, 0.1); }
.hl--verde { background: rgba(47, 122, 109, 0.2); }
.hl--gris-azul { background: rgba(145, 159, 190, 0.38); }
.story__link { background: var(--navy); color: var(--hormigon); border-radius: 6px; transition: background-color 200ms ease, color 200ms ease; }
.story__link { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
	.story__link:hover { background: var(--naranja); color: var(--navy); }
}

@media (max-width: 900px) {
	.story { columns: 1; font-size: 1.25rem; line-height: 1.3; text-align: left; hyphens: manual; }
}

/* ---- Banda Cotizar --------------------------------------------------------- */

.cta.chapter { display: block; padding: 0; }
.cta-band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto 1fr auto;
	min-height: 60svh;
	padding: 2rem var(--margin) 1.5rem;
	background: var(--naranja);
	color: var(--navy);
	text-decoration: none;
	--focus: var(--navy);
	transition: color 600ms var(--ease-out);
}
/* El navy sube desde abajo y llena la banda, como el agua que hidrata el manto. */
.cta-band::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--navy);
	clip-path: inset(100% 0 0 0);
	transition: clip-path 750ms var(--ease-in-out);
}
.cta-band:hover::before,
.cta-band:focus-visible::before { clip-path: inset(0 0 0 0); }
.cta-band:focus-visible { outline-offset: -8px; }
.cta-band__note { max-width: 32ch; font-size: 1.25rem; font-weight: 500; line-height: 1.35; }
.cta-band__arrow { width: 3rem; height: 3rem; transition: transform 600ms var(--ease-out); }
.cta-band__word {
	grid-column: 1 / -1;
	grid-row: 3;
	font-size: clamp(5.5rem, 26vw, 29rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.8;
	margin-left: -0.04em;
}
.cta-band:hover,
.cta-band:focus-visible { color: var(--naranja); }
@media (hover: hover) and (pointer: fine) {
	.cta-band:hover .cta-band__arrow { transform: translate(6px, -6px); }
}
@media (max-width: 900px) {
	.cta-band { min-height: 46svh; padding-top: 1.5rem; }
	.cta-band__note { font-size: 1.0625rem; }
	.cta-band__arrow { width: 2rem; height: 2rem; }
}

/* ---- Pie --------------------------------------------------------------------- */

.site-footer.chapter { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 2rem; row-gap: 4.5rem; }
.site-footer__name {
	font-size: clamp(4rem, 19.5vw, 20rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.8;
	margin-left: -0.05em;
	color: var(--hormigon);
}
.site-footer__row { display: grid; grid-template-columns: subgrid; row-gap: 3rem; }
.site-footer__places { grid-column: 1 / span 5; }
.places { display: grid; gap: 0.5rem; padding: 0; list-style: none; font-size: var(--fs-statement); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.places a { color: var(--naranja); text-decoration: none; }
.places a:hover { text-decoration: underline; }
.site-footer__cols { grid-column: 7 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.footer-col__title { margin-bottom: 1rem; color: var(--muted); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; }
.footer-col ul { display: grid; gap: 0.5rem; padding: 0; list-style: none; font-size: var(--fs-small); }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-small); }

@media (max-width: 900px) {
	.site-footer__places,
	.site-footer__cols { grid-column: 1 / -1; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
	.places { font-size: 1.5rem; }
}

/* ---- Páginas interiores ------------------------------------------------------ */

.page-hero.chapter { padding-top: calc(var(--header-h) + clamp(4rem, 9vw, 8rem)); row-gap: 2rem; }
.page-hero__copy { grid-column: 1 / span 10; display: grid; gap: 2rem; justify-items: start; }
.page-hero__title { font-size: var(--fs-display); font-weight: 500; line-height: 0.95; letter-spacing: -0.03em; }
.page-hero__lead { max-width: 52ch; font-size: 1.25rem; line-height: 1.5; }
.page-hero--image { align-items: end; }
.page-hero--image .page-hero__copy { grid-column: 1 / span 7; }
.page-hero__img { grid-column: 9 / -1; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__lead a { color: inherit; }

@media (max-width: 900px) {
	.page-hero__copy,
	.page-hero--image .page-hero__copy,
	.page-hero__img { grid-column: 1 / -1; }
	.page-hero__title { font-size: clamp(2.75rem, 12vw, 4.5rem); }
	.page-hero__img { aspect-ratio: 3 / 2; }
}

.prose > * { max-width: 70ch; }
.prose .wp-block-post-content > * + * { margin-top: 1.25em; }

/* Índice de color de soluciones */
.sol-index { display: grid; grid-template-columns: repeat(5, 1fr); }
.sol-index .swatch { min-height: 6rem; display: flex; align-items: flex-end; padding: 1.25rem var(--gutter); }
.sol-index .swatch:first-child { padding-left: var(--margin); }
@media (max-width: 900px) {
	.sol-index { grid-template-columns: 1fr 1fr; }
	.sol-index .swatch:last-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
	.sol-index { grid-template-columns: 1fr; }
	.sol-index .swatch,
	.sol-index .swatch:first-child { min-height: 3.25rem; align-items: center; padding: 0 var(--gutter); }
}

.sol { min-height: 90svh; align-items: center; row-gap: 2.5rem; }
.sol__copy { grid-column: 1 / span 6; display: grid; gap: 1.5rem; justify-items: start; }
.sol__img { grid-column: 8 / -1; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.sol__img img { width: 100%; height: 100%; object-fit: cover; }
.sol--right .sol__copy { grid-column: 7 / -1; grid-row: 1; }
.sol--right .sol__img { grid-column: 1 / span 5; grid-row: 1; }
.sol__title { font-size: var(--fs-heading); }
.sol__text { max-width: 40ch; font-size: var(--fs-statement); line-height: 1.25; letter-spacing: -0.015em; }
.sol__product { max-width: 52ch; }
.sol__product a { font-weight: 600; }
@media (max-width: 760px) {
	.sol { min-height: 0; }
	.sol__copy,
	.sol__img,
	.sol--right .sol__copy,
	.sol--right .sol__img { grid-column: 1 / -1; grid-row: auto; }
	.sol__img { aspect-ratio: 3 / 2; }
}

.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 2rem; padding: 0; list-style: none; }
.apps li { position: relative; padding-left: 1.25rem; }
.apps li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.5rem; background: currentColor; opacity: 0.55; }
.apps--compact { font-size: 1rem; }

.ticks { display: grid; gap: 1rem; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 1.1em;
	height: 1.1em;
	background: var(--petroleo);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Catálogo */
.catalogo { row-gap: 3rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
	min-height: 2.75rem;
	padding: 0 1rem;
	border: 0;
	border-radius: var(--pill);
	background: var(--tone);
	color: var(--ink);
	font-size: 1rem;
	font-weight: 600;
	transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-press);
}
.chip:active { transform: scale(0.97); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--hormigon); }
@media (hover: hover) and (pointer: fine) {
	.chip[aria-pressed="false"]:hover { background: #d8d3c8; }
}
.filters__count { margin-top: 1rem; color: var(--muted); font-size: var(--fs-small); }
.catalog { display: grid; gap: clamp(4rem, 8vw, 7.5rem); margin-top: 2rem; padding: 0; list-style: none; }
.product-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.5rem; align-items: center; }
.product-row[hidden] { display: none; }
.product-row__media { grid-column: 1 / span 6; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--arena); }
.product-row__img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.product-row__text { grid-column: 8 / -1; display: grid; gap: 1rem; justify-items: start; }
.product-row:nth-child(even) .product-row__media { grid-column: 7 / -1; grid-row: 1; }
.product-row:nth-child(even) .product-row__text { grid-column: 1 / span 5; grid-row: 1; }
.product-row__name { font-size: var(--fs-heading); }
.product-row__name a { text-decoration: none; }
.product-row__code { color: var(--muted); font-size: var(--fs-body); font-weight: 500; }
.product-row__short { max-width: 40ch; }
.product-row__links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin-top: 0.5rem; }
@media (hover: hover) and (pointer: fine) {
	.product-row:hover .product-row__img { transform: scale(1.03); }
}
@media (max-width: 900px) {
	.product-row__media,
	.product-row__text,
	.product-row:nth-child(even) .product-row__media,
	.product-row:nth-child(even) .product-row__text { grid-column: 1 / -1; grid-row: auto; }
}

/* Ficha de producto */
.product-hero.chapter { min-height: 88svh; padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); align-items: center; row-gap: 3rem; }
.product-hero__copy { grid-column: 1 / span 6; display: grid; gap: 1.5rem; justify-items: start; }
.product-hero__title { font-size: var(--fs-display); font-weight: 500; line-height: 0.95; letter-spacing: -0.03em; }
.product-hero__code { margin-top: -0.25rem; color: var(--muted); font-size: var(--fs-statement); font-weight: 500; letter-spacing: -0.015em; }
.product-hero__lead { max-width: 50ch; }
.product-hero__img { grid-column: 8 / -1; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.product-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.product-facts { row-gap: 3.5rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 3.5rem var(--gutter); }
.fact { display: grid; gap: 0.75rem; align-content: start; }
.fact__cota { width: 100%; height: 0.75rem; overflow: visible; }
.fact__cota path { fill: none; stroke: var(--naranja); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fact__value { order: 2; font-size: clamp(2.5rem, 4.4vw, 4.25rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact__label { order: 3; max-width: 28ch; color: var(--muted); }

.product-variants { row-gap: 1.5rem; }
.spec-table-wrap { margin-top: 2rem; overflow-x: auto; }
.spec-table { width: 100%; min-width: 40rem; border-collapse: separate; border-spacing: 0 4px; font-size: 1rem; }
.spec-table th,
.spec-table td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; }
.spec-table thead th { padding-block: 0.5rem; color: var(--muted); font-size: var(--fs-small); font-weight: 500; }
.spec-table tbody tr { background: var(--blanco); }
.spec-table tbody th { font-size: var(--fs-body); font-weight: 600; border-radius: var(--radius) 0 0 var(--radius); }

.spec-table tbody td:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
@media (max-width: 640px) {
	.spec-table { min-width: 0; border-spacing: 0; }
	.spec-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.spec-table tbody { display: grid; gap: 0.5rem; }
	.spec-table tbody tr { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; padding: 1rem; border-radius: var(--radius); }
	.spec-table tbody th { grid-column: 1 / -1; padding: 0; }
	.spec-table tbody td { padding: 0; border-radius: 0 !important; }
	.spec-table tbody td::before { content: attr(data-label); display: block; color: var(--muted); font-family: Geist, sans-serif; font-size: var(--fs-small); }
	.spec-table tbody td:last-child:not(:nth-child(2)) { grid-column: 1 / -1; }
}
.page-hero__img--contain img { object-fit: contain; background: var(--blanco); }

.product-cols { row-gap: 4rem; }
.product-cols__col { grid-column: span 6; display: grid; gap: 2rem; align-content: start; }
.product-cols__title { font-size: var(--fs-statement); letter-spacing: -0.02em; }
@media (max-width: 900px) {
	.product-hero__copy,
	.product-hero__img,
	.product-cols__col { grid-column: 1 / -1; }
	.product-hero__img { aspect-ratio: 3 / 2; }
	.product-hero__title { font-size: clamp(2.75rem, 12vw, 4.5rem); }
	.apps { grid-template-columns: 1fr; }
}

.product-gallery.chapter { padding-block: var(--gutter); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--gutter); }
.gallery__item { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--blanco); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item:first-child img { object-fit: contain; }

/* Documentos */
.product-docs,
.recursos { row-gap: 1.5rem; }
.doc-list { display: grid; gap: 4px; margin-top: 2rem; padding: 0; list-style: none; }
.doc[hidden] { display: none; }
.doc__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "title action" "meta action";
	gap: 0.25rem 2rem;
	align-items: center;
	padding: 1.125rem 1.25rem;
	border-radius: var(--radius);
	background: var(--tone);
	text-decoration: none;
	transition: background-color 200ms ease;
}
.doc__title { grid-area: title; font-weight: 600; }
.doc__meta { grid-area: meta; color: var(--muted); font-size: var(--fs-small); }
.doc__action { grid-area: action; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 600; }
.doc__action .icon { width: 1.25rem; height: 1.25rem; transition: transform 240ms var(--ease-out); }
.recursos .doc__link { background: var(--blanco); }
@media (hover: hover) and (pointer: fine) {
	.doc__link:hover { background: var(--hormigon); }
	.recursos .doc__link:hover { background: var(--arena); }
	.doc__link:hover .icon { transform: translateY(2px); }
}
@media (max-width: 640px) {
	.doc__link { grid-template-columns: 1fr; grid-template-areas: "title" "meta" "action"; }
	.doc__action { margin-top: 0.5rem; }
}

.tabs--page { gap: 0.5rem; margin-bottom: 2.5rem; }
.tabs--page .tab { min-height: 3rem; padding: 0 1.25rem; background: var(--tone); color: var(--ink); text-decoration: none; }
.tabs--page .tab:first-child { padding-left: 1.25rem; }
.tabs--page .tab[aria-selected="true"] { background: var(--navy); color: var(--hormigon); }

.doc-tools { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem var(--gutter); }
.doc-count { margin-top: 2rem; color: var(--muted); font-size: var(--fs-small); }
.doc-empty { margin-top: 2rem; display: grid; gap: 1rem; justify-items: start; }
@media (max-width: 760px) {
	.doc-tools { grid-template-columns: 1fr; }
}

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 3rem var(--gutter); padding: 0; list-style: none; }
.video { display: grid; gap: 0.75rem; align-content: start; }
.video__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--navy); }
.video__frame img,
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
/* */
.video__play {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	display: grid;
	place-items: center;
	width: 3.5rem;
	height: 3.5rem;
	border: 0;
	border-radius: var(--pill);
	background: var(--naranja);
	color: var(--navy);
	transition: transform 160ms var(--ease-press);
}
.video__play::before { content: ""; position: absolute; inset: calc(-1 * 100vmax); }
.video__play svg { width: 1.5rem; height: 1.5rem; }
.video__play:active { transform: scale(0.95); }
.video__title { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.2; }
.video__meta { color: var(--muted); font-size: var(--fs-small); }

/* Nosotros */
.alliance { align-items: center; row-gap: 3rem; }
.alliance__copy { grid-column: 1 / span 7; }
.alliance__logo { grid-column: 9 / -1; margin: 0; }
.alliance__logo img { width: 100%; max-width: 26rem; }
.vision { row-gap: 2rem; }
.vision__title { font-size: var(--fs-statement); color: var(--muted); letter-spacing: -0.01em; }
.vision__text { max-width: 44ch; font-size: var(--fs-statement); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.values { row-gap: 4rem; }
.values__rows { display: grid; gap: 3rem; }
.value { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1rem;}
.value__title { grid-column: 1 / span 4; font-size: var(--fs-statement); letter-spacing: -0.02em; }
.value__list { grid-column: 6 / -1; display: grid; gap: 0.5rem; padding-left: 1.25rem; }
.affiliations-chapter { row-gap: 2.5rem; }
.affiliations { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 8px; padding: 0; list-style: none; }
.affiliations li { display: grid; place-items: center; min-height: 14rem; padding: 2rem; border-radius: var(--radius); background: var(--blanco); }
.affiliations img { max-height: 9rem; width: auto; }
@media (max-width: 900px) {
	.alliance__copy,
	.alliance__logo,
	.value__title,
	.value__list { grid-column: 1 / -1; }
	.vision__text { font-size: 1.375rem; }
}

/* Contacto y formulario */
.contact.chapter { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)); row-gap: 4rem; }
.contact__aside { grid-column: 1 / span 5; display: grid; gap: 2rem; align-content: start; }
.contact__title { font-size: var(--fs-heading); }
.contact__lead { max-width: 40ch; font-size: 1.25rem; }
.contact__form { grid-column: 7 / -1; }
.direct { display: grid; gap: 1.5rem; }
.direct dt { color: var(--muted); font-size: var(--fs-small); }
.direct dd { font-size: 1.25rem; font-weight: 500; }
.direct a { text-decoration: none; }
.direct a:hover { text-decoration: underline; }

.quote-form { display: grid; gap: 2rem; }
.quote-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem var(--gutter); }
.field { display: grid; gap: 0.5rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 1rem; font-weight: 600; }
.field__opt { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 3.25rem;
	padding: 0.75rem 1rem;
	border: 1.5px solid #d6d0c4;
	border-radius: var(--radius-sm);
	background: var(--blanco);
	color: var(--grafito);
	font-size: 1rem;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field select { appearance: none; background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23010E2A' stroke-width='2'/%3E%3C/svg%3E") right 1rem center / 1.125rem no-repeat; padding-right: 2.75rem; }
.field textarea { resize: vertical; min-height: 8rem; }
.field input::placeholder,
.field textarea::placeholder { color: #5f6778; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(255, 117, 54, 0.45); }
.field.is-invalid input { border-color: var(--error); }
.field__error { min-height: 0; color: var(--error); font-size: var(--fs-small); }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.quote-form__note { color: var(--muted); font-size: var(--fs-small); }
.quote-form.is-sending button[type="submit"] { opacity: 0.7; pointer-events: none; }
.form-error { padding: 1rem 1.25rem; border-radius: var(--radius); background: #f6dcd8; color: var(--error); font-weight: 500; }

.quote-success { display: grid; gap: 1rem; justify-items: start; padding: 2.5rem; border-radius: var(--radius); background: var(--blanco); }
.quote-success__check { width: 3.5rem; height: 3.5rem; color: var(--verde); }
.quote-success h3 { font-size: var(--fs-statement); letter-spacing: -0.02em; }
@media (prefers-reduced-motion: no-preference) {
	.quote-success__check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 600ms var(--ease-out) 150ms forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
	.contact__aside,
	.contact__form { grid-column: 1 / -1; }
	.quote-form__grid { grid-template-columns: 1fr; }
}

/* ---- Movimiento ----------------------------------------------------------
   Titulares palabra por palabra, fotos que se descubren, cifras que cuentan
   y cambios de estado con fundido. Todo con versión de movimiento reducido.
   ------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {

	/* Solo con JS: el contenido es visible por defecto si el script no carga. */

	/* Titulares: cada palabra sube desde detrás de su propia máscara. */
	.w { display: inline-block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; vertical-align: top; }
	.w__i { display: inline-block; transition: transform 1000ms var(--ease-out), opacity 700ms var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms + var(--wi, 0) * 55ms); }
	.js [data-reveal="words"] .w__i,
	.js .hero__title.is-split .w__i { transform: translateY(105%); opacity: 0; }
	.js [data-reveal="words"].is-in .w__i,
	.js .is-loaded .hero__title.is-split .w__i { transform: none; opacity: 1; }

	/* Textos: llegan con un leve desenfoque. */
	.js [data-reveal="fade"],
	.js [data-reveal="rise"] {
		opacity: 0;
		transform: translateY(var(--rise, 18px));
		filter: blur(6px);
		transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-out), filter 900ms var(--ease-out);
		transition-delay: calc(var(--d, 0) * 1ms);
	}
	.js [data-reveal="rise"] { --rise: 32px; }
	.js [data-reveal="fade"].is-in,
	.js [data-reveal="rise"].is-in { opacity: 1; transform: none; filter: blur(0); }

	/* Fotos: se descubren de abajo hacia arriba mientras la imagen se asienta. */
	.js [data-reveal="clip"] { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1000ms var(--ease-in-out); transition-delay: calc(var(--d, 0) * 1ms); }
	.js [data-reveal="clip"] img { transform: scale(1.18); transition: transform 1800ms var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
	.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
	.js [data-reveal="clip"].is-in img { transform: none; }

	/* Letras grandes (pie, Cotizar): suben una por una. */
	.js [data-reveal="letters"] { overflow: hidden; padding-block: 0.06em; }
	.ch { display: inline-block; transition: transform 1100ms var(--ease-out); transition-delay: calc(var(--ci, 0) * 45ms); }
	.js [data-reveal="letters"] .ch { transform: translateY(48%); }
	.js [data-reveal="letters"].is-in .ch { transform: none; }

	.js .fact__cota path { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1400ms var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms + 200ms); }
	.js .fact.is-in .fact__cota path { stroke-dashoffset: 0; }

	/* Portada: secuencia de carga. */
	.js .hero__lead,
	.js .hero__actions,
	.js .hero__brand,
	.js .hero__caption { opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity 900ms var(--ease-out), transform 1000ms var(--ease-out), filter 900ms var(--ease-out); }
	.js .hero__lead { transition-delay: 450ms; }
	.js .hero__actions { transition-delay: 600ms; }
	.js .hero__brand { transition-delay: 150ms; }
	.js .hero__caption { transition-delay: 900ms; }
	.js .is-loaded .hero__lead,
	.js .is-loaded .hero__actions,
	.js .is-loaded .hero__brand,
	.js .is-loaded .hero__caption { opacity: 1; transform: none; filter: blur(0); }
	.js .swatch { transform: translateX(110%); transition: transform 900ms var(--ease-out), background-color 300ms ease; }
	.js .swatch:nth-child(2) { transition-delay: 80ms; }
	.js .swatch:nth-child(3) { transition-delay: 160ms; }
	.js .swatch:nth-child(4) { transition-delay: 240ms; }
	.js .swatch:nth-child(5) { transition-delay: 320ms; }
	.js .is-loaded .swatch,
	.js .sol-index .swatch { transform: none; }

	/* Fotos de soluciones: leve paralaje ligado al scroll. */
	@supports (animation-timeline: view()) {
		.solution__img img,
		.sol__img img,
		.product-hero__img img { animation: drift linear both; animation-timeline: view(); animation-range: cover; scale: 1.12; }
	}

	/* Cambios de estado: fundido con desenfoque, nunca un salto. */
	.tabpanel { animation: panel-in 420ms var(--ease-out); }
	.stage__text,
	.stage__img { transition: opacity 400ms var(--ease-out), filter 400ms var(--ease-out), transform 600ms var(--ease-out); }
	.stage:not(.is-open) .stage__text,
	.stage:not(.is-open) .stage__img { opacity: 0; filter: blur(4px); transform: translateY(8px); }
	.stage.is-open .stage__text { transition-delay: 220ms; }
	.stage.is-open .stage__img { transition-delay: 120ms; }
}

@keyframes drift {
	from { translate: 0 -6%; }
	to { translate: 0 6%; }
}

/* Etapas en recorrido automático: una barra marca el tiempo de la etapa abierta. */
.stage::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	height: 3px;
	background: var(--naranja);
	transform: scaleX(0);
	transform-origin: 0 50%;
	opacity: 0;
}
.stages.is-auto .stage.is-open::after { opacity: 1; animation: stage-timer var(--step, 4200ms) linear forwards; }
@keyframes stage-timer { to { transform: scaleX(1); } }

/* Cinta de aplicaciones */
.marquee { overflow: hidden; margin-inline: calc(-1 * var(--margin)); padding-block: 0.5rem; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; }
.marquee ul { display: flex; gap: 0.75rem; padding: 0 0.75rem 0 0; margin: 0; list-style: none; }
.marquee li { flex: none; padding: 0.875rem 1.5rem; border-radius: var(--pill); background: var(--tone); font-size: var(--fs-statement); font-weight: 400; letter-spacing: -0.02em; white-space: nowrap; transition: background-color 250ms ease, color 250ms ease; }
@media (hover: hover) and (pointer: fine) {
	.marquee li:hover { background: var(--petroleo); color: var(--hormigon); }
}
@media (prefers-reduced-motion: no-preference) {
	.marquee__track { animation: marquee 48s linear infinite; animation-play-state: paused; }
	.marquee.is-running .marquee__track { animation-play-state: running; }
	.marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
	.marquee__track { flex-wrap: wrap; width: auto; }
	.marquee ul + ul { display: none; }
	.marquee ul { flex-wrap: wrap; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Cabecera: se retira al bajar y vuelve al subir. */
.site-header.is-tucked { transform: translateY(-100%); }
.is-home-chapters .site-header.is-visible.is-tucked { transform: translateY(-100%); }

/* Retroalimentación en controles */
.btn--primary,
.is-style-primary .wp-block-button__link,
.cell--ink { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::before,
.is-style-primary .wp-block-button__link::before,
.cell--ink::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--navy);
	border-radius: inherit;
	clip-path: inset(0 100% 0 0 round var(--pill));
	transition: clip-path 450ms var(--ease-out);
}
.chapter--naranja .btn--primary::before,
.site-header[data-on="naranja"] .site-header__cta::before { background: var(--petroleo); }
@media (hover: hover) and (pointer: fine) {
	.btn--primary:hover,
	.is-style-primary .wp-block-button__link:hover,
	.cell--ink:hover { color: var(--naranja); background: var(--naranja); }
	.btn--primary:hover::before,
	.is-style-primary .wp-block-button__link:hover::before,
	.cell--ink:hover::before { clip-path: inset(0 0 0 0 round var(--pill)); }
	.chapter--naranja .btn--primary:hover { color: var(--naranja); }

	/* Subrayado que se dibuja: una línea sólida que crece desde la izquierda. */
	.site-nav a,
	.footer-col a,
	.places a,
	.link-arrow { position: relative; text-decoration: none; }
	.site-nav a::before,
	.footer-col a::before,
	.places a::before,
	.link-arrow::before {
		content: "";
		position: absolute;
		left: var(--ul-x, 0);
		right: var(--ul-x, 0);
		bottom: var(--ul-y, -2px);
		height: 1.5px;
		background: currentColor;
		transform: scaleX(0);
		transform-origin: 100% 50%;
		transition: transform 450ms var(--ease-out);
	}
	.site-nav a { --ul-x: 0.75rem; --ul-y: 0.3rem; }
	.link-arrow::before { right: 1.45em; transform: scaleX(1); transform-origin: 0 50%; }
	.site-nav a:hover::before,
	.footer-col a:hover::before,
	.places a:hover::before { transform: scaleX(1); transform-origin: 0 50%; }
	.link-arrow:hover::before { animation: underline-redraw 650ms var(--ease-out); }
	.site-nav a[aria-current="page"] { text-decoration: none; }
	.site-nav a[aria-current="page"]::before { transform: scaleX(1); height: 2px; }

	.tile--link { transition: background-color 300ms ease, transform 400ms var(--ease-out); }
	.tile--link:hover { transform: translateY(-4px); }
	.gallery__item img,
	.solution__img,
	.sol__img { transition: transform 900ms var(--ease-out); }
	.gallery__item:hover img { transform: scale(1.05); }
	.doc__link:hover .doc__action { transform: translateX(-4px); }
	.doc__action { transition: transform 300ms var(--ease-out); }
	.cta-band:hover .ch { transform: translateY(-5%); transition: transform 700ms var(--ease-out); transition-delay: calc(var(--ci, 0) * 35ms); }
	.chip { transition: background-color 200ms ease, color 200ms ease, transform 300ms var(--ease-out); }
	.chip:hover { transform: translateY(-2px); }
}
@keyframes underline-redraw {
	0% { transform: scaleX(1); transform-origin: 100% 50%; }
	45% { transform: scaleX(0); transform-origin: 100% 50%; }
	46% { transform: scaleX(0); transform-origin: 0 50%; }
	100% { transform: scaleX(1); transform-origin: 0 50%; }
}

@keyframes panel-in {
	from { opacity: 0; transform: translateY(6px); filter: blur(4px); }
}

.stage { transition: flex-grow 600ms var(--ease-in-out); }

/* Menú móvil: se abre desde el botón que lo invoca. */
@media (prefers-reduced-motion: no-preference) {
	.menu {
		clip-path: circle(0 at calc(100% - var(--margin) - 1.5rem) calc(var(--header-h) / 2));
		transition: clip-path 380ms var(--ease-in-out);
	}
	.menu.is-open {
		clip-path: circle(150% at calc(100% - var(--margin) - 1.5rem) calc(var(--header-h) / 2));
		transition: clip-path 700ms var(--ease-out);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 200ms !important;
		transition-delay: 0ms !important;
		scroll-behavior: auto !important;
	}
	.stage { transition: none !important; }
}

/* Transición entre páginas: la anterior se aparta, la nueva llega con foco. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
	::view-transition-old(root) { animation: vt-out 220ms var(--ease-in-out) both; }
	::view-transition-new(root) { animation: vt-in 520ms var(--ease-out) both; }
	::view-transition-group(product-media) { animation-duration: 560ms; animation-timing-function: var(--ease-in-out); }
}
@keyframes vt-out { to { opacity: 0; transform: scale(0.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
.page-hero__img img[src*="diagrama"] { object-fit: contain; padding: 1.5rem; background: var(--blanco); }

