/*
 * Le Toy Factory — Ficha de producto
 * Ajustes tipográficos sobre el PDP del padre.
 * El layout mitad-y-mitad (sgf-pdp--mitad) lo hace el padre;
 * aquí solo se afina la escala de texto de la columna de compra.
 * Tablero de referencia: Ficha.dc.html (pendiente Q06)
 */

/* ── Título del producto ─────────────────────────────────────────────────────
   El padre pone 24 px, weight 500, letter-spacing -0.01em.
   En la columna de compra (34 rem de ancho máximo) ese tamaño compite con
   el precio y los paneles; 20 px es la cima de la escala LTF y deja aire
   para que respiren los otros elementos. */
.single-product .product_title {
	font-size: var(--sgf-text-xl, 20px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

/* ── Precio ──────────────────────────────────────────────────────────────────
   El padre lo pone a 16 px, weight 500.
   En LTF el precio usa lg (18 px) de la escala, peso 400 — la variación de
   precio no necesita el mismo énfasis que el texto principal del botón. */
.single-product .summary > .price,
.single-product .entry-summary > .price {
	font-size: var(--sgf-text-lg, 18px);
	font-weight: 400;
}

/* ── Descripción corta ───────────────────────────────────────────────────────
   El padre la pone en 15 px a través de .sgf-pdp-descriptor (no el
   selector estándar de WooCommerce). En LTF el cuerpo es 13 px. */
.single-product .sgf-pdp-descriptor,
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-product-details__short-description p {
	font-size: var(--sgf-text-sm, 13px);
	line-height: 1.65;
}

/* ── Nota de descuento ───────────────────────────────────────────────────────
   El padre la pone en 14 px. En LTF todo el texto de apoyo baja a 13 px. */
.single-product .sgf-discount-note {
	font-size: var(--sgf-text-sm, 13px);
	line-height: 1.5;
}

/* ── Color: en LTF cada producto ES una versión de color ─────────────────────
   «Baby Dream Cuero» es ya el marrón; «Baby Dream Peony» es ya el rosa.
   El <select> pa_color tiene una sola opción (auto-seleccionada por Woo
   cuando la variación es única) y no aporta información al comprador.
   Se oculta el TR completo; el campo permanece en el DOM y en el form
   para que la variación siga pasando al ATC. */
.single-product .variations tr:has(select[id^="pa_color"]) {
	display: none;
}

/* ── Botón principal ATC ─────────────────────────────────────────────────────
   El padre lo pone a 16 px sin tratamiento de etiqueta.
   En LTF los botones de acción llevan el mismo estilo que los chips:
   texto pequeño en mayúsculas con tracking.
   Especificidad elevada con .button para ganar a todas las reglas del padre. */
.single-product .single_add_to_cart_button.button {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: var(--sgf-label-tracking, .02em);
	text-transform: var(--sgf-label-transform, uppercase);
	transition:
		background-color .3s cubic-bezier(.16, 1, .3, 1),
		opacity          .3s cubic-bezier(.16, 1, .3, 1);
}

.single-product .single_add_to_cart_button.button:hover:not(:disabled):not(.disabled) {
	opacity: .8;
}

/* ── Paneles plegables ───────────────────────────────────────────────────────
   El padre los pone a 16 px peso 500 sin caja alta.
   En LTF los encabezados de acordeón siguen la escala de etiqueta:
   13 px, uppercase, tracking. El cuerpo de los paneles también baja. */
.sgf-pdp-panel__toggle {
	font-size: var(--sgf-text-sm, 13px);
	font-weight: 500;
	letter-spacing: var(--sgf-label-tracking, .02em);
	text-transform: var(--sgf-label-transform, uppercase);
	min-height: 48px;
	border-top: 1px dotted var(--ltf-punteado, #e9e7e6);
}

.sgf-pdp-panel__prose p {
	font-size: var(--sgf-text-sm, 13px);
	line-height: 1.65;
}

/* ── Estado de stock ─────────────────────────────────────────────────────────
   El padre pone .sgf-stock__label a 14 px, text-transform: none.
   En LTF los indicadores de estado siguen la escala de etiqueta: xs uppercase. */
.single-product .sgf-stock__label {
	font-size: var(--sgf-text-xs, 12px);
	font-weight: 500;
	text-transform: var(--sgf-label-transform, uppercase);
	letter-spacing: var(--sgf-label-tracking, .02em);
}

/* ── SKU / referencia ────────────────────────────────────────────────────────
   WooCommerce no estila .sku_wrapper. En LTF es una etiqueta de apoyo:
   11 px, uppercase, tracking — mismo tratamiento que el botón y la variante. */
.single-product .sku_wrapper {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: var(--sgf-label-tracking, .02em);
	text-transform: var(--sgf-label-transform, uppercase);
}

/* ── Migas de pan ────────────────────────────────────────────────────────────
   base.css ya aplica el tratamiento de etiqueta a .woocommerce-breadcrumb a.
   Solo ajustamos el margen inferior para que no suba demasiado cerca del
   borde de la columna en el layout mitad. */
@media (min-width: 901px) {
	.sgf-pdp--mitad .woocommerce-breadcrumb {
		margin-bottom: 20px;
	}
}

/* ── Layout PDP: proporciones LTF (8/12 galería + 4/12 compra) ───────────────
   El padre usa 1fr 1fr a ≥1024px. LTF lo sustituye por 2fr 1fr, que
   reproduce exactamente la proporción 8/12 + 4/12 del tablero Ficha.dc.html.
   El grid mantiene un column-gap = --ltf-medianil para que las columnas
   internas se alineen a la retícula de 12 cols del layout global. */
@media (min-width: 901px) {
	.sgf-pdp--mitad div.product {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		column-gap: var(--ltf-medianil, 16px);
	}

	/* Columna de compra: 0 a la izquierda (el gap ya separa de la galería),
	   --ltf-margen (24px) a la derecha para que el texto no llegue al borde. */
	.sgf-pdp--mitad .summary.entry-summary {
		padding-inline: 0 var(--ltf-margen, 24px);
		padding-block-start: 24px;
	}
}

/* ── Galería: interno ─────────────────────────────────────────────────────────
   El padre pone height:100vh + sticky en la galería a ≥1024px.
   En LTF la galería también es sticky: el comprador ve la foto mientras
   lee el panel de compra. No se sobrescribe el comportamiento sticky;
   solo se ajusta el ancho de las miniaturas para que encajen con la
   nueva columna más ancha. */
@media (min-width: 901px) {
	.sgf-pdp--mitad .sgf-gallery__thumbs {
		left: var(--ltf-margen, 24px);
	}
}

/* ── ATC sticky mobile: skin LTF ────────────────────────────────────────────
   El padre (.sgf-sticky-atc): position fixed bottom 0, oculto a ≥1024px en
   .sgf-pdp--mitad. LTF refina la imagen y el padding iOS.
   El padre pone 48×48px y oculta la imagen a ≤639px; LTF usa 96px
   y siempre la muestra: en un zapato la foto es la identidad. */
.sgf-sticky-atc__image {
	width: 96px;
	height: 96px;
	object-fit: cover;
}

@media (max-width: 639px) {
	/* El padre oculta .sgf-sticky-atc__image aquí; LTF revierte. */
	.sgf-sticky-atc .sgf-sticky-atc__image {
		display: block;
	}
}

/* Safe area iOS: barra de acceso rápido ≈ 34px en modelos Face ID. */
.sgf-sticky-atc {
	padding-block-end: max(28px, env(safe-area-inset-bottom, 28px));
}

.sgf-sticky-atc__name {
	font-size: var(--sgf-text-sm, 13px);
	font-weight: 500;
	letter-spacing: -.01em;
}

.sgf-sticky-atc__price {
	font-size: var(--sgf-text-xs, 12px);
	color: var(--sgf-color-ink-2, #6b6460);
	font-weight: 400;
}

/* ── Estados de la rejilla de tallas (P19) ───────────────────────────────
   Tablero Ficha-Estados.dc.html: celda 44px, 14px; agotada = tachado +
   muted; seleccionada = fondo tinta. El padre pinta .sgf-size-grid con
   botones .sgf-size; la elegida lleva aria-checked="true" y la agotada
   .is-soldout. */

.sgf-size-grid {
	box-shadow: inset 1px 1px 0 var(--sgf-color-line, #dfdfde);
}

.sgf-size {
	height: 44px;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	box-shadow: inset -1px -1px 0 var(--sgf-color-line, #dfdfde);
	transition:
		background-color .15s cubic-bezier(.16, 1, .3, 1),
		color            .15s cubic-bezier(.16, 1, .3, 1);
}

.single-product .sgf-size:hover:not(.is-soldout):not([aria-checked="true"]) {
	background: var(--sgf-color-ink, #141212);
	color: var(--sgf-color-on-ink, #fbfbfa);
}

@media (prefers-reduced-motion: reduce) {
	.sgf-size { transition: none; }
}

.single-product .sgf-size.is-soldout {
	color: var(--sgf-color-ink-2, #6b6460);
	text-decoration: line-through;
	cursor: default;
}

.single-product .sgf-size[role="radio"][aria-checked="true"] {
	background: var(--sgf-color-ink, #141212);
	color: var(--sgf-color-on-ink, #fbfbfa);
}

/* ── Etiqueta de talla elegida ───────────────────────────────────────────
   «Talla: elige una» / «Talla: 42» */
.single-product .sgf-size-label {
	font-size: var(--sgf-text-sm, 13px);
	line-height: 1.4;
}

/* ── Botón ATC desactivado (sin variación elegida) ───────────────────────
   WooCommerce añade .disabled al botón cuando no hay talla seleccionada. */
.single-product .single_add_to_cart_button.button.disabled,
.single-product .single_add_to_cart_button.button[aria-disabled="true"] {
	background: var(--sgf-color-surface, #e8e8e6);
	color: var(--sgf-color-ink-2, #6b6460);
	cursor: not-allowed;
	pointer-events: none;
}

/* ── Botón sticky desactivado — espeja el estado del botón principal. */
/* Sin pointer-events:none: el click se reenvía al botón principal para */
/* que M3 muestre «Primero elige una talla» aunque el sticky esté inactivo. */
.ltf-barra-compra__boton .sgf-sticky-atc__btn[aria-disabled="true"] {
	background: var(--sgf-color-surface, #e8e8e6);
	color: var(--sgf-color-ink-2, #6b6460);
	cursor: not-allowed;
}

/* ── Estado «Añadido ✓» (P19) ────────────────────────────────────────────
   JS añade .ltf-is-added durante 1 200 ms tras sgf:added (ver ltf-ficha-estados.js).
   El padre ya cambia el texto; esta regla amplía el tracking del render. */
.single-product .single_add_to_cart_button.button.ltf-is-added {
	letter-spacing: .08em;
}

/* ── Panel de aviso de agotado ───────────────────────────────────────────
   El padre usa .sgf-notify-me como wrapper. Aparece cuando la variación
   elegida está sin stock: «La 37 no está ahora · avísame». */
.sgf-notify-me {
	margin-block-start: 16px;
	padding: 16px;
	background: var(--sgf-color-surface, #e8e8e6);
}

.sgf-notify-me__title {
	font-size: var(--sgf-text-xs, 12px);
	font-weight: 500;
	letter-spacing: var(--sgf-label-tracking, .02em);
	text-transform: var(--sgf-label-transform, uppercase);
	margin: 0 0 6px;
}

.sgf-notify-me__text {
	font-size: var(--sgf-text-sm, 13px);
	color: var(--sgf-color-ink-2, #6b6460);
	line-height: 1.5;
	margin: 0 0 12px;
}

.sgf-notify-me__form {
	display: flex;
	border-bottom: 1px solid var(--sgf-color-ink, #141212);
}

.sgf-notify-me__input {
	flex: 1;
	height: 48px;
	border: none;
	background: transparent;
	padding: 0;
	font: inherit;
	font-size: 14px;
	color: var(--sgf-color-ink, #141212);
}

.sgf-notify-me__input::placeholder {
	color: var(--sgf-color-ink-2, #6b6460);
}

.sgf-notify-me__submit {
	all: unset;
	cursor: pointer;
	font-size: var(--sgf-text-xs, 12px);
	font-weight: 500;
	letter-spacing: var(--sgf-label-tracking, .02em);
	text-transform: var(--sgf-label-transform, uppercase);
	white-space: nowrap;
}

/* ── P22: Galería en rejilla (sgf-gallery--grid) ──────────────────────────
   El padre activa .sgf-gallery--grid cuando el filtro sgf_gallery_layout
   devuelve 'grid'. El padre pone position:sticky + height:100vh en la
   galería del layout mitad; .sgf-gallery--grid neutraliza ese recorte. */

/* Neutralizar el sticky que el padre aplica a la columna de galería */
@media (min-width: 1024px) {
	.sgf-pdp--mitad .woocommerce-product-gallery.sgf-gallery--grid {
		position: static;
		height: auto;
	}
}

/* Con galería en rejilla la galería no es sticky, así que lo es el panel de compra.
   align-self:start es necesario: sin él el ítem se estira al alto del row y sticky no viaja. */
@media (min-width: 1024px) {
	.sgf-pdp--mitad .woocommerce-product-gallery.sgf-gallery--grid ~ .summary.entry-summary {
		position: sticky;
		top: var(--sgf-header-primary, 56px);
		align-self: start;
	}
}

/* Contenedor de la rejilla: 2 columnas, gap igual al medianil */
.sgf-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ltf-medianil, 16px);
}

/* Cada ítem: proporción 2:3 (retrato, igual que el carrusel original).
   position:relative para anclar la etiqueta «Ampliar +». */
.sgf-gallery-grid__item {
	position: relative;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	margin: 0;
}

/* La imagen llena el ítem con recorte centrado */
.sgf-gallery-grid__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* En móvil: carril de scroll horizontal, una imagen por vista */
@media (max-width: 767px) {
	.sgf-gallery-grid {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 0;
	}

	.sgf-gallery-grid::-webkit-scrollbar {
		display: none;
	}

	.sgf-gallery-grid__item {
		flex: 0 0 100%;
		scroll-snap-align: start;
	}
}

/* ── P20: Galería móvil (≤1023px) ─────────────────────────────────────────
   M-Ficha.dc.html: carril de scroll, aspect-ratio 3/4, object-fit cover.
   El padre usa height:auto + object-fit:contain; en móvil LTF lo convierte
   en recorte a proporción 3:4 para que el encuadre llene el ancho. */

@media (max-width: 1023px) {
	.sgf-pdp--mitad .woocommerce-product-gallery__image {
		aspect-ratio: 3 / 4;
	}

	.sgf-pdp--mitad .woocommerce-product-gallery__image img {
		height: 100%;
		object-fit: cover;
	}

	/* Título: 18 px en móvil (el padre pone 24 px; LTF escritorio: 20 px) */
	.single-product .product_title {
		font-size: 18px;
	}

	/* Precio: 15 px en móvil (LTF escritorio: 18 px) */
	.single-product .summary > .price,
	.single-product .entry-summary > .price {
		font-size: 15px;
	}
}

/* Dots de galería: barras horizontales en lugar de círculos ─────────────
   M-Ficha muestra rayas al pie de las fotos (flex:1, height:2px).
   El padre activa los dots a ≤767px; LTF los convierte en barras. */

@media (max-width: 767px) {
	.sgf-gallery__dots {
		gap: 4px;
		padding-inline: var(--ltf-margen);
	}

	.sgf-gallery__dot {
		flex: 1 1 0;
		width: auto;
		height: 20px;    /* área de toque mínima */
	}

	.sgf-gallery__dot::after {
		left: 0;
		top: 50%;
		transform: translateY(-50%);
		width: 100%;
		height: 2px;
		border-radius: 0;
		background: rgba(20, 18, 18, .2);
	}

	.sgf-gallery__dot.is-current::after {
		width: 100%;
		border-radius: 0;
		background: var(--sgf-color-ink, #141212);
	}
}

/* ── P21: Guía de tallas — cajón (sgf-size-guide) ─────────────────────────
   Tablero Ficha.dc.html: panel de cristal deslizante desde la derecha,
   cabecera de 60 px, tabla con separadores punteados, texto intro a 15 px.
   El padre ya pone el cajón, la animación y la semántica ARIA. LTF solo
   afina el fondo, la tipografía y los bordes de celda. */

/* Fondo cristal, coherente con el cajón de cesta de Ficha.dc.html */
.sgf-size-guide__panel {
	background: rgba(251, 251, 250, .86);
	-webkit-backdrop-filter: blur(40px) saturate(1.6);
	backdrop-filter: blur(40px) saturate(1.6);
}

/* Cabecera: 60 px de altura y 24 px de relleno lateral */
.sgf-size-guide__head {
	min-height: 60px;
	padding-inline: 24px;
}

/* Título: escala de etiqueta LTF (xs uppercase tracking) */
.sgf-size-guide__title {
	font-size: var(--sgf-text-xs, 12px);
	font-weight: 500;
	letter-spacing: var(--sgf-label-tracking, .02em);
	text-transform: var(--sgf-label-transform, uppercase);
}

/* Área de scroll: padding uniforme de 24 px */
.sgf-size-guide__scroll {
	padding: 24px;
}

/* Intro: 15 px y color tinta (el padre pone 13 px muted) */
.sgf-size-guide__intro p {
	font-size: 15px;
	line-height: 1.5;
	color: var(--sgf-color-ink, #141212);
	margin-bottom: 20px;
}

/* Tabla: 14 px y separadores punteados (el padre usa 12 px y solid) */
.sgf-size-guide__body table,
.sgf-size-guide__body .sgf-guide-table {
	font-size: 14px;
}

.sgf-size-guide__body th,
.sgf-size-guide__body td {
	border-bottom: 1px dotted var(--ltf-punteado, #e9e7e6);
}

/* ── Galería: sin «Ampliar +» ────────────────────────────────────────────
   El tablero ponía una píldora «Ampliar +» al pasar sobre cada foto y el
   padre abre la foto a pantalla completa. Sam, 11 nov 2026: «no me gusta
   que puedas ampliarlas». Fuera la píldora; la ampliación y el enlace de
   cada foto se quitan en functions.php (`ltf_sin_ampliar_fotos`). */

/* ── Focus-visible en interactivos de la ficha ─────────────────────────
   Tablero Ficha.dc.html: outline 2px solid #141212, offset 3px. */

.sgf-size:focus-visible,
.single-product .single_add_to_cart_button.button:focus-visible {
	outline: 2px solid var(--sgf-color-ink, #141212);
	outline-offset: 3px;
}

/* ── Títulos de sección below-the-fold ──────────────────────────────────────
   El padre pone 28px/36px weight 500 (looks) y 28px weight 500 (story h2).
   En LTF la escala máxima de texto es --sgf-text-xl (20px), que es también
   el título del producto. Un título de sección no debe superarlo; peso 400
   mantiene la jerarquía sin añadir contraste tipográfico innecesario. */
.sgf-looks__title,
.sgf-story h2 {
	font-size: var(--sgf-text-xl, 20px);
	font-weight: 400;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

@media (max-width: 1023px) {
	.sgf-looks__title,
	.sgf-story h2 {
		font-size: 18px;
	}
}

/* ── CTA de looks: tratamiento de etiqueta LTF ──────────────────────────────
   El padre pone 14px weight 500 sin caja alta, pill border-radius (999px).
   En LTF los botones de acción llevan el mismo tratamiento que el ATC:
   texto pequeño, mayúsculas, tracking. El pill se neutraliza: en LTF
   los botones de acción son rectos (igual que el ATC). */
.sgf-looks__cta {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: var(--sgf-label-tracking, .02em);
	text-transform: var(--sgf-label-transform, uppercase);
	border-radius: 0;
}

/* ── Fase B: retícula de 12 columnas en la ficha (delta 05) ─────────────────
   Batalla de especificidades contra el padre:
   · .sgf-pdp--mitad div.product          → [0,2,1] pone grid 1fr (móvil) y
                                             minmax(0,1fr) minmax(0,1fr) (≥1024).
   · .single-product div.product > .xxx  → [0,3,1] fija grid-column 1/2.
   · .sgf-pdp--mitad .woocommerce-…      → [0,2,1] fija margin:0 (aplasta sangra-izq).
   Nuestra arma: añadimos .ltf-ficha al selector de contenedor → [0,3,1]/[0,4,1]. */

/* Móvil: 4 columnas vía token (gana al [0,2,1] del padre) */
.sgf-pdp--mitad div.product.ltf-ficha {
	grid-template-columns: repeat(var(--ltf-cols, 4), minmax(0, 1fr));
	column-gap: var(--ltf-medianil, 8px);
}

/* Móvil: galería y compra a ancho completo (gana al [0,3,1] del padre) */
.sgf-pdp--mitad div.product.ltf-ficha > .ltf-ficha__galeria,
.sgf-pdp--mitad div.product.ltf-ficha > .ltf-ficha__compra {
	grid-column: 1 / -1;
}

/* Sangrado izquierdo: aplica en todos los breakpoints vía token.
   Anula el margin:0 del padre ([0,2,1]) tanto en móvil (16px) como en
   escritorio (24px). El validador (sección 3) espera izq=0 cuando el
   elemento tiene ltf-sangra-izq, sin distinción de breakpoint. */
.sgf-pdp--mitad div.product.ltf-ficha > .ltf-sangra-izq {
	margin-inline-start: calc(-1 * var(--ltf-margen, 16px));
}

@media (min-width: 901px) {
	/* Escritorio: 12 columnas; anula el 1fr/1fr del padre */
	.sgf-pdp--mitad div.product.ltf-ficha {
		grid-template-columns: repeat(var(--ltf-cols, 12), minmax(0, 1fr));
		column-gap: var(--ltf-medianil, 16px);
	}

	/* Galería: columnas 1–8, sangrado izquierda.
	   Deshacemos el sticky/100vh que el padre pone en la galería. */
	.sgf-pdp--mitad div.product.ltf-ficha > .ltf-ficha__galeria {
		grid-column: 1 / span 8;
		align-self: start;
		position: static;
		height: auto;
	}

	/* Columna de compra: columnas 9–12, pegajosa */
	.sgf-pdp--mitad div.product.ltf-ficha > .ltf-ficha__compra {
		grid-column: 9 / span 4;
		position: sticky;
		top: 0;
		padding-block: 24px 32px;
		padding-inline: 0;
		align-self: start;
		min-height: unset;
		display: block;
	}
}

/* ── Fase C: Zona de compra ───────────────────────────────────────────────── */

/* Línea de origen */
.ltf-origen {
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--sgf-color-ink-2, #6b6460);
	margin: 0 0 20px;
}

/* Versiones nav */
.ltf-versiones {
	border-top: 1px dotted var(--ltf-punteado, #e9e7e6);
	padding: 16px 0;
	margin-bottom: 8px;
}

.ltf-versiones__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 10px;
}

.ltf-versiones__label {
	font-size: 14px;
	color: var(--sgf-color-ink, #141212);
}

.ltf-versiones__count {
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--sgf-color-ink-2, #6b6460);
	white-space: nowrap;
}

.ltf-versiones__nav {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.ltf-versiones__item {
	display: block;
	width: 64px;
	flex-shrink: 0;
	text-decoration: none;
}

.ltf-versiones__item img {
	width: 64px;
	height: 78px;
	object-fit: cover;
	display: block;
	background: var(--sgf-color-surface, #e8e8e6);
}

/* Versión actual: outline como en el diseño */
.ltf-versiones__item--actual img {
	outline: 1px solid var(--sgf-color-ink, #141212);
	outline-offset: 2px;
}

/* Botón ATC: «Añadir a tus toys» */
.ltf-ficha__compra .single_add_to_cart_button {
	height: 48px;
	text-transform: uppercase;
	letter-spacing: .02em;
	border-radius: 0;
}

.ltf-ficha__compra .single_add_to_cart_button:hover {
	opacity: .8;
}

/* Estado aria-live de M3 */
.ltf-ficha__compra [role="status"] {
	font-size: 13px;
	color: var(--sgf-color-ink-2, #6b6460);
	min-height: 18px;
	margin: 6px 0 0;
}

/* ── Fila de plazo (fase D) ─────────────────────────────────────────────── */
.ltf-plazo {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	margin: 20px 0 4px;
}

.ltf-plazo__texto {
	font-size: 13px;
	color: var(--sgf-color-ink-2, #6b6460);
}

.ltf-plazo__precio {
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* ── Paneles acordeón (fase E) ───────────────────────────────────────────── */

/* Contenedor */
.ltf-ficha .sgf-pdp-panels {
	margin-top: 24px;
}

/* Cada panel: separador punteado arriba; el último también abajo. El padre
   pone además una raya sólida debajo de cada uno, y sumada al punteado del
   siguiente se veía más oscura (Sam, 16 nov 2026): fuera. */
.ltf-ficha .sgf-pdp-panel {
	border-top: 1px dotted var(--ltf-punteado, #e9e7e6);
	border-bottom: 0;
}

.ltf-ficha .sgf-pdp-panel:last-child {
	border-bottom: 1px dotted var(--ltf-punteado, #e9e7e6);
}

.ltf-ficha .sgf-pdp-panel__heading {
	margin: 0;
}

/* Botón: 52 px alto, 14 px, sin mayúsculas. */
.ltf-ficha .sgf-pdp-panel__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 52px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: var(--tinta, #2a2825);
	text-align: left;
}

/* Ocultar el chevron del padre. */
.ltf-ficha .sgf-pdp-panel__chevron {
	display: none;
}

/* Icono +/− en el lado derecho (no está en el árbol de accesibilidad). */
.ltf-ficha .sgf-pdp-panel__toggle::after {
	content: '+';
	flex-shrink: 0;
	margin-left: auto;
	padding-left: 12px;
	font-size: 20px;
	font-weight: 300;
	line-height: 1;
}

.ltf-ficha .sgf-pdp-panel__toggle[aria-expanded="true"]::after {
	content: '\2212'; /* − minus sign */
}

/* Cuerpo del panel: animación con grid-template-rows.
   El atributo [hidden] por defecto hace display:none; se sobreescribe
   para que la transición CSS pueda correr. */
.ltf-ficha .sgf-pdp-panel__body {
	display: grid;
	grid-template-rows: 0fr;
	overflow: hidden;
	transition: grid-template-rows var(--d-600, 600ms) var(--ease-settle, cubic-bezier(.25,.46,.45,.94));
}

.ltf-ficha .sgf-pdp-panel__body[hidden] {
	display: grid !important;
	visibility: hidden;
	pointer-events: none;
}

.ltf-ficha .sgf-pdp-panel__body.ltf-panel-open {
	grid-template-rows: 1fr;
	visibility: visible;
	pointer-events: auto;
	transition-duration: var(--d-600, 600ms);
}

.ltf-ficha .sgf-pdp-panel__body.ltf-panel-closing {
	grid-template-rows: 0fr;
	transition-duration: var(--d-300, 300ms);
}

/* El div envolvente necesita min-height:0 para que el collapse funcione. */
.ltf-ficha .sgf-pdp-panel__body > * {
	min-height: 0;
	overflow: hidden;
}

/* Contenido del panel. */
.ltf-ficha .sgf-pdp-panel__prose {
	padding: 0 0 18px;
}

.ltf-ficha .sgf-pdp-panel__prose p {
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
	color: var(--tinta, #2a2825);
}

.ltf-ficha .sgf-pdp-panel__prose p + p {
	margin-top: 10px;
	color: var(--tinta-2, #6b6460);
}

/* ── Guía de tallas: ancho del cajón en LTF (fase E) ──────────────────────
   Cuatro columnas de la retícula más el margen. Esa cuenta solo vale en
   escritorio: a 390 daba 151 px, un cajón de un tercio de pantalla con la
   tabla a dos palabras por línea. Nunca menos que el ancho del padre
   (440 px, o la pantalla entera si es más estrecha). */
.sgf-size-guide__panel {
	width: max(calc((100vw - 224px) / 3 + 96px), min(440px, 100vw));
}

/* ══ Bloques de SGF bajo la compra · piel LTF (canvas v78) ══════════════ */

/* Los nombres del sistema de diseño (_canvas-ref/design-system/tokens.css).
   Todo lo que sigue se escribió con ellos y NADIE los definía: cada
   `var(--espacio-160)` valía nada, y de ahí salían los bloques pegados unos
   a otros, la barra fija sin alto y el cajón del look sin fondo. Los colores
   apuntan a los del tema, para que sigan saliendo del panel. */
.single-product {
  --tinta: var(--sgf-color-text); --tinta-2: var(--sgf-color-muted);
  --papel: var(--sgf-color-bg); --piedra: var(--sgf-color-bg-alt); --linea: var(--sgf-color-border);
  --foco: var(--tinta); --radio-0: 0;
  --espacio-4: 4px; --espacio-8: 8px; --espacio-12: 12px; --espacio-16: 16px; --espacio-24: 24px;
  --espacio-48: 48px; --espacio-72: 72px; --espacio-88: 88px; --espacio-112: 112px;
  --espacio-160: 160px; --espacio-200: 200px;
  --alto-control: 44px; --alto-barra: 60px;
  --d-150: 150ms; --d-300: 300ms; --d-600: 600ms; --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --velo: rgba(20, 18, 18, 0.12); --linea-cristal: rgba(20, 18, 18, 0.08);
  --cristal: rgba(251, 251, 250, 0.72); --cristal-cajon: rgba(251, 251, 250, 0.86);
  --desenfoque-velo: blur(20px) saturate(1.2); --desenfoque-panel: blur(40px) saturate(1.6);
  --desenfoque-cristal: blur(24px) saturate(1.6);
}

/* — Común: cabecera de sección y carril sobre la retícula — */
.single-product :is(.sgf-story, .sgf-looks, .sgf-faq, .sgf-reco) { padding-top: var(--espacio-160); }
.single-product :is(.sgf-story__head, .sgf-reco__head, .sgf-looks__title) { grid-column: 1 / -1; }
.single-product :is(.sgf-story__head, .sgf-reco__head) {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--espacio-24);
  margin-bottom: var(--espacio-16);
}
.single-product :is(.sgf-story__title, .sgf-reco__title, .sgf-looks__title) {
  margin: 0; font-size: 12px; line-height: 1.3; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase;
}
.single-product .sgf-faq .sgf-faq__titulo {
  margin: 0; font-size: 12px; line-height: 1.3; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase;
}
.single-product :is(.sgf-story__nav, .sgf-reco__nav) { display: flex; gap: var(--espacio-24); }
.single-product :is(.sgf-story__arrow, .sgf-reco__arrow) {
  all: unset; cursor: pointer; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase;
  min-height: var(--alto-control); display: inline-flex; align-items: center;
}
.single-product :is(.sgf-story__arrow, .sgf-reco__arrow)[disabled] { color: var(--tinta-2); cursor: default; }
.single-product :is(.sgf-story__arrow, .sgf-reco__arrow):focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
/* Las flechas de «Cómo está hecho» las crea el script del padre con un
   chevrón; las de «Más de la colección» dicen «Anterior / Siguiente →»
   (filtro sgf_carousel_arrow_markup). Las dos, igual. El nombre para el
   lector de pantalla es su aria-label. */
.single-product .sgf-story__arrow svg { display: none; }
.single-product .sgf-story__arrow[data-dir="prev"]::before { content: "Anterior"; }
.single-product .sgf-story__arrow[data-dir="next"]::before { content: "Siguiente →"; }
.single-product .sgf-story__nav { display: none; }
.single-product .sgf-story__inner:has(.sgf-story__rail > :nth-child(5)) .sgf-story__nav { display: flex; }

/* Carril: cada elemento mide exactamente 3 columnas */
.single-product :is(.sgf-story__rail, .sgf-reco__grid) {
  grid-column: 1 / -1; display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * var(--ltf-medianil)) / 4);
  column-gap: var(--ltf-medianil); row-gap: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0; padding: 0; list-style: none; flex-wrap: nowrap;
}
.single-product :is(.sgf-story__rail, .sgf-reco__grid)::-webkit-scrollbar { display: none; }
.single-product :is(.sgf-story__rail, .sgf-reco__grid) > * { scroll-snap-align: start; min-width: 0; margin: 0; flex-basis: auto; }

/* — 7 · Cómo está hecho — */
.single-product .sgf-story__rail > .wp-block-column { border-top: 1px dotted var(--ltf-punteado, #e9e7e6); padding-top: var(--espacio-16); }
.single-product .sgf-story__rail .wp-block-image { margin: 0 0 var(--espacio-16); aspect-ratio: 2 / 3; background: var(--piedra); overflow: hidden; }
.single-product .sgf-story__rail .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.single-product .sgf-story__rail h3 { margin: 0; font-size: 12px; line-height: 1.3; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; }
.single-product .sgf-story__rail p { margin: var(--espacio-8) 0 0; max-width: 40ch; font-size: 14px; line-height: 1.55; color: var(--tinta-2); }
.single-product .sgf-story__quote.wp-block-media-text {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: end;
  margin-top: 96px;
}
.single-product .sgf-story__quote .wp-block-media-text__media { grid-column: 1 / span 5; grid-row: 1; margin: 0; align-self: start; aspect-ratio: 2 / 3; background: var(--piedra); overflow: hidden; }
.single-product .sgf-story__quote .wp-block-media-text__media img { width: 100%; height: 100%; object-fit: cover; }
.single-product .sgf-story__quote .wp-block-media-text__content { grid-column: 7 / span 5; grid-row: 1; padding: 0; }
.single-product .sgf-story__quote .wp-block-media-text__content p { margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.5; }
.single-product .sgf-story__quote .wp-block-media-text__content p + p { margin-top: var(--espacio-16); font-size: 12px; line-height: 1.3; letter-spacing: 0.02em; text-transform: uppercase; color: var(--tinta-2); }

/* — 8 · Así se llevan — */
.single-product .sgf-looks__title { margin-bottom: var(--espacio-16); }
.single-product .sgf-looks__grid { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: var(--espacio-48); }
.single-product .sgf-looks__item { grid-column: span 4; min-width: 0; }
.single-product .sgf-looks__photo { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: var(--piedra); }
.single-product .sgf-looks__pie {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--espacio-12);
  margin-top: var(--espacio-12); font-size: 12px; line-height: 1.3; letter-spacing: 0.02em; text-transform: uppercase;
}
.single-product .sgf-looks__name { margin: 0; }
.single-product .sgf-looks__cta {
  all: unset; cursor: pointer; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px;
  transition: background-size var(--d-600) var(--ease-settle);
}
.single-product .sgf-looks__cta:hover { background-size: 0 1px; background-position: 100% 100%; }
.single-product .sgf-looks__cta svg { display: none; }
.single-product .sgf-looks__cta:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }

/* Cajón del look */
.sgf-looks__backdrop { position: fixed; inset: 0; background: var(--velo); -webkit-backdrop-filter: var(--desenfoque-velo); backdrop-filter: var(--desenfoque-velo); }
.sgf-looks__dialog {
  position: fixed; top: 0; right: 0; bottom: 0; width: calc((100vw - 224px) / 3 + 96px); max-width: 100%;
  display: flex; flex-direction: column; overflow-y: auto; border-radius: var(--radio-0);
  background: var(--cristal-cajon); -webkit-backdrop-filter: var(--desenfoque-panel); backdrop-filter: var(--desenfoque-panel);
  transform: translateX(100%); transition: transform var(--d-300) var(--ease-settle);
}
.sgf-looks__modal.is-open .sgf-looks__dialog { transform: none; transition-duration: var(--d-600); }
.sgf-looks__cabecera {
  flex: none; height: var(--alto-barra); display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--ltf-margen); border-bottom: 1px solid var(--linea);
}
.sgf-looks__dialog-title { margin: 0; font-size: 12px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; }
.sgf-looks__close { all: unset; cursor: pointer; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; min-height: var(--alto-control); display: inline-flex; align-items: center; }
.sgf-looks__close svg { display: none; }
.sgf-looks__list { padding: var(--espacio-24) var(--ltf-margen) 0; }
.sgf-look-piece {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--espacio-16); align-items: start;
  padding: var(--espacio-16) 0; border-top: 1px dotted var(--ltf-punteado, #e9e7e6);
}
.sgf-look-piece:last-child { border-bottom: 1px dotted var(--ltf-punteado, #e9e7e6); }
.sgf-look-piece__photo { display: block; width: 96px; aspect-ratio: 4 / 5; background: var(--piedra); overflow: hidden; }
.sgf-look-piece__photo img { width: 100%; height: 100%; object-fit: cover; }
.sgf-looks__stage { position: relative; padding: var(--espacio-24) var(--ltf-margen); }
.sgf-looks__stage-photo { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: var(--piedra); }
.sgf-looks__arrow { all: unset; cursor: pointer; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; min-height: var(--alto-control); }
.sgf-looks__arrow svg { display: none; }
.sgf-looks__counter { font-size: 12px; color: var(--tinta-2); font-variant-numeric: tabular-nums; }

/* — 9 · Preguntas — */
.single-product .sgf-faq .sgf-faq__titulo { grid-column: 1 / span 3; padding-top: 18px; }
.single-product .sgf-faq__cuerpo { grid-column: 5 / span 8; border-bottom: 1px dotted var(--ltf-punteado, #e9e7e6); }
.single-product .sgf-faq__cuerpo details { border-top: 1px dotted var(--ltf-punteado, #e9e7e6); }
.single-product .sgf-faq__cuerpo summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  min-height: 52px; font-size: 14px;
}
.single-product .sgf-faq__cuerpo summary::-webkit-details-marker { display: none; }
.single-product .sgf-faq__cuerpo summary::after { content: "+"; }
.single-product .sgf-faq__cuerpo details[open] summary::after { content: "−"; }
.single-product .sgf-faq__cuerpo summary:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
.single-product .sgf-faq__cuerpo details > :not(summary) { padding: 0 0 18px; }
.single-product .sgf-faq__cuerpo details > :not(summary) p { margin: 0; max-width: 64ch; font-size: 14px; line-height: 1.5; color: var(--tinta-2); }

/* — 10 · Más de la colección: la tarjeta es .ltf-card del catálogo, sin cambios — */

/* — 11 · Versiones — */
.single-product .sgf-colorways--single { border-top: 1px dotted var(--ltf-punteado, #e9e7e6); padding: var(--espacio-16) 0; }
.single-product .sgf-colorways__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--espacio-16); margin-bottom: var(--espacio-12); font-size: 14px; }
.single-product .sgf-colorways__count { color: var(--tinta-2); }
.single-product .sgf-colorways__list { display: flex; flex-wrap: wrap; gap: 6px; }
.single-product .sgf-colorways--single .sgf-colorway {
  display: block; width: 64px; height: 78px; overflow: hidden; background: var(--piedra); border-radius: var(--radio-0);
  outline: 1px solid transparent; outline-offset: 2px; transition: outline-color var(--d-150) var(--ease-settle);
}
.single-product .sgf-colorways--single .sgf-colorway img { width: 100%; height: 100%; object-fit: cover; }
.single-product .sgf-colorways--single .sgf-colorway:hover { outline-color: var(--tinta-2); }
.single-product .sgf-colorways--single .sgf-colorway[aria-current="page"] { outline-color: var(--tinta); }
.single-product .sgf-colorways--single .sgf-colorway:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }

/* — Móvil (4 / 8 / 16) — */
@media (max-width: 900px) {
  .single-product :is(.sgf-story, .sgf-looks, .sgf-faq, .sgf-reco) { padding-top: var(--espacio-88); }
  .single-product :is(.sgf-story__rail, .sgf-reco__grid) { grid-auto-columns: calc((100% - var(--ltf-medianil)) / 2); }
  /* En móvil caben dos tarjetas: con tres o más, las flechas de «Cómo está
     hecho» se ven, como en los demás carriles. Sin ellas nadie sabía que
     había más al lado (Sam, 17 nov 2026). */
  .single-product .sgf-story__inner:has(.sgf-story__rail > :nth-child(3)) .sgf-story__nav { display: flex; }
  .single-product .sgf-story__quote.wp-block-media-text { margin-top: var(--espacio-48); }
  .single-product .sgf-story__quote .wp-block-media-text__media,
  .single-product .sgf-story__quote .wp-block-media-text__content { grid-column: 1 / -1; grid-row: auto; }
  .single-product .sgf-story__quote .wp-block-media-text__content { margin-top: var(--espacio-24); }
  .single-product .sgf-looks__item,
  .single-product .sgf-faq__cuerpo { grid-column: 1 / -1; }
  .single-product .sgf-faq .sgf-faq__titulo { grid-column: 1 / -1; padding-top: 0; margin-bottom: var(--espacio-16); }
}

@media (prefers-reduced-motion: reduce) {
  .sgf-looks__dialog, .single-product .sgf-looks__cta,
  .single-product .sgf-colorways--single .sgf-colorway { transition: none; }
  .single-product :is(.sgf-story__rail, .sgf-reco__grid) { scroll-behavior: auto; }
}

/* — Barra fija LTF — */
.sgf-sticky-atc.ltf-reticula {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  align-items: center; height: var(--alto-barra);
  background: var(--cristal); -webkit-backdrop-filter: var(--desenfoque-cristal); backdrop-filter: var(--desenfoque-cristal);
  border-top: 1px solid var(--linea-cristal);
  transform: translateY(100%); transition: transform var(--d-300) var(--ease-settle);
  visibility: hidden;
}
.sgf-sticky-atc.ltf-reticula[aria-hidden="false"] { transform: translateY(0); visibility: visible; }
.ltf-barra-compra__producto { grid-column: 1 / span 4; display: flex; align-items: center; gap: var(--espacio-16); min-width: 0; }
.sgf-sticky-atc .sgf-sticky-atc__image { flex: none; width: 40px; height: 50px; object-fit: cover; background: var(--piedra); }
.sgf-sticky-atc .sgf-sticky-atc__meta { min-width: 0; }
.sgf-sticky-atc .sgf-sticky-atc__name { display: block; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgf-sticky-atc .sgf-sticky-atc__price { display: block; font-size: 12px; color: var(--tinta-2); }
.ltf-barra-compra__plazo { grid-column: 7 / span 3; font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--tinta-2); text-align: right; }
.ltf-barra-compra__boton { grid-column: 10 / span 3; display: flex; align-items: center; justify-content: flex-end; }
.ltf-barra-compra__boton .sgf-sticky-atc__btn { width: 100%; }

/* ══ fase-G: Galería carousel en móvil + barra fija inferior ═════════════════
   M-Ficha.dc.html (P20, 390 × 844 px): carousel scroll-snap, aspect 3:4,
   dots solapados sobre la foto, barra fija de 2 columnas. */

@media (max-width: 767px) {
  /* ── Galería: aspect-ratio 3:4 y scroll contenido ─── */
  .sgf-gallery--grid .sgf-gallery-grid__item { aspect-ratio: 3 / 4; }
  .sgf-gallery--grid .sgf-gallery-grid { overscroll-behavior-x: contain; }

  /* Contenedor relativo para anclar los dots */
  .woocommerce-product-gallery.sgf-gallery--grid { position: relative; }

  /* ── Dots (inyectados por JS) ─── */
  .ltf-gallery-dots {
    position: absolute;
    left: var(--ltf-margen, 16px); right: var(--ltf-margen, 16px); bottom: 12px;
    display: flex; gap: 4px; pointer-events: none;
  }
  .ltf-gallery-dot {
    flex: 1; height: 2px;
    background: color-mix(in srgb, var(--tinta, #141212) 20%, transparent);
    transition: background var(--d-300, .3s) var(--ease-settle, ease);
  }
  .ltf-gallery-dot.is-active { background: var(--tinta, #141212); }

  /* ── Barra fija inferior en móvil ───
     A la izquierda el nombre, como texto; a la derecha un solo botón
     (Sam, 17 nov 2026). */
  .sgf-sticky-atc.ltf-reticula {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); /* el botón, ancho fijo: no salta al elegir talla */
    column-gap: var(--espacio-8, 8px);
    padding: 12px var(--ltf-margen, 16px) 28px;
    height: auto;
    background: var(--papel, #fbfbfa);
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border-top: 1px solid var(--linea, #dfdfde);
    align-items: stretch;
  }
  .ltf-barra-compra__plazo,
  .sgf-sticky-atc .sgf-sticky-atc__image,
  .sgf-sticky-atc .sgf-sticky-atc__price { display: none; }
  .ltf-barra-compra__producto { grid-column: auto; display: flex; align-items: center; min-width: 0; }
  .sgf-sticky-atc .sgf-sticky-atc__name {
    white-space: normal; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-height: 1.35;
  }
  .ltf-barra-compra__boton { grid-column: auto; display: flex; align-items: stretch; }
  .ltf-barra-compra__boton .sgf-sticky-atc__btn {
    width: 100%; height: 48px; padding: 0 12px; white-space: nowrap;
    display: flex; align-items: center; justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ltf-gallery-dot { transition: none; }
}

/* ── Ajuste al tablero Ficha (medidas/Ficha.json, nodos 33-85) ──────────────
   Título y precio en una fila; tallas en una sola fila de celdas rectas;
   botón de compra de 48px. */
.ltf-ficha__titulo {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
}

.single-product .ltf-ficha__titulo .product_title {
	margin: 0;
}

.single-product .ltf-ficha__titulo .price {
	flex-shrink: 0;
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	white-space: nowrap;
}

.single-product .sgf-size-grid {
	grid-template-columns: none;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	border-radius: 0;
}

.single-product .single_add_to_cart_button.button {
	height: 48px;
	font-size: 12px;
	font-weight: 400;
}

/* ══ Bloques bajo la compra: ajuste al tablero Ficha (medidas/Ficha.json) ══
   Lo de arriba daba por hecha una retícula que el padre deshacía: su
   `.sgf-story__inner` es flex en columna, sus carriles traen columnas
   fijas y cada sección su propio margen. Aquí se pone cada cosa en la
   medida del tablero (1440: margen 24, columna 101,33, medianil 16). */

/* Entre secciones, 160 por arriba y nada más: sin los márgenes del padre. */
.single-product :is(.sgf-story, .sgf-looks, .sgf-faq, .sgf-reco) { margin-block: 0; padding-bottom: 0; overflow: visible; }
/* Antes del pie, 200 (112 en móvil). El padre reserva además 88 al final
   del contenido para que la barra fija no tape lo último; aquí lo último
   es el pie, que va detrás de esa reserva, así que solo sumaba un hueco. */
.single-product .sgf-reco { padding-bottom: var(--espacio-200); }
.single-product.sgf-has-sticky-atc .sgf-site-content { padding-bottom: 0; }

/* La retícula de 12 manda en los cuatro bloques. */
.single-product :is(.sgf-story__inner, .sgf-looks__inner, .sgf-faq__inner).ltf-reticula {
  display: grid; grid-template-columns: repeat(var(--ltf-cols), minmax(0, 1fr)); gap: 0 var(--ltf-medianil);
  max-width: none; margin-inline: 0; padding-inline: var(--ltf-margen);
}
.single-product :is(.sgf-story__inner, .sgf-faq__inner).ltf-reticula > * { max-width: none; }

/* Carriles: una fila de piezas de 3 columnas, sin las columnas fijas del padre. */
.single-product :is(.sgf-story__rail, .sgf-reco__grid.products) {
  grid-template-columns: none; gap: 0 var(--ltf-medianil); padding-inline: 0; scroll-padding-left: 0;
}
.single-product .sgf-story__rail { align-items: start; }

/* — Cómo está hecho — */
.single-product .sgf-story__head { margin-bottom: var(--espacio-16); }
.single-product .sgf-story .sgf-story__title { margin: 0; font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; }
.single-product .sgf-story__rail > .wp-block-column { flex: none; }
.single-product .sgf-story__rail .wp-block-column .wp-block-image { margin: 0 0 var(--espacio-16); }
.single-product .sgf-story__rail .wp-block-column img { aspect-ratio: auto; background: none; }
.single-product .sgf-story__rail .wp-block-column h3 { margin: 0; font-family: inherit; font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; }
.single-product .sgf-story__rail .wp-block-column p { margin: var(--espacio-8) 0 0; max-width: 40ch; font-size: 14px; line-height: 1.55; color: var(--tinta-2); }
/* Sin testimonio no hay cita: queda la foto sola, en 5 columnas. */
.single-product .sgf-story__foto {
  grid-column: 1 / span 5; margin: 96px 0 0; aspect-ratio: 2 / 3; overflow: hidden; background: var(--piedra);
}
.single-product .sgf-story__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* — Así se llevan — */
.single-product .sgf-looks .sgf-looks__title { grid-column: 1 / span 8; grid-row: 1; margin: 0 0 var(--espacio-16); font-family: inherit; font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; }
.single-product .sgf-looks__count {
  grid-column: 9 / -1; grid-row: 1; justify-self: end; margin: 0; max-width: none;
  font-size: 12px; line-height: 16px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--tinta-2);
}
.single-product .sgf-looks__grid { gap: var(--espacio-48) var(--ltf-medianil); }
.single-product .sgf-looks__item { position: static; }
.single-product .sgf-looks__pie { align-items: center; line-height: 16px; }
.single-product .sgf-looks__pie .sgf-looks__name { max-width: none; font-size: 12px; line-height: 16px; }
/* El botón deja de flotar sobre la foto: va en el pie, a la derecha. */
.single-product .sgf-looks__pie .sgf-looks__cta { position: static; inset: auto; transform: none; margin: 0; white-space: nowrap; line-height: 16px; }

/* Cajón del look (tablero Ficha, estado «lookOpen»).
   El diálogo del padre es una ventana centrada de dos columnas; aquí es un
   cajón a la derecha, a toda la altura: cabecera de 60, la pieza y debajo
   la foto con «Anterior · 1 / 3 · Siguiente →». Sin envoltorios nuevos:
   el propio diálogo es la rejilla. */
.single-product .sgf-looks__modal { display: block; padding: 0; }
.single-product .sgf-looks__modal .sgf-looks__dialog {
  position: fixed; inset: 0 0 0 auto; z-index: 1;
  width: calc((100vw - 224px) / 3 + 96px); max-width: 100%; height: auto; max-height: none;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: var(--alto-barra) auto auto; align-content: start;
  overflow-x: hidden; overflow-y: auto; transform: translateX(100%);
}
.single-product .sgf-looks__modal.is-open .sgf-looks__dialog { transform: none; }
.single-product .sgf-looks__dialog-title {
  grid-column: 1; grid-row: 1; align-self: stretch; display: flex; align-items: center; min-width: 0;
  margin: 0; padding-left: var(--ltf-margen); border-bottom: 1px solid var(--linea);
  font-family: inherit; font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase;
}
.single-product .sgf-looks__dialog .sgf-looks__close {
  position: static; grid-column: 2; grid-row: 1; align-self: stretch; width: auto; height: auto;
  padding: 0 var(--ltf-margen); border-radius: 0; background: none; border-bottom: 1px solid var(--linea);
  font-size: 12px; line-height: 16px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--tinta);
}
.single-product .sgf-looks__dialog .sgf-looks__list { grid-column: 1 / -1; grid-row: 2; display: block; overflow: visible; padding: var(--espacio-24) var(--ltf-margen) 0; }
.single-product .sgf-looks__dialog .sgf-looks__list::before {
  content: "En el look"; display: block; margin: 0 0 var(--espacio-12);
  font-size: 12px; line-height: 16px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--tinta-2);
}
.single-product .sgf-look-piece { grid-template-columns: 96px minmax(0, 1fr); gap: var(--espacio-16); padding: var(--espacio-16) 0; border-top: 1px dotted var(--ltf-punteado, #e9e7e6); }
.single-product .sgf-look-piece + .sgf-look-piece { border-top: 1px dotted var(--ltf-punteado, #e9e7e6); }
.single-product .sgf-look-piece:first-child { padding-top: var(--espacio-16); }
.single-product .sgf-look-piece__photo img { aspect-ratio: auto; }
.single-product .sgf-look-piece__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--espacio-16); row-gap: 0; align-items: start; }
.single-product .sgf-look-piece__name { grid-column: 1; grid-row: 1; font-family: inherit; font-size: 14px; line-height: 17px; font-weight: 400; }
.single-product .sgf-look-piece__body .sgf-product-card__price { grid-column: 2; grid-row: 1; margin: 0; font-size: 14px; line-height: 17px; font-variant-numeric: tabular-nums; }
.single-product .sgf-look-piece__sub { grid-column: 1 / -1; grid-row: 2; margin: 6px 0 0; max-width: none; font-family: inherit; font-size: 12px; line-height: 16px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--tinta-2); }
.single-product .sgf-look-piece__buy {
  grid-column: 1 / -1; grid-row: 3; justify-self: start; margin-top: 14px; padding-bottom: 2px;
  font-family: inherit; font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.single-product .sgf-looks__dialog .sgf-looks__stage {
  grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  padding: var(--espacio-24) var(--ltf-margen); background: none; aspect-ratio: auto;
}
.single-product .sgf-looks__dialog .sgf-looks__stage-photo { grid-column: 1 / -1; grid-row: 1; height: auto; }
.single-product .sgf-looks__dialog .sgf-looks__arrow {
  position: static; transform: none; grid-row: 2; width: auto; height: var(--alto-control); border-radius: 0; background: none;
  font-size: 12px; line-height: 16px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--tinta);
}
.single-product .sgf-looks__dialog .sgf-looks__arrow--prev { grid-column: 1; }
.single-product .sgf-looks__dialog .sgf-looks__arrow--next { grid-column: 3; }
.single-product .sgf-looks__dialog .sgf-looks__counter {
  position: static; grid-column: 2; grid-row: 2; justify-self: center; padding: 0; border-radius: 0; background: none;
  font-family: inherit; font-size: 12px; line-height: 16px; letter-spacing: 0.02em; color: var(--tinta-2);
}
.single-product .sgf-looks__dialog :is(.sgf-looks__close, .sgf-looks__arrow, .sgf-look-piece__buy):focus-visible { outline: 2px solid var(--foco); outline-offset: -2px; }
@media (max-width: 900px) {
  .single-product .sgf-looks__modal .sgf-looks__dialog { width: 100%; }
}

/* — Preguntas — */
.single-product .sgf-faq .sgf-faq__titulo { grid-column: 1 / span 3; font-family: inherit; line-height: 16px; }
.single-product .sgf-faq .sgf-faq__cuerpo { grid-column: 5 / span 8; margin: 0; }
.single-product .sgf-faq__cuerpo details { margin: 0; padding: 0; }
.single-product .sgf-faq__cuerpo summary { padding: 0; line-height: 1.2; font-weight: 400; }

/* — Más de la colección — */
.single-product .sgf-reco .sgf-reco__head { padding-inline: 0; align-items: center; height: 16px; margin-bottom: var(--espacio-16); }
.single-product .sgf-reco .sgf-reco__title { font-family: inherit; line-height: 16px; }
.single-product .sgf-reco .sgf-reco__nav { gap: var(--espacio-24); }
/* 16 de alto en la línea del título; los 44 de toque se dan sin moverla. */
.single-product .sgf-reco .sgf-reco__arrow { width: auto; height: auto; border: 0; border-radius: 0; background: none; line-height: 16px; margin-block: -14px; }

/* La tarjeta del carril (tablero Ficha, nodos «Más de la colección»):
   foto 4:5, nombre y precio en una fila a 14, línea 2 a 12 en mayúsculas
   y las miniaturas de versión debajo, de 32 × 40. */
.single-product .sgf-reco .ltf-card { display: block; }
.single-product .sgf-reco .ltf-card__body { padding-block-start: var(--espacio-12); row-gap: 4px; }
.single-product .sgf-reco .ltf-card__title { grid-column: 1; grid-row: 1; font-size: 14px; line-height: 17px; font-weight: 400; letter-spacing: 0; }
.single-product .sgf-reco .ltf-card__price { grid-column: 2; grid-row: 1; font-size: 14px; line-height: 17px; }
.single-product .sgf-reco .ltf-card__line2 { grid-column: 1 / -1; grid-row: 2; margin: 0; max-width: none; font-size: 12px; line-height: 16px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--tinta-2); }
.single-product .sgf-reco .ltf-card .sgf-colorways--card { display: flex; flex-wrap: wrap; gap: var(--espacio-12); margin: var(--espacio-12) 0 0; overflow: visible; }
/* El contorno de la miniatura actual sale 3px de su caja y el carril, que
   desplaza, lo recortaba por la izquierda y por abajo. Se le dan esos 3px
   por dentro y se le quitan por fuera: las tarjetas no se mueven. */
.single-product .sgf-reco__grid.products { padding: 3px; margin: -3px; scroll-padding-inline: 3px; }
.single-product .sgf-reco .ltf-card .sgf-colorways--card .sgf-colorway {
  position: relative; display: block; width: 32px; height: 40px; border: 0; border-radius: 0; background: var(--piedra);
  outline: 1px solid transparent; outline-offset: 2px; transition: outline-color var(--d-150) var(--ease-settle);
}
.single-product .sgf-reco .ltf-card .sgf-colorways--card .sgf-colorway::before { content: ""; position: absolute; inset: -2px -6px; }
.single-product .sgf-reco .ltf-card .sgf-colorways--card .sgf-colorway img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.single-product .sgf-reco .ltf-card .sgf-colorways--card .sgf-colorway:hover { outline-color: var(--tinta-2); }
.single-product .sgf-reco .ltf-card .sgf-colorways--card .sgf-colorway[aria-current="true"] { outline-color: var(--tinta); }
.single-product .sgf-reco .ltf-card .sgf-colorways--card .sgf-colorway:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }

@media (max-width: 900px) {
  .single-product .sgf-reco { padding-bottom: var(--espacio-112); }
  /* La tarjeta mide 2 columnas (168): cinco miniaturas de 32 con 12 de
     separación no caben en una fila. A 28 × 35 con 6, sí. */
  .single-product .sgf-reco .ltf-card .sgf-colorways--card { gap: 6px; }
  .single-product .sgf-reco .ltf-card .sgf-colorways--card .sgf-colorway { width: 28px; height: 35px; }
  .single-product .sgf-story__foto { grid-column: 1 / -1; margin-top: var(--espacio-48); }
  .single-product .sgf-looks .sgf-looks__title { grid-column: 1 / span 3; }
  .single-product .sgf-looks__count { grid-column: 4 / -1; }
  .single-product .sgf-faq .sgf-faq__titulo,
  .single-product .sgf-faq .sgf-faq__cuerpo { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .single-product .sgf-reco .ltf-card .sgf-colorways--card .sgf-colorway { transition: none; }
}

/* ══ Zona de compra: ajuste al tablero Ficha (nodos y=114–840) ══════════════
   Columna de 453 con 24 de aire arriba. De arriba abajo: migas (28) ·
   título y precio (16) · descripción a 14 (16) · origen (28) · fila de
   versiones · fila de talla · plazo y botón · paneles. Cada «fila» es una
   línea de puntos arriba y 16 de aire por arriba y por abajo. */
.single-product .ltf-ficha__compra .woocommerce-breadcrumb { margin: 0 0 28px; line-height: 16px; }
.single-product .ltf-ficha__titulo { align-items: baseline; }
.single-product .ltf-ficha__titulo .product_title { line-height: 26px; letter-spacing: -0.01em; }
/* La descripción es texto de lectura: 14 en tinta, no una nota en gris. */
/* Mide lo que el resto de la columna (los 34rem que el padre da a cada
   bloque): con `max-width: none`, en una pantalla ancha se salía por la
   derecha de las versiones, las tallas y el botón. */
.single-product .ltf-ficha__compra .sgf-pdp-descriptor { margin: 16px 0 0; max-width: 34rem; font-size: 14px; line-height: 1.55; color: var(--tinta); overflow-wrap: anywhere; }
.single-product .ltf-ficha__compra .ltf-origen { margin: 16px 0 28px; font-size: 12px; line-height: 16px; color: var(--tinta-2); }

.single-product .ltf-ficha__compra .ltf-versiones { margin: 0; padding: 16px 0; border-top: 1px dotted var(--ltf-punteado, #e9e7e6); }
.single-product .ltf-versiones__head { align-items: baseline; margin: 0 0 12px; line-height: 17px; }
.single-product .ltf-versiones__label { font-size: 14px; line-height: 17px; }
.single-product .ltf-versiones__count { font-size: 12px; line-height: 16px; color: var(--tinta-2); }

/* Fila de talla: la cabecera del padre va dentro del formulario. */
.single-product .ltf-ficha__compra form.cart { margin: 0; padding: 16px 0 0; border-top: 1px dotted var(--ltf-punteado, #e9e7e6); }
.single-product .ltf-ficha__compra .sgf-size-head { align-items: baseline; margin: 0 0 12px; font-size: 14px; line-height: 17px; }
.single-product .ltf-ficha__compra .sgf-size-head__label { gap: 0.3em; max-width: none; }
.single-product .ltf-ficha__compra .sgf-size-head__name { font-weight: 400; }
.single-product .ltf-ficha__compra .sgf-size-head__hint { color: var(--tinta); }
.single-product .ltf-ficha__compra .sgf-size-head.is-required .sgf-size-head__hint { text-decoration: underline; text-underline-offset: 4px; }
.single-product .ltf-ficha__compra .sgf-size-guide__open {
  all: unset; cursor: pointer; padding-bottom: 2px; font-size: 12px; line-height: 16px; letter-spacing: 0.02em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.single-product .ltf-ficha__compra .sgf-size-guide__open:focus-visible { outline: 2px solid var(--foco); outline-offset: 3px; }
.single-product .ltf-ficha__compra .variations { margin: 0; }
.single-product .ltf-ficha__compra .variations td { margin: 0; }
.single-product .ltf-ficha__compra .sgf-size-grid { margin: 0 0 16px; }

/* Plazo y precio (13 y 15), 12, botón de 48, 12, el aviso (18 reservados). */
.single-product .ltf-ficha__compra .ltf-plazo { align-items: baseline; margin: 20px 0 12px; line-height: 18px; }
.single-product .ltf-ficha__compra .ltf-plazo__texto { font-size: 13px; line-height: 18px; color: var(--tinta-2); }
.single-product .ltf-ficha__compra .ltf-plazo__precio { font-size: 15px; line-height: 18px; }
.single-product .ltf-ficha__compra .single_add_to_cart_button.button { margin: 0; }
.single-product .ltf-ficha__compra .sgf-m3-status { margin: 12px 0 0; min-height: 18px; font-size: 13px; line-height: 18px; color: var(--tinta-2); }

/* Paneles: 28 por encima, 52 + 1 cada uno. Cerrado, el cuerpo no mide nada:
   el padre le dejaba 24 de relleno y la prosa otros 18, y cada panel
   cerrado enseñaba 42px en blanco. El aire de abajo va dentro de la prosa,
   donde se recorta con ella. */
.single-product .ltf-ficha .sgf-pdp-panels { margin-top: 28px; border-top: 0; }
.single-product .ltf-ficha .sgf-pdp-panel__body { padding: 0; }
.single-product .ltf-ficha .sgf-pdp-panel__prose { padding: 0; }
.single-product .ltf-ficha .sgf-pdp-panel__prose::after { content: ""; display: block; height: 18px; }
.single-product .ltf-ficha .sgf-pdp-panel__prose p:empty { display: none; }
.single-product .ltf-ficha .sgf-pdp-panel__toggle { height: 52px; line-height: 17px; }
.single-product .ltf-ficha .sgf-pdp-panel__toggle > span { line-height: 17px; }
.single-product .ltf-ficha .sgf-pdp-panel__toggle::after { font-size: 14px; font-weight: 400; }

/* Migas: toda la línea en mayúsculas y en gris, también los enlaces. */
.single-product .ltf-ficha__compra .woocommerce-breadcrumb,
.single-product .ltf-ficha__compra .woocommerce-breadcrumb a { color: var(--tinta-2); text-transform: uppercase; letter-spacing: 0.02em; }
/* La rejilla de tallas mide lo que sus celdas (44): sus líneas son las
   sombras interiores del tablero, sin un borde añadido alrededor. */
.single-product .ltf-ficha__compra .sgf-size-grid { border: 0; }
.single-product .ltf-ficha__compra .ltf-plazo { height: 18px; }
/* El aviso del botón («Primero elige una talla») se VE, en sus 18 de
   reserva: el padre lo deja solo para lectores de pantalla. */
.single-product .ltf-ficha__compra .sgf-m3-status { position: static; width: auto; height: auto; clip: auto; clip-path: none; overflow: visible; white-space: normal; }
/* Botón: sin talla, piedra con texto gris; con talla, tinta. Sin borde ni
   transparencia en ninguno de los dos. */
.single-product .ltf-ficha__compra .single_add_to_cart_button.button { border: 0; opacity: 1; background: var(--tinta); color: var(--papel); }
.single-product .ltf-ficha__compra .single_add_to_cart_button.button.disabled,
.single-product .ltf-ficha__compra .single_add_to_cart_button.button[aria-disabled="true"] { border: 0; opacity: 1; background: var(--piedra); color: var(--tinta-2); }
/* Las versiones caben siempre en una fila: 64 × 78 cuando hay sitio y, en
   una columna estrecha (móvil, cinco versiones), se encogen a partes
   iguales. Antes la quinta —que ahora puede ser la actual— se salía. */
.single-product .ltf-versiones__nav { flex-wrap: nowrap; }
.single-product .ltf-versiones__item { flex: 0 1 64px; width: auto; min-width: 0; }
.single-product .ltf-versiones__item img { width: 100%; height: auto; aspect-ratio: 64 / 78; }

/* ══ Selector de tallas: líneas, agotadas y campanita (Ficha-Estados) ════════
   Las líneas son SOLO las sombras interiores del tablero, todas del mismo
   gris (#DFDFDE): la rejilla pone la de arriba y la de la izquierda, y cada
   celda la de la derecha y la de abajo. El padre añadía además su borde,
   más oscuro, y las celdas salían con dos líneas de dos colores. */
.single-product .ltf-ficha__compra .sgf-size-grid { box-shadow: inset 1px 1px 0 var(--linea, #dfdfde); background: none; }
.single-product .ltf-ficha__compra .sgf-size {
  position: relative; min-width: 0; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  box-shadow: inset -1px -1px 0 var(--linea, #dfdfde);
  font-size: 14px; line-height: 1; color: var(--tinta);
}
.single-product .ltf-ficha__compra .sgf-size__txt { overflow: hidden; text-overflow: clip; white-space: nowrap; }
.single-product .ltf-ficha__compra .sgf-size:focus-visible { outline: 2px solid var(--foco, #141212); outline-offset: -2px; z-index: 1; }

/* Agotada: el número en gris y tachado; la campanita —«avísame»— arriba a
   la derecha, a 4 y 6 como la marca del tablero, sin tachar y nítida. */
.single-product .ltf-ficha__compra .sgf-size.is-soldout { color: var(--tinta-2); text-decoration: none; cursor: pointer; }
.single-product .ltf-ficha__compra .sgf-size.is-soldout .sgf-size__txt { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: currentColor; }
.single-product .ltf-ficha__compra .sgf-size__campana { top: 4px; right: 5px; width: 10px; height: 10px; opacity: 1; color: var(--tinta-2); }
.single-product .ltf-ficha__compra .sgf-size.is-soldout:hover { background: none; color: var(--tinta); }
.single-product .ltf-ficha__compra .sgf-size.is-soldout:hover .sgf-size__campana { color: var(--tinta); }
/* Una agotada elegida no se llena de tinta —no se puede comprar—: se marca
   con un filete y la campanita en tinta. */
.single-product .ltf-ficha__compra .sgf-size.is-soldout[role="radio"][aria-checked="true"] { background: none; color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.single-product .ltf-ficha__compra .sgf-size.is-soldout[aria-checked="true"] .sgf-size__campana { color: var(--tinta); }

/* El aviso de la agotada, bajo el botón: piedra, 16 de aire. */
.single-product .ltf-ficha__compra .sgf-notify-me { margin: 16px 0 0; padding: 16px; max-width: 34rem; background: var(--piedra); }
.single-product .ltf-ficha__compra .sgf-notify-me[hidden] { display: none; }
.single-product .ltf-ficha__compra .sgf-notify-me__title { margin: 0 0 6px; max-width: none; font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; }
.single-product .ltf-ficha__compra .sgf-notify-me__title strong { font-weight: 400; }
.single-product .ltf-ficha__compra .sgf-notify-me__text { margin: 0 0 12px; max-width: none; font-size: 13px; line-height: 1.5; color: var(--tinta-2); }
.single-product .ltf-ficha__compra .sgf-notify-me__form { display: flex; justify-content: flex-end; border-bottom: 0; }
.single-product .ltf-ficha__compra .sgf-notify-me__submit { padding-bottom: 2px; font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.single-product .ltf-ficha__compra .sgf-notify-me__submit:focus-visible { outline: 2px solid var(--foco, #141212); outline-offset: 3px; }

/* ══ Guía de tallas: el cajón (tablero Ficha, «guide») ═══════════════════════
   El cajón y su mecánica son del padre. Aquí: que quede POR ENCIMA del velo
   (el velo de LTF sube a cabecera + 1 para la cesta, y el cajón de la guía
   se quedaba debajo, desenfocado con el resto de la página), que ocupe toda
   la altura, y la tabla del tablero. */
.sgf-size-guide { z-index: calc(var(--sgf-z-nav, 1000) + 2); }
.sgf-size-guide .sgf-size-guide__panel { top: 0; max-width: 100%; border-left: 0; }
.sgf-size-guide .sgf-size-guide__head { box-sizing: border-box; height: 60px; min-height: 0; padding: 0 24px; border-bottom: 1px solid var(--sgf-color-border); }
.sgf-size-guide .sgf-size-guide__title { font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; }
.sgf-size-guide .sgf-size-guide__close:focus-visible { outline: 2px solid var(--sgf-color-text); outline-offset: 3px; }
.sgf-size-guide .sgf-size-guide__scroll { padding: 24px; }
.sgf-size-guide .sgf-size-guide__body p { margin: 0 0 20px; max-width: none; font-size: 15px; line-height: 1.5; color: var(--sgf-color-text); }
.sgf-size-guide .sgf-size-guide__body figure { margin: 0; }
.sgf-size-guide .sgf-size-guide__body table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-family: var(--sgf-font-body, inherit); font-size: 14px; font-variant-numeric: tabular-nums; }
/* El padre separa la cabecera del cuerpo con un filete grueso. */
.sgf-size-guide .sgf-size-guide__body :is(thead, tbody, thead tr) { border: 0; }
.sgf-size-guide .sgf-size-guide__body :is(th, td) { padding: 10px 0; border: 0; background: none; text-align: left; font-family: inherit; font-size: 14px; line-height: 17px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--sgf-color-text); }
.sgf-size-guide .sgf-size-guide__body thead th { padding: 0 0 10px; font-size: 12px; line-height: 16px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--sgf-color-muted); }
.sgf-size-guide .sgf-size-guide__body tbody tr { border-top: 1px dotted var(--ltf-punteado, #e9e7e6); background: none; }
.sgf-size-guide .sgf-size-guide__body tbody td + td { color: var(--sgf-color-muted); }
/* La nota de después de la tabla: 13 en gris, a 20. */
.sgf-size-guide .sgf-size-guide__body figure + p,
.sgf-size-guide .sgf-size-guide__body figure ~ p { margin: 20px 0 0; font-size: 13px; color: var(--sgf-color-muted); }

/* — «Tu par»: la banda de compra tras «Cómo está hecho» (12 nov 2026) — */
/* Sustituye a la campaña a sangre. Misma retícula que la ficha: miniatura en
   las columnas 1-2, el texto desde la 4 y el botón en las 10-12, apoyados en
   la base. Un filete arriba, como las promesas del taller. El botón es el de
   la ficha (tinta, versalitas de 11 px y tracking que se abre al pasar): no
   cambia de color, así el texto nunca se queda sin contraste. */
.ltf-tupar {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--ltf-medianil, 16px);
  align-items: end;
  margin: var(--espacio-160, 160px) var(--ltf-margen, 24px) 0;
  padding-top: 24px;
  border-top: 1px solid var(--sgf-color-border, #dfdfde);
}
.ltf-tupar__foto { grid-column: 1 / span 2; aspect-ratio: 4 / 5; overflow: hidden; background: var(--piedra, #e8e8e6); }
.ltf-tupar__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ltf-tupar__texto { grid-column: 4 / span 5; }
.ltf-tupar__nombre { margin: 0; font-size: 12px; font-weight: 400; line-height: 1.3; letter-spacing: var(--sgf-label-tracking, .02em); text-transform: var(--sgf-label-transform, uppercase); color: var(--sgf-color-text, #141212); }
.ltf-tupar__precio { margin: 6px 0 0; font-size: 14px; line-height: 1.4; }
.ltf-tupar__garantias { margin: 16px 0 0; max-width: 64ch; font-size: 14px; line-height: 1.55; color: var(--sgf-color-muted, #65605e); }
.ltf-tupar__cta {
  grid-column: 10 / span 3;
  display: flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px;
  background: var(--sgf-color-ink, #141212); color: var(--sgf-color-on-ink, #fbfbfa);
  font-size: 11px; font-weight: 500;
  letter-spacing: var(--sgf-label-tracking, .02em);
  text-transform: var(--sgf-label-transform, uppercase);
  text-decoration: none;
  transition: opacity .3s cubic-bezier(.16, 1, .3, 1);
}
.ltf-tupar__cta:hover { opacity: .8; color: var(--sgf-color-on-ink, #fbfbfa); }
.ltf-tupar__cta:focus-visible { outline: 2px solid var(--sgf-color-ink, #141212); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ltf-tupar__cta { transition: none; } }
@media (max-width: 900px) {
  .ltf-tupar { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--espacio-88, 88px); }
  .ltf-tupar__foto { grid-column: 1 / span 1; }
  .ltf-tupar__texto { grid-column: 2 / span 3; }
  .ltf-tupar__cta { grid-column: 1 / -1; margin-top: 16px; }
}

/* ── Ficha técnica (inc/ltf-geo.php, 16 nov 2026) ─────────────────────────
   Una tabla de verdad, no texto: es lo que mejor leen los buscadores con
   IA. Dentro del panel, con la misma letra que su prosa. */
.ltf-ficha-tecnica {
	width: 100%;
	margin: 0 0 18px;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.5;
}

.ltf-ficha-tecnica th,
.ltf-ficha-tecnica td {
	padding: 6px 0;
	border-bottom: 1px solid var(--sgf-color-border, rgba(20, 18, 18, .08));
	text-align: left;
	vertical-align: top;
}

.ltf-ficha-tecnica th {
	width: 40%;
	padding-right: 16px;
	font-weight: 400;
	color: var(--tinta-2, #6b6460);
}

.ltf-ficha-tecnica td {
	color: var(--tinta, #2a2825);
}

.ltf-ficha-tecnica tr:last-child th,
.ltf-ficha-tecnica tr:last-child td {
	border-bottom: 0;
}
