/* Logos clientes — Custom Ink style grid */

.ecl-brands {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	width: 100%;
}

.ecl-brands__header {
	margin-bottom: 1.25rem;
}

.ecl-brands__title {
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 800;
	margin: 0;
	color: #111111;
	line-height: 1.2;
}

.ecl-brands__viewport {
	overflow: hidden;
}

.ecl-brands__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.ecl-brands__track::-webkit-scrollbar {
	display: none;
}

.ecl-brands__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	min-width: 0;
}

.ecl-brands__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}

@media (min-width: 768px) {
	.ecl-brands__grid {
		grid-template-columns: repeat(8, 1fr);
		gap: 10px;
	}
}

.ecl-brands__cell {
	background: #f2f2f2;
	border-radius: 4px;
	aspect-ratio: 3 / 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
}

.ecl-brands__logo {
	display: block;
	max-width: 82%;
	max-height: 82%;
	width: auto;
	height: auto;
	object-fit: contain;
	transform: rotate(0deg);
	will-change: transform, opacity;
}

.ecl-brands__cell.is-spinning .ecl-brands__logo {
	animation: ecl-logo-spin-settle 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--ecl-spin-delay, 0ms) forwards;
}

@keyframes ecl-logo-spin-settle {
	0% {
		opacity: 0;
		transform: rotate(-540deg) scale(0.25);
	}

	70% {
		opacity: 1;
		transform: rotate(10deg) scale(1.06);
	}

	88% {
		transform: rotate(-3deg) scale(1);
	}

	100% {
		opacity: 1;
		transform: rotate(0deg) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ecl-brands__cell.is-spinning .ecl-brands__logo {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

.ecl-brands__nav {
	margin-top: 1rem;
}
