/* ==========================================================================
   BNTZ Studio – estilos del tema
   Tokens de color y tipografía: theme.json. Aquí, solo layout y componentes.
   ========================================================================== */

:root {
	--bntz-dark: #1d1c1a;
	--bntz-cream: #efede1;
	--bntz-olive: #4b4c3c;
	--bntz-olive-light: #6a6b59;
	--bntz-grey: #ebebeb;
	--bntz-radius: 24px 24px 24px 0;
	--bntz-gutter: 40px;
	--bntz-section: 120px;

	/* Escala tipográfica fluida (misma proporción que producción).
	   1vw se detiene en 25,6 px (pantallas de 2560 px): a partir de ahí los
	   titulares dejan de crecer. Para cambiarlo, solo hay que tocar --vw. */
	--vw: min(1vw, 25.6px);
	--fs-hero: calc(var(--vw) * 6);
	--fs-hero-lead: max(15px, calc(var(--vw) * 1.5));
	--fs-display: calc(var(--vw) * 5);
	--fs-title: calc(var(--vw) * 4);
	--fs-closing: calc(var(--vw) * 3.6);
	--fs-proceso: calc(var(--vw) * 3.2);
	--fs-sub: max(1.4rem, calc(var(--vw) * 2));
	--fs-chip: max(1.35rem, calc(var(--vw) * 3));
	--bntz-header: 71px;
}

@media (max-width: 767px) {
	:root {
		--bntz-gutter: 24px;
		--bntz-section: 80px;
		--vw: 1vw;
		--fs-hero: calc(var(--vw) * 10);
		--fs-hero-lead: max(1rem, calc(var(--vw) * 4.6));
		--fs-display: calc(var(--vw) * 10);
		--fs-title: calc(var(--vw) * 10);
		--fs-closing: calc(var(--vw) * 10);
		--fs-proceso: calc(var(--vw) * 10);
		--fs-sub: calc(var(--vw) * 7);
		--fs-chip: calc(var(--vw) * 8);
	}
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--bntz-header);
}

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

body { margin: 0; -webkit-font-smoothing: antialiased; }

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	z-index: 1000;
	top: 8px;
	left: 8px;
	padding: 12px 16px;
	background: var(--bntz-cream);
	color: var(--bntz-dark);
	border-radius: 8px;
}

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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

.wp-block-template-part:has(> .wp-block-html > .site-header),
header.wp-block-template-part { margin: 0; }

.site-header {
	position: fixed;
	z-index: 9999;
	inset: 0 0 auto;
	box-sizing: border-box;
	height: var(--bntz-header);
	padding: 4px 30px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	color: #fff;
	background: rgba(29, 28, 26, 0.35);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/* La barra baja desde arriba del navegador al cargar (solo escritorio y tablet). */
@keyframes bntz-header-in {
	from { opacity: 0; transform: translate3d(0, -100%, 0); }
	to { opacity: 1; transform: none; }
}
@media (min-width: 768px) {
	.site-header { padding-inline: 50px; }
}
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
	.site-header { animation: bntz-header-in 1.25s ease both; }
}

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

.site-header a { color: inherit; text-decoration: none; }
.site-header__logo { justify-self: start; display: inline-flex; }
.site-header__logo img { display: block; width: clamp(101px, 10.4vw, 150px); height: auto; }
.site-header__social {
	justify-self: end;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
}
.site-header__social svg { width: 20px; height: 20px; }

.site-nav {
	display: none;
	text-transform: uppercase;
	font-size: 13px;
	font-weight: 300;
	letter-spacing: -0.5px;
	color: var(--bntz-cream);
}
.site-nav a { padding: 13px 20px; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

/* Tablet y móvil: el menú se despliega bajo la cabecera (sin JS, lista visible) */
@media (max-width: 1024px) {
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: flex;
		flex-direction: column;
		padding: 8px 30px 20px;
		background: rgba(29, 28, 26, 0.96);
		font-size: 1rem;
		font-weight: 400;
		letter-spacing: 0;
	}
	.site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
	.js .site-nav { display: none; }
	.js .site-nav.is-open { display: flex; }
}

