/* Profesores Diplomado — fondo blanco, carrusel 4 visibles */
.fs-profesores-wrap {
	background: #fff;
	padding: 10px 0 30px;
	margin: 0;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

.fs-profesores-carousel {
	--fs-prof-visible: 4;
	--fs-prof-gap: 12px;
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 36px;
	box-sizing: border-box;
}

.fs-profesores-viewport {
	overflow: hidden;
	width: 100%;
	container-type: inline-size;
}

.fs-profesores-track {
	display: flex;
	gap: var(--fs-prof-gap);
	will-change: transform;
}

.fs-profesor-card {
	flex: 0 0 calc((100cqw - (var(--fs-prof-visible) - 1) * var(--fs-prof-gap)) / var(--fs-prof-visible));
	max-width: calc((100cqw - (var(--fs-prof-visible) - 1) * var(--fs-prof-gap)) / var(--fs-prof-visible));
	min-width: 0;
	box-sizing: border-box;
	text-align: center;
	padding: 8px 4px 16px;
}

.fs-profesor-photo {
	width: 110px;
	height: 110px;
	margin: 0 auto 12px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #e8eef5;
	background: #f4f7fb;
	box-shadow: 0 4px 12px rgba(64, 124, 202, 0.12);
}

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

.fs-profesor-photo-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e8eef5, #d0dced);
}

.fs-profesor-name {
	margin: 0 0 6px;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
	color: #2c3e6b;
}

.fs-profesor-desc {
	margin: 0;
	font-size: 0.78rem;
	line-height: 1.4;
	color: #5a6a85;
}

.fs-profesores-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 32px;
	height: 32px;
	border: 1px solid #407cca;
	border-radius: 50%;
	background: #fff;
	color: #407cca;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
	box-shadow: 0 2px 8px rgba(64, 124, 202, 0.15);
}

.fs-profesores-btn:hover {
	background: #407cca;
	color: #fff;
}

.fs-profesores-prev {
	left: 4px;
}

.fs-profesores-next {
	right: 4px;
}

/* Quitar fondo oscuro del contenedor Fusion padre si existe */
.fusion-builder-row:has(.fs-profesores-wrap) .fusion-builder-column,
.fusion-builder-row:has(.fs-profesores-wrap) {
	background: #fff !important;
	background-image: none !important;
}

@media (max-width: 900px) {
	.fs-profesores-carousel {
		--fs-prof-visible: 2;
		--fs-prof-gap: 16px;
		padding: 0 32px;
	}

	.fs-profesor-photo {
		width: 120px;
		height: 120px;
	}

	.fs-profesor-name {
		font-size: 1rem;
	}
}

@media (max-width: 560px) {
	.fs-profesores-carousel {
		--fs-prof-visible: 1;
		padding: 0 28px;
	}

	.fs-profesor-photo {
		width: 130px;
		height: 130px;
	}
}
