/* ==========================================================================
   Testimonials — "Testimonios que inspiran"
   Mobile-first
   ========================================================================== */

/* --- Section --- */
.testimonials {
	padding: 40px 0;
	background: #FFFFFF;
	position: relative;
}

.testimonials::before {
	content: '';
	display: none;
	position: absolute;
	left: 19px;
	bottom: -120px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: rgba(199, 22, 78, 0.39);
	filter: blur(60px);
	z-index: 2;
	pointer-events: none;
}

.testimonials > .container {
	padding-inline: 0;
}

/* --- Header --- */
.testimonials__header {
	text-align: center;
	margin-bottom: 32px;
	padding-inline: var(--container-padding, 20px);
}

.testimonials__title {
	font-family: var(--font-primary);
	font-size: 30px;
	font-weight: 700;
	line-height: 32px;
	letter-spacing: 0%;
	color: #03336A;
	margin: 0 0 12px;
}

.testimonials__title-highlight {
	color: #016FDF;
}

.testimonials__subtitle {
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 400;
	line-height: 130%;
	letter-spacing: 0%;
	color: #000000;
	margin: 0;
}

/* --- Content wrapper --- */
.testimonials__content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* --- Carousel --- */
.testimonials__carousel {
	overflow: clip;
}

.testimonials__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 4px var(--container-padding, 20px);
	scroll-padding-left: var(--container-padding, 20px);
	scroll-padding-right: var(--container-padding, 20px);
}

.testimonials__track::-webkit-scrollbar {
	display: none;
}

/* --- Card --- */
.testimonials__card {
	flex: 0 0 min(320px, 85vw);
	scroll-snap-align: start;
	background: #FFFFFF;
	border-radius: 16px;
	padding: 32px 32px 24px;
	border: 1px solid #AFB9CA;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow: visible;
}

.testimonials__card:last-child {
	scroll-snap-align: end;
}

/* --- Quote marks --- */
.testimonials__quote-open,
.testimonials__quote-close {
	position: absolute;
	width: 45.46px;
	height: 37px;
	line-height: 0;
	z-index: 1;
	overflow: hidden;
	background: #FFFFFF;
	padding: 4px 3px;
}

.testimonials__quote-open {
	top: -2px;
	left: -2px;
}

.testimonials__quote-close {
	bottom: -2px;
	right: -2px;
	transform: rotate(180deg);
}

/* --- Stars --- */
.testimonials__stars {
	display: flex;
	gap: 2px;
}

/* --- Card Quote (headline) --- */
.testimonials__card-quote {
	font-family: var(--font-primary);
	font-size: 18px;
	font-weight: 400;
	font-style: italic;
	line-height: 130%;
	letter-spacing: 0%;
	color: #016FDF;
	margin: 0;
}

/* --- Card Text --- */
.testimonials__card-text {
	font-family: var(--font-primary);
	font-size: 14px;
	font-weight: 400;
	line-height: 130%;
	letter-spacing: 0%;
	color: #444444;
	margin: 0;
}

/* --- Author --- */
.testimonials__card-author {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.testimonials__avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.testimonials__author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.testimonials__language {
	display: inline-block;
	font-family: var(--font-primary);
	font-size: 14px;
	font-weight: 500;
	line-height: normal;
	letter-spacing: 0%;
	color: #EC611C;
	background: #FFFFFF;
	border: 1px solid #F9D1BD;
	padding: 6px 10px;
	border-radius: 26px;
	width: fit-content;
}

.testimonials__author-name {
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 700;
	line-height: 120%;
	letter-spacing: 0%;
	color: #016FDF;
}

.testimonials__author-role {
	font-family: var(--font-primary);
	font-size: 14px;
	font-weight: 500;
	line-height: 120%;
	letter-spacing: 0%;
	color: #444444;
}

/* --- Dots --- */
.testimonials__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

.testimonials__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: #C4C4C4;
	cursor: pointer;
	padding: 0;
	transition: all 0.3s ease;
}

.testimonials__dot--active {
	width: 40px;
	height: 10px;
	border-radius: 5px;
	background: #016FDF;
}

/* --- Video Card --- */
.testimonials__video-card {
	display: block;
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	aspect-ratio: 16 / 10;
	width: calc(100% - 40px);
	margin-inline: auto;
}

.testimonials__video-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.testimonials__video-overlay {
	position: absolute;
	inset: 0;
	border-radius: 16px;
	background: rgba(0, 0, 0, 0.30);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding: 24px;
}

.testimonials__video-overlay svg {
	width: 126px;
	height: 126px;
}

.testimonials__video-title {
	display: flex;
	flex-direction: column;
	text-align: center;
}

.testimonials__video-line1 {
	font-family: var(--font-primary);
	font-size: 24px;
	font-weight: 700;
	line-height: 110%;
	letter-spacing: 0%;
	color: #FFFFFF;
}

.testimonials__video-line2 {
	font-family: var(--font-primary);
	font-size: 30px;
	font-weight: 700;
	line-height: 100%;
	letter-spacing: 0%;
	color: #FFFFFF;
}

/* ==========================================================================
   Tablet — min-width: 768px
   ========================================================================== */

@media (min-width: 768px) {

	.testimonials {
		padding: 56px 0;
	}

	.testimonials__header {
		margin-bottom: 40px;
	}

	.testimonials__title {
		font-size: 36px;
		line-height: 110%;
	}

	.testimonials__subtitle {
		font-size: 18px;
	}

	.testimonials__card {
		flex: 0 0 calc(50% - 28px);
	}

	.testimonials__video-card {
		width: calc(100% - 40px);
		aspect-ratio: 16 / 9;
		max-height: 300px;
	}

}

/* ==========================================================================
   Desktop — min-width: 1024px
   ========================================================================== */

@media (min-width: 1024px) {

	.testimonials {
		padding: 64px 0;
	}

	.testimonials > .container {
		padding-inline: var(--container-padding, 20px);
	}

	.testimonials__title {
		font-size: 36px;
	}

	.testimonials__content {
		flex-direction: row;
		align-items: stretch;
		gap: 24px;
		position: relative;
	}

	.testimonials__carousel {
		flex: 2;
	}

	.testimonials__track {
		gap: 16px;
		padding-left: 0;
		padding-right: 0;
		scroll-padding-left: 0;
		scroll-padding-right: 0;
	}

	.testimonials__card {
		flex: 0 0 calc(50% - 8px);
	}

	.testimonials__video-card {
		flex: 1;
		aspect-ratio: auto;
		width: auto;
		margin-inline: 0;
	}

	.testimonials__dots {
		position: absolute;
		bottom: -30px;
		left: 0;
		width: 66.66%;
	}

	.testimonials__card-quote {
		font-size: 18px;
	}

	.testimonials__card-text {
		font-size: 15px;
	}

	.testimonials__video-line1 {
		font-size: 32px;
	}

	.testimonials__video-line2 {
		font-size: 36px;
	}

	.testimonials::before {
		display: block;
	}

	.testimonials::after {
		content: '';
		position: absolute;
		right: 40px;
		bottom: -20px;
		width: 80px;
		height: 80px;
		border-radius: 50%;
		background: #16C78E;
		filter: blur(40px);
		z-index: 2;
		pointer-events: none;
	}
}
