/* ==========================================================================
   shaCo · estilos del tema
   Medidas tomadas del Figma (frame 1920 px). --u = 1px de Figma escalado.
   ========================================================================== */

:root {
	--u: calc(min(100vw, 1920px) / 1920);
	--gutter: clamp(20px, calc(52 * var(--u)), 52px);
	--line: rgba(0, 0, 0, 0.27);
	--line-light: rgba(255, 255, 255, 0.2);
	--crema: var(--wp--preset--color--crema, #F3F0EE);
	--carbon: var(--wp--preset--color--carbon, #454341);
	--piedra: var(--wp--preset--color--piedra, #DDD8D4);
	--amarillo: var(--wp--preset--color--amarillo, #FCBB15);
	--mono: var(--wp--preset--font-family--ballinger-mono, "Ballinger Mono", monospace);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--arrow: url("../img/flecha.svg");
}

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }

/* Los bloques con fondo no llevan el relleno automático de WordPress: lo marca cada sección */
.shaco-hero-panel.has-background,
.shaco-proceso.has-background,
.shaco-split.has-background,
.shaco-hero-panel.has-background, .shaco-split.has-background { padding: 0; }

/* Las secciones van pegadas, sin huecos entre ellas */
.wp-site-blocks > *,
.shaco-sections > * { margin-block: 0 !important; }
.shaco-sections > .alignfull { max-width: none; }

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }

/* ---------- Piezas reutilizables (estilos de bloque) ---------- */

.is-style-shaco-etiqueta {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 14px;
}
.is-style-shaco-etiqueta::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--amarillo);
}

.is-style-shaco-mono,
.is-style-shaco-mono-gris,
.is-style-shaco-badge {
	font-family: var(--mono);
	font-size: 14px;
	line-height: 1.21;
	text-transform: uppercase;
	letter-spacing: 0;
}
.is-style-shaco-mono-gris { color: rgba(0, 0, 0, 0.5); }
.is-style-shaco-badge {
	display: inline-block;
	width: fit-content;
	padding: 2px 9px 1px;
	background: var(--crema);
	color: var(--carbon);
}

.is-style-shaco-mono a,
.shaco-footer a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.is-style-shaco-mono a:hover,
.shaco-footer a:hover { background-size: 100% 1px; }

/* Grano / ruido */
.is-style-shaco-ruido,
.shaco-ruido-img { position: relative; }
.is-style-shaco-ruido::after,
.shaco-ruido-img::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background-image: var(--noise);
	opacity: 0.41;
	mix-blend-mode: multiply;
}
.wp-block-cover.is-style-shaco-ruido .wp-block-cover__inner-container { z-index: 2; }

/* ---------- Botones ---------- */

.wp-block-buttons { gap: 19px; }
.wp-block-button[class*="is-style-shaco-"] .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 19px;
	min-height: 60px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: 0;
	font-family: var(--mono);
	font-size: 14px;
	line-height: 1.21;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.wp-block-button[class*="is-style-shaco-"]:not(.is-style-shaco-contorno) .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 20px;
	height: 12px;
	background: currentColor;
	-webkit-mask: var(--arrow) center / contain no-repeat;
	mask: var(--arrow) center / contain no-repeat;
	transition: transform .35s var(--ease);
}
.wp-block-button[class*="is-style-shaco-"] .wp-block-button__link:hover::after { transform: translateX(6px); }

