/*
 * Gama · fch-child 1.4.0. Componentes comunes de la web de la gama: tarjetas de forma, chips, selectores, galería de
 * fotos de estudio, barra fija del móvil, bandas, pasos y filtros. MÓVIL PRIMERO (375 px) → tableta (48em) →
 * ordenador (64em). Pulsadores de 44 px como mínimo; textos de 16 px como mínimo; sin scroll lateral salvo carruseles.
 */

/* Lo oculto, oculto (algunas piezas ponen display: flex y pisarían el atributo hidden). */
[hidden] {
	display: none !important;
}

/* ---------------------------------------------------------------- Pulsadores: 44 px como mínimo */
.fch-btn--sm,
.fch-config__opcion,
.fch-config__opcion--sm {
	min-height: 2.75rem;
}

/* ---------------------------------------------------------------- Carrusel (deslizar) */
.fch-carrusel {
	position: relative; /* contiene a sus textos para lectores (posición absoluta): si no, se salen por la derecha */
	display: flex;
	max-width: 100%;
	gap: var(--fch-esp-3);
	margin: 0;
	padding: 0 0 var(--fch-esp-2);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	list-style: none;
}

.fch-carrusel__item {
	flex: 0 0 100%;
	min-width: 0;
	scroll-snap-align: start;
}

.fch-carrusel--formas .fch-carrusel__item {
	flex-basis: min(82%, 20rem);
}

/* ---------------------------------------------------------------- Tarjeta de forma */
.fch-formas {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fch-esp-rejilla);
}

.fch-forma {
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr;
	height: 100%;
	overflow: hidden;
	border: var(--fch-borde-fino) solid var(--fch-color-borde);
	border-radius: var(--fch-tarjeta-radio);
	background-color: var(--fch-color-superficie);
}

.fch-forma[hidden] {
	display: none;
}

.fch-forma__foto {
	display: block;
}

.fch-forma__foto .fch-foto {
	margin: 0;
	aspect-ratio: 1;
	border-radius: 0;
	overflow: hidden;
	padding: 0;
	background: #efe9e1;
}

/* Las fotos de estudio dejan mucho aire alrededor: en la tarjeta se acerca el tarro para que se vea grande.
 * 1.10.13 · 1.3 (antes 1.65): el tarro se ve entero, de la punta de la llama a la base (el pie de Vestal y la
 * altura de cada forma son lo que las distingue). */
.fch-forma__foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.3);
	transform-origin: 50% 50%;
}

.fch-forma__texto {
	display: grid;
	gap: var(--fch-esp-2);
	align-content: start;
	padding: var(--fch-esp-4);
}

.fch-forma__texto p,
.fch-forma__nombre {
	margin: 0;
}

.fch-forma__nombre {
	font-size: var(--fch-texto-2xl);
	font-weight: var(--fch-peso-normal);
}

.fch-forma__nombre a {
	/* 1.6.2 · Móvil: el nombre es un enlace suelto; 44 px de alto para el dedo (antes 31). */
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: inherit;
	text-decoration: none;
}

.fch-forma__forma {
	color: var(--fch-color-texto-suave);
}

