(()=>{document.addEventListener("DOMContentLoaded",function(){let a=0,t=document.querySelector("header.elementor-location-header"),e=document.querySelector("header.elementor-location-header .header-top"),o=()=>{let r=window.pageYOffset;r>0?t.classList.add("header-shadow"):t.classList.remove("header-shadow"),r>a&&r>100?(t.classList.add("header-filter"),e.classList.add("hide-header-top")):(t.classList.remove("header-filter"),e.classList.remove("hide-header-top")),a=r};o(),window.addEventListener("scroll",()=>{o()})});document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".single-post-container .post-content").forEach(t=>{let e=t.querySelectorAll("p");for(let o=0;o<e.length;o++)if(e[o].textContent.trim().length>0){e[o].classList.add("first-content-paragraph");break}})});jQuery(document).ready(function(a){if(typeof t>"u")var t=function(){window.dataLayer=window.dataLayer||[],dataLayer.push(arguments)};jQuery(document).on("submit_success",function(e){e.target.id=="form_product"?t("event","product_form_submitted",{value:e.target.querySelector('[name="form_fields[email]"]').value}):e.target.id=="form_newsletter"?t("event","newsletter_form_submitted",{value:e.target.querySelector('[name="form_fields[email]"]').value}):e.target.id=="form_visit"&&t("event","visit_form_submitted",{value:e.target.querySelector('[name="form_fields[email]"]').value})})});document.addEventListener("DOMContentLoaded",function(){var a=document.getElementById("share");a&&a.addEventListener("click",function(t){t.preventDefault(),navigator.share?navigator.share({title:document.title,url:window.location.href}):alert("Tu navegador no soporta la funci\xF3n de compartir nativa.")})});document.addEventListener("DOMContentLoaded",function(){let a=()=>{window.scrollY>100?document.body.classList.add("scrolled"):document.body.classList.remove("scrolled")};a(),window.addEventListener("scroll",()=>{a()})});})();