/* What Elementor's scripts did with styles, now done by the stylesheet (en-forma.es without Elementor). */

/* Windows (popups) stay hidden until marco.js opens them */
body > .elementor-location-popup { display: none; }

/* Main menu: a submenu opens on hover or keyboard focus (Elementor used SmartMenus for this) */
.elementor-nav-menu--main .elementor-nav-menu li:hover > ul,
.elementor-nav-menu--main .elementor-nav-menu li:focus-within > ul { display: block; }
/* Phone/tablet menu: a submenu opens when its item is tapped (marco.js adds .efw-abierto) */
.elementor-nav-menu--dropdown li.efw-abierto > ul { display: block; }

/* Bars fixed while scrolling (Elementor «sticky»): marco.js fixes them and leaves a gap of the same size */
.elementor-sticky--active { z-index: 99; }
.efw-hueco { visibility: hidden; pointer-events: none; }

/* «Ver más» of the post and product cards while the next ones load */
.elementor-widget-posts .e-load-more-spinner { display: none; }
.elementor-widget-posts.efw-cargando .e-load-more-spinner { display: flex; justify-content: center; margin-top: 20px; }
.elementor-widget-posts.efw-cargando .elementor-button-wrapper { display: none; }

/* A picture or video opened big over the page (it was Elementor's lightbox) */
.efw-luz { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .8); align-items: center; justify-content: center; }
.efw-luz--abierta { display: flex; }
.efw-luz__caja { max-width: 92vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.efw-luz__caja img { max-width: 92vw; max-height: 90vh; width: auto; height: auto; box-shadow: 0 0 30px rgba(0, 0, 0, .3); }
.efw-luz__video { width: min(92vw, 160vh); aspect-ratio: 16 / 9; }
.efw-luz__video iframe { width: 100%; height: 100%; border: 0; }
.efw-luz button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; line-height: 1; padding: 12px 18px; cursor: pointer; opacity: .85; }
.efw-luz button:hover, .efw-luz button:focus { opacity: 1; background: none; color: #fff; }
.efw-luz__cerrar { top: 6px; right: 10px; }
.efw-luz__ant { left: 6px; top: 50%; transform: translateY(-50%); }
.efw-luz__sig { right: 6px; top: 50%; transform: translateY(-50%); }
.efw-luz:not(.efw-luz--varias) .efw-luz__ant, .efw-luz:not(.efw-luz--varias) .efw-luz__sig { display: none; }
html.efw-sin-desplazar { overflow: hidden; }
