/* ==========================================================================
   XFUEGO · EL CLUB ENTERO + LA TIENDA (v1.9.5)
   Bento de las once puertas (sustituye al Universo, arriba), tira de rincones,
   mapa curado (/categorias) y sección La Tienda con categorías y muestras.
   Solo ADITIVO: no toca ninguna sección anterior. Usa los tokens --xf-*.
   ========================================================================== */

/* ---------- 1. SECCIÓN ---------------------------------------------------- */
.xf-eco {
	position: relative;
	padding: clamp(80px, 11vw, 140px) 24px clamp(70px, 9vw, 120px);
	overflow: hidden;
}

.xf-eco__halo {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(46% 34% at 12% 6%, rgba(255, 90, 31, 0.13), transparent 70%),
		radial-gradient(42% 36% at 90% 26%, rgba(157, 108, 255, 0.12), transparent 70%),
		radial-gradient(52% 40% at 50% 102%, rgba(255, 61, 110, 0.10), transparent 72%);
}

.xf-eco__head {
	position: relative;
	max-width: 860px;
	margin: 0 auto clamp(44px, 6vw, 72px);
	text-align: center;
}

.xf-eco__head .xf-lead { margin-inline: auto; }

/* ---------- 2. BENTO -------------------------------------------------------
   4 columnas: Directos 2×2, dos simples, Anuncios 2×1,
   Blog + Fotogalería simples y Tienda 2×1. */
.xf-eco__grid {
	position: relative;
	max-width: var(--xf-wrap);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: minmax(228px, auto);
	grid-auto-flow: row dense;
	gap: 22px;
}

.xf-eco__tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	border-radius: var(--xf-radius);
	overflow: hidden;
	border: 1px solid var(--xf-line);
	background: var(--xf-coal);
	box-shadow: var(--xf-shadow-card);
	transform: translateZ(0);
	transition: transform 0.7s var(--xf-ease), box-shadow 0.7s var(--xf-ease), border-color 0.5s var(--xf-ease);
}

.xf-eco__tile--big  { grid-column: span 2; grid-row: span 2; }
.xf-eco__tile--wide { grid-column: span 2; }

/* Borde de fuego que se enciende al pasar el ratón */
.xf-eco__tile::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: var(--xf-grad-fire);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	opacity: 0;
	transition: opacity 0.6s var(--xf-ease);
	pointer-events: none;
	z-index: 3;
}

/* Barrido de luz diagonal al hover */
.xf-eco__tile::after {
	content: "";
	position: absolute;
	top: -60%;
	bottom: -60%;
	left: -30%;
	width: 36%;
	background: linear-gradient(100deg, transparent, rgba(255, 246, 236, 0.14), transparent);
	transform: translateX(-140%) skewX(-18deg);
	transition: transform 1s var(--xf-ease);
	pointer-events: none;
	z-index: 2;
}

a.xf-eco__tile:hover,
.xf-eco__tile--heart:hover { transform: translateY(-7px); box-shadow: var(--xf-glow-fire); }
a.xf-eco__tile:hover::before,
.xf-eco__tile--heart:hover::before { opacity: 1; }
a.xf-eco__tile:hover::after,
.xf-eco__tile--heart:hover::after { transform: translateX(420%) skewX(-18deg); }

.xf-eco__media {
	position: absolute;
	inset: 0;
	margin: 0;
}

.xf-eco__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.03);
	transition: transform 1.4s var(--xf-ease), filter 0.8s var(--xf-ease);
	filter: saturate(1.02);
}

a.xf-eco__tile:hover .xf-eco__media img,
.xf-eco__tile--heart:hover .xf-eco__media img { transform: scale(1.1); filter: saturate(1.15); }

.xf-eco__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(178deg, rgba(10, 5, 18, 0.06) 26%, rgba(10, 5, 18, 0.55) 62%, rgba(10, 5, 18, 0.94) 100%);
	transition: opacity 0.7s var(--xf-ease);
}

.xf-eco__body {
	position: relative;
	z-index: 2;
	padding: 110px 26px 26px;
}

.xf-eco__tile--big .xf-eco__body { padding-top: 150px; }