.is-style-shaco-amarillo .wp-block-button__link { background: var(--amarillo); color: var(--carbon); }
.is-style-shaco-amarillo .wp-block-button__link:hover { background: #ffcc45; }

.is-style-shaco-contorno .wp-block-button__link { padding: 0 23px; background: transparent; color: var(--crema); border-color: var(--crema) !important; }
.is-style-shaco-contorno .wp-block-button__link:hover { background: var(--crema); color: var(--carbon); }

.is-style-shaco-blanco .wp-block-button__link,
.is-style-shaco-oscuro .wp-block-button__link { min-width: 170px; padding: 0 15px 0 20px; gap: 32px; }
.is-style-shaco-blanco .wp-block-button__link { background: #fff; color: var(--carbon); }
.is-style-shaco-blanco .wp-block-button__link:hover { background: var(--amarillo); }
.is-style-shaco-oscuro .wp-block-button__link { background: var(--carbon); color: var(--crema); }
.is-style-shaco-oscuro .wp-block-button__link:hover { background: #000; }

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

.shaco-header-wrap {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
.shaco-header {
	min-height: 60px;
	align-items: center;
	border-bottom: 0.5px solid #000;
}
.shaco-logo { margin: 0; line-height: 0; }
.shaco-logo img { width: clamp(80px, calc(94 * var(--u)), 94px) !important; height: auto; }

.shaco-nav { font-family: var(--mono); font-size: 14px; text-transform: uppercase; gap: 16px; }
.shaco-nav .wp-block-navigation__container { gap: 16px; }
.shaco-nav .wp-block-navigation-item__content {
	display: block;
	padding: 3px 4px !important;
	line-height: 17px;
	background: var(--piedra);
	color: var(--carbon);
	transition: background-color .3s var(--ease), color .3s var(--ease);
}
.shaco-nav .wp-block-navigation-item__content:hover,
.shaco-nav .current-menu-item > .wp-block-navigation-item__content { background: var(--carbon); color: var(--crema); }

.shaco-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px var(--gutter); }
.shaco-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 14px; }
.shaco-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 20px; padding: 6px 10px !important; line-height: 1.2; }

/* ---------- Hero ---------- */

.shaco-hero {
	position: relative;
	/* Escala del hero: 1018 = alto de foto (624) + panel (394) en el Figma.
	   Se usa la menor entre ancho y alto para que quepa entero en pantalla. */
	--hero-h: calc(100svh - var(--header-h, 60px) - var(--wp-admin--admin-bar--height, 0px));
	--s: min(var(--u), var(--hero-h) / var(--hero-ratio, 1018));
	display: flex;
	flex-direction: column;
}
.shaco-hero > * { margin: 0 !important; }
.shaco-hero h1 { font-size: max(36px, calc(72.76 * var(--s))); }

.shaco-hero .is-style-shaco-slider {
	position: relative;
	height: max(260px, calc(624 * var(--s)));
	margin: 0 !important;
	overflow: hidden;
	background: var(--carbon);
}
.shaco-hero .is-style-shaco-slider::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: rgba(0, 0, 0, 0.09);
}
.js .is-style-shaco-slider { display: block !important; }
.js .is-style-shaco-slider > figure.wp-block-image {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100%;
	margin: 0 !important;
	opacity: 0;
	transition: opacity 1.6s ease;
}
.js .is-style-shaco-slider > figure.wp-block-image.is-active { opacity: 1; }
.js .is-style-shaco-slider > figure.wp-block-image img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transform: scale(1.08);
	transition: transform 7s linear;
}
.js .is-style-shaco-slider > figure.wp-block-image.is-active img { transform: scale(1); }
.shaco-slider-dots {
	position: absolute;
	right: var(--gutter);
	bottom: 24px;
	z-index: 3;
	display: flex;
	gap: 8px;
}
.shaco-slider-dots button {
	width: 28px;
	height: 3px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	transition: background-color .3s;
}
.shaco-slider-dots button.is-active { background: var(--amarillo); }

.shaco-hero-panel { position: relative; }
/* Línea blanca al 20 % a todo el ancho, por encima de la pestaña (Line 1 del Figma) */
.shaco-hero-panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 3;
	height: 1px;
	background: var(--hero-line, var(--line-light));
	pointer-events: none;
}
/* Pestaña sobre la foto: forma exacta del vector del Figma (500 × 75) */
.shaco-hero-tab {
	position: absolute;
	left: 0;
	bottom: 100%;
	z-index: 2;
	width: max(300px, calc(500 * var(--s)));
	height: max(45px, calc(75 * var(--s)));
	padding-left: var(--gutter);
	color: var(--panel-fg, var(--crema));
	isolation: isolate;
}
.shaco-hero-tab::before { width: 15px; height: 15px; }
.shaco-hero-tab::after {
	content: "";
	position: absolute;
	inset: 0 0 -1px 0;
	z-index: -1;
	background: var(--panel-bg, var(--carbon));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 75' preserveAspectRatio='none'%3E%3Cpath d='M0 0H367.15C383.3 0 398.86 6.14 410.8 17.21L453.43 56.75C466.1 68.47 482.61 75 499.72 75H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 75' preserveAspectRatio='none'%3E%3Cpath d='M0 0H367.15C383.3 0 398.86 6.14 410.8 17.21L453.43 56.75C466.1 68.47 482.61 75 499.72 75H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

.shaco-split-cols { gap: 0 !important; margin: 0 !important; align-items: stretch !important; }
.shaco-hero .shaco-split-main {
	padding: max(28px, calc(67 * var(--s))) var(--gutter) max(32px, calc(94 * var(--s)));
}
.shaco-hero .shaco-split-main .wp-block-buttons { margin-top: max(22px, calc(46 * var(--s))); }
.shaco-hero .shaco-split-side {
	border-left: 1px solid var(--hero-line, var(--line-light));
	padding: 40px calc(131 * var(--u)) 40px max(24px, calc(141 * var(--u)));
}
.shaco-hero .shaco-split-side p { max-width: 310px; }
/* La columna ocupa todo el alto del panel (así la línea separadora llega de arriba abajo) y centra el texto */
.shaco-hero .shaco-split-cols { flex: 1 1 auto; }
.shaco-hero .wp-block-column.shaco-split-side {
	align-self: stretch !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@media (min-width: 782px) {
	.shaco-hero { height: var(--hero-h); min-height: 560px; }
	/* La foto se queda con el alto que deja libre el panel */
	.shaco-hero .is-style-shaco-slider { flex: 1 1 0; height: auto; min-height: 260px; }
}
/* En móvil el panel es alto, así que la escala la marca solo el ancho */
@media (max-width: 781px) {
	.shaco-hero { --s: var(--u); }
}

/* ---------- Cifras (tarjetas en escalera) ---------- */

.shaco-cifras {
	padding: max(64px, calc(110 * var(--u))) var(--gutter) max(80px, calc(150 * var(--u)));
}
.shaco-cifras-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: calc(88 * var(--u));
	row-gap: 48px;
	align-items: end;
	/* ancho de una tarjeta (= alto de la primera) */
	--card-w: calc((100vw - 2 * var(--gutter) - 3 * 88 * var(--u)) / 4);
}
.shaco-cifras-grid > * { margin: 0 !important; }
.shaco-card {
	position: relative;
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	aspect-ratio: 1;
	padding: 7%;
}
.shaco-card:nth-child(4n+2) { aspect-ratio: 387 / 331; }
.shaco-card:nth-child(4n+3) { aspect-ratio: 387 / 275; }
.shaco-card:nth-child(4n+4) { aspect-ratio: 387 / 219; }
/* Línea amarilla: todas terminan a la misma altura y se dibujan con el scroll */
.shaco-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: -6px;
	width: 6px;
	bottom: calc(var(--card-w) * 0.473);
	background: var(--amarillo);
	transform-origin: 50% 0;
	transform: scaleY(var(--p, 1));
}
.shaco-card > * { margin: 0 !important; }
.shaco-cifra {
	font-size: clamp(40px, 18.8cqw, 96px);
	font-weight: 500;
	line-height: 0.935;
	color: var(--piedra);
	font-variant-numeric: tabular-nums;
}

