/* FPO Video Cards for Elementor */

.fpo-vc {
	--fpo-vc-slide-w: 78%;
	width: 100%;
}

.fpo-vc__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 46px;
	row-gap: 46px;
}

.fpo-vc__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #4a4a4a;
	transition: transform .3s ease, box-shadow .3s ease;
}

/* ---------- Área de video ---------- */
.fpo-vc__media {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	background-color: #747474;
	overflow: hidden;
	cursor: pointer;
	flex-shrink: 0;
}

.fpo-vc__media--empty {
	cursor: default;
}

.fpo-vc .fpo-vc__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	display: block;
	border: 0;
	border-radius: 0;
	transition: transform .6s ease;
}

.fpo-vc__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

/* Botón play: reseteo fuerte para que el tema no lo pinte */
.fpo-vc .fpo-vc__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	transform: translate(-50%, -50%);
	width: 76px;
	height: 76px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, .45);
	color: rgba(255, 255, 255, .85);
	box-shadow: none;
	cursor: pointer;
	line-height: 1;
	transition: transform .25s ease, background-color .25s ease, color .25s ease;
	-webkit-tap-highlight-color: transparent;
}

.fpo-vc .fpo-vc__play svg {
	width: 30px;
	height: 30px;
	fill: currentColor;
	margin-left: 8%; /* centrado óptico del triángulo */
	display: block;
}

.fpo-vc .fpo-vc__media:hover .fpo-vc__play {
	transform: translate(-50%, -50%) scale(1.07);
}

.fpo-vc .fpo-vc__play:focus {
	outline: none;
}

.fpo-vc .fpo-vc__play:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Reproduciendo */
.fpo-vc__media.is-playing {
	cursor: default;
	background-color: #000;
}

.fpo-vc__media.is-playing .fpo-vc__poster,
.fpo-vc__media.is-playing .fpo-vc__overlay,
.fpo-vc__media.is-playing .fpo-vc__play {
	display: none;
}

.fpo-vc__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
	object-fit: contain;
	z-index: 3;
}

/* ---------- Cintillo ---------- */
.fpo-vc__band {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	min-height: 98px;
	padding: 18px 16px 16px;
	background-color: #4a4a4a;
	box-sizing: border-box;
}

.fpo-vc .fpo-vc__title,
.fpo-vc .fpo-vc__subtitle,
.fpo-vc .fpo-vc__date {
	margin-top: 0;
	padding: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.fpo-vc .fpo-vc__title {
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 3px;
	text-transform: uppercase;
	line-height: 1.3;
	margin-bottom: 6px;
}

.fpo-vc .fpo-vc__subtitle {
	color: #d0d0d0;
	font-size: 9px;
	letter-spacing: 2px;
	text-transform: uppercase;
	line-height: 1.3;
	margin-bottom: 10px;
}

.fpo-vc .fpo-vc__date {
	color: #9a9a9a;
	font-size: 8px;
	text-transform: uppercase;
	line-height: 1.3;
	margin-bottom: 16px;
}

/* ---------- CTA ---------- */
.fpo-vc .fpo-vc__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #fff;
	fill: #fff;
	font-size: 8px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1.2;
	text-decoration: none;
	padding: 2px 4px;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.fpo-vc .fpo-vc__cta:hover {
	text-decoration: none;
}

.fpo-vc__cta-icon {
	display: inline-flex;
	align-items: center;
	font-size: 7px;
	line-height: 1;
	transition: transform .2s ease;
}

.fpo-vc__cta-icon svg {
	width: 7px;
	height: 7px;
	fill: currentColor;
}

.fpo-vc-arrow-yes .fpo-vc__cta:hover .fpo-vc__cta-icon {
	transform: translateX(3px);
}

/* ---------- Efectos opcionales ---------- */
.fpo-vc-lift-yes .fpo-vc__card:hover {
	transform: translateY(-6px);
}

.fpo-vc-zoom-yes .fpo-vc__media:hover .fpo-vc__poster {
	transform: scale(1.05);
}

/* ---------- Carrusel en móvil (breakpoint móvil por defecto de Elementor) ---------- */
@media (max-width: 767px) {
	.fpo-vc-m-carousel .fpo-vc__grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
	}

	.fpo-vc-m-carousel .fpo-vc__grid::-webkit-scrollbar {
		display: none;
	}

	.fpo-vc-m-carousel .fpo-vc__card {
		flex: 0 0 var(--fpo-vc-slide-w);
		scroll-snap-align: start;
	}
}

/* ---------- Lightbox ---------- */
.fpo-vc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.fpo-vc-modal.is-open {
	display: flex;
}

.fpo-vc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .85);
}

.fpo-vc-modal__box {
	position: relative;
	width: min(92vw, calc(85vh * var(--fpo-vc-arn, 1.7778)));
	aspect-ratio: var(--fpo-vc-ar, 16 / 9);
	max-height: 85vh;
	background: #000;
}

.fpo-vc-modal__box .fpo-vc__player {
	z-index: 1;
}

.fpo-vc-modal .fpo-vc-modal__close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 32px;
	line-height: 40px;
	cursor: pointer;
	box-shadow: none;
}

.fpo-vc-modal .fpo-vc-modal__close:hover,
.fpo-vc-modal .fpo-vc-modal__close:focus {
	background: rgba(255, 255, 255, .15);
	color: #fff;
}

body.fpo-vc-lock {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.fpo-vc__card,
	.fpo-vc .fpo-vc__poster,
	.fpo-vc .fpo-vc__play,
	.fpo-vc__cta-icon {
		transition: none;
	}
}