.fch-forma__ml {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.fch-forma__niveles {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fch-esp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fch-forma__niveles li {
	padding: var(--fch-esp-1) var(--fch-esp-3);
	border-radius: var(--fch-radio-pildora);
	background-color: var(--fch-color-superficie-alt);
	font-size: var(--fch-texto-sm);
}

.fch-forma__colores {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fch-esp-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fch-forma__color {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
}

.fch-forma__color:focus-visible {
	outline: var(--fch-foco-ancho) solid var(--fch-color-foco);
	outline-offset: 0;
}

.fch-forma__punto {
	width: 1.875rem;
	height: 1.875rem;
	border: var(--fch-borde-fino) solid var(--fch-color-borde-control);
	border-radius: 50%;
	background-color: var(--muestra);
}

.fch-forma__ver {
	margin-top: var(--fch-esp-2);
	justify-self: stretch;
}

/* ---------------------------------------------------------------- Chips */
.fch-sel__chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fch-esp-2);
}

.fch-chip {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: var(--fch-esp-1) var(--fch-esp-4);
	border: var(--fch-borde-fino) solid var(--fch-color-borde-control);
	border-radius: var(--fch-radio-pildora);
	background-color: var(--fch-color-superficie);
	color: var(--fch-color-texto);
	font: inherit;
	font-size: var(--fch-texto-base);
	font-variant-numeric: tabular-nums;
	cursor: pointer;
}

.fch-chip[aria-pressed="true"] {
	border-color: var(--fch-color-accion);
	background-color: var(--fch-color-accion);
	color: var(--fch-color-sobre-accion);
}

.fch-chip:focus-visible,
.fch-nivel:focus-visible,
.fch-muestra-sel:focus-visible {
	outline: var(--fch-foco-ancho) solid var(--fch-color-foco);
	outline-offset: var(--fch-foco-separacion);
}

.fch-chip--forma {
	border-radius: var(--fch-radio-md);
	align-items: flex-start;
	text-align: left;
}

.fch-chip__detalle {
	font-size: var(--fch-texto-sm);
	opacity: 0.85;
}

/* 1.7.0 · Perfil de la vela (Clásica · Alta): dos botones anchos con su silueta, mitad y mitad en el móvil. */
.fch-sel__chips--perfil {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fch-chip--perfil {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "icono nombre" "icono detalle";
	align-items: center;
	justify-items: start;
	column-gap: var(--fch-esp-2);
	min-height: 3.25rem;
	padding-inline: var(--fch-esp-3);
	border-radius: var(--fch-radio-md);
	text-align: left;
}

.fch-chip--perfil .fch-chip__icono {
	grid-area: icono;
	display: flex;
}

.fch-chip--perfil .fch-chip__nombre {
	grid-area: nombre;
	font-weight: 500;
}

.fch-chip--perfil .fch-chip__detalle {
	grid-area: detalle;
}

/* 1.4.1 · Letras del grabado (Adobe Fonts, kit uay0ffy; reservas si no cargan). */
.fch-letra--clasica {
	font-family: "trajan-pro-3", Georgia, serif;
	font-weight: 400;
	letter-spacing: 0.06em;
}

.fch-letra--manuscrita {
	font-family: "bickham-script-pro-3", "Brush Script MT", cursive;
	font-weight: 600;
}

.fch-chip.fch-letra--manuscrita {
	font-size: 1.75rem;
	line-height: 1;
}

.fch-sel__contador {
	float: inline-end;
	color: var(--fch-color-texto-suave);
	font-variant-numeric: tabular-nums;
	font-weight: 400;
}

/* Vista previa del grabado: franja de aluminio cepillado con el texto grabado (siempre, con o sin 3D). */
.fch-grabado-vista {
	margin: 0;
	display: grid;
	gap: var(--fch-esp-2);
}

.fch-grabado-vista__titulo {
	font-size: 1rem;
	color: var(--fch-color-texto-suave);
}

.fch-grabado-vista__franja {
	display: grid;
	place-items: center;
	min-height: 5.5rem;
	padding: var(--fch-esp-4) var(--fch-esp-5);
	border-radius: var(--fch-radio-md, 0.75rem);
	overflow: hidden;
	background:
		repeating-linear-gradient(90deg, rgb(255 255 255 / 0.18) 0 1px, rgb(0 0 0 / 0.035) 1px 3px),
		linear-gradient(180deg, #f4f5f6 0%, #c9ccd0 22%, #eef0f2 48%, #b5b9be 76%, #dfe2e5 100%);
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8), inset 0 -1px 0 rgb(0 0 0 / 0.18), 0 1px 3px rgb(0 0 0 / 0.12);
}

.fch-grabado-vista__texto {
	max-width: 100%;
	overflow-wrap: anywhere;
	text-align: center;
	font-size: clamp(1.5rem, 6vw, 2.125rem);
	line-height: 1.2;
	color: #6c7177;
	text-shadow: 0 1px 0 rgb(255 255 255 / 0.9), 0 -1px 0 rgb(0 0 0 / 0.4);
}

.fch-grabado-vista__texto.fch-letra--manuscrita {
	font-size: clamp(2.5rem, 10vw, 3.25rem);
}

.fch-grabado-vista__texto--vacio {
	opacity: 0.55;
}

/* Modo foto: la línea bajo la foto de estudio. */
.fch-foto-pie {
	margin: var(--fch-esp-2) 0 0;
	font-size: 1rem;
	color: var(--fch-color-texto-suave);
}

/* 1.6.0 · Pie de la foto: si tu combinación aún no tiene foto, se dice en un recuadro que se ve. */
.fch-foto-pie.fch-foto-pie--cerca {
	padding: var(--fch-esp-2) var(--fch-esp-3);
	border-left: 3px solid var(--fch-pabilo-900);
	background-color: var(--fch-cera-100);
	color: var(--fch-pabilo-900);
}

/* 1.6.0 · Sello sobre la foto cuando no es la de tu combinación exacta. */
[data-galeria-fotos],
[data-config-lienzo] {
	position: relative;
}

.fch-foto-sello {
	position: absolute;
	z-index: 2;
	top: var(--fch-esp-3);
	left: var(--fch-esp-3);
	margin: 0;
	padding: var(--fch-esp-1) var(--fch-esp-3);
	border-radius: 999px;
	background-color: var(--fch-pabilo-900);
	color: var(--fch-cera-50);
	font-size: var(--fch-texto-xs); /* 1.8.0 · 16 px, lo mínimo legible del sistema (antes 14 px) */
	line-height: 1.4;
	pointer-events: none;
}

.fch-foto-sello[hidden],
.fch-config--con-3d:not(.fch-config--ver-foto) .fch-foto-sello {
	display: none;
}

.fch-foto-pie__vela {
	display: inline-block;
	width: 1em;
	height: 1em;
	border-radius: 50%;
	vertical-align: -0.15em;
	background: var(--muestra);
	box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.2);
}

/* ---------------------------------------------------------------- Selectores */
.fch-sel {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fch-esp-5);
}