/* ---------- Cómo trabajamos ---------- */

.shaco-proceso {
	position: relative;
	padding-bottom: max(56px, calc(86 * var(--u)));
}
.shaco-proceso::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 69.69%;
	width: 1px;
	background: var(--line);
	transform: scaleX(0.5);
	pointer-events: none;
}
.shaco-proceso > * { margin: 0 !important; }
.shaco-proceso-head {
	padding: max(56px, calc(82 * var(--u))) var(--gutter) max(48px, calc(74 * var(--u)));
}
.shaco-proceso-head h2 { margin-top: max(28px, calc(52 * var(--u))) !important; max-width: 69.69%; }

.shaco-fila {
	position: relative;
	display: grid;
	grid-template-columns: calc(var(--gutter) + 343 * var(--u)) minmax(0, 1fr) 30.31%;
	grid-template-areas: "num title side";
	align-items: center;
	min-height: max(100px, calc(141 * var(--u)));
}
.shaco-fila::after,
.shaco-fila:last-child::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: var(--line);
	transform-origin: 0 50%;
	transition: transform 1.2s var(--ease);
}
.shaco-fila:last-child::before { top: auto; bottom: 0; }
.shaco-fila > * { margin: 0 !important; }
.shaco-fila .is-style-shaco-badge { grid-area: num; margin-left: var(--gutter) !important; justify-self: start; }
.shaco-fila h3 {
	grid-area: title;
	position: relative;
	z-index: 2;
	max-width: 11.4em;
	padding-block: 24px;
	transition: transform .6s var(--ease);
}
.shaco-fila-texto {
	grid-area: side;
	justify-self: end;
	max-width: 310px;
	margin-right: calc(55 * var(--u)) !important;
	padding: 24px 0 24px 24px;
	text-align: right;
}
/* Miniatura que aparece al pasar el ratón */
.shaco-fila-img {
	grid-area: title;
	justify-self: end;
	align-self: center;
	z-index: 1;
	width: calc(260 * var(--u));
	margin-right: calc(60 * var(--u)) !important;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	pointer-events: none;
	clip-path: inset(50% 0 50% 0);
	transition: clip-path .7s var(--ease);
}
.shaco-fila-img img { width: 100%; height: 100% !important; object-fit: cover; transform: scale(1.15); transition: transform 1s var(--ease); }
.shaco-fila:hover .shaco-fila-img { clip-path: inset(0); }
.shaco-fila:hover .shaco-fila-img img { transform: scale(1); }
.shaco-fila:hover h3 { transform: translateX(14px); }

/* ---------- Texto + imagen doble ---------- */

.shaco-split {
	gap: 0 !important;
	margin: 0;
	min-height: max(560px, calc(1056 * var(--u)));
}
.shaco-split.is-style-shaco-invertido { flex-direction: row-reverse; }
.shaco-split > .wp-block-column,
.shaco-split-cols > .wp-block-column { box-sizing: border-box; min-width: 0; }
.shaco-split-text { padding: max(64px, calc(120 * var(--u))) var(--gutter); }
.shaco-split-text h2 { margin-top: max(28px, calc(49 * var(--u))) !important; }
.shaco-split-text .shaco-split-p { margin-top: max(28px, calc(52 * var(--u))) !important; max-width: 508px; }
.shaco-split-text .wp-block-buttons { margin-top: max(36px, calc(73 * var(--u))) !important; }
.shaco-split-media { position: relative; overflow: hidden; min-height: 420px; }
.shaco-split-media > * { margin: 0 !important; }
.shaco-split-bg { position: absolute !important; inset: 0; }
.shaco-split-bg img { width: 100%; height: 100% !important; object-fit: cover; }
.shaco-split-inset {
	position: absolute !important;
	left: 22.6%;
	top: 21.6%;
	width: 54.9%;
	aspect-ratio: 527 / 594;
	z-index: 1;
	translate: 0 var(--parallax, 0px);
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}
.shaco-split-inset img { width: 100%; height: 100% !important; object-fit: cover; }

