/* ==========================================================================
   EVOX — Top bar informativo
   Los colores llegan como variables en línea desde los ajustes del admin
   (WooCommerce → Top bar EVOX), con la paleta de marca como respaldo.
   ========================================================================== */

.evox-topbar {
	position: relative;
	overflow: hidden;
	background: var(--evox-topbar-bg, var(--evox-azul));
	color: var(--evox-topbar-fg, #fff);
	/* max-height (no height) para poder colapsarla con animación al hacer
	   scroll sin tener que medir su alto real desde JavaScript. */
	max-height: 120px;
	transition: max-height 0.3s ease, opacity 0.25s ease;
}
.evox-topbar.is-hidden {
	max-height: 0;
	opacity: 0;
}

.evox-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 9px 20px;
	min-height: 38px;
}

.evox-topbar__msg {
	display: none;
	margin: 0;
	font-family: 'Manrope', sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.01em;
	text-align: center;
}
.evox-topbar__msg.is-active {
	display: block;
	animation: evox-topbar-in 0.45s ease;
}
.evox-topbar__msg a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.evox-topbar__msg strong {
	font-weight: 800;
}

@keyframes evox-topbar-in {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Quien haya pedido menos movimiento en su sistema no ve la animación ni la
   barra colapsándose de golpe. */
@media (prefers-reduced-motion: reduce) {
	.evox-topbar,
	.evox-topbar__msg.is-active {
		transition: none;
		animation: none;
	}
}

@media (max-width: 600px) {
	.evox-topbar__inner {
		padding: 8px 14px;
		min-height: 34px;
	}
	.evox-topbar__msg {
		font-size: 12px;
	}
}