.fch-sel__grupo {
	display: grid;
	gap: var(--fch-esp-2);
	min-width: 0;
}

.fch-sel__etiqueta {
	margin: 0;
	font-weight: 600;
}

.fch-sel__valor {
	font-weight: var(--fch-peso-normal);
	color: var(--fch-color-texto-suave);
}

/* 1.4.1 · Aviso corto (3 s) al saltar a la combinación real más cercana: flotante, no mueve la página. */
.fch-sel__aviso {
	position: fixed;
	z-index: 60;
	left: 50%;
	bottom: calc(7.5rem + env(safe-area-inset-bottom)); /* 1.6.2 · por encima de la barra de abajo aunque tenga 3 líneas */
	transform: translateX(-50%);
	width: max-content;
	max-width: calc(100% - 2rem);
	margin: 0;
	padding: var(--fch-esp-3) var(--fch-esp-5);
	border-radius: var(--fch-radio-pildora);
	background-color: var(--fch-color-texto);
	color: var(--fch-color-fondo);
	box-shadow: var(--fch-sombra-2);
	font-size: 1rem;
	text-align: center;
}

@media (min-width: 64em) {
	.fch-sel__aviso {
		bottom: 2rem;
	}
}

.fch-sel__niveles {
	display: grid;
	gap: var(--fch-esp-2);
}

.fch-nivel {
	display: grid;
	gap: 0.125rem;
	min-height: 2.75rem;
	padding: var(--fch-esp-2) var(--fch-esp-4);
	border: var(--fch-borde-fino) solid var(--fch-color-borde-control);
	border-radius: var(--fch-radio-md);
	background-color: var(--fch-color-superficie);
	color: var(--fch-color-texto);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.fch-nivel__nombre {
	font-weight: 600;
}

.fch-nivel[aria-pressed="true"] {
	border-color: var(--fch-color-accion);
	box-shadow: inset 0 0 0 1px var(--fch-color-accion);
}

.fch-nivel__rango {
	font-size: 1rem;
	color: var(--fch-color-texto-suave);
}

.fch-sel__muestras {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fch-esp-2);
}