/* ---------- Galería ---------- */

.shaco-galeria.wp-block-cover {
	min-height: max(560px, calc(1008 * var(--u))) !important;
	padding: max(64px, calc(124 * var(--u))) var(--gutter) max(80px, calc(233 * var(--u))) !important;
	align-items: flex-start;
}
.shaco-galeria .wp-block-cover__inner-container { width: 100% !important; max-width: none !important; }
.shaco-galeria .wp-block-cover__inner-container > * { margin: 0 !important; max-width: none !important; }
.shaco-galeria .wp-block-cover__inner-container > .shaco-galeria-head { align-items: center; justify-content: space-between; margin-bottom: max(40px, calc(124 * var(--u))) !important; }

.wp-block-gallery.is-style-shaco-expandir {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: calc(78 * var(--u)) !important;
	height: max(240px, calc(391 * var(--u)));
}
.wp-block-gallery.is-style-shaco-expandir > figure.wp-block-image {
	flex: 1 1 0 !important;
	width: auto !important;
	min-width: 0;
	height: 100%;
	margin: 0 !important;
	overflow: hidden;
	transition: flex-grow .8s var(--ease), filter .6s var(--ease);
}
.wp-block-gallery.is-style-shaco-expandir > figure.wp-block-image img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}
.wp-block-gallery.is-style-shaco-expandir:hover > figure.wp-block-image { filter: brightness(.7); }
.wp-block-gallery.is-style-shaco-expandir > figure.wp-block-image:hover { flex-grow: 2.1 !important; filter: none; }
.wp-block-gallery.is-style-shaco-expandir > figure.wp-block-image:hover img { transform: scale(1.04); }

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

.shaco-footer { background: #fff; overflow: hidden; }
.shaco-footer > * { margin: 0 !important; }
.shaco-footer-logo { width: 103.23vw; max-width: none; margin-left: -1.61vw !important; padding-top: 2px; line-height: 0; }
.shaco-footer-logo img { display: block; width: 100%; height: auto; }
.shaco-footer-main {
	position: relative;
	margin-top: calc(-96 * 100vw / 1920) !important;
	padding: max(48px, calc(80 * var(--u))) var(--gutter) 0;
}
.shaco-footer-main > * { margin: 0 !important; }
.shaco-footer-title { line-height: 0.98; }
.shaco-footer-brand p { margin-top: 12px !important; }
.shaco-footer-cols {
	display: grid;
	grid-template-columns: calc(400 * var(--u)) calc(417 * var(--u)) 1fr auto;
	align-items: end;
	margin-top: max(56px, calc(91 * var(--u))) !important;
}
.shaco-footer-cols > * { margin: 0 !important; }
.shaco-footer-col { align-self: start; }
.shaco-footer-col > * { margin: 0 !important; }
.shaco-footer-links { margin-top: 29px !important; line-height: 2.04; }
.shaco-footer-address { margin-top: 29px !important; }
.shaco-footer-address a[href^="tel"] { background-size: 100% 1px; }
.shaco-footer-cta { margin: 0 !important; }
.shaco-footer-bottom {
	margin: max(32px, calc(46 * var(--u))) calc(-1 * var(--gutter)) 0 !important;
	padding: 24px var(--gutter) 22px;
	border-top: 1px solid var(--line);
	gap: 16px;
}

/* ---------- Hero claro (páginas interiores) ---------- */

.shaco-hero--claro {
	--hero-ratio: 1026;
	--panel-bg: var(--crema);
	--panel-fg: var(--carbon);
	--hero-line: var(--piedra);
}

/* ---------- Etiqueta mono con punto (a la izquierda o, si el párrafo va a la derecha, el punto detrás) ---------- */

.is-style-shaco-etiqueta-mono {
	display: flex;
	align-items: center;
	gap: 18px;
	font-family: var(--mono);
	font-size: 14px;
	line-height: 1.21;
	text-transform: uppercase;
}
.is-style-shaco-etiqueta-mono::before {
	content: "";
	flex: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--amarillo);
}
.has-text-align-right.is-style-shaco-etiqueta-mono,
.has-text-align-right.is-style-shaco-etiqueta { flex-direction: row-reverse; }
.has-text-align-center.is-style-shaco-etiqueta-mono,
.has-text-align-center.is-style-shaco-etiqueta { justify-content: center; }

/* ---------- Bloque oscuro: dos mensajes + línea curva + frentes ---------- */

