/* Funlab Team */

.ftm-title {
	font-size: 48px;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 40px 0;
}

.ftm-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	width: 100%;
}

.ftm-item {
	width: 100%;
}

/* Animación de entrada al hacer scroll (clase agregada por JS) */
.ftm-item.ftm-animated {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.ftm-item.ftm-animated.ftm-visible {
	opacity: 1;
	transform: translateY(0);
}

.ftm-photo-wrap {
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	margin-bottom: 20px;
	position: relative;
}

.ftm-photo {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

/* Zoom suave al pasar el mouse sobre la foto */
.ftm-photo-wrap.ftm-hover-zoom:hover .ftm-photo {
	transform: scale(1.06);
}

.ftm-photo-wrap.ftm-grayscale .ftm-photo {
	filter: grayscale(100%);
}

.ftm-name {
	font-size: 20px;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 6px 0;
}

.ftm-role {
	font-size: 12px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.65);
	margin: 0;
}

.ftm-empty {
	padding: 30px;
	text-align: center;
	color: #999;
	border: 1px dashed #444;
	border-radius: 4px;
}

@media (max-width: 767px) {
	.ftm-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Dentro del editor de Elementor siempre se ve el contenido a full,
   la animación de entrada solo corre en el sitio publicado (front). */
.elementor-editor-active .ftm-item.ftm-animated {
	opacity: 1 !important;
	transform: none !important;
}