.fch-muestra-sel {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 50%;
	background: none;
	cursor: pointer;
}

.fch-muestra-sel[hidden] {
	display: none;
}

.fch-muestra-sel__punto {
	width: 2.25rem;
	height: 2.25rem;
	border: var(--fch-borde-fino) solid var(--fch-color-borde-control);
	border-radius: 50%;
	background-color: var(--muestra);
}

.fch-muestra-sel__punto--brillo,
.fch-forma__punto--brillo {
	background-image: radial-gradient(circle at 34% 28%, rgb(255 255 255 / 0.6) 0, rgb(255 255 255 / 0) 42%);
}

.fch-muestra-sel__punto--metal,
.fch-forma__punto--metal {
	background-image: linear-gradient(135deg, rgb(255 255 255 / 0.45) 0%, rgb(255 255 255 / 0) 45%, rgb(255 255 255 / 0.25) 70%, rgb(255 255 255 / 0) 100%);
}

.fch-muestra-sel[aria-pressed="true"] {
	border-color: var(--fch-color-accion);
}

/* 1.6.0 · Colores del envase con su nombre a la vista (tres negros y dos blancos no se distinguen solo por el punto). */
.fch-sel__muestras--nombre .fch-muestra-sel {
	display: inline-flex;
	gap: var(--fch-esp-2);
	width: auto;
	height: auto;
	min-height: 2.75rem;
	padding: var(--fch-esp-1) var(--fch-esp-3) var(--fch-esp-1) var(--fch-esp-1);
	border: var(--fch-borde-fino) solid var(--fch-color-borde-control);
	border-radius: 999px;
	background-color: var(--fch-color-superficie);
	color: var(--fch-color-texto);
	font: inherit;
	font-size: 0.9375rem;
	line-height: 1.25;
	text-align: left;
}

.fch-sel__muestras--nombre .fch-muestra-sel[hidden] {
	display: none;
}

.fch-sel__muestras--nombre .fch-muestra-sel__punto {
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
}

.fch-sel__muestras--nombre .fch-muestra-sel[aria-pressed="true"] {
	border: 2px solid var(--fch-color-accion);
	font-weight: 600;
}

.fch-sel__grabado {
	border: var(--fch-borde-fino) solid var(--fch-color-borde);
	border-radius: var(--fch-radio-md);
	background-color: var(--fch-color-superficie);
}

.fch-sel__grabado summary {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding: var(--fch-esp-2) var(--fch-esp-4);
	cursor: pointer;
	font-weight: 600;
}

.fch-sel__grabado-caja {
	display: grid;
	gap: var(--fch-esp-3);
	padding: 0 var(--fch-esp-4) var(--fch-esp-4);
}

.fch-sel__nota,
.fch-sel__aviso-venta {
	margin: 0;
	color: var(--fch-color-texto-suave);
}

.fch-sel__resumen {
	display: grid;
	gap: var(--fch-esp-2);
	padding: var(--fch-esp-4);
	border: var(--fch-borde-fino) solid var(--fch-color-borde);
	border-radius: var(--fch-tarjeta-radio);
	background-color: var(--fch-color-superficie);
}

.fch-sel__resumen p {
	margin: 0;
}

.fch-sel__resumen-texto {
	font-family: var(--fch-fuente-titulos);
	font-size: var(--fch-texto-xl);
}

/* Barra fija abajo (móvil y tableta). 1.10.6 · Dos líneas como mucho (en 390 px, con el texto más largo):
   arriba, forma, ml y material; debajo, «Ver resumen» y «Avísame». «Ver resumen» despliega ENCIMA de la barra el
   resumen entero y el precio. Medida sin navegador con web/herramientas/arnes/medir-barra.js (lee estos valores). */
.fch-barra-sel {
	position: fixed;
	inset: auto 0 0;
	z-index: 30;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas:
		"mini linea linea"
		"mini ver aviso";
	align-items: center;
	column-gap: var(--fch-esp-3);
	row-gap: var(--fch-esp-1);
	padding: var(--fch-esp-2) var(--fch-esp-pagina) calc(var(--fch-esp-2) + env(safe-area-inset-bottom));
	border-top: var(--fch-borde-fino) solid var(--fch-color-borde);
	background-color: var(--fch-color-superficie);
	box-shadow: 0 -8px 24px -16px var(--fch-pabilo-a28);
}

