/* Ropa y calzado: la parte libre de Havana. Mismos colores y letras, otra energía. */
.hr { overflow-x: clip; }
.hr ul { list-style: none; margin: 0; padding: 0; }
.hr img { display: block; }
.hr-lamina__nombre { font-family: var(--wp--preset--font-family--titulos); font-weight: 700; font-stretch: 125%; }

/* ---------- 1. Carrusel ---------- */
.hr-carrusel { position: relative; }
.hr-pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hr-pista::-webkit-scrollbar { display: none; }
.hr-pista:focus-visible { outline-offset: -4px; }
.hr-lamina {
	position: relative; flex: 0 0 100%; box-sizing: border-box; overflow: hidden;
	height: clamp(480px, 46vw, 680px);
	scroll-snap-align: start; scroll-snap-stop: always;
	color: var(--hv-tinta);
	container-type: inline-size;
}
.hr-lamina--0 { background: var(--hv-tinte-activo); }
.hr-lamina--1 { background: var(--hv-sobre-oscuro-2); }
.hr-lamina--2 { background: var(--hv-turquesa-claro); }
.hr-lamina__nombre {
	position: absolute; left: 3%; top: 5%; margin: 0;
	font-size: min(calc(108cqw / var(--letras)), 15rem);
	line-height: 0.9; letter-spacing: -0.03em; white-space: nowrap;
	color: var(--hv-azul);
}
.hr-lamina__foto { position: absolute; left: 50%; top: 54%; width: min(58%, 820px); translate: -44% -50%; }
.hr-lamina__foto img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.hr-lamina--1 .hr-lamina__foto { translate: -52% -48%; }
.hr-lamina--2 .hr-lamina__foto { translate: -40% -50%; }
.hr-lamina__pie { position: absolute; left: 3%; bottom: 8%; max-width: 24rem; }
.hr-btn-cotizar { transition: transform 160ms var(--hv-ease), background-color 150ms ease, color 150ms ease; -webkit-tap-highlight-color: transparent; }
.hr-btn-cotizar:active { transform: scale(0.97); }
.hr-lamina__meta { margin: 0 0 1rem; font-weight: 600; line-height: 1.35; }
.hr-lamina__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.hr-btn { background: var(--hv-tinta); color: var(--hv-superficie); border-radius: 999px; padding-inline: 1.75rem; }
.hr-btn-cotizar { display: inline-flex; align-items: center; min-height: 44px; color: var(--hv-tinta); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
	.hr-btn:hover { background: var(--hv-azul); color: var(--hv-superficie); }
	.hr-control:hover { background: var(--hv-tinte); }
	.hr-btn-cotizar:hover { color: var(--hv-azul); }
}
/* Los otros colores del modelo. */
.hr-lamina__colores { position: absolute; right: 3%; top: 50%; translate: 0 -50%; display: grid; grid-template-columns: repeat(2, 92px); gap: 0.25rem 0.5rem; }
.hr-color {
	width: 92px; height: 84px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
	transition: transform 200ms var(--hv-ease); touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
/* Se mueve la foto y no el botón: así el mouse no se queda sin blanco y no parpadea. */
.hr-color img { width: 92px; height: 84px; object-fit: contain; transition: transform 180ms var(--hv-ease); }
.hr-color[aria-pressed="true"]::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 2px; height: 3px; background: var(--hv-tinta); }
.hr-color:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .hr-color:hover img { transform: translateY(-4px); } }
.hr-controles { position: absolute; right: 3%; bottom: 6%; display: flex; align-items: center; gap: 0.5rem; color: var(--hv-tinta); }
.hr-control {
	width: 48px; height: 48px; padding: 0; display: grid; place-items: center; cursor: pointer;
	border: 0; border-radius: 50%; background: var(--hv-superficie); color: var(--hv-tinta);
	transition: transform 160ms var(--hv-ease), background-color 150ms ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.hr-control:active { transform: scale(0.96); }
.hr-cuenta { min-width: 3.25rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.hr-ico-seguir, .hr-pausado .hr-ico-pausa { display: none; }
.hr-pausado .hr-ico-seguir { display: block; }
.hr:not(.hr-listo) .hr-controles { display: none; }

/* ---------- Catálogo suelto (esta página y sus subcategorías) ---------- */
#catalogo-ropa { scroll-margin-top: 5rem; height: clamp(2.5rem, 5vw, 4rem); }
.hv-libre .hv-chip { border-radius: 999px; min-height: 44px; padding-inline: 1.125rem; }
.hv-libre .hv-chip { transition: transform 160ms var(--hv-ease), background-color 150ms ease, border-color 150ms ease; -webkit-tap-highlight-color: transparent; }
.hv-libre .hv-chip:active { transform: scale(0.97); }
.hv-libre .hv-chip[aria-current="page"] { background: var(--hv-azul); border-color: var(--hv-azul); color: var(--hv-superficie); }
.hv-libre.woocommerce ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1.5rem; padding-bottom: 0; }
.hv-libre.woocommerce ul.products li.product { border: 0; background: none; overflow: visible; translate: none; }
.hv-libre.woocommerce ul.products li.product img { border: 0; border-radius: 6px; padding: 2%; }
.hv-libre.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 1rem 0 0.25rem; font-family: var(--wp--preset--font-family--titulos); font-weight: 700; font-stretch: 118%; font-size: 1.125rem; line-height: 1.15; }
.hv-libre .hv-meta-producto { padding: 0; }
.hv-libre.woocommerce ul.products li.product a.hv-btn { margin: auto auto 0 0; border-radius: 999px !important; }
@media (min-width: 768px) and (max-width: 1023px) {
	.hv-libre.woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; }
}

