{"id":1882,"date":"2026-03-29T16:14:06","date_gmt":"2026-03-29T14:14:06","guid":{"rendered":"https:\/\/ayowayow.es\/?page_id=1882"},"modified":"2026-03-29T16:26:16","modified_gmt":"2026-03-29T14:26:16","slug":"popup","status":"publish","type":"page","link":"https:\/\/ayowayow.es\/es\/","title":{"rendered":"Popup"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"1882\" class=\"elementor elementor-1882\">\n\t\t\t\t<div class=\"elementor-element elementor-element-d59c317 e-flex e-con-boxed e-con e-parent\" data-id=\"d59c317\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-fe9a034 elementor-widget elementor-widget-html\" data-id=\"fe9a034\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!-- Fuente Inter -->\r\n<link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@300;400;600&display=swap\" rel=\"stylesheet\">\r\n\r\n<div id=\"customPopup\" style=\"position: fixed;top:0;left:0;width:100%;height:100%;background: rgba(0,0,0,0.70);display:flex;justify-content:center;align-items:center;z-index:9999;font-family: 'Inter', sans-serif;\">\r\n\r\n  <div style=\"  background:#111;  padding:30px;  border-radius:10px;  text-align:center;  color:white;  width:400px;  \">\r\n\r\n<div style=\"display:flex;align-items:center;justify-content:center; flex-direction: column;\">\r\n    <h2 style=\"    margin:0px;     color: white;    font-weight:600;    letter-spacing:-0.5px;    \">Acceso exclusivo<\/h2>\r\n    <p style=\"color:gray; font-weight:300;\">D\u00e9janos tu email<\/p>\r\n<\/div>\r\n\r\n    <input type=\"email\" id=\"emailInput\" placeholder=\"Tu correo\" style=\"width:100%;padding:10px;margin-top:10px;font-family: 'Inter', sans-serif;\" \/>\r\n\r\n    <div style=\"display:flex; justify-content:center; align-items:center; gap:7px; margin-top:10px;\">\r\n      <input type=\"checkbox\" id=\"gdprCheck\" \/>\r\n      <label style=\"font-weight:300;\">\r\n        Acepto la <a href=\"\/es\/politica-de-privacidad\/\" target=\"_blank\" style=\"color:#0af;\">pol\u00edtica<\/a>\r\n      <\/label>\r\n    <\/div>\r\n\r\n    <button id=\"guardarEmail\" class=\"btn-continuar\">\r\n      Continuar\r\n    <\/button>\r\n\r\n<style>\r\n  .btn-continuar {\r\n    margin-top: 20px;\r\n    padding: 5px 10px;\r\n    border-radius: 5px;\r\n    border: none;\r\n    background-color: #3498db;\r\n    color: white;\r\n    cursor: pointer;\r\n    font-family: 'Inter', sans-serif;\r\n\r\n    transition: all 0.2s ease-out;\r\n  }\r\n\r\n  .btn-continuar:hover {\r\n    background-color: #2980b9;\r\n    transform: scale(1.10);\r\n  }\r\n\r\n  .btn-continuar:active {\r\n    background-color: #1f6691;\r\n    transform: scale(0.98);\r\n  }\r\n<\/style>\r\n\r\n  <\/div>\r\n<\/div>\r\n\r\n<script>\r\ndocument.addEventListener(\"DOMContentLoaded\", function () {\r\n\r\n  const popup = document.getElementById(\"customPopup\");\r\n  const email = localStorage.getItem(\"user_email\");\r\n  const consent = localStorage.getItem(\"gdpr_consent\");\r\n\r\n  if (email && consent === \"true\") {\r\n    popup.style.display = \"none\";\r\n    window.location.href = \"\/cooming-soon\";\r\n    return;\r\n  }\r\n\r\n  document.getElementById(\"guardarEmail\").addEventListener(\"click\", function () {\r\n\r\n    const input = document.getElementById(\"emailInput\").value;\r\n    const check = document.getElementById(\"gdprCheck\").checked;\r\n\r\n    if (!input || !input.includes(\"@\")) {\r\n      alert(\"Introduce un email v\u00e1lido\");\r\n      return;\r\n    }\r\n\r\n    if (!check) {\r\n      alert(\"Debes aceptar la pol\u00edtica\");\r\n      return;\r\n    }\r\n\r\n    localStorage.setItem(\"user_email\", input);\r\n    localStorage.setItem(\"gdpr_consent\", \"true\");\r\n\r\n    window.location.href = \"\/\";\r\n  });\r\n\r\n});\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Acceso exclusivo D\u00e9janos tu email Acepto la pol\u00edtica Continuar<\/p>","protected":false},"author":44,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"class_list":["post-1882","page","type-page","status-publish","hentry"],"blocksy_meta":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ayowayow.es\/es\/wp-json\/wp\/v2\/pages\/1882","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ayowayow.es\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ayowayow.es\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ayowayow.es\/es\/wp-json\/wp\/v2\/users\/44"}],"replies":[{"embeddable":true,"href":"https:\/\/ayowayow.es\/es\/wp-json\/wp\/v2\/comments?post=1882"}],"version-history":[{"count":10,"href":"https:\/\/ayowayow.es\/es\/wp-json\/wp\/v2\/pages\/1882\/revisions"}],"predecessor-version":[{"id":1892,"href":"https:\/\/ayowayow.es\/es\/wp-json\/wp\/v2\/pages\/1882\/revisions\/1892"}],"wp:attachment":[{"href":"https:\/\/ayowayow.es\/es\/wp-json\/wp\/v2\/media?parent=1882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}