/**
 * Sección de Confianza - Safety Garage
 */

.trust-section {
	padding: 5rem 1.5rem;
	background: #d5dde8;
}

.trust-section__container {
	max-width: 1100px;
	margin: 0 auto;
}

/* Header */
.trust-section__header {
	text-align: center;
	margin-bottom: 3rem;
}

.trust-section__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	color: var(--sg-dark, #122d5c);
	margin: 0 0 1rem;
	font-style: italic;
}

.trust-section__subtitle {
	font-size: 1rem;
	color: #5a6a7a;
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

/* Carrusel de clientes (marquee) */
.clients-marquee {
	overflow: hidden;
	margin-bottom: 3rem;
	padding: 1.5rem 0;
	position: relative;
}

/* Gradientes en los bordes para efecto de fade */
.clients-marquee::before,
.clients-marquee::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 100px;
	z-index: 2;
	pointer-events: none;
}

.clients-marquee::before {
	left: 0;
	background: linear-gradient(to right, #d5dde8 0%, transparent 100%);
}

.clients-marquee::after {
	right: 0;
	background: linear-gradient(to left, #d5dde8 0%, transparent 100%);
}

.clients-marquee__track {
	display: flex;
	align-items: center;
	gap: 4rem;
	animation: marquee 30s linear infinite;
	width: max-content;
}

.clients-marquee:hover .clients-marquee__track {
	animation-play-state: paused;
}

@keyframes marquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.clients-marquee__item {
	flex-shrink: 0;
	opacity: 0.6;
	transition: opacity 0.3s ease, filter 0.3s ease;
	filter: grayscale(100%);
}

.clients-marquee__item:hover {
	opacity: 1;
	filter: grayscale(0%);
}

.clients-marquee__item img {
	max-height: 45px;
	width: auto;
	object-fit: contain;
	display: block;
}

.clients-marquee__item--placeholder {
	opacity: 0.5;
}

.clients-marquee__item--placeholder span {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--sg-dark, #122d5c);
	font-style: italic;
	white-space: nowrap;
}

/* Testimonios */
.trust-section__testimonials {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 3rem;
}

.testimonial-card {
	background: #fff;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.testimonial-card__stars {
	display: flex;
	gap: 0.15rem;
	margin-bottom: 0.75rem;
}

.testimonial-card__stars svg {
	color: #f5a623;
}

.testimonial-card__text {
	font-size: 0.95rem;
	color: var(--sg-dark, #122d5c);
	line-height: 1.6;
	margin: 0 0 1.25rem;
	font-weight: 500;
}

.testimonial-card__author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.testimonial-card__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	background: #e8ecf2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.testimonial-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.testimonial-card__avatar-placeholder {
	font-size: 1rem;
	font-weight: 600;
	color: #8a9aa8;
}

.testimonial-card__info {
	display: flex;
	flex-direction: column;
}

.testimonial-card__name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--sg-dark, #122d5c);
}

.testimonial-card__role {
	font-size: 0.8rem;
	color: #8a9aa8;
}

/* Estadísticas */
.trust-section__stats {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0;
	margin-bottom: 3rem;
	background: #fff;
	border-radius: 8px;
	padding: 1rem 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.trust-stat {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 2rem;
	border-right: 1px solid #e8ecf2;
}

.trust-stat:last-child {
	border-right: none;
}

.trust-stat__icon {
	color: #8a9aa8;
	flex-shrink: 0;
}

.trust-stat__number {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--sg-dark, #122d5c);
}

.trust-stat__text {
	font-size: 0.9rem;
	color: #5a6a7a;
}

/* CTA */
.trust-section__cta {
	text-align: center;
}

.trust-section__cta-text {
	font-size: 1.125rem;
	color: var(--sg-dark, #122d5c);
	margin: 0 0 1rem;
	font-weight: 500;
}

.btn--outline {
	display: inline-block;
	background: transparent;
	color: var(--sg-dark, #122d5c);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.85rem 2rem;
	border-radius: 6px;
	border: 2px solid var(--sg-dark, #122d5c);
	transition: all 0.2s ease;
}

.btn--outline:hover {
	background: var(--sg-dark, #122d5c);
	color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
	.trust-section__testimonials {
		grid-template-columns: repeat(2, 1fr);
	}

	.trust-section__testimonials .testimonial-card:last-child {
		grid-column: span 2;
		max-width: 50%;
		margin: 0 auto;
	}
}

@media (max-width: 768px) {
	.trust-section {
		padding: 3rem 1rem;
	}

	.trust-section__logos {
		gap: 1.5rem;
	}

	.trust-section__testimonials {
		grid-template-columns: 1fr;
	}

	.trust-section__testimonials .testimonial-card:last-child {
		grid-column: span 1;
		max-width: 100%;
	}

	.trust-section__stats {
		flex-direction: column;
		gap: 0;
	}

	.trust-stat {
		border-right: none;
		border-bottom: 1px solid #e8ecf2;
		width: 100%;
		justify-content: center;
	}

	.trust-stat:last-child {
		border-bottom: none;
	}
}
