/* ==========================================================================
   Texto + Video con Difuminado — estilos frontend
   ========================================================================== */

.ftvb-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 60px;
	width: 100%;
}

/* --- Columna de texto --- */
.ftvb-col-texto {
	flex: 0 0 38%;
	max-width: 38%;
	min-width: 280px;
}

.ftvb-badge {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 14px;
}

.ftvb-titulo {
	font-size: 72px;
	line-height: 0.95;
	font-weight: 800;
	text-transform: uppercase;
	margin: 0 0 24px;
	word-break: break-word;
}

.ftvb-descripcion {
	font-size: 17px;
	line-height: 1.6;
	margin-bottom: 28px;
}

.ftvb-descripcion p:last-child {
	margin-bottom: 0;
}

.ftvb-boton {
	display: inline-block;
	padding: 16px 30px;
	border: 2px solid #1F4B3F;
	border-radius: 8px;
	color: #1F4B3F;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.ftvb-boton:hover {
	background-color: #1F4B3F;
	color: #fff;
}

/* --- Columna de vídeo --- */
.ftvb-col-video {
	flex: 1 1 0;
	min-width: 280px;
	position: relative;
}

/* Halo de color difuso detrás del vídeo, para integrarlo con el fondo */
.ftvb-col-video.ftvb-halo::before {
	content: "";
	position: absolute;
	inset: -6%;
	background: radial-gradient(
		ellipse at center,
		var(--ftvb-halo-color, #f6d9a0) 0%,
		rgba(246, 217, 160, 0) 70%
	);
	filter: blur(40px);
	z-index: 0;
	pointer-events: none;
}

.ftvb-video-wrap {
	--ftvb-fade-h: 18%;
	--ftvb-fade-v: 18%;
	--ftvb-extra-blur: 0px;

	position: relative;
	z-index: 1;
	overflow: hidden;
	border-radius: 24px;
	width: 100%;
}

/* Difuminado en los 4 bordes usando doble máscara (horizontal + vertical) con intersección */
.ftvb-video-wrap.ftvb-fade {
	-webkit-mask-image:
		linear-gradient(
			to right,
			transparent 0%,
			black var(--ftvb-fade-h),
			black calc(100% - var(--ftvb-fade-h)),
			transparent 100%
		),
		linear-gradient(
			to bottom,
			transparent 0%,
			black var(--ftvb-fade-v),
			black calc(100% - var(--ftvb-fade-v)),
			transparent 100%
		);
	-webkit-mask-composite: source-in;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;

	mask-image:
		linear-gradient(
			to right,
			transparent 0%,
			black var(--ftvb-fade-h),
			black calc(100% - var(--ftvb-fade-h)),
			transparent 100%
		),
		linear-gradient(
			to bottom,
			transparent 0%,
			black var(--ftvb-fade-v),
			black calc(100% - var(--ftvb-fade-v)),
			transparent 100%
		);
	mask-composite: intersect;
	mask-repeat: no-repeat;
	mask-size: 100% 100%;
}

.ftvb-video-wrap.ftvb-fade .ftvb-video-ratio {
	filter: blur(var(--ftvb-extra-blur));
	transform: scale(1.02); /* evita bordes duros al aplicar blur */
}

.ftvb-video-ratio {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 por defecto, sobreescrito por el control de Elementor */
}

.ftvb-video-frame {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	display: block;
}

.ftvb-video-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eee;
	color: #888;
	font-size: 14px;
	text-align: center;
	padding: 20px;
}

/* ==========================================================================
   Widget "Video Difuminado (solo)" — pensado para vivir dentro de un
   Elementor Container junto a una columna libre con tus propios widgets.
   ========================================================================== */

/* Que el widget de Elementor (y su wrapper) ocupe todo el alto disponible
   de la fila cuando el Container padre tiene "Alinear elementos: Estirar" */
.elementor-widget-ftvb_video_solo,
.elementor-widget-ftvb_video_solo > .elementor-widget-container {
	height: 100%;
}

.ftvb-video-only {
	--ftvb-bleed: 0px;
	--ftvb-halo-color: #f6d9a0;

	position: relative;
	height: 100%;
	width: 100%;
}

/* Modo "rellenar": el contenedor del vídeo ocupa el 100% del alto */
.ftvb-video-only.ftvb-modo-rellenar {
	display: flex;
}

.ftvb-video-only.ftvb-modo-rellenar .ftvb-video-wrap {
	flex: 1 1 auto;
	width: 100%;
}

.ftvb-video-only.ftvb-modo-rellenar .ftvb-video-ratio {
	position: absolute;
	inset: 0;
	padding-top: 0;
	height: 100%;
}

/* Modo "ratio": se comporta como una caja normal con relación de aspecto */
.ftvb-video-only.ftvb-modo-ratio .ftvb-video-wrap {
	width: 100%;
}

/* --- Sangrado: hace que el vídeo sobresalga fuera de su columna --- */
.ftvb-video-only.ftvb-bleed-derecha {
	width: calc(100% + var(--ftvb-bleed));
	margin-right: calc(-1 * var(--ftvb-bleed));
}

.ftvb-video-only.ftvb-bleed-izquierda {
	width: calc(100% + var(--ftvb-bleed));
	margin-left: calc(-1 * var(--ftvb-bleed));
}

.ftvb-video-only.ftvb-bleed-ambos {
	width: calc(100% + (var(--ftvb-bleed) * 2));
	margin-left: calc(-1 * var(--ftvb-bleed));
	margin-right: calc(-1 * var(--ftvb-bleed));
}

/* Sangrado automático hasta el borde real de la ventana del navegador
   (requiere que la sección/Container esté en modo "Ancho completo") */
.ftvb-video-only.ftvb-bleed-viewport-right {
	width: calc(100% + (100vw - 100%) / 2);
	margin-right: calc((100vw - 100%) / -2);
}

/* Halo de color difuso detrás del vídeo, integrado con el fondo */
.ftvb-video-only.ftvb-halo::before {
	content: "";
	position: absolute;
	inset: -6%;
	background: radial-gradient(
		ellipse at center,
		var(--ftvb-halo-color) 0%,
		rgba(246, 217, 160, 0) 70%
	);
	filter: blur(40px);
	z-index: 0;
	pointer-events: none;
}

.ftvb-video-only .ftvb-video-wrap {
	position: relative;
	z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
	.ftvb-col-texto {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.ftvb-titulo {
		font-size: 52px;
	}
}

@media (max-width: 600px) {
	.ftvb-titulo {
		font-size: 38px;
	}

	.ftvb-grid {
		gap: 32px;
	}
}