.shaco-manifiesto { padding: calc(115 * var(--u)) 0 0 !important; overflow: hidden; }
.shaco-manifiesto > * { margin: 0 !important; }
.shaco-manifiesto-top { max-width: calc(960 * var(--u) + var(--gutter)); margin-left: auto !important; padding-right: var(--gutter); }
.shaco-manifiesto-top > *, .shaco-manifiesto-texto > * { margin: 0 !important; }
.shaco-manifiesto .has-lead-font-size { margin-top: max(20px, calc(34 * var(--u))) !important; line-height: 1.21; }
.shaco-manifiesto .wp-block-spacer.shaco-curva {
	width: 100%;
	height: auto !important;
	aspect-ratio: 1920 / 96;
	margin-top: max(20px, calc(14 * var(--u))) !important;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 96' preserveAspectRatio='none'%3E%3Cpath d='M0 .5H447C466 .5 484 8 498 21.5L548 71C563 86 582 95.5 603 95.5H1920' fill='none' stroke='%23F3F0EF' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.shaco-manifiesto-bottom {
	display: grid;
	grid-template-columns: minmax(0, 1fr) calc(552 * var(--u));
	align-items: stretch;
}
.shaco-manifiesto-texto { padding: max(40px, calc(96 * var(--u))) var(--gutter) max(48px, calc(90 * var(--u))); }
.shaco-manifiesto-texto .has-lead-font-size { max-width: calc(930 * var(--u)); }
/* Frentes de armario dibujados: 9 columnas × 2 filas */
.shaco-manifiesto .wp-block-spacer.shaco-frentes {
	height: auto !important;
	min-height: calc(372 * var(--u));
	margin: 0 !important;
	background:
		linear-gradient(var(--crema), var(--crema)) 0 50% / 100% 1px no-repeat,
		repeating-linear-gradient(to right, var(--crema) 0 1px, transparent 1px calc(100% / 9));
}
.js .shaco-curva { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s var(--ease); }
.js .shaco-curva.is-in { clip-path: inset(0 0 0 0); }
.js .shaco-frentes { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease) .5s; }
.js .shaco-frentes.is-in { clip-path: inset(0); }

/* ---------- Texto centrado ---------- */

.shaco-centrado { padding: max(64px, calc(98 * var(--u))) var(--gutter) !important; }
.shaco-centrado > * { margin: 0 auto !important; }
.shaco-centrado .has-lead-font-size { max-width: max(300px, calc(712 * var(--u))); margin-top: max(28px, calc(40 * var(--u))) !important; line-height: 1.21; }

/* ---------- Imagen con sello + texto ---------- */