.fch-barra-sel__mini {
	grid-area: mini;
	width: 3rem;
	height: 3rem;
	border-radius: var(--fch-radio-md);
	object-fit: cover;
	background: var(--fch-foto-fondo);
}

.fch-barra-sel__mini[hidden] {
	display: none;
}

.fch-barra-sel__linea1 {
	grid-area: linea;
	min-width: 0;
	margin: 0;
	font-size: 1rem;
	font-weight: var(--fch-peso-semi);
	line-height: 1.25;
	text-wrap: balance;
}

.fch-barra-sel__ver {
	grid-area: ver;
	min-width: 0;
}

.fch-barra-sel__boton {
	display: inline-flex;
	align-items: center;
	gap: var(--fch-esp-1);
	min-height: var(--fch-tactil-min);
	font-size: 1rem;
	font-weight: var(--fch-peso-medio);
	line-height: 1.25;
	white-space: nowrap;
	color: var(--fch-color-texto);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
	list-style: none;
}

.fch-barra-sel__boton::-webkit-details-marker {
	display: none;
}

.fch-barra-sel__boton::after {
	content: "";
	width: 0.5em;
	height: 0.5em;
	margin-left: 0.15em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(0.1em) rotate(-135deg);
}

.fch-barra-sel__ver:not([open]) .fch-barra-sel__boton::after {
	transform: translateY(-0.15em) rotate(45deg);
}

.fch-barra-sel__boton:focus-visible {
	outline: 2px solid var(--fch-color-accion);
	outline-offset: 2px;
}

.fch-barra-sel__ver[open] .fch-barra-sel__si-cerrado,
.fch-barra-sel__ver:not([open]) .fch-barra-sel__si-abierto {
	display: none;
}

.fch-barra-sel__panel {
	position: absolute;
	inset: auto 0 100%;
	max-height: min(60vh, 24rem);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: var(--fch-esp-4) var(--fch-esp-pagina);
	border-top: var(--fch-borde-fino) solid var(--fch-color-borde);
	background-color: var(--fch-color-superficie);
	box-shadow: 0 -8px 24px -16px var(--fch-pabilo-a28);
}

.fch-barra-sel__resumen {
	margin: 0;
	font-size: 1rem;
	line-height: 1.5;
	overflow-wrap: break-word;
}

.fch-barra-sel__precio {
	margin: var(--fch-esp-2) 0 0;
	color: var(--fch-color-texto-suave);
}

.fch-barra-sel__avisame {
	grid-area: aviso;
	white-space: nowrap;
}

body:has(.fch-barra-sel) .fch-pie {
	/* 1.6.2 · Móvil: la barra no tapa el final (ni el borde redondeado del iPhone). 1.10.6 · Con dos líneas mide
	   84 px (104 px si la primera se parte en 320 px). */
	padding-bottom: calc(7.5rem + env(safe-area-inset-bottom));
}

/* ---------------------------------------------------------------- Ficha de una forma */
.fch-ficha-forma {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fch-esp-6);
	padding-bottom: var(--fch-esp-seccion);
}

.fch-galeria-forma {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fch-esp-3);
	min-width: 0;
}

.fch-galeria-forma__foto {
	margin: 0;
	aspect-ratio: 1;
}

.fch-galeria-forma__foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fch-galeria-forma__boton {
	justify-self: start;
}

.fch-ficha-forma__compra {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fch-esp-5);
	align-content: start;
	min-width: 0;
}

.fch-ficha-forma__cabecera h1 {
	margin: 0;
	font-size: var(--fch-texto-4xl);
	font-weight: var(--fch-peso-normal);
}

.fch-ficha-forma__cabecera p {
	margin: 0;
}

.fch-ficha-forma__cabecera .fch-entradilla {
	margin-top: var(--fch-esp-2);
}

.fch-ficha-forma__bloque {
	display: grid;
	gap: var(--fch-esp-4);
}

