/* Marquee for Elementor */
.mqe-marquee {
	--mqe-gap: 40px;
	--mqe-fade: 80px;
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

.mqe-track {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	width: max-content;
	will-change: transform;
	animation: mqe-scroll var(--mqe-duration, 20s) linear infinite;
}

.mqe-marquee[data-direction="right"] .mqe-track {
	animation-direction: reverse;
}

/* No animar hasta que JS haya medido y clonado los grupos. */
.mqe-marquee:not(.mqe-ready) .mqe-track {
	animation-play-state: paused;
}

.mqe-marquee[data-pause="yes"]:hover .mqe-track,
.mqe-marquee[data-pause="yes"]:focus-within .mqe-track {
	animation-play-state: paused;
}

.mqe-group {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* El espacio va detrás de cada hijo, así el ancho del grupo incluye el hueco final
   y la unión entre copias queda perfecta. */
.mqe-group > * {
	margin-inline-end: var(--mqe-gap);
}

.mqe-item {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	white-space: nowrap;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	transition: color .25s, background .25s, transform .25s;
}

a.mqe-item:hover,
a.mqe-item:focus {
	text-decoration: none;
}

.mqe-item.mqe-img-right  { flex-direction: row-reverse; }
.mqe-item.mqe-img-top    { flex-direction: column; }
.mqe-item.mqe-img-bottom { flex-direction: column-reverse; }

.mqe-image {
	display: block;
	line-height: 0;
	flex-shrink: 0;
}

.mqe-image img {
	display: block;
	height: 48px;
	width: auto;
	max-width: none;
	object-fit: contain;
	transition: filter .25s, opacity .25s;
}

.mqe-text {
	display: inline-block;
	line-height: 1.2;
}

.mqe-stroke .mqe-text {
	-webkit-text-fill-color: transparent;
	-webkit-text-stroke-width: 1px;
	-webkit-text-stroke-color: currentColor;
}

.mqe-sep {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
}

.mqe-sep-inner {
	display: inline-flex;
}

.mqe-sep svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.mqe-sep-spin .mqe-sep-inner {
	animation: mqe-spin 4s linear infinite;
}

.mqe-fade {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--mqe-fade), #000 calc(100% - var(--mqe-fade)), transparent 100%);
	        mask-image: linear-gradient(to right, transparent 0, #000 var(--mqe-fade), #000 calc(100% - var(--mqe-fade)), transparent 100%);
}

@keyframes mqe-scroll {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(calc(-1 * var(--mqe-distance, 50%)), 0, 0); }
}

@keyframes mqe-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.mqe-respect-rm .mqe-track,
	.mqe-respect-rm .mqe-sep-inner {
		animation: none;
	}
	.mqe-respect-rm {
		overflow-x: auto;
	}
}
