/* ==========================================================================
   Beneta Vintage — componentes
   Imagen/placeholder, secciones editoriales, portada, tarjetas, FAQ, formularios.
   ========================================================================== */

/* ---------- Media (imagen real o placeholder con prompt) ---------- */

.bv-media {
	--ratio: 4 / 5;
	margin: 0;
	position: relative;
}

.bv-media__stage { position: relative; }

.bv-media__frame {
	position: relative;
	aspect-ratio: var(--ratio);
	overflow: clip;
	background: var(--bv-arena);
	isolation: isolate;
}

@media (max-width: 781px) {
	.bv-media[data-ratio-m] .bv-media__frame { aspect-ratio: var(--ratio-m); }
}

.bv-media--arch {
	--arch-r: var(--arch, 40%);
}

.bv-media--arch .bv-media__frame,
.bv-media--arch .bv-media__shadow {
	border-radius: 50% 50% 0 0 / var(--arch-r) var(--arch-r) 0 0;
}

@media (max-width: 781px) {
	.bv-media--arch[data-ratio-m] { --arch-r: var(--arch-m, var(--arch, 40%)); }
}
.bv-media--round .bv-media__frame { border-radius: 50%; }

.bv-media__img,
.bv-media__ph {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transition: transform 1.2s var(--bv-ease);
}

.bv-media__img { object-fit: cover; }