.shaco-banda { position: relative; }
.shaco-banda > * { margin: 0 !important; }
.shaco-banda-img { height: max(320px, calc(669 * var(--u))); }
.shaco-banda-img img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.shaco-banda-img.shaco-ruido-img::after { opacity: .25; }
.shaco-banda .shaco-sello {
	position: absolute !important;
	top: max(24px, calc(153 * var(--u)));
	right: calc(234 * var(--u));
	z-index: 3;
	line-height: 0;
}
.shaco-banda .shaco-sello img { width: max(84px, calc(122 * var(--u))) !important; height: auto; border-radius: 50%; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.shaco-banda-panel { position: relative; padding: max(48px, calc(80 * var(--u))) var(--gutter) max(56px, calc(95 * var(--u))) !important; }
.shaco-banda-panel::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: calc(100% - 1px);
	z-index: 2;
	width: max(300px, calc(500 * var(--u)));
	height: max(45px, calc(75 * var(--u)));
	background: var(--crema);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 75' preserveAspectRatio='none'%3E%3Cpath d='M0 0H367.15C383.3 0 398.86 6.14 410.8 17.21L453.43 56.75C466.1 68.47 482.61 75 499.72 75H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 75' preserveAspectRatio='none'%3E%3Cpath d='M0 0H367.15C383.3 0 398.86 6.14 410.8 17.21L453.43 56.75C466.1 68.47 482.61 75 499.72 75H0Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.shaco-banda-panel > * { margin: 0 !important; }
.shaco-banda-cols { gap: 0 !important; margin-top: max(36px, calc(73 * var(--u))) !important; }
.shaco-banda-cols > .wp-block-column { box-sizing: border-box; min-width: 0; }
.shaco-banda-side { padding-right: calc(8 * var(--u)); }
.shaco-banda-side p { max-width: 530px; }
.shaco-banda-side p + p { margin-top: 17px !important; }

@media (max-width: 781px) {
	.shaco-manifiesto-top { max-width: none; padding-left: var(--gutter); }
	.shaco-manifiesto-bottom { grid-template-columns: 1fr; }
	.shaco-manifiesto-texto .has-lead-font-size, .shaco-manifiesto-top { max-width: none; }
	.shaco-manifiesto .wp-block-spacer.shaco-frentes { min-height: 220px; width: 70%; margin-left: auto !important; }
	.shaco-banda .shaco-sello { right: var(--gutter); }
	.shaco-banda-cols { gap: 24px !important; }
	.shaco-banda-side { padding-right: 0; }
}

/* ---------- Cabecera de producto: imagen en perspectiva que se endereza y crece con el scroll ----------
   --t: 0 → 1 la imagen se endereza (fase 1) · --g: 0 → 1 la imagen crece hasta llenar la pantalla (fase 2) */

.shaco-ph { position: relative; padding: 0 !important; }
.shaco-ph > * { margin: 0 !important; }
.shaco-ph-sticky {
	--ph-h: calc(100svh - var(--header-h, 60px) - var(--wp-admin--admin-bar--height, 0px));
	/* Escala por ancho como el prototipo; solo se reduce si la ventana es muy baja */
	--s: min(var(--u), var(--ph-h) / 860);
	--p: 0;
	--t: 0;
	--g: 0;
	position: relative;
	height: max(560px, var(--ph-h));
	overflow: hidden;
}
.shaco-ph-sticky > * { margin: 0 !important; position: absolute !important; }
.js .shaco-ph { height: calc(max(560px, 100svh - var(--header-h, 60px) - var(--wp-admin--admin-bar--height, 0px)) + 220vh); }
.js .shaco-ph-sticky { position: sticky; top: calc(var(--header-h, 60px) + var(--wp-admin--admin-bar--height, 0px)); }
.shaco-ph-left, .shaco-ph-right {
	top: calc(50% - 68 * var(--s));
	z-index: 1;
	font-size: max(36px, calc(72.76 * var(--s))) !important;
}
.shaco-ph-left { left: var(--gutter); transform: translateX(calc(var(--g) * -45vw)); opacity: calc(1 - var(--g) * 1.6); }
.shaco-ph-right { right: var(--gutter); transform: translateX(calc(var(--g) * 45vw)); opacity: calc(1 - var(--g) * 1.6); }
.shaco-ph-texto { left: var(--gutter); top: calc(50% + 300 * var(--s)); max-width: 310px; z-index: 1; opacity: calc(1 - var(--g) * 2.5); }

/* El contenedor es la caja de la imagen (933 × 525 en el Figma) y en la fase 2 pasa a ocupar toda la pantalla */
.shaco-ph-stage {
	z-index: 2;
	left: calc((50% + (452 - 960) * var(--s)) * (1 - var(--g)));
	top: calc((50% - 262.5 * var(--s)) * (1 - var(--g)));
	width: calc(933 * var(--s) * (1 - var(--g)) + 100% * var(--g));
	height: calc(525 * var(--s) * (1 - var(--g)) + 100% * var(--g));
}
/* Trapecio amarillo (Rectangle 51: 1006 × 624, 38/56 px por fuera de la imagen) */
.shaco-ph-stage::before {
	content: "";
	position: absolute;
	left: -4.07%;
	top: -10.67%;
	width: 107.82%;
	height: 118.86%;
	background: var(--amarillo);
	clip-path: polygon(0 20.7%, 100% 0, 100% 100%, 0 78.7%);
	opacity: calc(1 - var(--t) * 1.25);
}
.shaco-ph-stage > * { margin: 0 !important; }
.shaco-ph-img {
	position: absolute !important;
	inset: 0;
	overflow: hidden;
	border-radius: calc(262.5 * var(--s) * (1 - var(--g)));
	/* La foto nunca se deforma: el JS dibuja el recorte (píldora inclinada que se endereza) con clip-path */
}
.shaco-ph-img.is-shaped { border-radius: 0; }
.shaco-ph-img img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.shaco-ph-img.shaco-ruido-img::after { opacity: .3; }

/* ---------- Características: 4 columnas numeradas ---------- */

.shaco-caract {
	position: relative;
	gap: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: max(560px, calc(692 * var(--u)));
	align-items: stretch !important;
}
.shaco-caract::before {
	content: "";
	position: absolute;
	top: 20px;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--crema);
	transform-origin: 0 50%;
	transition: transform 1.4s var(--ease);
}
.shaco-caract > .wp-block-column {
	--pl: calc(80 * var(--u));
	position: relative;
	box-sizing: border-box;
	min-width: 0;
	padding: max(110px, calc(205 * var(--u))) 32px max(56px, calc(100 * var(--u))) var(--pl);
}
.shaco-caract > .wp-block-column:first-child { --pl: calc(var(--gutter) + 38 * var(--u)); }
.shaco-caract > .wp-block-column + .wp-block-column::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 1px;
	background: var(--crema);
	transform-origin: 50% 0;
	transition: transform 1.4s var(--ease) .3s;
}
.shaco-caract > .wp-block-column > * { margin: 0 !important; }
.shaco-caract-num {
	position: absolute;
	top: 0;
	left: var(--pl);
	height: 20px;
	padding: 0 9px;
	background: var(--crema);
	color: var(--carbon);
	font-family: var(--mono);
	font-size: 14px;
	line-height: 20px;
}
.shaco-caract h3 { line-height: .934; max-width: 7.5em; }
.shaco-caract .wp-block-list { margin-top: max(28px, calc(40 * var(--u))) !important; }
.wp-block-list.is-style-shaco-chevron { list-style: none; padding: 0; }
.is-style-shaco-chevron li { position: relative; max-width: 304px; padding-left: 30px; line-height: 1.21; }
.is-style-shaco-chevron li + li { margin-top: 22px; }
.is-style-shaco-chevron li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .3em;
	width: 12px;
	height: 9px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 9'%3E%3Cpath d='M0 0h7.6L12 4.5 7.6 9H0l3.6-4.5z' fill='%23FCBB15'/%3E%3C/svg%3E") center / contain no-repeat;
}
.js .shaco-caract::before { transform: scaleX(0); }
.js .shaco-caract > .wp-block-column + .wp-block-column::after { transform: scaleY(0); }
.js .shaco-caract.is-in::before { transform: none; }
.js .shaco-caract.is-in > .wp-block-column + .wp-block-column::after { transform: none; }
.js .shaco-caract > .wp-block-column:nth-child(2) .shaco-reveal { transition-delay: .1s; }
.js .shaco-caract > .wp-block-column:nth-child(3) .shaco-reveal { transition-delay: .2s; }
.js .shaco-caract > .wp-block-column:nth-child(4) .shaco-reveal { transition-delay: .3s; }

