/* ==================================================
   Extravaganza — estilos propios de la plantilla (hero: pantalla LED gigante)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   El color de cada producto llega como variable desde ex.js: --acc
   ================================================== */

.ex-hero {
	--acc: #ff4fd8;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100svh;
	min-height: 680px;
	padding-top: 68px;
	overflow: hidden;
	color: #f5f5f0;
	background: #050507;
}
/* Resplandor del color del producto detrás de la pantalla */
.ex-glow {
	position: absolute;
	right: -12%;
	top: 18%;
	width: 72vw;
	height: 78vh;
	background: radial-gradient(closest-side, var(--acc), transparent);
	opacity: .32;
	filter: blur(30px);
	pointer-events: none;
	transition: opacity .4s linear;
}

/* Letrero LED corredizo: el texto se ve hecho de puntos */
.ex-ticker { position: relative; z-index: 2; flex: 0 0 auto; padding: 8px 0; overflow: hidden; white-space: nowrap; background: #0a0a0d; border-bottom: 3px solid #1a1a22; }
.ex-ticker__inner { display: inline-flex; will-change: transform; animation: ex-tick 30s linear infinite; }
@keyframes ex-tick { to { transform: translateX(-50%); } }
.ex-ticker__group { display: inline-flex; align-items: center; flex: 0 0 auto; }
.ex-ticker__group span {
	padding: 0 .55em;
	font-family: var(--mb-mono);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent);
	text-shadow: 0 0 10px rgba(255, 224, 0, .55);
	-webkit-mask-image: radial-gradient(circle, #000 52%, transparent 60%);
	mask-image: radial-gradient(circle, #000 52%, transparent 60%);
	-webkit-mask-size: 4px 4px;
	mask-size: 4px 4px;
}
.ex-ticker__group i { padding: 0 .4em; font-style: normal; font-size: 18px; color: var(--acc); }

/* Titular con píldoras de producto (como el original) y reloj de la oferta */
.ex-head { position: relative; z-index: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(12px, 2.2vh, 26px) var(--gutter) 0; }
.ex-page .ex-title {
	margin: 0;
	font-family: var(--mb-display);
	font-weight: 900;
	font-size: clamp(34px, 4.6vw, 82px);
	line-height: .98;
	letter-spacing: -.03em;
	text-align: left;
	text-transform: uppercase;
	color: #f5f5f0;
}
.ex-title__l { display: flex; flex-wrap: wrap; align-items: center; gap: .16em; }
.ex-pill { display: inline-block; flex: 0 0 auto; width: 1.55em; height: .84em; overflow: hidden; border: 3px solid #23232c; border-radius: 999px; box-shadow: 0 0 22px -6px rgba(255, 255, 255, .35); }
.ex-pill img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ex-clock { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; padding: 8px 14px; background: #0a0a0d; border: 2px solid var(--acc); box-shadow: 4px 4px 0 var(--acc); }
.ex-clock__lab { font-family: var(--mb-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(245, 245, 240, .75); }
.ex-clock__t { font-family: var(--mb-mono); font-weight: 700; font-size: 30px; line-height: 1.1; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--accent); text-shadow: 0 0 12px rgba(255, 224, 0, .5); }

/* Zona principal: ficha a la izquierda, pantalla LED a la derecha */
.ex-main {
	position: relative;
	z-index: 3;
	flex: 1 1 auto;
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(300px, .9fr) minmax(0, 1.6fr);
	gap: clamp(18px, 3vw, 44px);
	padding: clamp(12px, 2.2vh, 24px) var(--gutter) clamp(12px, 2vh, 20px);
}
.ex-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 0;
	padding: clamp(18px, 2.2vw, 30px);
	overflow: hidden;
	background: #111116;
	border: 2px solid #22222b;
	border-radius: 28px;
}
.ex-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 84px;
	aspect-ratio: 1;
	font-family: var(--mb-display);
	font-weight: 900;
	font-size: 22px;
	letter-spacing: -.02em;
	color: #0a0a0a;
	background: var(--accent);
	clip-path: polygon(50% 0, 61% 14%, 79% 9%, 79% 27%, 96% 34%, 86% 50%, 96% 66%, 79% 73%, 79% 91%, 61% 86%, 50% 100%, 39% 86%, 21% 91%, 21% 73%, 4% 66%, 14% 50%, 4% 34%, 21% 27%, 21% 9%, 39% 14%);
	transform: rotate(12deg);
}
.ex-cat { margin: 0 0 8px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.ex-page .ex-name { margin: 0; padding-right: 80px; font-family: var(--mb-display); font-weight: 900; font-size: clamp(26px, 2.5vw, 42px); line-height: .98; letter-spacing: -.02em; text-align: left; text-transform: none; color: #f5f5f0; }
.ex-name__brand,
.ex-name__model { display: block; }
.ex-name__brand { text-transform: uppercase; }
.ex-name__model { margin-top: .12em; font-size: .68em; letter-spacing: -.01em; color: rgba(245, 245, 240, .82); }
.ex-tag { margin: 10px 0 14px; font-size: 16px; line-height: 1.45; color: rgba(245, 245, 240, .8); }
.ex-feats { display: grid; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.ex-feats li { display: flex; align-items: center; gap: 10px; font-family: var(--mb-mono); font-size: 12.5px; line-height: 1.3; letter-spacing: .02em; color: rgba(245, 245, 240, .78); }
.ex-feats li::before { content: ''; flex: 0 0 auto; width: 8px; height: 8px; background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.ex-price { display: flex; align-items: baseline; gap: 14px; margin: 0 0 16px; }
.ex-price__now { font-family: var(--mb-display); font-weight: 900; font-size: clamp(32px, 3vw, 52px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ex-price__was { font-family: var(--mb-mono); font-size: 18px; color: rgba(245, 245, 240, .5); }
.ak-page .ex-buy {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: auto;
	min-height: 54px;
	margin: 0;
	padding: 12px 30px;
	font-family: var(--mb-mono);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
	background: #4224ff;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 30px -6px rgba(66, 36, 255, .6), inset 0 0 0 2px rgba(255, 255, 255, .15);
	cursor: pointer;
	transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.ak-page .ex-buy:hover { color: #fff; background: #4f33ff; transform: translateY(-2px); box-shadow: 0 16px 36px -6px rgba(66, 36, 255, .75), inset 0 0 0 2px rgba(255, 255, 255, .25); }
.ex-coupon { display: block; min-height: 1.4em; margin-top: 10px; font-family: var(--mb-mono); font-size: 12px; letter-spacing: .04em; color: var(--accent); }

/* Pantalla LED */
.ex-wall { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.ex-screen {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	background: #060608;
	border: 10px solid #111116;
	border-radius: 28px;
	box-shadow: 0 0 0 2px #22222b, 0 0 90px -14px var(--acc);
	cursor: crosshair;
	touch-action: pan-y;
}
.ex-led { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
/* Resplandor de los LEDs: imagen de baja resolución (ex.js la posiciona sobre la grilla) desenfocada y sumada */
.ex-bloom { position: absolute; z-index: 1; display: block; filter: blur(14px) saturate(1.3); opacity: .55; mix-blend-mode: screen; pointer-events: none; transition: opacity .3s linear; }
.ex-screen.is-lens .ex-bloom { opacity: .3; }
.ex-screen.is-lens .ex-screen__hint { opacity: 0; }
.ex-screen__hint { transition: opacity .3s linear; }
.ex-screen__hint {
	position: absolute;
	left: 14px;
	bottom: 12px;
	z-index: 2;
	padding: 5px 10px;
	font-family: var(--mb-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #f5f5f0;
	background: rgba(0, 0, 0, .65);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	pointer-events: none;
}
.ex-picks { flex: 0 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ak-page .ex-pick {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 6px 12px 6px 6px;
	overflow: hidden;
	font-family: var(--mb-mono);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
	color: rgba(245, 245, 240, .7);
	background: #111116;
	border: 2px solid #22222b;
	border-radius: 999px;
	cursor: pointer;
	transition: border-color .2s linear, color .2s linear, box-shadow .2s linear;
}
.ex-pick img { flex: 0 0 auto; width: 46px; height: 30px; object-fit: cover; border-radius: 999px; }
.ex-pick span { overflow: hidden; text-overflow: ellipsis; }
.ak-page .ex-pick:hover { color: #fff; background: #16161c; border-color: #3a3a46; }
.ak-page .ex-pick.is-on { color: #fff; border-color: var(--acc); box-shadow: 0 0 20px -4px var(--acc); }
.ex-pick i { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--acc); transform: scaleX(var(--fill, 0)); transform-origin: 0 50%; }

.ex-confetti { position: absolute; inset: 0; z-index: 7; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }

/* ---------- Pie del hero ---------- */
.ex-foot {
	position: relative;
	z-index: 6;
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: minmax(260px, 1fr) auto auto;
	gap: 14px clamp(20px, 3vw, 44px);
	align-items: center;
	/* a la derecha queda libre el lugar del botón flotante de WhatsApp */
	padding: 14px calc(var(--gutter) + 140px) 16px var(--gutter);
	background: #0a0a0a;
	border-top: 3px solid var(--accent);
}
.ex-foot__meta { margin: 0 0 4px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ex-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.ex-ctrl { display: flex; align-items: center; gap: 10px; }
.ex-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.ex-idx { display: inline-block; font-family: var(--mb-display); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: -.02em; vertical-align: -5px; color: var(--accent); }
@media (max-width: 1180px) {
	.ex-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.ex-foot .ak-actions { grid-column: 1 / -1; }
	.ex-pick span { display: none; }
	.ex-pick { justify-content: center; padding: 6px; }
}
/* Pantallas bajas: la ficha se compacta */
@media (max-height: 840px) and (min-width: 1001px) {
	.ex-ticker { padding: 4px 0; }
	.ex-ticker__group span { font-size: 19px; }
	.ex-page .ex-title { font-size: clamp(30px, 3.8vw, 62px); }
	.ex-tag { display: none; }
	.ex-feats li:nth-child(n+4) { display: none; }
	.ex-feats { margin: 12px 0 10px; }
	.ex-price { margin-bottom: 10px; }
}

/* ---------- Tablet y móvil: pantalla arriba, ficha debajo ---------- */
@media (max-width: 1000px) {
	.ex-hero { height: auto; min-height: 0; }
	.ex-main { grid-template-columns: 1fr; }
	.ex-wall { order: -1; }
	.ex-screen { flex: none; aspect-ratio: 4 / 3; }
	.ex-head { flex-direction: column; align-items: flex-start; }
	.ex-clock { align-items: flex-start; }
}
@media (max-width: 700px) {
	.ex-hero { padding-top: 60px; }
	.ex-ticker__group span { font-size: 17px; }
	.ex-page .ex-title { font-size: clamp(30px, 9.5vw, 52px); }
	.ex-title__l:last-child .ex-pill { display: none; }
	.ex-screen { border-width: 6px; border-radius: 20px; aspect-ratio: 1 / 1; }
	.ex-screen__hint { display: none; }
	.ex-picks { gap: 6px; }
	.ex-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.ex-ctrl { order: -1; }
	.ex-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.ex-ticker__inner { animation: none; }
	.ex-glow { transition: none; }
}