.fch-ficha-forma__bloque > h2,
.fch-ficha-forma__bloque > p {
	margin: 0;
}

.fch-ficha-forma__medidas {
	max-width: 44rem;
}

.fch-ficha-forma__medidas th {
	width: 9rem;
	font-weight: 600;
	text-align: left;
	vertical-align: top;
}

.fch-ficha-forma__piezas {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
	gap: var(--fch-esp-2) var(--fch-esp-6);
	margin: 0;
	padding-left: var(--fch-esp-5);
}

.fch-ficha-forma__3d {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fch-esp-2);
}

.fch-ficha-forma__3d[hidden] {
	display: none;
}

.fch-ficha-forma__vela {
	display: grid;
	gap: var(--fch-esp-6);
	align-items: center;
}

.fch-ficha-forma__vela-fotos {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--fch-esp-3);
}

.fch-ficha-forma__vela-fotos .fch-foto {
	margin: 0;
}

.fch-ficha-forma__vela-fotos .fch-foto:first-child {
	grid-column: 1 / -1;
}

.fch-ficha-forma__seguridad {
	margin: var(--fch-esp-2) 0 0;
	padding-left: var(--fch-esp-5);
}

/* ---------------------------------------------------------------- Visor 3D (ficha y configurador) */
.fch-visor {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fch-esp-3);
	background: none;
}

.fch-config__pista {
	position: absolute;
	top: var(--fch-esp-3);
	left: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: var(--fch-esp-2);
	margin: 0;
	padding: var(--fch-esp-1) var(--fch-esp-3);
	border-radius: var(--fch-radio-pildora);
	background-color: rgb(29 26 23 / 0.72);
	color: #fff;
	white-space: nowrap;
	transform: translateX(-50%);
	pointer-events: none;
}

.fch-config--girado .fch-config__pista,
.fch-config:not(.fch-config--listo) .fch-config__pista {
	display: none !important;
}

.fch-config__acciones {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fch-esp-2);
}

.fch-config__acciones[hidden] {
	display: none;
}

.fch-configurador {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fch-esp-6);
	padding-bottom: var(--fch-esp-seccion);
}

.fch-configurador__cabecera {
	padding-bottom: 0;
}

.fch-configurador .fch-config__lienzo {
	aspect-ratio: auto;
	height: min(calc(100svh - 9rem), 44rem);
	min-height: 20rem;
}

/* ---------------------------------------------------------------- Inicio: héroe, bandas y pasos */
.fch-heroe--gama .fch-heroe__foto {
	aspect-ratio: 16 / 10;
	max-height: none;
}

.fch-bandas {
	display: grid;
	gap: var(--fch-esp-rejilla);
}

.fch-banda {
	display: grid;
	gap: var(--fch-esp-3);
	align-content: start;
	justify-items: start;
	padding: var(--fch-esp-6) var(--fch-esp-5);
	border: var(--fch-borde-fino) solid var(--fch-color-borde);
	border-radius: var(--fch-tarjeta-radio);
	background-color: var(--fch-color-superficie);
}

.fch-banda h3,
.fch-banda p {
	margin: 0;
}

.fch-banda h3 {
	font-size: var(--fch-texto-2xl);
	font-weight: var(--fch-peso-normal);
}

.fch-banda__icono {
	color: var(--fch-color-acento-decor);
}

.fch-banda--oscura {
	border-color: var(--fch-pabilo-900);
	background-color: var(--fch-pabilo-900);
	color: var(--fch-cera-50);
}

/* 1.6.0 · El título heredaba el carbón de los h3 y no se leía sobre el fondo oscuro. */
.fch-banda--oscura h3,
.fch-banda--oscura p {
	color: var(--fch-cera-50);
}

.fch-banda--oscura .fch-btn--secundario {
	border-color: var(--fch-cera-50);
	background-color: transparent;
	color: var(--fch-cera-50);
}