.xf-eco__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	color: var(--xf-gold);
	background: rgba(10, 5, 18, 0.55);
	border: 1px solid var(--xf-line);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	margin-bottom: 12px;
	transition: transform 0.6s var(--xf-ease), color 0.5s, border-color 0.5s;
}

a.xf-eco__tile:hover .xf-eco__icon,
.xf-eco__tile--heart:hover .xf-eco__icon { transform: translateY(-4px) rotate(-4deg); color: var(--xf-ember); border-color: rgba(255, 158, 44, 0.45); }

.xf-eco__body h3 {
	font-family: var(--xf-font-display);
	font-size: 25px;
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 8px;
	color: var(--xf-cream);
}

.xf-eco__tile--big .xf-eco__body h3 { font-size: clamp(30px, 3.2vw, 40px); }

.xf-eco__body p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--xf-mist);
	max-width: 46ch;
}

.xf-eco__tile--big .xf-eco__body p { font-size: 16px; }

.xf-eco__go {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--xf-ember);
	transition: color 0.4s, gap 0.4s var(--xf-ease);
}

a.xf-eco__tile:hover .xf-eco__go { color: var(--xf-gold); gap: 13px; }

/* Chapa EN VIVO */
.xf-eco__live {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--xf-cream);
	background: rgba(10, 5, 18, 0.62);
	border: 1px solid rgba(255, 61, 110, 0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.xf-eco__live i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ff4d4d;
	box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.55);
	animation: xfEcoPulse 1.9s infinite;
}

@keyframes xfEcoPulse {
	0%   { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.55); }
	70%  { box-shadow: 0 0 0 11px rgba(255, 77, 77, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* Tarjetas "Muy pronto": se ven, no se pisan */
.xf-eco__tile--soon { cursor: default; }

.xf-eco__tile--soon .xf-eco__media img { filter: saturate(0.72) brightness(0.92); }

.xf-eco__soon-badge {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--xf-gold);
	background: rgba(10, 5, 18, 0.66);
	border: 1px solid rgba(255, 194, 75, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

/* ---------- 3. TIRA DE RINCONES (marquesina de nombres) ------------------- */
.xf-eco__cats {
	position: relative;
	max-width: var(--xf-wrap);
	margin: clamp(48px, 7vw, 80px) auto 0;
	text-align: center;
}

.xf-eco__cats-lead {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 26px;
	font-size: 15px;
	font-weight: 600;
	color: var(--xf-mist);
}

.xf-eco__cats-lead svg { color: var(--xf-ember); }

.xf-eco__marquee {
	overflow: hidden;
	padding: 6px 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.xf-eco__marquee-track {
	display: flex;
	align-items: center;
	gap: 14px;
	width: max-content;
	padding-right: 14px;
	animation: xfEcoScroll 42s linear infinite;
}

.xf-eco__marquee:hover .xf-eco__marquee-track { animation-play-state: paused; }

@keyframes xfEcoScroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.xf-eco__chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	padding: 11px 24px;
	border-radius: 999px;
	border: 1px solid var(--xf-line);
	background: var(--xf-grad-glass);
	font-family: var(--xf-font-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--xf-cream);
	transition: transform 0.5s var(--xf-ease), border-color 0.5s, color 0.4s, box-shadow 0.5s;
}

.xf-eco__chip:hover {
	transform: translateY(-3px);
	border-color: rgba(255, 158, 44, 0.55);
	color: var(--xf-gold);
	box-shadow: 0 12px 30px -12px rgba(255, 90, 31, 0.5);
}

.xf-eco__cats-cta { margin-top: 34px; }

/* ---------- 4. MAPA CURADO (/categorias sin vídeos aún) -------------------- */
.xf-eco-curada { max-width: var(--xf-wrap); margin: 0 auto; padding: 0 0 30px; }

.xf-eco-curada__lead {
	max-width: 640px;
	margin: 0 auto clamp(34px, 5vw, 52px);
	text-align: center;
	font-size: 17px;
	color: var(--xf-mist);
}

.xf-eco-curada__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
}

.xf-eco-curada__card {
	border-radius: var(--xf-radius);
	overflow: hidden;
	border: 1px solid var(--xf-line);
	background: var(--xf-coal);
	box-shadow: var(--xf-shadow-card);
	transition: transform 0.6s var(--xf-ease), border-color 0.5s, box-shadow 0.6s;
}

.xf-eco-curada__card:hover {
	transform: translateY(-5px);
	border-color: rgba(255, 158, 44, 0.4);
	box-shadow: var(--xf-glow-fire);
}

.xf-eco-curada__media {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.xf-eco-curada__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.03);
	transition: transform 1.2s var(--xf-ease);
}

.xf-eco-curada__card:hover .xf-eco-curada__media img { transform: scale(1.09); }

.xf-eco-curada__body { padding: 20px 22px 24px; }

.xf-eco-curada__body h2 {
	font-family: var(--xf-font-display);
	font-size: 21px;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--xf-cream);
}

