/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* =========================================================
   MARCOS FDEZ — ANIMACIONES CSS (Home)
   Pegar al final de: Apariencia > Editor de archivos de temas
   > Hello Elementor Child > style.css
   ========================================================= */

/* ---------------------------------------------------------
   anim-manos-reveal
   Imagen "Un despacho que entiende…" (apretón de manos).
   Empieza como una franja vertical centrada y se abre a su
   formato panorámico a medida que se hace scroll. Una vez
   abierta, se queda así.
   Clase global aplicada en Elementor: anim-manos-reveal
   --------------------------------------------------------- */

.anim-manos-reveal {
	/* Ancho recortado a cada lado al inicio (38.5% + 38.5% = franja del 23%) */
	--mf-manos-inset: 38.5%;
}

@media (max-width: 767px) {
	.anim-manos-reveal {
		/* En móvil la imagen es 4:3: franja más ancha (40%) para que no quede demasiado fina */
		--mf-manos-inset: 30%;
	}
}

@keyframes mf-manos-reveal {
	from {
		clip-path: inset(0 var(--mf-manos-inset) 0 var(--mf-manos-inset));
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

/* Solo en navegadores con animaciones ligadas al scroll.
   En el resto la imagen se ve directamente en panorámico. */
@supports (animation-timeline: view()) {
	.anim-manos-reveal {
		animation: mf-manos-reveal linear both;
		animation-timeline: view();
		/* Empieza a abrirse cuando lleva un 25% del recorrido en pantalla
		   y termina de abrirse al 55% */
		animation-range: cover 25% cover 55%;
	}
}

/* Accesibilidad: sin animación para quien la tenga desactivada en el sistema */
@media (prefers-reduced-motion: reduce) {
	.anim-manos-reveal {
		animation: none !important;
		clip-path: none !important;
	}
}
