/* ── Extendable: Widget Marquee ─────────────────────────────── */

.ext-marquee {
	overflow: hidden;
	width: 100%;
	/* Fade-out en los bordes para efecto de profundidad */
	-webkit-mask-image: linear-gradient(
		to right,
		transparent 0%,
		black 8%,
		black 92%,
		transparent 100%
	);
	mask-image: linear-gradient(
		to right,
		transparent 0%,
		black 8%,
		black 92%,
		transparent 100%
	);
}

.ext-marquee__track {
	display: flex;
	align-items: center;
	gap: 48px;
	width: max-content;
	/* La animación (keyframe + duración) la inyecta widget-marquee.js en px exactos */
	will-change: transform;
}

/* Items */
.ext-marquee__item {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* Texto */
.ext-marquee__label {
	font-family: var(--wp--preset--font-family--inter, 'Inter', sans-serif);
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	font-weight: 700;
	color: var(--wp--preset--color--foreground, #0B0620);
	white-space: nowrap;
	letter-spacing: -0.01em;
}

/* Imagen / Logo */
.ext-marquee__img {
	display: block;
	max-height: 48px;
	width: auto;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: opacity 0.3s ease, filter 0.3s ease;
	flex-shrink: 0;
}

.ext-marquee__img:hover {
	opacity: 1;
	filter: grayscale(0%);
}

/* Separador decorativo */
.ext-marquee__sep {
	flex-shrink: 0;
	color: var(--wp--preset--color--primary, #381d92);
	font-size: 0.75rem;
	line-height: 1;
	user-select: none;
}

/* Accesibilidad: respeta preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
	.ext-marquee__track {
		animation: none;
		flex-wrap: wrap;
		width: 100%;
		justify-content: center;
	}

	.ext-marquee {
		-webkit-mask-image: none;
		mask-image: none;
	}
}