.fch-pasos-gama {
	display: grid;
	gap: var(--fch-esp-6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fch-paso-gama {
	display: grid;
	gap: var(--fch-esp-2);
	align-content: start;
}

.fch-paso-gama .fch-foto {
	margin: 0 0 var(--fch-esp-2);
	aspect-ratio: 1;
}

.fch-paso-gama img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fch-paso-gama h3,
.fch-paso-gama p {
	margin: 0;
}

.fch-paso-gama h3 {
	font-size: var(--fch-texto-xl);
	font-weight: var(--fch-peso-normal);
}

/* ---------------------------------------------------------------- Colección: filtros */
.fch-filtros {
	display: grid;
	gap: var(--fch-esp-4);
	margin-bottom: var(--fch-esp-6);
}

.fch-filtros[hidden],
.fch-filtros__nada[hidden] {
	display: none;
}

.fch-filtros__grupo {
	display: grid;
	gap: var(--fch-esp-2);
}

.fch-filtros__cuenta {
	margin: 0;
	color: var(--fch-color-texto-suave);
}

/* ---------------------------------------------------------------- Tableta */
@media (min-width: 48em) {
	.fch-formas {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fch-sel__niveles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fch-bandas,
	.fch-pasos-gama {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fch-ficha-forma__vela {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.fch-galeria-forma__foto,
	.fch-galeria-forma .fch-config__lienzo {
		max-height: 40rem;
	}
}

/* ---------------------------------------------------------------- Ordenador */
@media (min-width: 64em) {
	.fch-formas {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.fch-ficha-forma,
	.fch-configurador {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: var(--fch-esp-12);
		align-items: start;
	}

	.fch-galeria-forma,
	.fch-configurador__visor {
		position: sticky;
		top: calc(var(--fch-alto-cabecera) + 3rem + var(--fch-esp-4));
	}

	.fch-configurador .fch-config__lienzo {
		height: min(calc(100vh - 14rem), 40rem);
	}

	/* En el ordenador no hace falta la barra fija: el resumen está a la vista, junto a los selectores. */
	.fch-barra-sel {
		display: none;
	}

	body:has(.fch-barra-sel) .fch-pie {
		padding-bottom: 0;
	}
}

@media (min-width: 90em) {
	.fch-formas {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}

	.fch-forma__nombre {
		font-size: var(--fch-texto-xl);
	}
}

/* 1.5.0 · Accesorios y regalo (solo si hay assets/datos/accesorios.json): una casilla por accesorio compatible. */
.fch-accesorios[hidden],
.fch-accesorio[hidden] {
	display: none;
}

.fch-accesorios__lista {
	display: grid;
	gap: var(--fch-esp-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fch-accesorio__caja {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr);
	gap: var(--fch-esp-3);
	align-items: center;
	min-height: 2.75rem;
	padding: var(--fch-esp-2) var(--fch-esp-3);
	border: var(--fch-borde-fino) solid var(--fch-color-borde);
	border-radius: var(--fch-radio-md);
	background-color: var(--fch-color-superficie);
	cursor: pointer;
}

.fch-accesorio__caja:has(input:checked) {
	border-color: var(--fch-color-accion);
}

.fch-accesorio__caja input {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	accent-color: var(--fch-color-accion);
}

.fch-accesorio__foto {
	display: block;
	width: 4rem;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--fch-radio-md);
	background: var(--fch-foto-fondo);
}

.fch-accesorio__foto img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.fch-accesorio__texto {
	display: grid;
	gap: 0.125rem;
	min-width: 0;
}

.fch-accesorio__nombre {
	font-weight: 600;
}

.fch-accesorio__desc,
.fch-accesorio__nota {
	color: var(--fch-color-texto-suave);
	font-size: var(--fch-texto-sm, 0.875rem);
	overflow-wrap: anywhere;
}

/* 1.10.4 · Tres bloques (presentación de regalo, campana y cuidado de la vela). Lo que no vale para un tamaño, a la
   vista, desactivado y con su motivo. */
.fch-accesorios__bloque {
	min-width: 0;
	margin: var(--fch-esp-3) 0 0;
	padding: 0;
	border: 0;
}

.fch-accesorios__subtitulo {
	margin-bottom: var(--fch-esp-2);
	padding: 0;
	font-size: var(--fch-texto-sm, 0.875rem);
	font-weight: 600;
}

.fch-accesorios__bloque > .fch-sel__nota {
	margin: 0 0 var(--fch-esp-2);
}

.fch-accesorio__caja:has(input:disabled) {
	border-style: dashed;
	cursor: not-allowed;
}

.fch-accesorio__caja:has(input:disabled) .fch-accesorio__nombre {
	color: var(--fch-color-texto-suave);
}

.fch-accesorio__caja:has(input:focus-visible) {
	outline: var(--fch-foco-ancho) solid var(--fch-color-foco);
	outline-offset: var(--fch-foco-separacion);
}

.fch-accesorio__motivo {
	color: var(--fch-color-atencion);
	font-size: var(--fch-texto-sm, 0.875rem);
	font-weight: 500;
}

.fch-accesorio__motivo[hidden],
.fch-accesorio__talla:empty {
	display: none;
}

.fch-accesorio__talla {
	color: var(--fch-color-texto-suave);
	font-weight: 400;
}

.fch-accesorio--sin .fch-accesorio__caja {
	grid-template-columns: auto minmax(0, 1fr);
}

/* 1.5.0 · «Guarda y comparte» y «Añadir a mi solicitud» junto al resumen: con y sin 3D. */
.fch-sel__acciones {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fch-esp-2);
}

.fch-sel__acciones[hidden],
.fch-sel__acciones [hidden] {
	display: none;
}

.fch-sel__acciones .fch-btn {
	flex: 1 1 14rem;
}

.fch-sel__acciones .fch-config__mensaje {
	flex-basis: 100%;
	margin: 0;
}

/* 1.6.2 · Botones dentro del aviso de «Míralo en tu casa» («Copiar enlace», «Probar aquí»…), en el visor y en los selectores. */
.fch-config__mensaje .fch-ar__boton {
	margin-block-start: var(--fch-esp-2);
	margin-inline-end: var(--fch-esp-2);
	vertical-align: middle;
}

/* 1.6.0 · Móvil: con la foto a la vista, el visor del configurador es cuadrado (la foto entera y «Ver en 3D» a mano). */
@media (max-width: 63.99em) {
	.fch-configurador .fch-config--ver-foto .fch-config__lienzo {
		height: auto;
		min-height: 0;
		aspect-ratio: 1 / 1;
	}
}

/* 1.10.4 · Todo se puede elegir. Un color de envase de otro material dice de cuál es (al pulsarlo, pasa a ese material). */
.fch-muestra-sel__nivel {
	display: none;
	color: var(--fch-color-texto-suave);
	font-weight: 400;
}

.fch-muestra-sel[data-otro-nivel] .fch-muestra-sel__nivel {
	display: inline;
}

.fch-muestra-sel[data-otro-nivel] .fch-muestra-sel__punto {
	opacity: 0.75;
}

.fch-chip:disabled {
	border-style: dashed;
	color: var(--fch-color-texto-suave);
	cursor: not-allowed;
}

/* Cantidad: − campo + (botones de 44 px para el dedo). */
.fch-sel__uds {
	display: flex;
	align-items: center;
	gap: var(--fch-esp-2);
}

.fch-sel__uds .fch-btn {
	min-width: var(--fch-tactil-min);
	min-height: var(--fch-tactil-min);
	font-size: var(--fch-texto-lg);
}

.fch-sel__uds-campo {
	width: 7.5rem;
	min-height: var(--fch-tactil-min);
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.fch-sel__grupo--estuche .fch-btn {
	max-width: 100%;
	white-space: normal;
}

.fch-nivel:disabled {
	border-style: dashed;
	color: var(--fch-color-texto-suave);
	cursor: not-allowed;
}

/* 1.10.7 · En pantallas muy estrechas (< 340 px), la línea 1 de la barra va 1 px más pequeña y sin partir: siempre dos
   líneas («Body Cream · 580 ml · Premium» cabe en 320 px). Si aun así no cupiera, se recorta con «…»: el resumen entero
   está en «Ver resumen». */
@media (max-width: 339.98px) {
	.fch-barra-sel__linea1 {
		overflow: hidden;
		font-size: 0.875rem;
		letter-spacing: -0.005em;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
}