.xf-eco-curada__body p {
	margin: 0 0 14px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--xf-mist);
}

.xf-eco-curada__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--xf-gold);
}

.xf-eco-curada__cta { margin-top: 46px; text-align: center; }
.xf-eco-curada__cta p { color: var(--xf-mist); margin: 0 0 18px; }

/* ---------- 5. RESPONSIVE --------------------------------------------------- */
@media (max-width: 1024px) {
	.xf-eco__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(215px, auto); }
	.xf-eco-curada__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.xf-eco { padding-inline: 18px; }
	.xf-eco__grid { grid-template-columns: 1fr; grid-auto-rows: minmax(215px, auto); gap: 18px; }
	.xf-eco__tile--big,
	.xf-eco__tile--wide { grid-column: span 1; grid-row: span 1; }
	.xf-eco__tile--big { min-height: 320px; }
	.xf-eco__body { padding: 20px 20px 22px; }
	.xf-eco__chip { padding: 9px 19px; font-size: 14.5px; }
	.xf-eco-curada__grid { grid-template-columns: 1fr; }
}

/* ---------- 6. MOVIMIENTO REDUCIDO ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.xf-eco__marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
	.xf-eco__tile,
	.xf-eco__media img,
	.xf-eco__tile::after { transition: none; }
	.xf-eco__live i { animation: none; }
}


/* ==========================================================================
   v1.9.5 · TARJETA CORAZÓN + SECCIÓN LA TIENDA
   ========================================================================== */

/* ---------- 8. EL CORAZÓN DEL CLUB (Citas, tarjeta protagonista) ---------- */
.xf-eco--top { padding-top: clamp(70px, 9vw, 118px); }

.xf-eco__heart-tag {
	position: absolute;
	top: 20px;
	left: 20px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: 999px;
	font-family: var(--xf-font-body);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1b0d04;
	background: var(--xf-grad-fire);
	box-shadow: 0 8px 26px rgba(255, 90, 31, 0.45);
}
.xf-eco__heart-tag svg { flex: 0 0 auto; }

.xf-eco__tile--heart .xf-eco__body { padding-top: 150px; }
.xf-eco__tile--heart .xf-eco__body p { max-width: 46ch; }
.xf-eco__tile--heart .xf-btn { margin-top: 22px; align-self: flex-start; }

/* ---------- 9. LA TIENDA ------------------------------------------------- */
.xf-shop {
	position: relative;
	padding: clamp(80px, 11vw, 140px) 24px clamp(70px, 9vw, 120px);
	overflow: hidden;
}

.xf-shop__halo {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(44% 32% at 88% 8%, rgba(232, 64, 138, 0.14), transparent 70%),
		radial-gradient(40% 34% at 8% 30%, rgba(255, 158, 44, 0.11), transparent 70%),
		radial-gradient(50% 38% at 50% 104%, rgba(157, 108, 255, 0.10), transparent 72%);
}