/* ---------- Teléfono: primero el producto, todo al alcance del pulgar ---------- */
@media (max-width: 767px) {
	/* Carrusel: nombre, foto, colores, botones y controles, uno debajo del otro. */
	.hr-lamina { display: grid; grid-template-rows: auto 1fr auto auto; height: auto; padding: 1.25rem 1rem 5.25rem; }
	.hr-lamina__nombre { position: static; font-size: min(calc(125cqw / var(--letras)), 4.5rem); }
	.hr-lamina .hr-lamina__foto { position: static; translate: none; width: min(90cqw, 44svh); margin: -1rem auto -1.25rem; align-self: center; }
	.hr-lamina__colores { position: relative; right: auto; top: auto; translate: none; display: flex; justify-content: center; gap: 0.25rem; order: 1; }
	.hr-color { flex: 0 1 64px; width: auto; min-width: 44px; height: 56px; }
	.hr-color img { width: 100%; height: 48px; }
	.hr-lamina__pie { position: static; max-width: none; order: 2; padding-top: 0.75rem; }
	.hr-lamina__meta { margin-bottom: 0.75rem; font-size: 0.9375rem; text-align: center; }
	.hr-lamina__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
	.hr-btn, .hr-btn-cotizar { box-sizing: border-box; justify-content: center; text-align: center; min-height: 50px; padding: 0.5rem; border-radius: 999px; font-size: 0.9375rem; line-height: 1.2; }
	/* En el teléfono lo principal es cotizar. */
	.hr-btn-cotizar { background: var(--hv-accion); color: var(--hv-superficie); text-decoration: none; order: -1; }
	.hr-btn-cotizar:active { background: var(--hv-accion-activo); }
	.hr-btn { background: var(--hv-superficie); color: var(--hv-tinta); }
	.hr-controles { left: 1rem; right: 1rem; bottom: 1.25rem; justify-content: center; }
	.hr-control { background: none; }
	.hr-control:active { background: var(--hv-superficie); }
	/* Filtros: una línea por grupo, se deslizan con el dedo. */
	.hv-libre .hv-filtros { gap: 0.5rem; margin: 0 calc(var(--hv-margen) * -1) 1.25rem; }
	.hv-libre .hv-filtros__grupo { flex-wrap: nowrap; overflow-x: auto; padding: 2px var(--hv-margen); scrollbar-width: none; }
	.hv-libre .hv-filtros__grupo::-webkit-scrollbar { display: none; }
	.hv-libre .hv-chip { flex: none; }

	/* Catálogo: dos columnas parejas y el botón en una sola línea. */
	.hv-libre.woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 0.875rem; padding-bottom: 0; }
	.hv-libre.woocommerce ul.products li.product .woocommerce-loop-product__title { padding-top: 0.75rem; font-size: 1.0625rem; font-stretch: 105%; -webkit-line-clamp: 3; overflow-wrap: anywhere; }
	.hv-libre .hv-meta-producto { font-size: 0.875rem; margin-bottom: 0.75rem; }
	.hv-libre.woocommerce ul.products li.product a.hv-btn { width: 100%; margin: auto 0 0; padding: 0.5rem 0.25rem; gap: 0.375rem; font-size: clamp(0.8125rem, 3.6vw, 0.9375rem); white-space: nowrap; }
}
@media (max-width: 359px) { .hv-libre.woocommerce ul.products li.product a.hv-btn::before { display: none; } }
@media (min-width: 768px) and (max-width: 1023px) {
	.hr-lamina .hr-lamina__foto { translate: -50% -56%; width: 60%; }
	.hr-lamina__colores { grid-template-columns: 72px; gap: 0; }
	.hr-color, .hr-color img { width: 72px; height: 60px; }
	.hr-lamina__pie { bottom: 5%; }
	.hr-lamina__meta { margin-bottom: 0.5rem; }
}
