/* Showcase de colección (/shop/{slug}): solo imagen, sin texto en el visor. */

/* Hero: solo el nombre de la colección (fuera migas y "Style collection"). */
body.hm-showcase .estilo-hero .wp-block-cover__inner-container > p { display: none; }

body .estilo-detail.estilo-showcase {
	max-width: 1320px; margin: 0 auto;
	padding: clamp(1rem, 3vh, 2rem) var(--wp--preset--spacing--40, 1.5rem) 4rem !important;
}
@media (min-width: 900px) { body .estilo-detail.estilo-showcase { display: block; } }
.estilo-showcase p:empty { display: none; }

/* ---- Espacios: miniaturas en vez de etiquetas ----
   Móvil: fila horizontal arriba. Escritorio: columna a la izquierda y el resto
   del ancho para las fotos. */
.estilo-showcase .estilo-showcase__rooms { display: flex; gap: .6rem; margin: 0 0 1rem; padding: 3px 3px .5rem; overflow-x: auto; }
.estilo-showcase .estilo-showcase__room {
	position: relative; flex: 0 0 auto; width: clamp(96px, 24vw, 150px); aspect-ratio: 4 / 3;
	padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--wp--preset--color--cream, #f7f4ee);
	opacity: .55; transition: opacity .2s, box-shadow .2s, transform .2s; cursor: pointer;
}
.estilo-showcase .estilo-showcase__room img { width: 100%; height: 100%; object-fit: cover; display: block; }
.estilo-showcase .estilo-showcase__room:hover { opacity: .85; }
.estilo-showcase .estilo-showcase__room.is-active { opacity: 1; box-shadow: 0 0 0 2.5px var(--wp--preset--color--primary, #30877c); background: none; }
.estilo-showcase .estilo-showcase__room .estilo-chip__check {
	display: none; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--wp--preset--color--primary, #30877c); color: #fff; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.estilo-showcase .estilo-showcase__room.is-incart .estilo-chip__check { display: grid; }

@media (min-width: 1024px) {
	.estilo-showcase__visor { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
	.estilo-showcase .estilo-showcase__rooms { flex-direction: column; margin: 0; padding: 3px; overflow: visible; position: sticky; top: 110px; }
	.estilo-showcase .estilo-showcase__room { width: 100%; }
}

/* ---- Visor ---- */
.estilo-showcase .estilo-scene { position: relative; }
.estilo-showcase .estilo-scene[hidden] { display: none; }
.estilo-showcase .estilo-slide--photo img { cursor: zoom-in; }
/* Miniaturas de las fotos del espacio: más grandes que en el detalle viejo. */
.estilo-showcase .estilo-carousel__thumbs { gap: 10px; padding: 12px; }
/* Tira de miniaturas centrada en el ancho del visor, para que no se lea como una
   segunda columna pegada a la lista de espacios de la izquierda. Se centra con
   márgenes automáticos (no con justify-content) para que, si hay más miniaturas
   de las que caben, se pueda seguir desplazando desde el primero. */
.estilo-showcase .estilo-carousel__thumbs > :first-child { margin-left: auto; }
.estilo-showcase .estilo-carousel__thumbs > :last-child { margin-right: auto; }
.estilo-showcase .estilo-thumb { width: 96px; height: 72px; flex: 0 0 96px; border-radius: 10px; }
@media (min-width: 1024px) { .estilo-showcase .estilo-thumb { width: 120px; height: 86px; flex-basis: 120px; } }

/* Botón "ver en grande" (arriba a la izquierda; a la derecha va el carrito). */
.estilo-showcase__zoom {
	position: absolute; top: 14px; left: 14px; z-index: 30; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; border: 0; background: rgba(255,255,255,.92); color: #1f2a28;
	box-shadow: 0 6px 18px rgba(0,0,0,.2); cursor: pointer; transition: transform .15s;
}
.estilo-showcase__zoom:hover { transform: scale(1.07); }

/* ---- Botón de carrito (solo ícono) sobre la foto ---- */
.estilo-showcase__add {
	position: absolute; top: 14px; right: 14px; z-index: 30;
	width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
	background: #fff; color: #1f2a28; box-shadow: 0 8px 24px rgba(0,0,0,.28); text-decoration: none;
	transition: transform .18s, background .25s, color .25s;
}
.estilo-showcase__add:hover, .estilo-showcase__add:focus-visible { transform: scale(1.07); color: #1f2a28; }
.estilo-showcase__add:focus-visible { outline: 3px solid rgba(48,135,124,.55); outline-offset: 3px; }
.estilo-showcase__badge { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; display: none; place-items: center; color: #fff; background: var(--wp--preset--color--primary, #30877c); box-shadow: 0 0 0 2px #fff; }
.estilo-showcase__add .ic-plus { display: grid; }
.estilo-showcase__add.is-in { background: var(--wp--preset--color--primary, #30877c); color: #fff; }
.estilo-showcase__add.is-in:hover { color: #fff; }
.estilo-showcase__add.is-in .ic-plus { display: none; }
.estilo-showcase__add.is-in .ic-check { display: grid; background: #fff; color: var(--wp--preset--color--primary, #30877c); box-shadow: 0 0 0 2px var(--wp--preset--color--primary, #30877c); }
/* Ya agregado: al pasar el cursor avisa que el toque lo quita. */
@media (hover: hover) {
	.estilo-showcase__add.is-in:hover { background: #fff; color: #b3261e; }
	.estilo-showcase__add.is-in:hover .ic-check { background: #b3261e; color: #fff; box-shadow: 0 0 0 2px #fff; }
}
.estilo-showcase__add.is-swap { background: var(--wp--preset--color--accent, #eba607); }
.estilo-showcase__add.is-swap .ic-plus { display: none; }
.estilo-showcase__add.is-swap .ic-swap { display: grid; background: #1f2a28; }
.estilo-showcase__add.is-pop { animation: scPop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes scPop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (max-width: 600px) {
	.estilo-showcase__add { top: 10px; right: 10px; width: 52px; height: 52px; }
	.estilo-showcase__zoom { top: 10px; left: 10px; width: 40px; height: 40px; }
}

/* ---- Paso a la tienda (/shop/buy) ----
   Franja discreta bajo el visor: una línea de texto a la izquierda y un botón
   de tamaño normal a la derecha (antes era una tarjeta grande con botón enorme). */
.estilo-showcase__buy {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
	margin-top: 2rem; padding: 1.25rem 0 0; border-top: 1px solid rgba(31,42,40,.12);
}
.estilo-showcase__buy-text h2 { margin: 0; font-family: var(--wp--preset--font-family--heading, inherit); font-weight: 400; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.2; }
.estilo-showcase__buy-text p { margin: .2rem 0 0; color: var(--wp--preset--color--muted, #6b736f); font-size: .9rem; }
.estilo-showcase__buy-cta {
	display: inline-flex; align-items: center; gap: .9rem; height: 48px; padding: 0 6px 0 1.4rem;
	border-radius: 999px; background: var(--wp--preset--color--primary, #30877c); color: #fff; font-weight: 600; font-size: .98rem; line-height: 1;
	text-decoration: none; white-space: nowrap; transition: background .2s, transform .2s;
}
.estilo-showcase__buy-cta:hover { background: #266b62; color: #fff; }
.estilo-showcase__buy-cta:active { transform: scale(.98); }
.estilo-showcase__buy-arrow {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	background: rgba(255,255,255,.2); font-size: 1.05rem; transition: transform .2s, background .2s;
}
.estilo-showcase__buy-cta:hover .estilo-showcase__buy-arrow { background: rgba(255,255,255,.32); transform: translateX(3px); }
.estilo-showcase__buy-cta:focus-visible { outline: 3px solid rgba(48,135,124,.55); outline-offset: 3px; }
@media (max-width: 600px) {
	.estilo-showcase__buy { flex-direction: column; align-items: stretch; gap: .9rem; }
	.estilo-showcase__buy-cta { justify-content: space-between; }
}

/* ---- "Build your space" deslizable (móvil): pista gris con relieve; se arrastra la pastilla verde ---- */
.estilo-showcase__buy-track { display: contents; }
.estilo-showcase__buy-track.is-slide {
	--sx: 0px; --sp: 0;
	display: block; box-sizing: border-box; position: relative; height: 64px; padding: 4px; border-radius: 999px; overflow: hidden;
	/* Madera nogal: veta fina con tres periodos distintos para que no se note el patrón. */
	background:
		repeating-linear-gradient(180deg, rgba(48,25,10,.20) 0 1px, transparent 1px 5px),
		repeating-linear-gradient(180deg, rgba(255,226,190,.13) 0 1px, transparent 1px 8px),
		repeating-linear-gradient(180deg, rgba(40,20,8,.12) 0 2px, transparent 2px 17px),
		linear-gradient(90deg, rgba(0,0,0,.10), transparent 28%, rgba(255,232,196,.10) 58%, transparent 80%, rgba(0,0,0,.08)),
		linear-gradient(180deg, #a97c53, #94683f 55%, #a4764a);
	box-shadow: inset 0 4px 9px rgba(35,16,4,.55), inset 0 -1px 0 rgba(255,232,196,.35), 0 1px 0 rgba(255,255,255,.7);
}
/* Meta al final de la pista: chevrones que invitan a arrastrar. */
.estilo-showcase__buy-track.is-slide::after {
	content: "\203A\203A\203A"; position: absolute; right: 22px; top: 0; bottom: 0; display: flex; align-items: center;
	font-size: 1.9rem; font-weight: 700; letter-spacing: .12em; color: rgba(255,238,214,.7); text-shadow: 0 -1px 0 rgba(35,16,4,.55); pointer-events: none;
	opacity: calc(1 - var(--sp) * 1.2); animation: scChevrons 1.6s ease-in-out infinite;
}
.estilo-showcase__buy-track.is-slide .estilo-showcase__buy-cta {
	position: relative; z-index: 1; display: inline-flex; width: auto; height: 56px; padding: 0 6px 0 1.05rem; gap: .5rem; font-size: .92rem;
	justify-content: flex-start; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: transparent;
	transform: translateX(var(--sx)); cursor: grab; transition: transform .3s cubic-bezier(.2,.9,.3,1);
	box-shadow: 0 5px 12px rgba(35,16,4,.5), inset 0 1px 0 rgba(255,255,255,.28);
}
.estilo-showcase__buy-track.is-slide .estilo-showcase__buy-cta:hover { background: var(--wp--preset--color--primary, #30877c); }
.estilo-showcase__buy-track.is-slide .estilo-showcase__buy-cta:active { transform: translateX(var(--sx)); }
.estilo-showcase__buy-track.is-slide .estilo-showcase__buy-arrow { width: 42px; height: 42px; font-size: 1.25rem; background: rgba(255,255,255,.22); }
.estilo-showcase__buy-track.is-slide .estilo-showcase__buy-cta:hover .estilo-showcase__buy-arrow { transform: none; background: rgba(255,255,255,.22); }
.estilo-showcase__buy-track.is-slide.is-drag .estilo-showcase__buy-cta { transition: none; cursor: grabbing; }
.estilo-showcase__buy-track.is-slide.is-done .estilo-showcase__buy-cta { transition: transform .15s; }
.estilo-showcase__buy-track.is-slide.is-hint .estilo-showcase__buy-cta { animation: scPillNudge .55s ease-out; }
@keyframes scPillNudge { 0%, 100% { transform: translateX(var(--sx)); } 45% { transform: translateX(calc(var(--sx) + 26px)); } }
@keyframes scChevrons { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) {
	.estilo-showcase__buy-track.is-slide::after, .estilo-showcase__buy-track.is-slide.is-hint .estilo-showcase__buy-cta { animation: none; }
}

/* ---- Explora más colecciones ---- */
.estilo-showcase__others { margin-top: 3.5rem; }
.estilo-showcase__others-head { margin-bottom: 1rem; }
.estilo-showcase__others-head h2 { margin: 0; font-family: var(--wp--preset--font-family--heading, inherit); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; }
.estilo-showcase__others-head p { margin: .35rem 0 0; color: var(--wp--preset--color--muted, #6b736f); font-size: .95rem; }
.estilo-showcase__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.estilo-showcase__ocard {
	scroll-snap-align: start; position: relative; display: flex; flex-direction: column; justify-content: flex-end;
	aspect-ratio: 4 / 5; min-height: 300px; border-radius: 16px; overflow: hidden; background: #1f2a28; color: #fff; text-decoration: none;
	transition: transform .25s, box-shadow .25s;
}
.estilo-showcase__ocard:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,.18); color: #fff; }
.estilo-showcase__oimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.estilo-showcase__ocard:hover .estilo-showcase__oimg { transform: scale(1.05); }
.estilo-showcase__ocard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72)); }
.estilo-showcase__otag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: .22rem .65rem; border-radius: 999px; background: rgba(255,255,255,.92); color: #1f2a28; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.estilo-showcase__obody { position: relative; z-index: 1; display: grid; gap: .25rem; padding: 16px 18px 18px; }
.estilo-showcase__oname { font-family: var(--wp--preset--font-family--heading, inherit); font-size: 1.45rem; line-height: 1.1; }
.estilo-showcase__octa { font-size: .88rem; font-weight: 600; opacity: .9; }
.estilo-showcase__ocard:focus-visible { outline: 3px solid rgba(48,135,124,.55); outline-offset: 3px; }
@media (min-width: 1024px) { .estilo-showcase__row { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); overflow: visible; } }

/* Visor en grande (Spotlight, igual que la galería). */
#spotlight { background-color: rgba(0, 0, 0, 0.92) !important; }

/* ---- Guía del botón de agregar (tipo tutorial): el fondo se oscurece y el hueco se cierra ---- */
.hmt-spot {
	position: fixed; inset: 0; z-index: 100001; pointer-events: none; /* por encima de la barra de admin y del selector de idioma (99999) */
	--a: 0; --r: 2000px;
	background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent var(--r), rgba(12, 16, 15, calc(.68 * var(--a))) calc(var(--r) + 2px));
	transition: opacity .45s ease;
}
.hmt-spot.is-away, .hmt-spot.is-out { opacity: 0; }
.hmt-spot__ring {
	position: absolute; border-radius: 50%; transform: translate(-50%, -50%) scale(1);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); opacity: 0;
}
.hmt-spot__ring.is-on { opacity: 1; animation: hmtSpotPulse 1.3s ease-out infinite; }
@keyframes hmtSpotPulse {
	0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 2px rgba(255,255,255,.9), 0 0 0 0 rgba(255,255,255,.55); }
	100% { transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 0 2px rgba(255,255,255,0), 0 0 0 14px rgba(255,255,255,0); }
}
/* Mensaje junto al botón (único elemento que recibe toques). */
.hmt-spot__tip {
	position: fixed; z-index: 1; pointer-events: auto; box-sizing: border-box;
	width: min(280px, calc(100vw - 24px)); padding: 14px 16px 14px; border-radius: 16px;
	background: #fff; color: #1f2a28; box-shadow: 0 14px 38px rgba(0, 0, 0, .35);
	display: grid; gap: 12px; opacity: 0; transition: opacity .35s ease;
}
.hmt-spot__tip.is-on { opacity: 1; }
.hmt-spot__tip::before {
	content: ''; position: absolute; top: -7px; left: var(--ax, 40px); width: 14px; height: 14px; margin-left: -7px;
	background: #fff; transform: rotate(45deg); border-radius: 3px;
}
.hmt-spot__tip.is-above::before { top: auto; bottom: -7px; }
.hmt-spot__msg { margin: 0; font-size: .97rem; line-height: 1.4; font-weight: 600; }
.hmt-spot__ok {
	justify-self: end; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--wp--preset--color--primary, #30877c); color: #fff; font: inherit; font-size: .92rem; font-weight: 700;
}
.hmt-spot__ok:hover { filter: brightness(1.08); }
.hmt-spot__ok:focus-visible { outline: 3px solid rgba(48,135,124,.55); outline-offset: 3px; }

/* Botón "?" para volver a ver la guía (a la derecha del botón de ver en grande). */
.estilo-showcase__help {
	position: absolute; top: 14px; left: 68px; z-index: 30; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; border: 0; background: rgba(255,255,255,.92); color: #1f2a28;
	font: inherit; font-size: 1.15rem; font-weight: 700; line-height: 1;
	box-shadow: 0 6px 18px rgba(0,0,0,.2); cursor: pointer; transition: transform .15s;
}
.estilo-showcase__help:hover { transform: scale(1.07); }
.estilo-showcase__help:focus-visible { outline: 3px solid rgba(48,135,124,.55); outline-offset: 3px; }
@media (max-width: 600px) {
	/* Movil: objetivo tactil de 44 px, alineado al centro del boton de ampliar (40 px). */
	.estilo-showcase__help { top: 8px; left: 58px; width: 44px; height: 44px; }
	.hmt-spot__tip { width: min(320px, calc(100vw - 32px)); padding: 16px; }
	.hmt-spot__msg { font-size: 1rem; }
	.hmt-spot__ok { justify-self: stretch; min-height: 48px; }
}
.hmt-spot__ok, .estilo-showcase__help { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

@media (prefers-reduced-motion: reduce) {
	.hmt-spot, .hmt-spot__tip { transition: opacity .2s ease; }
	.hmt-spot__ring.is-on { animation: none; }
	.estilo-showcase__oimg, .estilo-showcase__add, .estilo-showcase__room, .estilo-showcase__ocard, .estilo-showcase__help { transition: none; }
	.estilo-showcase__add.is-pop { animation: none; }
}
