/* UI-019 · Modo Cyber: franja negra con el contador en blanco (inc/franja-cyber.php).
 * Todo cuelga de .vs-franja-cyber (la franja 15b8fda con el modo encendido). «body:not(.vs-green)» y !important
 * donde hace falta: el CSS de Elementor de la franja y el del header ordenado (UI-015) pisan los mismos elementos. */

@font-face {
	font-family: 'VS Rajdhani';
	src: url('../../fonts/rajdhani-700-latin.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

body:not(.vs-green) .elementor-element-15b8fda.vs-franja-cyber {
	--cy-rojo: #ff3232;
	--cy-cifra: #e3141b;
	height: auto !important;
	min-height: 90px !important;
	padding: 8px max(20px, calc((100% - 1720px) / 2 + 32px)) !important;
	justify-content: center !important;
	align-items: center !important;
	gap: 0 !important;
	background-color: #0a0a0a !important;
	background-image:
		linear-gradient(rgba(255, 50, 50, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 50, 50, 0.08) 1px, transparent 1px) !important;
	background-size: 23px 23px !important;
	border-bottom: 3px solid #e82e2e;
}
/* Título y cronómetro de la campaña anterior: ocultos mientras dure el modo. */
body:not(.vs-green) .vs-franja-cyber > .elementor-element-7e73375,
body:not(.vs-green) .vs-franja-cyber > .elementor-element-5c66b48 {
	display: none !important;
}

.vs-cyber {
	position: relative;
	display: flex;
	align-items: center;
	gap: 28px;
	order: 1;
	color: #fff;
}

/* Etiqueta: paralelogramo rojo */
.vs-cyber__marca {
	display: inline-flex;
	align-items: center;
	height: 42px;
	padding: 2px 30px 0;
	background: var(--cy-rojo);
	clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
	color: #fff;
	font: 700 32px/1 'VS Rajdhani', 'Nunito', sans-serif;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
}

.vs-cyber__texto {
	display: flex;
	flex-direction: column;
	gap: 3px;
	white-space: nowrap;
}
.vs-cyber__titulo {
	color: #fff;
	font: 800 19px/1.15 'Nunito', sans-serif;
}
.vs-cyber__sub {
	color: #d4d4d4;
	font: 400 13.5px/1.2 'Nunito', sans-serif;
}

/* Contador: pastilla blanca con cifras rojas */
.vs-cyber__reloj {
	display: inline-flex;
	align-items: flex-start;
	gap: 4px;
	padding: 9px 22px 7px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(227, 20, 27, 0.38), 0 8px 22px rgba(0, 0, 0, 0.5);
}
.vs-cyber__celda {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 56px;
}
.vs-cyber__num {
	display: block;
	color: var(--cy-cifra);
	font: 700 40px/1 'VS Rajdhani', 'Nunito', sans-serif;
	font-variant-numeric: tabular-nums;
}
.vs-cyber__num.is-cambio {
	animation: vs-cyber-cambio 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes vs-cyber-cambio {
	from {
		opacity: 0.15;
		transform: translateY(-40%);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.vs-cyber__etq {
	margin-top: 7px;
	color: #2b2b2b;
	font: 800 10.5px/1 'Nunito', sans-serif;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}
.vs-cyber__sep {
	color: #c4c4c4;
	font: 700 28px/40px 'VS Rajdhani', 'Nunito', sans-serif;
	font-style: normal;
}

/* Ya empezó: fuera el contador y la fecha. */
.vs-cyber.is-empezo .vs-cyber__reloj,
.vs-cyber.is-empezo .vs-cyber__sub {
	display: none;
}

/* Píldora del 15 % (UI-018) sobre negro: borde claro en vez de fondo blanco. */
body:not(.vs-green) .vs-franja-cyber > .vs-cupon15 {
	height: 36px;
	margin-left: 30px;
	padding: 0 18px 0 16px;
	border: 2px solid rgba(255, 255, 255, 0.55);
	background: transparent;
	color: #fff !important;
	font-size: 14px;
	box-shadow: none;
}
body:not(.vs-green) .vs-franja-cyber > .vs-cupon15::before {
	display: none;
}
body:not(.vs-green) .vs-franja-cyber .vs-cupon15__ico {
	stroke: var(--cy-rojo);
}
body:not(.vs-green) .vs-franja-cyber .vs-cupon15__cta,
body:not(.vs-green) .vs-franja-cyber .vs-cupon15__txt::after {
	color: #ff5a5a;
}

/* Escritorio estrecho y tablet: no caben las cuatro piezas; fuera el texto. */
@media (max-width: 1199px) {
	.vs-cyber__texto {
		display: none;
	}
}
@media (min-width: 768px) and (max-width: 1023px) {
	.vs-cyber {
		gap: 20px;
	}
	.vs-cyber__marca {
		height: 34px;
		padding: 2px 24px 0;
		font-size: 25px;
	}
	.vs-cyber__celda {
		min-width: 44px;
	}
	.vs-cyber__num {
		font-size: 32px;
	}
	.vs-cyber__sep {
		font-size: 22px;
		line-height: 32px;
	}
	body:not(.vs-green) .vs-franja-cyber > .vs-cupon15 {
		margin-left: 20px;
		font-size: 13px;
	}
}

/* Móvil: etiqueta y contador en una línea; la píldora del 15 % sigue en su línea propia debajo (UI-018),
 * en negro en vez de rojo para que siga a la franja. */
@media (max-width: 767px) {
	body:not(.vs-green) .elementor-element-15b8fda.vs-franja-cyber {
		min-height: 0 !important;
		padding: 9px 10px !important;
		background-size: 18px 18px !important;
		border-bottom-width: 2px;
	}
	.vs-cyber {
		gap: 12px;
	}
	.vs-cyber__marca {
		height: 28px;
		padding: 2px 16px 0;
		clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
		font-size: 20px;
	}
	.vs-cyber__reloj {
		gap: 1px;
		padding: 5px 10px 4px;
		border-radius: 8px;
		box-shadow: 0 0 0 2px rgba(227, 20, 27, 0.38);
	}
	.vs-cyber__celda {
		min-width: 31px;
	}
	.vs-cyber__num {
		font-size: 23px;
	}
	.vs-cyber__etq {
		margin-top: 3px;
		font-size: 7.5px;
		letter-spacing: 0.12em;
	}
	.vs-cyber__sep {
		font-size: 17px;
		line-height: 23px;
	}
	body:not(.vs-green) .vs-franja-cyber > .vs-cupon15 {
		height: 28px;
		margin: 0;
		padding: 0 14px;
		border: 0;
		border-top: 1px solid #2a2a2a;
		background: #141414;
		font-size: 12px;
	}
	body:not(.vs-green) .vs-franja-cyber .vs-cupon15__cta {
		background: var(--cy-rojo);
		color: #fff;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vs-cyber__num.is-cambio {
		animation: none;
	}
}

/* ------------------------------------------------------------------------------------------------
 * Con el header ordenado (UI-015, hoy solo en staging): la franja y la barra de anuncios vuelven a ir en dos
 * filas, como en producción y en el diseño. La barra de anuncios recupera el aspecto de producción.
 * --------------------------------------------------------------------------------------------- */
body:not(.vs-green) .elementor-36:has(> .vs-franja-cyber) {
	background-color: transparent;
}
body:not(.vs-green) .elementor-36:has(> .vs-franja-cyber) > .elementor-element-vsanb01 {
	height: 26px;
	min-height: 0 !important;
	background-color: #fff !important;
}
body:not(.vs-green) .elementor-36:has(> .vs-franja-cyber) .vs-announce-arrow {
	display: block !important;
	color: #333 !important;
}
body:not(.vs-green) .elementor-36:has(> .vs-franja-cyber) .vs-announce-msg {
	justify-content: center !important;
	color: #333 !important;
	font-weight: 600 !important;
}
@media (min-width: 1100px) {
	body:not(.vs-green) .elementor-36 > .elementor-element-15b8fda.vs-franja-cyber {
		flex: 0 0 100% !important;
		width: 100% !important;
		padding-right: max(20px, calc((100% - 1720px) / 2 + 32px)) !important;
	}
	body:not(.vs-green) .elementor-36:has(> .vs-franja-cyber) > .elementor-element-vsanb01 {
		flex: 0 0 100% !important;
		width: 100% !important;
		padding: 0 20px !important;
	}
	body:not(.vs-green) .elementor-36:has(> .vs-franja-cyber) .vs-announce-bar {
		height: 26px;
		padding: 4px 24px !important;
		gap: 64px !important;
		justify-content: center !important;
	}
	body:not(.vs-green) .elementor-36:has(> .vs-franja-cyber) .vs-announce-track {
		flex: 0 1 auto !important;
		width: 560px !important;
		max-width: 560px !important;
	}
	body:not(.vs-green) .elementor-36:has(> .vs-franja-cyber) .vs-announce-msg {
		font-size: 13px !important;
	}
}
