/* ASD Black Week FX 1.0 — ASD Web Studio */

/* ---------- Fuentes locales (OFL) ---------- */
@font-face {
	font-family: "Boldonse";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/boldonse-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/geist-latin-300-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/geist-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/geist-latin-500-normal.woff2") format("woff2");
}

/* ---------- Brillo orbital (motor compartido) ---------- */
.asd-glow-host {
	position: relative;
}
.asd-glow__core,
.asd-glow__bloom {
	position: absolute;
	pointer-events: none;
	border-radius: inherit;
	opacity: 0;
	transition: opacity .6s ease;
}
.asd-glow-ready > .asd-glow__core,
.asd-glow-ready > .asd-glow__bloom {
	opacity: 1;
}
/* Línea y resplandor: anillos recortados alrededor del elemento */
.asd-glow__core,
.asd-glow__bloom {
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.asd-glow__core {
	z-index: 3;
}
.asd-glow__bloom {
	z-index: 2;
}

/* ---------- Cuenta atrás ---------- */
.asd-bwfx-cd {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.asd-bwfx-cd__box {
	position: relative;
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 2px;
	font-family: "Geist", sans-serif;
	font-weight: 300;
	font-size: 24px;
	line-height: 45px;
	color: rgba(255, 255, 255, .74);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.asd-bwfx-cd__val,
.asd-bwfx-cd__suf {
	position: relative;
	z-index: 1;
}
.asd-bwfx-cd__val {
	display: inline-flex;
}
.asd-bwfx-cd__dg {
	position: relative;
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
}
.asd-bwfx-cd__sizer {
	visibility: hidden;
}
.asd-bwfx-cd__strip {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 1100%;
	display: flex;
	flex-direction: column;
	transform: translate3d(0, 0, 0);
	will-change: transform;
}
.asd-bwfx-cd--roll .asd-bwfx-cd__strip {
	transition: transform var(--asd-roll-ms, 700ms) cubic-bezier(.65, 0, .35, 1);
}
.asd-bwfx-cd__strip.is-jump {
	transition: none !important;
}
.asd-bwfx-cd__strip > span {
	flex: 0 0 calc(100% / 11);
	display: flex;
	align-items: center;
	justify-content: center;
}
.asd-bwfx-cd__msg {
	width: 100%;
	text-align: center;
}
.asd-bwfx-cd.is-expired-hide {
	display: none;
}
.asd-bwfx-cd.is-expired-message .asd-bwfx-cd__box {
	display: none;
}

/* ---------- Fondo de rayas ---------- */
.asd-bwfx-filings-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
}
/* En la web el widget no ocupa sitio; en el editor se ve como etiqueta */
.elementor-widget-asd-bwfx-filings:not(.elementor-element-edit-mode) {
	position: absolute !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}
.asd-bwfx-filings__badge {
	display: none;
}
.elementor-editor-active .asd-bwfx-filings__badge,
.elementor-element-edit-mode .asd-bwfx-filings__badge {
	display: inline-block;
	padding: 4px 10px;
	border: 1px dashed rgba(158, 236, 81, .7);
	border-radius: 3px;
	font: 500 11px/1.4 "Geist", sans-serif;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: rgba(158, 236, 81, .9);
	background: rgba(0, 0, 0, .35);
}
.elementor-element-edit-mode.elementor-widget-asd-bwfx-filings {
	position: relative;
	z-index: 5;
}

/* ---------- Resaltado <mark> con barrido (helpers para la plantilla) ---------- */
.asd-hl mark {
	--asd-hl-bg: #FF36A1;
	--asd-hl-tc: #000;
	color: inherit;
	padding: 0;
	background: linear-gradient(var(--asd-hl-bg), var(--asd-hl-bg)) no-repeat 0 0 / 0% 100%;
	animation: asdHlIn var(--asd-hl-dur, .7s) cubic-bezier(.65, 0, .35, 1) var(--asd-hl-delay, .9s) forwards;
}
.asd-hl--sweep mark {
	--asd-hl-final: var(--asd-hl-bg);
	animation: asdHlSweep calc(var(--asd-hl-dur, .7s) * 2) cubic-bezier(.65, 0, .35, 1) var(--asd-hl-delay, .9s) forwards;
}
@keyframes asdHlIn {
	0% { background-size: 0% 100%; }
	60% { color: var(--asd-hl-tc); }
	100% { background-size: 100% 100%; color: var(--asd-hl-tc); }
}
@keyframes asdHlSweep {
	0% { background-position: 0 0; background-size: 0% 100%; }
	30% { color: var(--asd-hl-tc); }
	50% { background-position: 0 0; background-size: 100% 100%; color: var(--asd-hl-tc); }
	50.01% { background-position: 100% 0; background-size: 100% 100%; }
	70% { color: var(--asd-hl-tc); }
	100% { background-position: 100% 0; background-size: 0% 100%; color: var(--asd-hl-final); }
}

@media (prefers-reduced-motion: reduce) {
	.asd-bwfx-cd--roll .asd-bwfx-cd__strip {
		transition: none;
	}
	.asd-hl mark,
	.asd-hl--sweep mark {
		animation-duration: 1ms;
		animation-delay: 0s;
	}
}