.xf-shop__head {
	position: relative;
	max-width: 860px;
	margin: 0 auto clamp(44px, 6vw, 68px);
	text-align: center;
}
.xf-shop__head .xf-lead strong { color: var(--xf-cream, #fff6ec); }

/* --- 9.1 Categorías del escaparate --- */
.xf-shop__cats {
	position: relative;
	max-width: var(--xf-wrap);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.xf-shop__cat {
	position: relative;
	border-radius: var(--xf-radius);
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border: 1px solid var(--xf-line);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	transition: transform 0.5s var(--xf-ease), box-shadow 0.5s var(--xf-ease), border-color 0.5s var(--xf-ease);
}
.xf-shop__cat:hover {
	transform: translateY(-6px);
	border-color: rgba(232, 64, 138, 0.4);
	box-shadow: 0 24px 60px rgba(232, 64, 138, 0.22);
}

.xf-shop__cat-media {
	position: absolute;
	inset: 0;
	margin: 0;
}
.xf-shop__cat-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1.03);
	transition: transform 0.7s var(--xf-ease), filter 0.7s var(--xf-ease);
}
.xf-shop__cat:hover .xf-shop__cat-media img { transform: scale(1.09); filter: saturate(1.15); }

.xf-shop__cat-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(178deg, rgba(10, 5, 18, 0) 34%, rgba(10, 5, 18, 0.88) 92%);
}

.xf-shop__cat-body {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 20px;
}
.xf-shop__cat-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	color: var(--xf-rose);
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(8px);
	transition: transform 0.4s var(--xf-ease), color 0.4s var(--xf-ease);
}
.xf-shop__cat:hover .xf-shop__cat-icon { transform: rotate(-6deg) scale(1.08); color: var(--xf-ember); }
.xf-shop__cat-body h3 {
	margin: 0;
	font-family: var(--xf-font-display);
	font-size: clamp(18px, 1.9vw, 22px);
	font-weight: 600;
	letter-spacing: 0.01em;
}

/* --- 9.2 Últimas piezas (muestras) --- */
.xf-shop__shelf {
	position: relative;
	max-width: var(--xf-wrap);
	margin: clamp(48px, 6vw, 72px) auto 0;
}

.xf-shop__shelf-lead {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 0 clamp(24px, 3.4vw, 36px);
	font-family: var(--xf-font-display);
	font-size: clamp(18px, 2vw, 23px);
	font-style: italic;
	color: var(--xf-gold);
	text-align: center;
}
.xf-shop__shelf-lead svg { color: var(--xf-ember); flex: 0 0 auto; }

.xf-shop__shelf-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.xf-shop__item {
	position: relative;
	border-radius: var(--xf-radius);
	overflow: hidden;
	border: 1px solid var(--xf-line);
	background: rgba(255, 255, 255, 0.025);
	transition: transform 0.5s var(--xf-ease), box-shadow 0.5s var(--xf-ease), border-color 0.5s var(--xf-ease);
}
.xf-shop__item:hover {
	transform: translateY(-6px);
	border-color: rgba(255, 158, 44, 0.38);
	box-shadow: 0 22px 54px rgba(255, 122, 26, 0.18);
}

.xf-shop__item-media {
	position: relative;
	margin: 0;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.xf-shop__item-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform: scale(1.03);
	transition: transform 0.7s var(--xf-ease);
}
.xf-shop__item:hover .xf-shop__item-media img { transform: scale(1.09); }
.xf-shop__item-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 246, 236, 0.92);
	filter: drop-shadow(0 6px 22px rgba(10, 5, 18, 0.85));
}

.xf-shop__item-body { padding: 16px 18px 18px; }
.xf-shop__item-cat {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--xf-ember);
	margin-bottom: 6px;
}
.xf-shop__item-body h3 {
	margin: 0 0 10px;
	font-family: var(--xf-font-display);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
}
.xf-shop__item-soon {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--xf-gold);
	background: rgba(255, 194, 75, 0.1);
	border: 1px solid rgba(255, 194, 75, 0.3);
}

.xf-shop__cta {
	position: relative;
	text-align: center;
	margin-top: clamp(40px, 5.4vw, 60px);
}

/* --- 9.3 Responsive tienda --- */
@media (max-width: 1024px) {
	.xf-shop__cats { grid-template-columns: repeat(2, 1fr); }
	.xf-shop__shelf-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.xf-shop__cats { grid-template-columns: 1fr; }
	.xf-shop__cat { aspect-ratio: 16 / 9; }
	.xf-shop__shelf-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.xf-shop__item-body { padding: 13px 14px 15px; }
	.xf-shop__item-body h3 { font-size: 16px; }
	.xf-eco__tile--heart .xf-eco__body { padding-top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
	.xf-shop__cat,
	.xf-shop__item,
	.xf-shop__cat-media img,
	.xf-shop__item-media img,
	.xf-shop__cat-icon { transition: none; }
}
