/**
 * Casos de éxito alumni — abanico 3D estático (tema claro por defecto, animación y hover).
 */

.ucarr-alumni-fan {
	--ucarr-alumni-fan-green: var(--ucarr-institutional-green, #006739);
	--ucarr-fan-gap: 18px;
	--fan-enter-dur: 0.55s;
	--fan-enter-stagger: 0.09s;
	--fan-hover-ry-keep: 32;
	--fan-hover-lift: 10px;
	--fan-hover-scale: 1.02;
	--fan-hover-z: 16px;
	--fan-hover-dur: 0.48s;

	--ucarr-alumni-fan-bg: #ffffff;
	--ucarr-alumni-fan-card: #ffffff;
	--ucarr-alumni-fan-text: #111827;
	--ucarr-alumni-fan-muted: #4b5563;
	--ucarr-alumni-fan-subtitle: #374151;
	--ucarr-alumni-fan-name: var(--ucarr-alumni-fan-green);
	--ucarr-alumni-fan-border: rgba(15, 23, 42, 0.08);
	--ucarr-alumni-fan-card-shadow: 0 14px 32px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.06);

	position: relative;
	padding: clamp(1.5rem, 4vw, 2.75rem) clamp(0.75rem, 3vw, 2rem) clamp(2rem, 5vw, 3.25rem);
	color: var(--ucarr-alumni-fan-text);
	background-color: var(--ucarr-alumni-fan-bg);
	overflow: hidden;
}

.ucarr-alumni-fan--empty .ucarr-alumni-fan__empty-msg {
	margin: 0;
	text-align: center;
	color: var(--ucarr-alumni-fan-muted);
}

.ucarr-alumni-fan__heading {
	margin: 0 0 clamp(1.25rem, 3vw, 2rem);
	font-size: clamp(1.35rem, 2.8vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.ucarr-alumni-fan__heading-text {
	color: var(--ucarr-alumni-fan-text);
}

.ucarr-alumni-fan__heading-accent {
	color: var(--ucarr-alumni-fan-green);
}

.ucarr-alumni-fan__stage {
	perspective: 1100px;
	perspective-origin: 50% 35%;
	padding: 0.5rem 0 1.25rem;
}

.ucarr-alumni-fan__track {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: flex-end;
	gap: var(--ucarr-fan-gap, 18px);
	transform-style: preserve-3d;
}

.ucarr-alumni-fan__cell {
	flex: 0 1 clamp(140px, 22vw, 230px);
	max-width: 230px;
	transform-style: preserve-3d;
	backface-visibility: hidden;
}

.ucarr-alumni-fan__cell-surface {
	height: 100%;
	transform-style: preserve-3d;
	transform: rotateY(calc(var(--fan-ry, 0) * 1deg)) translateY(calc(var(--fan-ty, 0) * 1px));
	transition:
		transform var(--fan-hover-dur, 0.48s) cubic-bezier(0.22, 1, 0.36, 1),
		filter var(--fan-hover-dur, 0.48s) ease;
}

.ucarr-alumni-fan:not(.ucarr-alumni-fan--no-hover) .ucarr-alumni-fan__cell:hover .ucarr-alumni-fan__cell-surface {
	transform:
		rotateY(calc(var(--fan-ry, 0) * var(--fan-hover-ry-keep, 32) / 100 * 1deg))
		translateY(calc(var(--fan-ty, 0) * 1px - var(--fan-hover-lift, 10px)))
		translateZ(var(--fan-hover-z, 16px))
		scale(var(--fan-hover-scale, 1.02));
}

.ucarr-alumni-fan-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 260px;
	background: var(--ucarr-alumni-fan-card);
	border-radius: 14px;
	border: 1px solid var(--ucarr-alumni-fan-border);
	box-shadow: var(--ucarr-alumni-fan-card-shadow);
	overflow: hidden;
	transition: box-shadow var(--fan-hover-dur, 0.48s) ease;
}

.ucarr-alumni-fan:not(.ucarr-alumni-fan--no-hover) .ucarr-alumni-fan__cell:hover .ucarr-alumni-fan-card {
	box-shadow:
		0 22px 44px rgba(15, 23, 42, 0.14),
		0 8px 18px rgba(15, 23, 42, 0.08);
}

.ucarr-alumni-fan-card__photo {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #e5e7eb;
	overflow: hidden;
}

.ucarr-alumni-fan-card__photo img,
.ucarr-alumni-fan-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ucarr-alumni-fan-card__photo-placeholder {
	width: 100%;
	height: 100%;
	min-height: 120px;
	background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 45%, #f3f4f6 100%);
}

.ucarr-alumni-fan-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 0.9rem 1rem 1.05rem;
	gap: 0.4rem;
}

.ucarr-alumni-fan-card__title {
	margin: 0;
	font-size: clamp(0.95rem, 1.65vw, 1.12rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--ucarr-alumni-fan-name);
}

.ucarr-alumni-fan-card__subtitle {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--ucarr-alumni-fan-subtitle);
	font-weight: 500;
}

.ucarr-alumni-fan-card__quote,
.ucarr-alumni-fan-card__quote p {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--ucarr-alumni-fan-muted);
	text-align: left;
}

.ucarr-alumni-fan-card__quote::before,
.ucarr-alumni-fan-card__quote::after {
	content: none;
}

.ucarr-alumni-fan-card__linkedin {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
}