/* ---------- Titular + tira de fotos ---------- */

.shaco-ilum { padding: max(64px, calc(125 * var(--u))) 0 calc(21 * var(--u)) !important; }
.shaco-ilum > * { margin: 0 !important; }
.shaco-ilum > .is-style-shaco-etiqueta, .shaco-ilum-head { padding: 0 var(--gutter); }
.shaco-ilum-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-top: max(32px, calc(60 * var(--u))) !important;
}
.shaco-ilum-head > * { margin: 0 !important; }
.shaco-ilum-head p { max-width: 310px; margin-bottom: calc(17 * var(--u)) !important; }
.wp-block-gallery.is-style-shaco-tira {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: calc(27 * var(--u)) !important;
	height: max(300px, calc(659 * var(--u)));
	margin-top: max(48px, calc(96 * var(--u))) !important;
}
.wp-block-gallery.is-style-shaco-tira > figure.wp-block-image {
	flex: 509 1 0 !important;
	width: auto !important;
	min-width: 0;
	height: 100%;
	margin: 0 !important;
	overflow: hidden;
}
.wp-block-gallery.is-style-shaco-tira > figure.wp-block-image:nth-child(3n+2) { flex-grow: 848 !important; }
.wp-block-gallery.is-style-shaco-tira > figure.wp-block-image img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 1.4s var(--ease); }
.wp-block-gallery.is-style-shaco-tira > figure.wp-block-image:hover img { transform: scale(1.04); }
.js .wp-block-gallery.is-style-shaco-tira > figure { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.js .wp-block-gallery.is-style-shaco-tira.is-in > figure { clip-path: inset(0); }
.js .wp-block-gallery.is-style-shaco-tira.is-in > figure:nth-child(2) { transition-delay: .12s; }
.js .wp-block-gallery.is-style-shaco-tira.is-in > figure:nth-child(3) { transition-delay: .24s; }

@media (min-width: 782px) and (max-width: 1100px) {
	.shaco-caract { flex-wrap: wrap !important; }
	.shaco-caract > .wp-block-column { flex-basis: 50% !important; padding-top: 90px; }
	.shaco-caract > .wp-block-column:nth-child(n+3) { border-top: 1px solid var(--crema); }
}
@media (max-width: 781px) {
	.js .shaco-ph { height: auto; }
	.shaco-ph-sticky, .js .shaco-ph-sticky { position: relative; top: 0; height: auto; display: flex; flex-direction: column; gap: 28px; padding: 48px var(--gutter) 56px; --p: 0 !important; }
	.shaco-ph-sticky > * { position: relative !important; left: auto !important; right: auto !important; top: auto !important; }
	.shaco-ph-left, .shaco-ph-right { font-size: 40px !important; }
	.shaco-ph-stage { width: 92%; height: auto; aspect-ratio: 933 / 525; margin: 24px auto !important; }
	.shaco-caract > .wp-block-column { padding: 72px var(--gutter) 48px; --pl: var(--gutter) !important; }
	.shaco-caract > .wp-block-column + .wp-block-column { border-top: 1px solid var(--crema); }
	.shaco-caract > .wp-block-column + .wp-block-column::after { display: none; }
	.shaco-caract::before { display: none; }
	.shaco-ilum-head p { text-align: left !important; }
	.wp-block-gallery.is-style-shaco-tira { flex-direction: column; height: auto; gap: 12px !important; }
	.wp-block-gallery.is-style-shaco-tira > figure.wp-block-image { flex: none !important; aspect-ratio: 4 / 3; }
}

/* ---------- Páginas normales ---------- */

.shaco-page { padding: max(64px, calc(120 * var(--u))) var(--gutter); background: var(--crema); min-height: 60vh; }
.shaco-page > * + * { margin-top: 1.5rem; }

/* ---------- Animaciones de entrada (solo en la web, no en el editor) ---------- */

.js .shaco-reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .shaco-reveal.is-in { opacity: 1; transform: none; }
.js .shaco-split-main .wp-block-buttons.shaco-reveal,
.js .shaco-split-text .shaco-reveal + .shaco-reveal { transition-delay: .12s; }

.js .is-style-shaco-revelar { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
.js .is-style-shaco-revelar.is-in { clip-path: inset(0); }

.js .shaco-fila::after,
.js .shaco-fila:last-child::before { transform: scaleX(0); }
.js .shaco-fila.is-in::after,
.js .shaco-fila.is-in:last-child::before { transform: scaleX(1); }
.js .shaco-fila .is-style-shaco-badge,
.js .shaco-fila h3,
.js .shaco-fila .shaco-fila-texto { opacity: 0; translate: 0 30px; transition: opacity .9s var(--ease), translate 1s var(--ease), transform .6s var(--ease); }
.js .shaco-fila.is-in .is-style-shaco-badge { opacity: 1; translate: 0; transition-delay: .15s; }
.js .shaco-fila.is-in h3 { opacity: 1; translate: 0; transition-delay: .25s, .25s, 0s; }
.js .shaco-fila.is-in .shaco-fila-texto { opacity: 1; translate: 0; transition-delay: .4s; }

.js .wp-block-gallery.is-style-shaco-expandir > figure { opacity: 0; translate: 0 50px; transition: opacity 1s var(--ease), translate 1.1s var(--ease), flex-grow .8s var(--ease), filter .6s var(--ease); }
.js .wp-block-gallery.is-style-shaco-expandir.is-in > figure { opacity: 1; translate: 0; }
.js .wp-block-gallery.is-style-shaco-expandir.is-in > figure:nth-child(2) { transition-delay: .12s, .12s, 0s, 0s; }
.js .wp-block-gallery.is-style-shaco-expandir.is-in > figure:nth-child(3) { transition-delay: .24s, .24s, 0s, 0s; }

@media (prefers-reduced-motion: reduce) {
	.js .shaco-ph { height: auto; }
	.js .shaco-ph-sticky { position: relative; }
	html { scroll-behavior: auto; }
	.js .shaco-reveal, .js .is-style-shaco-revelar, .js .shaco-fila *, .js .wp-block-gallery.is-style-shaco-expandir > figure { opacity: 1 !important; transform: none !important; translate: none !important; clip-path: none !important; }
	.shaco-card::before { transform: none; }
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.shaco-cifras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; --card-w: calc((100vw - 2 * var(--gutter) - 40px) / 2); }
	.shaco-card:nth-child(n) { aspect-ratio: 1.25; }
	.shaco-card:nth-child(2n) { aspect-ratio: 1.6; }

	.shaco-proceso::before { display: none; }
	.shaco-proceso-head h2 { max-width: none; }
	.shaco-fila {
		grid-template-columns: calc(var(--gutter) + 64px) minmax(0, 1fr);
		grid-template-areas: "num title" ". side";
		padding-block: 20px;
	}
	.shaco-fila h3 { padding-block: 4px 12px; }
	.shaco-fila-texto { justify-self: start; text-align: left; padding: 0 var(--gutter) 0 0; margin-right: 0 !important; max-width: 520px; }
	.shaco-fila-img { display: none; }

	.shaco-footer-cols { grid-template-columns: 1fr 1fr 1fr; row-gap: 40px; }
	.shaco-footer-cta { grid-column: 1 / -1; }
}

/* ---------- Móvil ---------- */

@media (max-width: 781px) {
	.shaco-hero .shaco-split-side { border-left: 0; border-top: 1px solid var(--hero-line, var(--line-light)); padding: 32px var(--gutter) 48px; }
	.shaco-hero .shaco-split-main { padding-bottom: 40px; }

	.shaco-split, .shaco-split.is-style-shaco-invertido { flex-direction: column !important; }
	.shaco-split > .wp-block-column.shaco-split-media { width: 100%; flex: 0 0 112vw !important; min-height: 0; }
	.shaco-galeria-head { gap: 28px; }

	.wp-block-gallery.is-style-shaco-expandir { flex-direction: column; height: auto; gap: 16px !important; }
	.wp-block-gallery.is-style-shaco-expandir > figure.wp-block-image { flex: none !important; aspect-ratio: 553 / 391; }
	.wp-block-gallery.is-style-shaco-expandir:hover > figure.wp-block-image { filter: none; }

	.shaco-footer-cols { grid-template-columns: 1fr 1fr; }
	.shaco-footer-col:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
	.shaco-cifras-grid { grid-template-columns: 1fr; row-gap: 24px; }
	.shaco-card:nth-child(n) { aspect-ratio: auto; min-height: 220px; }
	.shaco-card::before { bottom: 45%; }
	.shaco-cifra { font-size: 56px; }
	.shaco-footer-bottom { flex-direction: column; align-items: flex-start !important; }
}