/* Placeholder: una pequeña pieza de luz del Empordà, no un hueco gris. */
.bv-media__ph {
	background:
		radial-gradient(120% 80% at 18% 12%, #FBF7F0 0%, transparent 55%),
		linear-gradient(165deg, #ECE3D4 0%, #D9C7AE 100%);
}

.bv-media__ph::before,
.bv-media__ph::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.bv-media__ph::after {
	background-image: var(--bv-grain);
	opacity: .22;
}

.bv-media--tone-terra .bv-media__ph {
	background:
		radial-gradient(90% 70% at 78% 18%, #EAD6BD 0%, transparent 60%),
		linear-gradient(172deg, #D4B696 0%, #A97C56 100%);
}

.bv-media--tone-roca .bv-media__ph {
	background:
		radial-gradient(80% 60% at 30% 25%, #E6E0D7 0%, transparent 60%),
		linear-gradient(160deg, #D6CEC2 0%, #978B7E 100%);
}

.bv-media--tone-coure .bv-media__ph {
	background:
		radial-gradient(22% 16% at 50% 60%, #F6DDB8 0%, rgba(246, 221, 184, 0) 100%),
		linear-gradient(180deg, #EBCFAE 0%, #D39A66 46%, #8C552A 62%, #4E2E17 100%);
}

.bv-media--tone-coure .bv-media__ph::before,
.bv-media--tone-mar .bv-media__ph::before {
	top: 61%;
	bottom: auto;
	height: 1px;
	background: rgba(255, 244, 228, .55);
}

.bv-media--tone-mar .bv-media__ph {
	background:
		radial-gradient(18% 12% at 70% 52%, rgba(250, 236, 214, .9) 0%, rgba(250, 236, 214, 0) 100%),
		linear-gradient(180deg, #D5DBDA 0%, #93A6AE 40%, #3B5A6C 61%, #1B3242 100%);
}

.bv-media--tone-tinta .bv-media__ph {
	background:
		radial-gradient(60% 50% at 75% 30%, #6B5646 0%, transparent 70%),
		linear-gradient(160deg, #3A302A 0%, #1C1714 100%);
}

.bv-media__phlabel {
	position: absolute;
	left: .9rem;
	bottom: .8rem;
	right: .9rem;
	z-index: 1;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 1.4;
	color: color-mix(in srgb, var(--bv-tinta) 62%, transparent);
}

.bv-media--tone-mar .bv-media__phlabel,
.bv-media--tone-tinta .bv-media__phlabel,
.bv-media--tone-coure .bv-media__phlabel { color: rgba(248, 244, 238, .78); }

/* Prompt IA — solo visible para editores con sesión iniciada. */
.bv-media__prompt {
	position: absolute;
	top: .6rem;
	right: .6rem;
	z-index: 5;
	max-width: min(26rem, calc(100% - 1.2rem));
	font-size: .75rem;
	line-height: 1.5;
}

.bv-media__prompt > summary {
	list-style: none;
	cursor: pointer;
	margin-left: auto;
	width: max-content;
	background: var(--bv-tinta);
	color: var(--bv-cal);
	padding: .35rem .7rem;
	border-radius: 999px;
	font-weight: 600;
	letter-spacing: .06em;
}

.bv-media__prompt > summary::-webkit-details-marker { display: none; }

.bv-media__prompt[open] > div {
	margin-top: .4rem;
	background: var(--bv-paper);
	color: var(--bv-tinta);
	padding: .9rem 1rem;
	box-shadow: 0 12px 40px rgba(28, 23, 20, .22);
	max-height: 18rem;
	overflow: auto;
}

.bv-media__prompt p { margin: 0 0 .5rem; }

.bv-media__prompt code {
	display: block;
	white-space: pre-wrap;
	font-size: .75rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.bv-media__caption {
	margin-top: .75rem;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: .04em;
	color: var(--bv-roca);
}

/* Sombra larga de atardecer: el arco se proyecta sobre el suelo. */
.bv-media__shadow {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	aspect-ratio: var(--ratio);
	z-index: -1;
	border-radius: 100vmax 100vmax 0 0;
	background: linear-gradient(to top, rgba(28, 23, 20, .2), rgba(28, 23, 20, .04));
	transform-origin: 50% 100%;
	transform: skewX(-62deg) scaleY(.3);
	filter: blur(3px);
	pointer-events: none;
	transition: transform 1.1s var(--bv-ease), opacity .6s var(--bv-ease);
}

.bv-media--rect .bv-media__shadow { border-radius: 0; }
.bv-media--round .bv-media__shadow { border-radius: 50%; }

@media (max-width: 781px) {
	.bv-media[data-ratio-m] .bv-media__shadow { aspect-ratio: var(--ratio-m); }
}

/* ---------- Secciones ---------- */

.bv-section,
.bv-chapter,
.bv-hero,
.bv-manifest,
.bv-emporda,
.bv-crossroads,
.bv-pagehero {
	padding-inline: var(--bv-gutter);
	overflow-x: clip;
}

/* Las secciones a sangre se tocan: sin franjas de fondo entre ellas. */
.bv-canvas > .alignfull { margin-block: 0 !important; }

.bv-inner,
.bv-chapter > *,
.bv-manifest > *,
.bv-crossroads > * {
	max-width: 100rem;
	margin-inline: auto;
}

.bv-chapter {
	padding-block: clamp(3.5rem, 2rem + 5.5vw, 7.5rem);
}

.bv-chapter__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	border-top: 1px solid var(--bv-tinta);
	padding-top: .9rem;
	margin-bottom: clamp(2rem, 1rem + 4vw, 4.5rem) !important;
}

.bv-chapter__num {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: .16em;
	margin: 0;
	align-self: flex-start;
}

.bv-chapter__name {
	font-family: var(--bv-script);
	font-size: clamp(2.5rem, 1.6rem + 3.5vw, 4.75rem);
	color: var(--bv-coure);
	line-height: .8;
	margin: 0;
	transform: rotate(-3deg);
	transform-origin: right bottom;
}

.bv-split {
	display: grid;
	gap: 1.5rem var(--bv-gutter);
	align-items: start;
}

.bv-split > * { margin: 0; }

.bv-split h2 {
	font-size: var(--wp--preset--font-size--display);
	font-weight: 320;
	margin: 0;
}

@media (min-width: 1024px) {
	.bv-split { grid-template-columns: repeat(12, 1fr); }
	.bv-split > :first-child { grid-column: 1 / span 7; }
	.bv-split > :last-child { grid-column: 9 / -1; padding-top: .6rem; }
}

.bv-stack > * + * { margin-top: 1rem; }

/* ---------- Portada: hero ---------- */

.bv-hero {
	display: grid;
	gap: 2.5rem var(--bv-gutter);
	padding-top: clamp(1.5rem, .5rem + 3vw, 3rem);
	padding-bottom: clamp(3.5rem, 2rem + 5vw, 6.5rem);
	max-width: calc(100rem + 2 * var(--bv-gutter));
	margin-inline: auto !important;
	position: relative;
	overflow-x: clip;
}

.bv-hero__text > * { margin: 0; }

.bv-hero__title {
	font-size: var(--wp--preset--font-size--hero) !important;
	font-weight: 310 !important;
	font-stretch: 75% !important;
	line-height: .88 !important;
	letter-spacing: -.028em !important;
	margin-top: 1.1rem !important;
	text-wrap: balance;
}

.bv-hero__alt {
	display: block;
	color: var(--bv-coure);
}

.bv-hero__sign {
	font-family: var(--bv-script);
	font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
	color: var(--bv-coure-fosc);
	line-height: 1.1;
	transform: rotate(-4deg);
	transform-origin: left center;
	margin-top: 1.1rem !important;
	padding-left: .2em;
	width: max-content;
	max-width: 100%;
}

.bv-hero__lead {
	margin-top: 1.25rem !important;
	max-width: 34em;
	font-size: var(--wp--preset--font-size--l) !important;
	line-height: 1.5;
	color: var(--bv-tinta-2);
}

.bv-hero__cta { margin-top: 1.5rem !important; }

/* Dos puertas en arco: la cocina (grande) y la pieza vintage (pequeña, más baja). */
.bv-hero__doors {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: start;
	gap: 0;
	padding-bottom: 2.5rem;
}

.bv-door {
	position: relative;
	margin: 0;
}

.bv-door > * { margin: 0; }

.bv-door--kitchen { grid-column: 1 / span 6; grid-row: 1; margin-right: .4rem !important; }

.bv-door--vintage {
	grid-column: 7 / -1;
	grid-row: 1;
	margin-top: 22% !important;
	margin-left: .4rem !important;
	z-index: 2;
}

@media (max-width: 1023px) {
	.bv-door__kicker { font-size: 1.45em; }
	.bv-hero__sign { margin-top: 1.5rem !important; }
}

.bv-door--vintage .bv-media__frame { box-shadow: 0 0 0 .45rem var(--bv-cal); }

.bv-door__label {
	margin-top: .9rem !important;
	font-size: var(--wp--preset--font-size--s);
	font-weight: 600;
	line-height: 1.3;
}

.bv-door__label a {
	color: var(--bv-tinta);
	text-decoration: none;
	display: inline-block;
}

.bv-door__label a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.bv-door__kicker {
	display: block;
	width: 100%;
	font-family: var(--bv-script);
	font-weight: 400;
	font-size: 1.85em;
	color: var(--bv-coure);
	line-height: 1.05;
	margin-bottom: .4em;
	transform: rotate(-3deg);
	transform-origin: left bottom;
}

.bv-door__go {
	transition: transform .35s var(--bv-ease);
	display: inline-block;
	margin-left: .3em;
}

.bv-door:hover .bv-door__go { transform: translateX(.35rem); }

.bv-door .bv-media__img,
.bv-door .bv-media__ph { transition: scale 1.2s var(--bv-ease); }

.bv-door:hover .bv-media__img,
.bv-door:hover .bv-media__ph { scale: 1.045; }

.bv-door:hover .bv-door__label a { color: var(--bv-coure-fosc); }

.bv-door:has(a:focus-visible) .bv-media__frame {
	outline: 2px solid var(--bv-coure-fosc);
	outline-offset: 4px;
}

@media (min-width: 1024px) {
	.bv-hero {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		align-items: center;
		min-height: min(60rem, calc(100svh - var(--bv-header-h) - var(--wp-admin--admin-bar--height, 0px)));
		padding-top: 1.5rem;
	}

	.bv-hero__text { grid-column: 1 / span 6; grid-row: 1; position: relative; z-index: 2; }

	.bv-hero__alt { padding-left: .9em; }

	.bv-hero__sign { margin-top: 1.6rem !important; }

	.bv-hero__doors {
		grid-column: 7 / -1;
		grid-row: 1;
		padding-bottom: 0;
		align-self: center;
	}

	.bv-door--kitchen { grid-column: 4 / -1; margin-right: 0 !important; }

	.bv-door--kitchen .bv-door__label { text-align: right; }
	.bv-door--kitchen .bv-door__kicker { transform-origin: right bottom; }

	.bv-door--vintage {
		grid-column: 1 / span 5;
		margin-top: 0 !important;
		margin-left: 0 !important;
		align-self: end;
		transform: translateY(4.5rem);
	}
}

/* Portátiles pequeños: el titular pierde la sangría y baja un punto para no partirse en exceso. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.bv-hero__title { font-size: clamp(3.25rem, .5rem + 5.6vw, 5.25rem) !important; }
	.bv-hero__alt { padding-left: 0; }
}

/* ---------- Portada: manifiesto ---------- */

.bv-manifest {
	padding-block: clamp(3.5rem, 2rem + 6vw, 8rem) clamp(1rem, 0rem + 3vw, 3rem);
}

.bv-manifest__grid {
	display: grid;
	gap: 2rem var(--bv-gutter);
}

.bv-manifest__grid > * { margin: 0; }

.bv-manifest__title {
	font-size: var(--wp--preset--font-size--display) !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	max-width: 17ch;
}

.bv-manifest__body p + p { margin-top: 1rem; }

.bv-manifest__body { color: var(--bv-tinta-2); max-width: 34em; }

.bv-manifest__media { max-width: 22rem; }

.bv-coords {
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--bv-roca);
	font-variant-numeric: tabular-nums;
}

@media (min-width: 1024px) {
	.bv-manifest__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
	.bv-manifest__grid > .is-style-eyebrow { grid-column: 1 / span 3; grid-row: 1; padding-top: 1.2rem; }
	.bv-manifest__title { grid-column: 4 / -1; grid-row: 1; }
	.bv-manifest__media { grid-column: 1 / span 3; grid-row: 2 / span 2; margin-top: 3rem !important; }
	.bv-manifest__body { grid-column: 7 / span 5; grid-row: 2; margin-top: 2rem !important; }
	.bv-manifest__grid > .bv-coords { grid-column: 7 / -1; grid-row: 3; }
}

/* ---------- Pasos del proceso ---------- */

.bv-steps {
	display: grid;
	gap: 0 var(--bv-gutter);
	margin-top: clamp(3rem, 2rem + 4vw, 6rem) !important;
	counter-reset: bv-step;
}

.bv-step {
	border-top: 1px solid var(--bv-line-strong);
	padding: 1.25rem 0 2rem;
	margin: 0 !important;
}

.bv-step > * { margin: 0; }

.bv-step__n {
	font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
	font-weight: 300;
	font-stretch: 75%;
	line-height: 1;
	color: var(--bv-coure);
	font-variant-numeric: tabular-nums;
}

.bv-step h3 {
	font-size: var(--wp--preset--font-size--l);
	font-stretch: 100%;
	font-weight: 600;
	letter-spacing: 0;
	margin-top: 1rem;
}

.bv-step p:last-child {
	margin-top: .5rem;
	font-size: var(--wp--preset--font-size--s);
	color: var(--bv-tinta-2);
}

@media (min-width: 640px) {
	.bv-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.bv-steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Materiales (collage) ---------- */

.bv-collage {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	margin-top: clamp(3rem, 2rem + 4vw, 6rem) !important;
	align-items: start;
}

.bv-collage > * { margin: 0 !important; }
.bv-collage > :first-child { grid-column: 1 / -1; }

@media (min-width: 782px) {
	.bv-collage { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--bv-gutter); }
	.bv-collage > :nth-child(1) { grid-column: 1 / span 4; }
	.bv-collage > :nth-child(2) { grid-column: 6 / span 3; margin-top: 7rem !important; }
	.bv-collage > :nth-child(3) { grid-column: 10 / span 3; margin-top: 2.5rem !important; }
}

.bv-actions { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem) !important; }

/* ---------- Tarjetas de producto (compartidas: portada, tienda, relacionados) ---------- */

.bv-grid .wc-block-product-template,
.bv-grid .wc-block-product-template.is-flex-container {
	display: grid !important;
	gap: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(.9rem, .5rem + 1.5vw, 2rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.bv-grid .wc-block-product-template > li {
	width: auto !important;
	margin: 0 !important;
	max-width: none !important;
}

@media (min-width: 782px) {
	.bv-grid .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
	.bv-grid .wc-block-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.bv-card {
	position: relative;
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
}

.bv-card > * { margin: 0 !important; }

.bv-card__media,
.bv-card .wc-block-components-product-image {
	aspect-ratio: 4 / 5;
	overflow: clip;
	background: var(--bv-paper);
	margin: 0 !important;
}

.bv-card__media img,
.bv-card .wc-block-components-product-image img,
.bv-card .bv-media__frame {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	aspect-ratio: 4 / 5 !important;
	transition: transform 1s var(--bv-ease), filter .4s var(--bv-ease);
	display: block;
}

.bv-card:hover .wc-block-components-product-image img,
.bv-card:hover .bv-media__ph { transform: scale(1.04); }

.bv-card__body {
	padding-top: .85rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: .3rem 1rem;
	align-items: baseline;
}

@container (min-width: 21rem) {
	.bv-card__body { grid-template-columns: minmax(0, 1fr) auto; }
}

.bv-card__body > * { margin: 0 !important; }

.bv-plabel {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: .15rem .7rem;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--bv-roca);
	line-height: 1.4;
}

.bv-plabel > span + span::before {
	content: "·";
	margin-right: .7rem;
	color: var(--bv-line-strong);
}

.bv-plabel__sold { color: var(--bv-coure-fosc); }

.bv-card__title {
	font-size: clamp(1rem, .95rem + .3vw, 1.1875rem) !important;
	font-weight: 450 !important;
	font-stretch: 92% !important;
	line-height: 1.25 !important;
	letter-spacing: 0 !important;
	text-align: left !important;
}

.bv-card__title a {
	color: var(--bv-tinta);
	text-decoration: none;
}

.bv-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.bv-card:hover .bv-card__title a { color: var(--bv-coure-fosc); }

.bv-card:has(a:focus-visible) { outline: 2px solid var(--bv-coure-fosc); outline-offset: 6px; }
.bv-card__title a:focus-visible { outline: none; }

.bv-card__price,
.bv-card .wc-block-components-product-price {
	font-size: var(--wp--preset--font-size--s) !important;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: left !important;
	white-space: nowrap;
	color: var(--bv-tinta);
}

@container (min-width: 21rem) {
	.bv-card__price,
	.bv-card .wc-block-components-product-price { text-align: right !important; }
}

.bv-card:has(.bv-plabel__sold) img,
.bv-card:has(.bv-plabel__sold) .bv-media__ph { filter: grayscale(.7); opacity: .72; }
.bv-card:has(.bv-plabel__sold) .bv-card__price { text-decoration: line-through; color: var(--bv-roca); font-weight: 400; }

/* Carril horizontal (portada, relacionados en móvil) */
.bv-grid--rail { position: relative; }

.bv-chapter .bv-grid--rail { margin-top: var(--wp--preset--spacing--60) !important; }

.bv-grid--rail .wc-block-product-template {
	grid-template-columns: none !important;
	grid-auto-flow: column;
	grid-auto-columns: min(70vw, 17rem);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--bv-gutter);
	padding: 0 var(--bv-gutter) 1.5rem !important;
	margin-inline: calc(-1 * var(--bv-gutter)) !important;
	scrollbar-width: thin;
	scrollbar-color: var(--bv-line-strong) transparent;
}

.bv-grid--rail .wc-block-product-template > li { scroll-snap-align: start; }

@media (min-width: 782px) {
	.bv-grid--rail .wc-block-product-template { grid-auto-columns: calc((100% - 2 * var(--bv-gutter)) / 2.4); }
}

@media (min-width: 1200px) {
	.bv-grid--rail .wc-block-product-template { grid-auto-columns: calc((100% - 3 * var(--bv-gutter)) / 3.4); }
}

.bv-rail-nav {
	display: flex;
	justify-content: flex-end;
	gap: .5rem;
	margin: 0 0 1rem;
}

.bv-rail-nav button {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	border: 1px solid var(--bv-tinta);
	background: transparent;
	color: var(--bv-tinta);
	font-size: 1.1rem;
	cursor: pointer;
	transition: background-color .2s var(--bv-ease), color .2s var(--bv-ease), opacity .2s;
}

.bv-rail-nav button:hover:not([disabled]) { background: var(--bv-tinta); color: var(--bv-cal); }
.bv-rail-nav button[disabled] { opacity: .3; cursor: default; }

@media (hover: none) {
	.bv-rail-nav { display: none; }
}

/* ---------- Índice de categorías ---------- */

.bv-catindex,
.wp-block-list.is-style-index {
	list-style: none;
	padding: 0;
	margin: clamp(3rem, 2rem + 3vw, 5rem) 0 0;
	border-top: 1px solid var(--bv-tinta);
}

.bv-catindex li,
.is-style-index li {
	border-bottom: 1px solid var(--bv-line-strong);
	margin: 0;
}

.bv-catindex a,
.is-style-index a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: .15rem 1rem;
	align-items: baseline;
	padding: 1.1rem 0;
	text-decoration: none;
	color: var(--bv-tinta);
	position: relative;
}

.bv-catindex__name {
	font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem);
	font-weight: 320;
	font-stretch: 76%;
	line-height: 1.05;
	letter-spacing: -.01em;
	transition: transform .45s var(--bv-ease), color .3s var(--bv-ease);
}

.bv-catindex__desc {
	grid-column: 1;
	font-size: var(--wp--preset--font-size--s);
	color: var(--bv-roca);
}

.bv-catindex__go {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: center;
	font-size: 1.5rem;
	transition: transform .35s var(--bv-ease);
}

.bv-catindex a:hover .bv-catindex__name { transform: translateX(.6rem); color: var(--bv-coure-fosc); }
.bv-catindex a:hover .bv-catindex__go { transform: translateX(.35rem); }

@media (min-width: 1024px) {
	.bv-catindex a { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) auto; }
	.bv-catindex__desc { grid-column: 2; grid-row: 1; }
	.bv-catindex__go { grid-column: 3; grid-row: 1; }
}

/* ---------- Empordà (sección oscura) ---------- */

.bv-emporda {
	background: var(--bv-mar);
	color: color-mix(in srgb, var(--bv-cal) 88%, transparent);
	padding-block: clamp(4rem, 2rem + 7vw, 9rem);
	position: relative;
	overflow: clip;
}

.bv-emporda h2,
.bv-emporda h3 { color: var(--bv-cal); }

.bv-emporda a { color: var(--bv-coure-clar); }
.bv-emporda a:hover { color: var(--bv-cal); }
.bv-emporda :where(a, button):focus-visible { outline-color: var(--bv-coure-clar); }

.bv-emporda .is-style-eyebrow { color: var(--bv-coure-clar); }

.bv-emporda__grid {
	max-width: 100rem;
	margin-inline: auto;
	display: grid;
	gap: 2.5rem var(--bv-gutter);
	align-items: center;
}

.bv-emporda__grid > * { margin: 0; }

.bv-emporda__text > * { margin: 0; }
.bv-emporda__text > * + * { margin-top: 1.25rem; }

.bv-emporda__text h2 {
	font-size: var(--wp--preset--font-size--xxl);
	font-weight: 310;
	line-height: 1;
}

.bv-emporda .bv-media__shadow { background: linear-gradient(to top, rgba(0, 0, 0, .45), rgba(0, 0, 0, .05)); }

@media (min-width: 1024px) {
	.bv-emporda__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.bv-emporda__media { grid-column: 1 / span 7; margin-left: calc(-1 * var(--bv-gutter)) !important; }
	.bv-emporda__text { grid-column: 9 / -1; }
	.bv-emporda__text h2 { font-size: clamp(2.75rem, 1rem + 2.8vw, 4.25rem); }
}

/* ---------- Encrucijada (CTA final) ---------- */

.bv-crossroads {
	background: var(--bv-arena);
	padding-block: clamp(4rem, 2rem + 7vw, 9rem);
}

.bv-crossroads__title {
	font-size: var(--wp--preset--font-size--hero) !important;
	font-weight: 300 !important;
	line-height: .92 !important;
	margin: 0 0 clamp(2rem, 1rem + 3vw, 4rem) !important;
}

.bv-paths {
	display: grid;
	gap: 1px;
	background: var(--bv-line-strong);
	border: 1px solid var(--bv-line-strong);
	margin: 0 !important;
}

@media (min-width: 782px) {
	.bv-paths { grid-template-columns: 1fr 1fr; }
}

.bv-path {
	position: relative;
	background: var(--bv-arena);
	padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
	min-height: 15rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0 !important;
	transition: background-color .35s var(--bv-ease);
}

.bv-path > * { margin: 0 !important; }

.bv-path:hover { background: var(--bv-cal); }

.bv-path__kicker {
	font-family: var(--bv-script);
	font-size: 2.25rem;
	color: var(--bv-coure);
	line-height: 1.2;
}

.bv-path h3 {
	font-size: var(--wp--preset--font-size--xxl);
	font-weight: 320;
	font-stretch: 76%;
	line-height: 1;
	margin-top: auto !important;
}

.bv-path h3 a {
	color: var(--bv-tinta);
	text-decoration: none;
}

.bv-path h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.bv-path h3 a:focus-visible { outline: none; }
.bv-path:has(a:focus-visible) { outline: 2px solid var(--bv-coure-fosc); outline-offset: -4px; }

.bv-path p:last-child { color: var(--bv-tinta-2); max-width: 30em; }

.bv-path__go {
	display: inline-block;
	transition: transform .35s var(--bv-ease);
}

.bv-path:hover .bv-path__go { transform: translateX(.5rem); }

/* ---------- Cabecera de página editorial (Cocinas, Estudio, Contacto) ---------- */

.bv-pagehero {
	display: grid;
	gap: 2rem var(--bv-gutter);
	padding-top: clamp(1.5rem, 1rem + 3vw, 3.5rem);
	padding-bottom: clamp(3rem, 2rem + 5vw, 7rem);
	max-width: calc(100rem + 2 * var(--bv-gutter));
	margin-inline: auto !important;
	align-items: end;
}

.bv-pagehero > * { margin: 0; }

.bv-pagehero__text > * { margin: 0; }
.bv-pagehero__text > * + * { margin-top: 1.25rem; }

.bv-pagehero h1 {
	font-size: var(--wp--preset--font-size--hero);
	font-weight: 310;
	font-stretch: 75%;
	line-height: .9;
	letter-spacing: -.025em;
	margin-top: 1rem !important;
}

@media (min-width: 1024px) {
	.bv-pagehero { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.bv-pagehero__text { grid-column: 1 / span 7; padding-bottom: 1rem; }
	.bv-pagehero__media { grid-column: 9 / -1; }
}

/* ---------- Lista de servicios (índice grande) ---------- */

.bv-services {
	list-style: none;
	padding: 0;
	margin: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 0 !important;
	border-top: 1px solid var(--bv-tinta);
	counter-reset: bv-srv;
}

.bv-services > li {
	counter-increment: bv-srv;
	display: grid;
	gap: .5rem var(--bv-gutter);
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--bv-line-strong);
	margin: 0;
}

.bv-services > li::before {
	content: counter(bv-srv, decimal-leading-zero);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	letter-spacing: .16em;
	color: var(--bv-coure-fosc);
	padding-top: .6rem;
}

.bv-services strong {
	display: block;
	font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
	font-weight: 330;
	font-stretch: 78%;
	line-height: 1.1;
}

.bv-services span { color: var(--bv-tinta-2); }

@media (min-width: 1024px) {
	.bv-services > li { grid-template-columns: 4rem minmax(0, 5fr) minmax(0, 5fr); align-items: baseline; }
	.bv-services > li > strong { display: contents; }
}

/* ---------- FAQ ---------- */

.bv-faq { border-top: 1px solid var(--bv-tinta); }

.bv-faq .wp-block-details,
.bv-details {
	border-bottom: 1px solid var(--bv-line-strong);
	margin: 0 !important;
}

.bv-faq .wp-block-details > summary,
.bv-details > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	padding: 1.25rem 0;
	font-weight: 550;
	line-height: 1.35;
	min-height: 3rem;
}

.bv-faq .wp-block-details > summary { font-size: var(--wp--preset--font-size--l); font-weight: 450; }

.bv-faq summary::-webkit-details-marker,
.bv-details summary::-webkit-details-marker { display: none; }

.bv-faq .wp-block-details > summary::after,
.bv-details > summary::after {
	content: "";
	flex: none;
	width: .85rem;
	height: .85rem;
	background:
		linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
		linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
	transition: transform .35s var(--bv-ease);
}

.bv-faq .wp-block-details[open] > summary::after,
.bv-details[open] > summary::after { transform: rotate(45deg); }

.bv-faq .wp-block-details > :not(summary),
.bv-details > :not(summary) {
	margin-top: 0;
	padding-bottom: 1.25rem;
	max-width: 40em;
	color: var(--bv-tinta-2);
}

/* ---------- Datos del negocio ---------- */

.bv-biz { display: grid; gap: .9rem; }

.bv-biz > p { margin: 0; }

.bv-biz__label {
	display: block;
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .75;
	margin-bottom: .15rem;
}

.bv-biz__social { display: flex; gap: 1rem; margin-top: 1.25rem !important; }

/* ---------- Formularios de contacto (Contact Form 7) ---------- */

.bv-form {
	background: var(--bv-paper);
	padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
	border: 1px solid var(--bv-line);
}

/* Lo imprescindible de la hoja de CF7 (que no se carga). */
.wpcf7 .screen-reader-response {
	position: absolute;
	overflow: hidden;
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	word-wrap: normal !important;
}

.wpcf7 .hidden-fields-container { display: none; }

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output { display: none; }

.wpcf7-form-control-wrap { position: relative; }

.wpcf7-spinner {
	visibility: hidden;
	display: inline-block;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0 .75rem;
	border: 2px solid var(--bv-line-strong);
	border-top-color: var(--bv-tinta);
	border-radius: 50%;
	vertical-align: middle;
}

.wpcf7 form.submitting .wpcf7-spinner {
	visibility: visible;
	animation: bv-spin .8s linear infinite;
}

@keyframes bv-spin { to { transform: rotate(360deg); } }

.wpcf7 fieldset:not(.hidden-fields-container) {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.wpcf7 legend { padding: 0; }

.wpcf7-form .bv-fields {
	display: grid;
	gap: 1.25rem 1.5rem;
}

.wpcf7-form .bv-fields > * { min-width: 0; margin: 0; }

.wpcf7-form :is(input[type="text"], input[type="email"], input[type="tel"]) {
	height: 3.25rem;
	min-width: 0;
}

@media (min-width: 640px) {
	.wpcf7-form .bv-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.wpcf7-form .bv-field--full { grid-column: 1 / -1; }
}

.bv-form__legal { margin-top: 1.25rem !important; }

.wpcf7-form p { margin: 0; }

.wpcf7-form label,
.bv-field__label {
	display: block;
	font-size: var(--wp--preset--font-size--s);
	font-weight: 600;
	margin-bottom: .4rem;
}

.bv-field__hint {
	font-weight: 400;
	color: var(--bv-roca);
	font-size: var(--wp--preset--font-size--xs);
}

.wpcf7-form-control-wrap { display: block; }

.wpcf7-radio,
.wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.wpcf7-radio .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item { margin: 0; }

.wpcf7-radio .wpcf7-list-item label,
.wpcf7-checkbox .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-weight: 500;
	margin: 0;
	padding: .6rem .95rem;
	border: 1px solid var(--bv-line-strong);
	border-radius: 999px;
	cursor: pointer;
	min-height: 2.75rem;
	transition: border-color .2s, background-color .2s;
}

.wpcf7-radio .wpcf7-list-item label:has(input:checked),
.wpcf7-checkbox .wpcf7-list-item label:has(input:checked) {
	border-color: var(--bv-tinta);
	background: var(--bv-cal);
}

.wpcf7-acceptance .wpcf7-list-item { margin: 0; }

.wpcf7-acceptance label {
	display: flex;
	gap: .7rem;
	align-items: flex-start;
	font-weight: 400;
	font-size: var(--wp--preset--font-size--s);
	color: var(--bv-tinta-2);
}

.wpcf7-acceptance input { margin-top: .2rem; flex: none; }

.wpcf7 input[type="file"] {
	font-size: var(--wp--preset--font-size--s);
	padding: .75rem;
	border: 1px dashed var(--bv-line-strong);
	background: var(--bv-cal);
	width: 100%;
	border-radius: var(--bv-radius);
}

.wpcf7-submit {
	font: inherit;
	font-size: var(--wp--preset--font-size--s);
	font-weight: 600;
	letter-spacing: .02em;
	background: var(--bv-tinta);
	color: var(--bv-cal);
	border: 1px solid var(--bv-tinta);
	border-radius: 999px;
	padding: .95rem 1.8rem;
	min-height: 3rem;
	cursor: pointer;
	transition: background-color .25s var(--bv-ease);
}

.wpcf7-submit:hover { background: var(--bv-coure-fosc); border-color: var(--bv-coure-fosc); }

.wpcf7-spinner { vertical-align: middle; }

.wpcf7-not-valid-tip {
	color: #9B2C1F;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 600;
	margin-top: .35rem;
}

.wpcf7 form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 1rem 1.25rem;
	border: 1px solid var(--bv-tinta);
	border-left-width: 4px;
	background: var(--bv-cal);
	font-size: var(--wp--preset--font-size--s);
}

.wpcf7 form.sent .wpcf7-response-output { border-color: #2F5D3A; }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: #9B2C1F; }

.bv-form__legal {
	font-size: var(--wp--preset--font-size--xs);
	color: var(--bv-roca);
	line-height: 1.5;
}

/* ---------- Bloques de apoyo ---------- */

.bv-panel {
	background: var(--bv-paper);
	border: 1px solid var(--bv-line);
	padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
}

.bv-note {
	border: 1px dashed var(--bv-coure);
	background: color-mix(in srgb, var(--bv-coure) 8%, transparent);
	color: var(--bv-coure-fosc);
	padding: .9rem 1.1rem;
	font-size: var(--wp--preset--font-size--s);
	margin-block: 1rem;
}

.bv-note strong { display: block; letter-spacing: .08em; text-transform: uppercase; font-size: .6875rem; }

.bv-quote {
	font-size: var(--wp--preset--font-size--xxl) !important;
	font-weight: 310;
	font-stretch: 76%;
	line-height: 1.05;
	border: 0;
	padding: 0;
	margin: 0;
}

/* Proyectos */
.bv-projects .wp-block-post-template {
	display: grid;
	gap: 3rem var(--bv-gutter);
	list-style: none;
	padding: 0;
}

@media (min-width: 782px) {
	.bv-projects .wp-block-post-template { grid-template-columns: repeat(2, 1fr); }
	.bv-projects .wp-block-post-template > li:nth-child(even) { margin-top: 6rem; }
}

.bv-projects:not(:has(.wp-block-post)) { display: none; }

.bv-project-card { position: relative; }

.bv-project-card .wp-block-post-title a { color: var(--bv-tinta); text-decoration: none; }
.bv-project-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }

.bv-project-card .wp-block-post-featured-image { margin: 0 0 1rem; overflow: hidden; }
.bv-project-card .wp-block-post-featured-image img { transition: transform 1s var(--bv-ease); }
.bv-project-card:hover .wp-block-post-featured-image img { transform: scale(1.03); }

/* Contacto */
.bv-contact {
	display: grid;
	gap: 3rem var(--bv-gutter);
	padding: 0 var(--bv-gutter) clamp(4rem, 2rem + 6vw, 8rem);
	max-width: calc(100rem + 2 * var(--bv-gutter));
	margin-inline: auto !important;
}

.bv-contact > * { margin: 0; }

@media (min-width: 1024px) {
	.bv-contact { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
	.bv-contact__aside { grid-column: 1 / span 4; position: sticky; top: calc(var(--bv-header-h) + var(--wp-admin--admin-bar--height, 0px) + 2rem); }
	.bv-contact__main { grid-column: 6 / -1; }
}

.bv-contact__aside > * + * { margin-top: 1.5rem; }

.bv-anchor-title {
	font-size: var(--wp--preset--font-size--xxl) !important;
	font-weight: 320 !important;
	margin: 0 0 1rem !important;
}

/* ---------- Páginas interiores: piezas específicas ---------- */

.bv-pagehero--compact { padding-bottom: clamp(2rem, 1rem + 3vw, 4rem); }

.bv-pagehero--compact h1 { font-size: var(--wp--preset--font-size--display); }

.bv-materials__grid {
	display: grid;
	gap: 2rem var(--bv-gutter);
	align-items: center;
}

.bv-materials__grid > * { margin: 0; }

.bv-materials__text h2 {
	font-size: var(--wp--preset--font-size--xxl);
	font-weight: 320;
}

@media (min-width: 1024px) {
	.bv-materials__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
	.bv-materials__grid > .bv-media { grid-column: 1 / span 7; }
	.bv-materials__text { grid-column: 9 / -1; }
	.bv-steps--three { grid-template-columns: repeat(3, 1fr); }
}

.bv-step__n:not(:empty) { min-height: 1em; }

.bv-contact--project { padding-top: clamp(3rem, 2rem + 4vw, 6rem); border-top: 1px solid var(--bv-line-strong); }

.bv-emporda .bv-biz { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--bv-cal) 22%, transparent); }

.bv-emporda .bv-note { color: var(--bv-cal); }
