/* IDLADS — reemplazos de Elementor Pro (mu-plugins/idlads-sin-pro.php). Ver bitacora/06-salida-elementor-pro.md */

/* ---- Secciones fijas al hacer scroll (antes: "sticky" de Pro) ---- */
/* Portada: barra de menú propia de la página */
.elementor-9 .elementor-element.elementor-element-30b91a9 { position: sticky; top: 0; z-index: 99; }
/* Videos: barra de filtros, bajo la cabecera (80 px), solo escritorio y tableta */
@media (min-width: 768px) {
	.elementor-307 .elementor-element.elementor-element-e438031 { position: sticky; top: 80px; z-index: 98; }
}
body.admin-bar .elementor-9 .elementor-element.elementor-element-30b91a9 { top: 32px; }
@media (min-width: 768px) { body.admin-bar .elementor-307 .elementor-element.elementor-element-e438031 { top: 112px; } }

/* ---- Página de Facebook (antes: widget facebook-page de Pro + SDK de Facebook) ---- */
.idlads-fb { width: 100%; max-width: 500px; overflow: hidden; }
.idlads-fb iframe { display: block; border: 0; overflow: hidden; }

/* ---- Ventanas emergentes con <dialog> (antes: popups de Pro). El aspecto viene de conservado.css ---- */
dialog.idlads-popup { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: inherit; }
dialog.idlads-popup:not([open]) { display: none !important; }
dialog.idlads-popup::backdrop { background: transparent; }
dialog.idlads-popup .dialog-close-button svg { width: 1em; height: 1em; }

/* ---- Formulario: campo trampa antispam (invisible para personas) ---- */
.idlads-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- Cabecera fija (antes: sticky de Pro en la sección de la plantilla 46). Solo existe sin Pro. ---- */
.idlads-cabecera { position: sticky; top: 0; z-index: 99; }
body.admin-bar .idlads-cabecera { top: 32px; }
@media (max-width: 782px) { body.admin-bar .idlads-cabecera { top: 46px; } }
