{"id":2,"date":"2026-03-10T07:00:01","date_gmt":"2026-03-10T07:00:01","guid":{"rendered":"http:\/\/finurestsolucionesfinancieras.es\/?page_id=2"},"modified":"2026-03-10T07:12:19","modified_gmt":"2026-03-10T07:12:19","slug":"sample-page","status":"publish","type":"page","link":"https:\/\/finurestsolucionesfinancieras.es\/","title":{"rendered":"Estamos preparando algo incre\u00edble"},"content":{"rendered":"\n<div class=\"wp-block-group has-global-padding is-layout-constrained wp-container-core-group-is-layout-7db11181 wp-block-group-is-layout-constrained\">\n\n\n<p class=\"has-text-align-center wp-block-paragraph\">Nuestro sitio web est\u00e1 actualmente en construcci\u00f3n. Estamos trabajando para ofrecerte la mejor experiencia. D\u00e9janos tus datos y te avisaremos cuando estemos listos.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide is-style-wide--1\"\/>\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\">Contacto<\/h2>\n\n\n\n<form id=\"fn-coming-soon-form\" method=\"post\" action=\"\" novalidate>\n  <input type=\"hidden\" name=\"fn_form_nonce\" value=\"\" id=\"fn-form-nonce\">\n  <input type=\"hidden\" name=\"fn_form_action\" value=\"fn_coming_soon_submit\">\n\n  <p>\n    <label for=\"fn-nombre\">Nombre y Apellidos <span style=\"color:#b00;\">*<\/span><\/label><br>\n    <input type=\"text\" id=\"fn-nombre\" name=\"fn_nombre\" required\n           style=\"width:100%;padding:10px;border:1px solid #ccc;border-radius:4px;\">\n  <\/p>\n\n  <p>\n    <label for=\"fn-telefono\">Tel\u00e9fono <span style=\"color:#b00;\">*<\/span><\/label><br>\n    <input type=\"tel\" id=\"fn-telefono\" name=\"fn_telefono\" required\n           pattern=\"[0-9+\\s\\-]{6,20}\"\n           style=\"width:100%;padding:10px;border:1px solid #ccc;border-radius:4px;\">\n  <\/p>\n\n  <p>\n    <label for=\"fn-email\">Email <span style=\"color:#b00;\">*<\/span><\/label><br>\n    <input type=\"email\" id=\"fn-email\" name=\"fn_email\" required\n           style=\"width:100%;padding:10px;border:1px solid #ccc;border-radius:4px;\">\n  <\/p>\n\n  <p style=\"text-align:center;margin-top:1.5em;\">\n    <button type=\"submit\"\n            style=\"background:#0073aa;color:#fff;padding:12px 32px;border:none;border-radius:4px;cursor:pointer;font-size:1rem;\">\n      Enviar\n    <\/button>\n  <\/p>\n<\/form>\n\n<div id=\"fn-form-message\" style=\"text-align:center;margin-top:1em;display:none;\"><\/div>\n\n<script>\ndocument.addEventListener('DOMContentLoaded', function () {\n  \/\/ Inyectar nonce v\u00eda REST API (m\u00e1s seguro que exponerlo inline)\n  fetch('\/wp-json\/fn\/v1\/form-nonce')\n    .then(function (r) { return r.json(); })\n    .then(function (data) {\n      document.getElementById('fn-form-nonce').value = data.nonce || '';\n    })\n    .catch(function () { \/* falla silenciosa, el servidor validar\u00e1 *\/ });\n\n  document.getElementById('fn-coming-soon-form').addEventListener('submit', function (e) {\n    e.preventDefault();\n    var form = e.target;\n    var msgBox = document.getElementById('fn-form-message');\n\n    if (!form.checkValidity()) {\n      form.reportValidity();\n      return;\n    }\n\n    var btn = form.querySelector('button[type=\"submit\"]');\n    btn.disabled = true;\n    btn.textContent = 'Enviando\u2026';\n\n    fetch('\/wp-json\/fn\/v1\/contact', {\n      method: 'POST',\n      headers: { 'Content-Type': 'application\/json' },\n      body: JSON.stringify({\n        nombre: form.fn_nombre.value.trim(),\n        telefono: form.fn_telefono.value.trim(),\n        email: form.fn_email.value.trim(),\n        nonce: form.fn_form_nonce.value\n      })\n    })\n    .then(function (r) { return r.json(); })\n    .then(function (data) {\n      msgBox.style.display = 'block';\n      if (data.success) {\n        msgBox.style.color = '#155724';\n        msgBox.textContent = '\u00a1Gracias! Hemos recibido tus datos.';\n        form.reset();\n      } else {\n        msgBox.style.color = '#721c24';\n        msgBox.textContent = data.message || 'Ha ocurrido un error. Int\u00e9ntalo de nuevo.';\n      }\n    })\n    .catch(function () {\n      msgBox.style.display = 'block';\n      msgBox.style.color = '#721c24';\n      msgBox.textContent = 'Error de conexi\u00f3n. Int\u00e9ntalo m\u00e1s tarde.';\n    })\n    .finally(function () {\n      btn.disabled = false;\n      btn.textContent = 'Enviar';\n    });\n  });\n});\n<\/script>\n\n\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Nuestro sitio web est\u00e1 actualmente en construcci\u00f3n. Estamos trabajando para ofrecerte la mejor experiencia. D\u00e9janos tus datos y te avisaremos cuando estemos listos. Contacto Nombre y Apellidos * Tel\u00e9fono * Email * Enviar<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-2","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/finurestsolucionesfinancieras.es\/index.php?rest_route=\/wp\/v2\/pages\/2","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/finurestsolucionesfinancieras.es\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/finurestsolucionesfinancieras.es\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/finurestsolucionesfinancieras.es\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/finurestsolucionesfinancieras.es\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2"}],"version-history":[{"count":1,"href":"https:\/\/finurestsolucionesfinancieras.es\/index.php?rest_route=\/wp\/v2\/pages\/2\/revisions"}],"predecessor-version":[{"id":7,"href":"https:\/\/finurestsolucionesfinancieras.es\/index.php?rest_route=\/wp\/v2\/pages\/2\/revisions\/7"}],"wp:attachment":[{"href":"https:\/\/finurestsolucionesfinancieras.es\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}