/* Móvil: logo más grande, [Instagram][menú] a la derecha y menú a pantalla completa.
   Con el menú abierto la propia cabecera ocupa toda la pantalla (un fixed
   dentro de ella quedaría atrapado por el backdrop-filter). */
@media (max-width: 767px) {
	.site-header {
		grid-template-columns: 1fr auto auto;
		grid-template-rows: 63px;
		align-content: start;
	}
	.site-header__logo img { width: 128px; }
	.site-header__social { order: 2; }
	.nav-toggle { order: 3; margin-right: -12px; }

	.site-nav {
		top: var(--bntz-header);
		bottom: 0;
		justify-content: center;
		gap: 4px;
		padding: 24px 30px 48px;
		background: none;
		font-size: clamp(1.9rem, 9vw, 2.6rem);
		font-weight: 700;
		letter-spacing: -0.04em;
		line-height: 1.1;
		overflow-y: auto;
	}
	.site-nav a { padding: 10px 0; border-bottom: 0; }

	.js .site-nav.is-open { animation: bntz-menu-in 0.35s ease both; }
	html.menu-open .site-header {
		height: 100vh;
		height: 100dvh;
		background: var(--bntz-dark);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
	html.menu-open,
	html.menu-open body { overflow: hidden; }
}

@keyframes bntz-menu-in {
	from { opacity: 0; transform: translateY(-12px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.js .site-nav.is-open { animation: none; }
}

@media (min-width: 1025px) {
	:root { --bntz-header: 74px; }
	.site-nav { display: flex; }
	.nav-toggle { display: none; }
}

/* ---------- Estructura de secciones ---------- */

.site-main { margin: 0; }
.site-main--page { padding: calc(var(--bntz-header) + 64px) var(--bntz-gutter) 96px; }

.sec {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 0;
	padding: var(--bntz-section) var(--bntz-gutter);
	text-align: center;
}

.sec__inner { max-width: 1100px; margin: 0 auto; }

.sec--cream { background: var(--bntz-cream); color: var(--bntz-dark); }
.sec--dark { background: var(--bntz-dark); color: var(--bntz-grey); }
.sec--somos { isolation: auto; overflow: visible; }
.sec--olive { background: var(--bntz-olive); color: var(--bntz-cream); }
.sec--photo { background: var(--bntz-dark); color: var(--bntz-grey); }

/* Imagen de fondo: un bloque de imagen normal, colocado detrás del contenido */
.bg-img {
	position: absolute;
	inset: 0;
	z-index: -2;
	margin: 0;
}
.bg-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sec--photo::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(29, 28, 26, 0.5);
}

.eyebrow {
	margin: 0 0 20px;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.sec__title {
	max-width: 760px;
	margin: 0 auto 20px;
	font-size: var(--fs-display);
	text-wrap: balance;
}
.sec__title--sub {
	margin-top: clamp(56px, 8vw, 96px);
	font-size: var(--fs-sub);
}
.sec__title--closing {
	margin-top: clamp(56px, 8vw, 96px);
	font-size: var(--fs-closing);
}
.sec__lead {
	max-width: 640px;
	margin: 0 auto 16px;
	text-wrap: pretty;
}
.sec--cream .sec__lead { font-size: 0.9375rem; }

.has-text-align-center { text-align: center; }

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

.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100svh;
	padding: 134px 40px 0;
	color: var(--bntz-cream);
}
.hero.sec--photo::after { background: rgba(29, 28, 26, 0.64); }
.hero .sec__inner {
	width: 100%;
	max-width: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}
.hero h1 {
	max-width: 76.7vw;
	margin: 0;
	font-size: var(--fs-hero);
	letter-spacing: -0.04em;
	text-wrap: balance;
	background: linear-gradient(135deg, #fff 20%, rgba(255, 255, 255, 0.6) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.hero__lead {
	max-width: 800px;
	margin: 0 0 15px;
	font-size: var(--fs-hero-lead);
	line-height: 1.5;
	letter-spacing: -0.02em;
	color: var(--bntz-grey);
}
.hero .wp-block-buttons,
.hero__cta { margin: 0; justify-content: center; }
.hero .wp-block-button__link { transition: background-color 0.3s; }

@media (max-width: 767px) {
	.hero h1 { max-width: 100%; }
}
@media (max-width: 480px) {
	.hero { padding: 21px 24px 0; }
}

/* Entrada: cada elemento aparece desplazándose 30 px, 0,7 s, en cascada. */
@keyframes bntz-rise {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
	.hero .sec__inner > * { animation: bntz-rise 0.7s ease both; }
	.hero .sec__inner > :nth-child(2) { animation-delay: 80ms; }
	.hero .sec__inner > :nth-child(3) { animation-delay: 160ms; }
}

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

.wp-block-button__link {
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.2s, transform 0.2s;
}
.wp-block-button__link:hover { background: var(--bntz-dark); }
.sec--olive .wp-block-button__link { background: var(--bntz-dark); }
.sec--olive .wp-block-button__link:hover { background: var(--bntz-olive-light); }

/* ---------- Tarjetas de "El cambio" ---------- */

.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: clamp(40px, 6vw, 64px) 0 clamp(56px, 8vw, 96px);
	text-align: left;
}

.card {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 48px;
	min-height: 388px;
	padding: 40px 36px;
	border-radius: var(--bntz-radius);
	color: #fff;
	grid-column: span 1;
}
.card--wide { grid-column: span 2; }
.card--full { grid-column: 1 / -1; min-height: 253px; }
.card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(29, 28, 26, 0.78), rgba(29, 28, 26, 0.12));
}
.card .bg-img { z-index: -2; }
.card .wp-block-html { margin: 0; }
.card__label {
	margin: 0 0 12px;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.card h3 {
	margin: 0;
	font-size: var(--fs-title);
	letter-spacing: -0.04em;
	line-height: 1.1;
	text-wrap: balance;
}

@media (max-width: 767px) {
	.cards { grid-template-columns: 1fr; }
	.card, .card--wide, .card--full { grid-column: auto; min-height: 280px; padding: 28px 24px; }
}

/* Hacemos: medidas de producción (eyebrow, título, texto, "Proceso:") */
.sec--hacemos { padding-bottom: 90px; }
.sec--hacemos .sec__inner { padding-top: 40px; }
.sec--hacemos .eyebrow { margin-bottom: 14.4px; }
.sec--hacemos .sec__title { max-width: 700px; font-size: var(--fs-title); }
.sec--hacemos .sec__lead { max-width: 600px; margin-bottom: 14.4px; font-size: 1.2rem; line-height: 1.5; }
.sec--hacemos .sec__title--proceso { max-width: none; margin: 85px 0 0; font-size: var(--fs-proceso); }

/* ---------- Proceso (slider de 4 pasos) ---------- */
/* El HTML de cada paso son bloques normales (grupo con número, título y texto).
   main.js los envuelve en un slider con pestañas, puntos y play/pausa. */

.process {
	/* Este módulo usa la tipografía del sistema, como en producción. */
	font-family: -apple-system, "system-ui", "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
	margin: 20px calc(-1 * var(--bntz-gutter)) 0;
	text-align: center;
	overflow: hidden;
}

.process__tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	padding: 0 22px;
	margin-bottom: 19px;
}
.process__tab {
	position: relative;
	padding: 12px 20px;
	border: 0;
	background: none;
	color: #ebebeb;
	font: inherit;
	font-size: 13px;
	letter-spacing: -0.01em;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.25s;
}
.process__tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: #fff;
	transform: scaleX(0);
	transition: transform 0.3s ease;
}
.process__tab:hover,
.process__tab.is-active { color: #fff; background: none; }
.process__tab.is-active::after { transform: scaleX(1); }

.process__viewport { position: relative; overflow: hidden; }
.process__track {
	display: flex;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}
.process__slide { min-width: 100%; display: flex; flex-direction: column; align-items: center; padding: 0 var(--bntz-gutter); box-sizing: border-box; }

/* Panel del paso */
.slide {
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 60px;
	width: 100%;
	max-width: 900px;
	min-height: 360px;
	margin: 0 auto;
	padding-inline: max(0px, calc((min(100%, 900px) - 780px) / 2));
	border-radius: 28px;
	background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
	color: #fff;
}
.slide::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.3;
	pointer-events: none;
}
.process__slide:nth-child(1) .slide::before { background: radial-gradient(ellipse at 30% 50%, #ff2d5540, transparent 60%); }
.process__slide:nth-child(2) .slide::before { background: radial-gradient(ellipse at 70% 40%, #5e5ce640, transparent 60%); }
.process__slide:nth-child(3) .slide::before { background: radial-gradient(ellipse at 50% 60%, #30d15840, transparent 60%); }
.process__slide:nth-child(4) .slide::before { background: radial-gradient(ellipse at 40% 50%, #0a84ff40, transparent 60%); }

.slide__num {
	position: relative;
	z-index: 1;
	margin: 0 0 12px 80px;
	font-size: 180px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #ebebeb;
}
.slide__body {
	position: relative;
	z-index: 1;
	flex: 1;
	text-align: left;
	animation: bntz-fade-up 0.5s ease 0.1s both;
}
.slide__body h3 {
	margin: 8px 0 14px;
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 700;
	letter-spacing: -0.04em;
	line-height: 1.08;
	color: #fff;
}
.slide__body p {
	margin: 0 0 15px;
	font-size: 17px;
	line-height: 1.6;
	letter-spacing: -0.022em;
	color: #ebebeb;
	margin-bottom: 15px;
}
@keyframes bntz-fade-up {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Sin JS los pasos se apilan */
.process > .slide { margin-bottom: 20px; }

/* Controles: puntos + play/pausa con anillo de progreso */
.process__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	max-width: 900px;
	margin: 0 auto;
	padding: 28px 22px;
	box-sizing: content-box;
}
.process__dots { display: flex; align-items: center; gap: 16px; }
.process__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	cursor: pointer;
	transition: background 0.25s, transform 0.25s;
}
.process__dot:hover,
.process__dot.is-active { background: #fff; transform: scale(1.3); }

.process__play {
	position: relative;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.25s;
}
.process__play:hover { background-color: #96531f; }
.process__play svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.process__ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.15); stroke-width: 2; }
.process__ring {
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	transform-origin: 50% 50%;
	transform: rotate(-90deg);
	transition: stroke-dashoffset 0.1s linear;
}
.process__icon-play,
.process__icon-pause { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.process__icon-play {
	width: 0;
	height: 0;
	margin-left: 2px;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #fff;
}
.process__icon-pause { display: none; gap: 3px; }
.process__icon-pause i { display: block; width: 3px; height: 12px; background: #fff; border-radius: 1px; }
.process__play.is-playing .process__icon-play { display: none; }
.process__play.is-playing .process__icon-pause { display: flex; }

@media (max-width: 768px) {
	.slide { flex-direction: column; gap: 32px; padding: 40px 24px; }
	.slide__body { text-align: center; }
	.process__tabs { overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 1px; scrollbar-width: none; }
	.process__tabs::-webkit-scrollbar { display: none; }
}

/* ---------- Estrategia ---------- */

.chips {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 32px;
	text-align: left;
}
.chip {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	min-height: 160px;
	padding: 28px;
	border-radius: var(--bntz-radius);
	background: rgba(75, 76, 60, 0.88);
	color: #fff;
}
.chip .wp-block-html { margin: 0; }
.chip h3 { margin: 0; font-size: var(--fs-chip); line-height: 1.1; }
@media (max-width: 767px) { .chips { grid-template-columns: 1fr; } .chip { min-height: 0; gap: 24px; } }

/* ---------- Trabajos (galería) ---------- */

.sec--trabajos .sec__title { color: var(--bntz-cream); }

/* Rejilla: 2 columnas en móvil, 4 en escritorio. Todas las miniaturas con la
   misma proporción; la foto completa se ve en el lightbox. */
.wp-block-gallery.bntz-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-top: clamp(40px, 6vw, 64px);
}
.wp-block-gallery.has-nested-images.bntz-gallery figure.wp-block-image:not(#individual-image) {
	width: auto;
	margin: 0;
	aspect-ratio: 3 / 2;
	border-radius: 12px;
	overflow: hidden;
	display: block;
	background: rgba(255, 255, 255, 0.06);
}
.wp-block-gallery.bntz-gallery .wp-block-image a { display: block; width: 100%; height: 100%; }
.wp-block-gallery.bntz-gallery .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}
.wp-block-gallery.bntz-gallery .wp-block-image:hover img { transform: scale(1.04); }

@media (min-width: 768px) {
	.wp-block-gallery.bntz-gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* Masonry: main.js coloca cada foto con su proporción real (sin recortes).
   Hasta que se calcula, la galería queda oculta para evitar saltos. */
.js .wp-block-gallery.bntz-gallery:not(.is-masonry) { visibility: hidden; }
.wp-block-gallery.bntz-gallery.is-masonry { display: block; position: relative; }
.wp-block-gallery.has-nested-images.bntz-gallery.is-masonry figure.wp-block-image:not(#individual-image) {
	position: absolute;
	aspect-ratio: auto;
	margin: 0;
}

/* "Ver más": con JS solo se muestran las primeras fotos */
.wp-block-gallery.bntz-gallery .is-collapsed { display: none !important; }
.gallery-more { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 40px); }
.gallery-more__btn {
	padding: 16px 24px;
	border: 0;
	border-radius: 40px;
	background: var(--bntz-olive-light);
	color: #fff;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s;
}
.gallery-more__btn:hover { background: var(--bntz-olive); }

/* Lightbox */
.lb {
	position: fixed;
	z-index: 10001;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(15, 14, 13, 0.94);
}
.lb.is-open { display: flex; }
.lb__figure { margin: 0; max-width: min(92vw, 1400px); max-height: 86vh; display: flex; }
.lb__img {
	display: block;
	max-width: 100%;
	max-height: 86vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	transition: opacity 0.2s;
}
.lb__img.is-loading { opacity: 0; }
.lb__btn {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s;
}
.lb__btn:hover { background: rgba(255, 255, 255, 0.25); }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb__count {
	position: absolute;
	bottom: 18px;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
}
@media (max-width: 767px) {
	.lb__prev, .lb__next { top: auto; bottom: 12px; transform: none; }
	.lb__prev { left: 16px; }
	.lb__next { right: 16px; }
}
body.has-lightbox { overflow: hidden; }

/* ---------- Somos ---------- */

.people {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: clamp(40px, 6vw, 64px);
	text-align: left;
}
.person {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	min-height: clamp(380px, 48vw, 520px);
	padding: 36px;
	border-radius: var(--bntz-radius);
	color: #fff;
}
.person::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(29, 28, 26, 0.8), rgba(29, 28, 26, 0) 60%);
}
.person h3 { margin: 0 0 20px; font-size: var(--fs-title); line-height: 1.1; }
.person__cta { margin: 0; }
@media (max-width: 699px) { .people { grid-template-columns: 1fr; } .person { padding: 28px 24px; } }

/* Fichas de biografía: con JS son un diálogo modal; sin JS, texto en la página */
.bio__panel {
	max-width: 640px;
	margin: 40px auto 0;
	padding: 32px;
	border-radius: var(--bntz-radius);
	background: #fff;
	text-align: left;
}
.bio__panel h2 { margin: 0 0 16px; font-size: 1.92rem; }
.bio__link { margin-top: 24px; }

.js .bio {
	position: fixed;
	z-index: 10000;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(29, 28, 26, 0.7);
	overflow-y: auto;
}
.js .bio.is-open { display: flex; }
.js .bio__panel { position: relative; margin: auto; width: 100%; max-height: calc(100vh - 40px); overflow-y: auto; }
.bio__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--bntz-cream);
	color: var(--bntz-dark);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
body.has-modal { overflow: hidden; }

/* ---------- Contacto, clientes y pie ---------- */

.sec--cta { padding-block: clamp(64px, 9vw, 104px); }
.sec--cta .sec__title { margin-bottom: 32px; color: #fff; font-size: var(--fs-title); }

.sec--logos { padding-block: clamp(48px, 7vw, 88px); }
.logos { margin: 0 auto; }
.logos img { display: block; width: 100%; max-width: 1000px; height: auto; margin: 0 auto; }
.logos--narrow { display: none; max-width: 520px; }
@media (max-width: 699px) {
	.logos--wide { display: none; }
	.logos--narrow { display: block; }
}

.site-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding: 20px var(--bntz-gutter);
	background: var(--bntz-dark);
	color: var(--bntz-grey);
	font-size: 0.875rem;
}
.site-footer .wp-block-html { margin: 0; }
.site-footer__logo { display: inline-flex; }
.site-footer__logo img { display: block; height: 22px; width: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer__links p { margin: 0; }
.site-footer a { color: inherit; text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
footer.wp-block-template-part { margin: 0; }

/* ---------- Iconos ---------- */

.icon { display: block; }

/* ---------- Animación de entrada (solo con JS y sin "reducir movimiento") ---------- */

@media (prefers-reduced-motion: no-preference) {
	.js [data-reveal] {
		opacity: 0;
		transform: translateY(24px);
		transition: opacity 0.7s ease, transform 0.7s ease;
		transition-delay: var(--reveal-delay, 0ms);
	}
	.js [data-reveal].is-visible { opacity: 1; transform: none; }
}

/* ---------- Banner de cookies ---------- */

.cookie-banner {
	position: fixed;
	z-index: 10002;
	left: 20px;
	bottom: 20px;
	width: min(440px, calc(100vw - 40px));
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 24px;
	border-radius: var(--bntz-radius);
	background: var(--bntz-dark);
	color: var(--bntz-cream);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	font-size: 0.875rem;
	line-height: 1.5;
	font-family: -apple-system, "system-ui", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
.cookie-banner[hidden],
.cookie-banner [hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__title { margin-bottom: 8px !important; font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.cookie-banner__text { color: var(--bntz-grey); }
.cookie-banner__actions { display: flex; gap: 10px; margin-top: 18px; }
/* Aceptar y Rechazar con el mismo peso visual */
.cookie-btn {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 40px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.cookie-btn:hover { background: #fff; color: var(--bntz-dark); }
.cookie-link {
	margin-top: 14px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--bntz-grey);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.cookie-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.cookie-row__name { font-weight: 600; color: #fff; }
.cookie-row__desc { margin-top: 2px !important; color: var(--bntz-grey); font-size: 0.8125rem; }
.cookie-row__fixed { color: var(--bntz-grey); font-size: 0.8125rem; white-space: nowrap; }
.cookie-switch {
	appearance: none;
	-webkit-appearance: none;
	flex-shrink: 0;
	position: relative;
	width: 46px;
	height: 26px;
	margin: 0;
	border-radius: 13px;
	background: rgba(255, 255, 255, 0.25);
	cursor: pointer;
	transition: background-color 0.2s;
}
.cookie-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s;
}
.cookie-switch:checked { background: var(--bntz-olive-light); }
.cookie-switch:checked::after { transform: translateX(20px); }
@media (max-width: 480px) {
	.cookie-banner { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; }
}
