/* Zafyro — el hero que avanza con el scroll */

.zh-pista {
	position: relative;
}

.zh-sticky {
	position: sticky;
	top: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

/* La sección de Elementor adentro del sticky no tiene que traer su propio
   alto ni márgenes: el sticky ya ocupa la pantalla entera. */
.zh-sticky > .elementor-section {
	margin: 0;
	flex: 1;
	display: flex;
	align-items: center;
}

.zh-sticky .elementor-widget-video,
.zh-sticky .elementor-wrapper {
	height: 100%;
}

.zh-sticky video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Elementor tapa el video con el poster y le pone un botón de play encima.
   Acá los dos molestan: el video no se reproduce a mano y el poster ya pasó
   al atributo del <video>. */
.zh-sticky .elementor-custom-embed-image-overlay,
.zh-sticky .elementor-custom-embed-play,
.zh-sticky .eicon-play {
	display: none !important;
}

/* --- la frase que va cambiando --- */
.zh-frases {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 74px;
	z-index: 4;
	text-align: center;
	pointer-events: none;
}

.zh-frases b {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: block;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(24px, 3.6vw, 46px);
	font-weight: 400;
	color: #fff;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .45s ease, transform .45s ease;
	text-shadow: 0 2px 30px rgba(11, 17, 40, .5);
}

.zh-frases b.on {
	opacity: 1;
	transform: translateY(0);
}

/* --- barra de avance --- */
.zh-barra {
	position: absolute;
	left: 28px;
	bottom: 18px;
	height: 2px;
	width: 0;
	background: #C9A227;
	border-radius: 2px;
	z-index: 4;
	transition: width .1s linear;
}

@media (max-width: 620px) {
	.zh-frases { bottom: 88px; }
	.zh-barra { left: 20px; }
}

/* Quien tenga el sistema en "menos movimiento" ve el video quieto en el
   último cuadro, sin nada que se estire ni se mueva. */
@media (prefers-reduced-motion: reduce) {
	.zh-pista { height: auto !important; }
	.zh-sticky { position: static; height: auto; }
}
