/* Testimonios · suite Formación Continua (fc-publico).
   Contenedores propios (.fct-*) para no chocar con el tema ni con el panel. */

.fct {
	background: #f4ebda; /* franja crema institucional, como el resto de la portada */
	padding: 3rem 0;
}

.fct__wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

.fct__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.fct__title {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.2;
	color: #3d3d3d;
}

.fct__more {
	font-weight: 600;
	color: #2d5b8d;
	text-decoration: none;
	white-space: nowrap;
}

.fct__more:hover {
	text-decoration: underline;
}

.fct__carr {
	position: relative;
}

.fct__pista {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 0.5rem;
	/* Ocultar barra de scroll sin perder el desplazamiento por teclado/scroll */
	scrollbar-width: none;
	-ms-overflow-style: none;
}

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

.fct-card {
	flex: 0 0 calc((100% - 3rem) / 4); /* 4 visibles en escritorio */
	scroll-snap-align: start;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(61, 61, 61, 0.08);
	display: flex;
	flex-direction: column;
}

.fct-card__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
	text-decoration: none;
}

.fct-card__media {
	position: relative;
	aspect-ratio: 16 / 9; /* mismo tamaño para todos: video, imagen o texto */
	background: #2d5b8d;
	overflow: hidden;
}

.fct-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fct-card__video {
	position: absolute;
	inset: 0;
	display: block;
}

.fct-card__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.25);
	transition: background 0.15s ease;
}

.fct-card__play::after {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 16px 0 16px 28px;
	border-color: transparent transparent transparent #fff;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.fct-card__link:hover .fct-card__play {
	background: rgba(0, 0, 0, 0.4);
}

/* Cita (testimonio de texto): bloque 16:9 con el texto entre comillas. */
.fct-card__cita {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
	padding: 1rem 1.25rem;
	color: #fff;
}

.fct-card__comilla {
	font-family: Georgia, serif;
	font-size: 2.75rem;
	line-height: 0.6;
	opacity: 0.6;
}

.fct-card__txt {
	font-size: 0.95rem;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fct-card__foot {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem 0.5rem;
}

.fct-card__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.fct-card__avatar--vacio {
	display: inline-block;
	background: #d8d8d8;
}

.fct-card__id {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fct-card__nombre {
	font-size: 1rem;
	color: #3d3d3d;
}

.fct-card__cargo {
	font-size: 0.85rem;
	color: #6b6b6b;
}

.fct-card__ver {
	display: block;
	margin: auto 1.25rem 1rem;
	padding-top: 0.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #2d5b8d;
}

.fct-card__ver::after {
	content: "";
}

/* Grid (shortcode [fc_testimonios_grid]) */
.fct-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.fct__btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #2d5b8d;
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.fct__btn--prev {
	left: -12px;
}

.fct__btn--next {
	right: -12px;
}

/* Responsive */
@media (max-width: 900px) {
	.fct-card {
		flex-basis: calc((100% - 1rem) / 2); /* 2 visibles */
	}

	.fct-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.fct-card {
		flex-basis: 100%; /* 1 visible */
	}

	.fct-grid {
		grid-template-columns: 1fr;
	}

	.fct__btn {
		display: none;
	}
}
