/* ========================================
   FLOW — TESTIMONIALS
======================================== */

.testimonials {
	position: relative;
	overflow: hidden;

	background-color: var(--color-bg);
}

/* ----------------------------------------
   AMBIENT BACKGROUND
---------------------------------------- */

.testimonials::before {
	content: '';

	position: absolute;

	top: 0;
	right: -220px;

	width: 500px;
	height: 500px;

	border-radius: 50%;

	background: radial-gradient(
		circle,
		rgba(200, 255, 50, 0.045) 0%,
		transparent 68%
	);

	filter: blur(30px);

	pointer-events: none;
}

/* ----------------------------------------
   TESTIMONIALS LIST
---------------------------------------- */

.testimonials-list {
	position: relative;
	z-index: 1;

	display: flex;

	gap: var(--space-6);
}

/* ----------------------------------------
   TESTIMONIAL
---------------------------------------- */

.testimonial {
	position: relative;

	flex: 1;
	min-width: 0;

	padding: var(--space-8);

	border: 1px solid transparent;
	border-radius: var(--radius-md);

	background:
		linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
		linear-gradient(
				135deg,
				rgba(200, 255, 50, 0.55) 0%,
				rgba(200, 255, 50, 0.16) 28%,
				rgba(242, 244, 239, 0.07) 55%,
				rgba(200, 255, 50, 0.22) 100%
			)
			border-box;

	transition:
		transform var(--transition-base),
		background var(--transition-base);
}

/* ----------------------------------------
   HOVER
---------------------------------------- */

.testimonial:hover {
	background:
		linear-gradient(var(--color-surface-light), var(--color-surface-light))
			padding-box,
		linear-gradient(
				135deg,
				rgba(200, 255, 50, 0.7) 0%,
				rgba(200, 255, 50, 0.22) 32%,
				rgba(242, 244, 239, 0.1) 55%,
				rgba(200, 255, 50, 0.32) 100%
			)
			border-box;

	transform: translateY(-3px);
}

/* ----------------------------------------
   QUOTE MARK
---------------------------------------- */

.testimonial::before {
	content: '“';

	display: block;

	margin-bottom: var(--space-6);

	color: var(--color-accent);

	font-family: Georgia, serif;
	font-size: 4rem;
	font-weight: 400;
	line-height: 0.7;

	opacity: 0.85;
}

/* ----------------------------------------
   QUOTE
---------------------------------------- */

.testimonial blockquote {
	margin: 0 0 var(--space-8);

	color: var(--color-text);

	font-size: var(--text-lg);
	line-height: var(--leading-relaxed);
}

/* ----------------------------------------
   AUTHOR
---------------------------------------- */

.testimonial cite {
	display: block;

	padding-top: var(--space-5);

	border-top: 1px solid var(--color-border);

	color: var(--color-text-muted);

	font-family: var(--font-mono);
	font-size: var(--text-xs);
	font-style: normal;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
}

/* Punto antes del nombre */

.testimonial cite::before {
	content: '';

	display: inline-block;

	width: 6px;
	height: 6px;

	margin-right: var(--space-3);

	border-radius: 50%;

	background-color: var(--color-accent);

	box-shadow: 0 0 10px rgba(200, 255, 50, 0.35);

	vertical-align: middle;
}

/* ----------------------------------------
   MOBILE
---------------------------------------- */

@media (max-width: 767px) {
	.testimonials::before {
		top: 5%;
		right: -260px;

		width: 400px;
		height: 400px;
	}

	.testimonials-list {
		flex-direction: column;

		gap: var(--space-4);
	}

	.testimonial {
		flex: none;

		padding: var(--space-7) var(--space-6);
	}

	.testimonial:hover {
		transform: none;

		background:
			linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
			linear-gradient(
					135deg,
					rgba(200, 255, 50, 0.55) 0%,
					rgba(200, 255, 50, 0.16) 28%,
					rgba(242, 244, 239, 0.07) 55%,
					rgba(200, 255, 50, 0.22) 100%
				)
				border-box;
	}

	.testimonial::before {
		margin-bottom: var(--space-5);

		font-size: 3.5rem;
	}
}
