// Verificar si es la página de inicio function isHomePage() { return window.location.pathname === '/' || window.location.pathname === '/index.php' || window.location.pathname === '/es/' || // Para multitienda en español window.location.pathname === '/en/'; // Para multitienda en inglés } // Crear elementos del popup if (isHomePage()) { document.addEventListener('DOMContentLoaded', function() { // CSS (inyectado dinámicamente) var css = ` #promoPopup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 99999; display: none; justify-content: center; align-items: center; } .popup-content { position: relative; max-width: 90%; } .close-popup { position: absolute; top: -15px; right: -15px; color: white; font-size: 24px; cursor: pointer; } `; var style = document.createElement('style'); style.innerHTML = css; document.head.appendChild(style); // HTML var popupHTML = `
`; document.body.insertAdjacentHTML('beforeend', popupHTML); // Mostrar después de 3 segundos setTimeout(function() { document.getElementById('promoPopup').style.display = 'flex'; }, 3000); // Cerrar al hacer clic document.querySelector('.close-popup').addEventListener('click', function() { document.getElementById('promoPopup').style.display = 'none'; }); }); }

Inicio

$ 95.188,66 
Grifería para cocina, de modelo moderno y agradable. Color azul de acabado brillante y detalles en blanco. Monocomando metálico tipo lever con cierre cerámico. Pico alto con aireador flexible, para facilitar el trabajo en el lavado y disfrutar de una comodidad única.
Hasta 5 cuotas sin interés
de $ 19.037,73
Producto añadido a la lista de deseos

Aceptar cookies del sitio.

Este sitio utiliza cookies para mejorar tu experiencia.