.ucarr-alumni-fan-card__linkedin-link {
	color: #2563eb;
	text-decoration: none;
}

.ucarr-alumni-fan-card__linkedin-link:hover,
.ucarr-alumni-fan-card__linkedin-link:focus {
	color: var(--ucarr-alumni-fan-green);
	text-decoration: underline;
}

/* —— Entrada —— */

@keyframes ucarr-fan-enter-fade-up {
	from {
		opacity: 0;
		transform: translate3d(0, 22px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes ucarr-fan-enter-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes ucarr-fan-enter-slide-up {
	from {
		opacity: 0;
		transform: translate3d(0, 36px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes ucarr-fan-enter-zoom {
	from {
		opacity: 0;
		transform: translate3d(0, 12px, 0) scale(0.92);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

.ucarr-alumni-fan--enter-none .ucarr-alumni-fan__cell {
	animation: none !important;
}

.ucarr-alumni-fan--enter-fade_up .ucarr-alumni-fan__cell {
	animation: ucarr-fan-enter-fade-up var(--fan-enter-dur, 0.55s) cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.ucarr-alumni-fan--enter-fade_up .ucarr-alumni-fan__cell:nth-child(2) {
	animation-delay: var(--fan-enter-stagger, 0.09s);
}

.ucarr-alumni-fan--enter-fade_up .ucarr-alumni-fan__cell:nth-child(3) {
	animation-delay: calc(var(--fan-enter-stagger, 0.09s) * 2);
}

.ucarr-alumni-fan--enter-fade_up .ucarr-alumni-fan__cell:nth-child(4) {
	animation-delay: calc(var(--fan-enter-stagger, 0.09s) * 3);
}

.ucarr-alumni-fan--enter-fade_in .ucarr-alumni-fan__cell {
	animation: ucarr-fan-enter-fade-in var(--fan-enter-dur, 0.55s) ease backwards;
}

.ucarr-alumni-fan--enter-fade_in .ucarr-alumni-fan__cell:nth-child(2) {
	animation-delay: var(--fan-enter-stagger, 0.09s);
}

.ucarr-alumni-fan--enter-fade_in .ucarr-alumni-fan__cell:nth-child(3) {
	animation-delay: calc(var(--fan-enter-stagger, 0.09s) * 2);
}

.ucarr-alumni-fan--enter-fade_in .ucarr-alumni-fan__cell:nth-child(4) {
	animation-delay: calc(var(--fan-enter-stagger, 0.09s) * 3);
}

.ucarr-alumni-fan--enter-slide_up_stagger .ucarr-alumni-fan__cell {
	animation: ucarr-fan-enter-slide-up var(--fan-enter-dur, 0.55s) cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.ucarr-alumni-fan--enter-slide_up_stagger .ucarr-alumni-fan__cell:nth-child(2) {
	animation-delay: var(--fan-enter-stagger, 0.09s);
}

.ucarr-alumni-fan--enter-slide_up_stagger .ucarr-alumni-fan__cell:nth-child(3) {
	animation-delay: calc(var(--fan-enter-stagger, 0.09s) * 2);
}

.ucarr-alumni-fan--enter-slide_up_stagger .ucarr-alumni-fan__cell:nth-child(4) {
	animation-delay: calc(var(--fan-enter-stagger, 0.09s) * 3);
}

.ucarr-alumni-fan--enter-zoom_in_stagger .ucarr-alumni-fan__cell {
	animation: ucarr-fan-enter-zoom var(--fan-enter-dur, 0.55s) cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.ucarr-alumni-fan--enter-zoom_in_stagger .ucarr-alumni-fan__cell:nth-child(2) {
	animation-delay: var(--fan-enter-stagger, 0.09s);
}

.ucarr-alumni-fan--enter-zoom_in_stagger .ucarr-alumni-fan__cell:nth-child(3) {
	animation-delay: calc(var(--fan-enter-stagger, 0.09s) * 2);
}

.ucarr-alumni-fan--enter-zoom_in_stagger .ucarr-alumni-fan__cell:nth-child(4) {
	animation-delay: calc(var(--fan-enter-stagger, 0.09s) * 3);
}

@media (prefers-reduced-motion: reduce) {
	.ucarr-alumni-fan__cell {
		animation: none !important;
	}

	.ucarr-alumni-fan__cell-surface {
		transition: none !important;
	}
}

@media (max-width: 767px) {
	.ucarr-alumni-fan__stage {
		perspective: none;
		padding-bottom: 0.5rem;
	}

	.ucarr-alumni-fan__track {
		flex-wrap: wrap;
		align-items: stretch;
		gap: max(var(--ucarr-fan-gap, 18px), 1rem);
	}

	.ucarr-alumni-fan__cell {
		flex: 1 1 100%;
		max-width: 380px;
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}

	.ucarr-alumni-fan__cell-surface {
		transform: none !important;
	}

	.ucarr-alumni-fan:not(.ucarr-alumni-fan--no-hover) .ucarr-alumni-fan__cell:hover .ucarr-alumni-fan__cell-surface {
		transform: none !important;
	}

	.ucarr-alumni-fan:not(.ucarr-alumni-fan--no-hover) .ucarr-alumni-fan__cell:hover .ucarr-alumni-fan-card {
		box-shadow: var(--ucarr-alumni-fan-card-shadow);
	}

	.ucarr-alumni-fan-card {
		min-height: 0;
	}
}
