{"id":153,"date":"2025-12-01T13:25:56","date_gmt":"2025-12-01T13:25:56","guid":{"rendered":"https:\/\/garafincas.com\/?page_id=153"},"modified":"2025-12-11T10:13:24","modified_gmt":"2025-12-11T10:13:24","slug":"contacto","status":"publish","type":"page","link":"https:\/\/garafincas.com\/index.php\/contacto\/","title":{"rendered":"Contacto"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"153\" class=\"elementor elementor-153\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1956802d e-flex e-con-boxed e-con e-parent\" data-id=\"1956802d\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2dd70413 http:\/\/localhost\/sil-lauragm\/index.php\/contacto\/#formu elementor-widget elementor-widget-spacer\" data-id=\"2dd70413\" data-element_type=\"widget\" id=\"contacto\" data-widget_type=\"spacer.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-5b159dfb e-flex e-con-boxed e-con e-parent\" data-id=\"5b159dfb\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-a5263d1 elementor-widget elementor-widget-heading\" data-id=\"a5263d1\" data-element_type=\"widget\" id=\"contact\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Formulario de contacto<\/h2>\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-2328640e e-flex e-con-boxed e-con e-parent\" data-id=\"2328640e\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-31862acc elementor-button-align-stretch elementor-widget elementor-widget-form\" data-id=\"31862acc\" data-element_type=\"widget\" data-settings=\"{&quot;step_next_label&quot;:&quot;Next&quot;,&quot;step_previous_label&quot;:&quot;Previous&quot;,&quot;button_width&quot;:&quot;100&quot;,&quot;step_type&quot;:&quot;number_text&quot;,&quot;step_icon_shape&quot;:&quot;circle&quot;}\" data-widget_type=\"form.default\">\n\t\t\t\t\t\t\t<form class=\"elementor-form\" method=\"post\" name=\"New Form\" aria-label=\"New Form\">\n\t\t\t<input type=\"hidden\" name=\"post_id\" value=\"153\"\/>\n\t\t\t<input type=\"hidden\" name=\"form_id\" value=\"31862acc\"\/>\n\t\t\t<input type=\"hidden\" name=\"referer_title\" value=\"Contacto - gara fincas\" \/>\n\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"queried_id\" value=\"153\"\/>\n\t\t\t\n\t\t\t<div class=\"elementor-form-fields-wrapper elementor-labels-above\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-text elementor-field-group elementor-column elementor-field-group-name elementor-col-100 elementor-field-required\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-name\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\tNombre\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input size=\"1\" type=\"text\" name=\"form_fields[name]\" id=\"form-field-name\" class=\"elementor-field elementor-size-sm  elementor-field-textual\" placeholder=\"Nombre de la persona f\u00edsica o jur\u00eddica\" required=\"required\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-tel elementor-field-group elementor-column elementor-field-group-field_36220f2 elementor-col-100\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-field_36220f2\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\tTel\u00e9fono\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t<input size=\"1\" type=\"tel\" name=\"form_fields[field_36220f2]\" id=\"form-field-field_36220f2\" class=\"elementor-field elementor-size-sm  elementor-field-textual\" placeholder=\"Tel\u00e9fono\" pattern=\"[0-9()#&amp;+*-=.]+\" title=\"Only numbers and phone characters (#, -, *, etc) are accepted.\">\n\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-email elementor-field-group elementor-column elementor-field-group-email elementor-col-100 elementor-field-required\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-email\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\tEmail\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input size=\"1\" type=\"email\" name=\"form_fields[email]\" id=\"form-field-email\" class=\"elementor-field elementor-size-sm  elementor-field-textual\" placeholder=\"Email\" required=\"required\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-textarea elementor-field-group elementor-column elementor-field-group-message elementor-col-100 elementor-field-required\">\n\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"form-field-message\" class=\"elementor-field-label\">\n\t\t\t\t\t\t\t\tMensaje\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t<textarea class=\"elementor-field-textual elementor-field  elementor-size-sm\" name=\"form_fields[message]\" id=\"form-field-message\" rows=\"4\" placeholder=\"Mensaje adicional opcional\" required=\"required\"><\/textarea>\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-type-checkbox elementor-field-group elementor-column elementor-field-group-politika elementor-col-100\">\n\t\t\t\t\t<div class=\"elementor-field-subgroup  \"><span class=\"elementor-field-option\"><input type=\"checkbox\" value=\"He le\u00eddo y acepto la pol\u00edtica de privacidad\" id=\"form-field-politika-0\" name=\"form_fields[politika]\"> <label for=\"form-field-politika-0\">He le\u00eddo y acepto la pol\u00edtica de privacidad<\/label><\/span><\/div>\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<div class=\"elementor-field-group elementor-column elementor-field-type-submit elementor-col-100 e-form__buttons\">\n\t\t\t\t\t<button class=\"elementor-button elementor-size-sm elementor-animation-pulse\" type=\"submit\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Enviar<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/button>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/form>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-1d716e2c e-flex e-con-boxed e-con e-parent\" data-id=\"1d716e2c\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3cd0c76c elementor-widget elementor-widget-html\" data-id=\"3cd0c76c\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t\n<script>\n(function(){\n  \/\/ --- CONFIGURA AQU\u00cd ---\n  const FIELD_ID = 'politika';     \/\/ ID del campo (sin #)\n  const LABEL_SNIPPET = 'He le\u00eddo'; \/\/ parte del texto de la etiqueta (opcional)\n\n  const scriptEl = document.currentScript || (function(){\n    const s = document.getElementsByTagName('script');\n    return s[s.length-1];\n  })();\n  let form = scriptEl && scriptEl.closest ? scriptEl.closest('.elementor-form') : null;\n  if(!form) form = document.querySelector('.elementor-form');\n  if(!form) form = scriptEl && scriptEl.closest ? scriptEl.closest('form') : document.querySelector('form');\n  if(!form) return;\n\n  let wrapper = form.querySelector('.elementor-field-group[data-id=\"'+FIELD_ID+'\"]') \n             || form.querySelector('[data-id=\"'+FIELD_ID+'\"]');\n\n  let checkboxes = [];\n  if(wrapper){\n    checkboxes = Array.from(wrapper.querySelectorAll('input[type=\"checkbox\"]'));\n  } else {\n    checkboxes = Array.from(form.querySelectorAll('input[type=\"checkbox\"]')).filter(cb=>{\n      return cb.name && cb.name.indexOf(FIELD_ID) !== -1;\n    });\n    if(!checkboxes.length && LABEL_SNIPPET){\n      const labels = Array.from(form.querySelectorAll('.elementor-field-label, label'));\n      for(const lab of labels){\n        if(lab.textContent && lab.textContent.indexOf(LABEL_SNIPPET) !== -1){\n          const parent = lab.closest('.elementor-field-group') || lab.parentElement;\n          if(parent){\n            const found = parent.querySelectorAll('input[type=\"checkbox\"]');\n            if(found.length){ checkboxes = Array.from(found); break; }\n          }\n        }\n      }\n    }\n  }\n\n  function anyChecked(){ return checkboxes.some(cb => cb.checked); }\n\n  function showErrorAndFocus(){\n    alert('Debes aceptar la pol\u00edtica de privacidad para continuar.');\n    if(checkboxes.length) checkboxes[0].focus();\n  }\n\n  function validateAndBlock(e){\n    if(!checkboxes.length) return;\n    if(!anyChecked()){\n      e.preventDefault();\n      e.stopImmediatePropagation && e.stopImmediatePropagation();\n      showErrorAndFocus();\n      return false;\n    }\n    return true;\n  }\n\n  form.addEventListener('submit', e => validateAndBlock(e), true);\n  form.addEventListener('click', e => {\n    const btn = e.target.closest('button[type=\"submit\"], input[type=\"submit\"]');\n    if(btn) validateAndBlock(e);\n  }, true);\n})();\n<\/script>\n<script>\ndocument.addEventListener('DOMContentLoaded', function() {\n  const checkboxes = document.querySelectorAll('.elementor-field-type-checkbox');\n\n  checkboxes.forEach(group => {\n    const option = group.querySelector('.elementor-field-option');\n    if (!option) return;\n\n    const input = option.querySelector('input[type=\"checkbox\"]');\n    const label = option.querySelector('label');\n    if (!input || !label) return;\n\n    \/\/ Forzamos que input quede **antes del label** en el DOM\n    option.insertBefore(input, label);\n\n    \/\/ Aplicamos estilo inline-flex para que queden en la misma l\u00ednea\n    option.style.display = 'inline-flex';\n    option.style.alignItems = 'center';\n    option.style.gap = '8px';\n  });\n});\n<\/script>\n\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-3517db18 e-flex e-con-boxed e-con e-parent\" data-id=\"3517db18\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-21513697 elementor-widget elementor-widget-spacer\" data-id=\"21513697\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Formulario de contacto<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-153","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/garafincas.com\/index.php\/wp-json\/wp\/v2\/pages\/153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/garafincas.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/garafincas.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/garafincas.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/garafincas.com\/index.php\/wp-json\/wp\/v2\/comments?post=153"}],"version-history":[{"count":25,"href":"https:\/\/garafincas.com\/index.php\/wp-json\/wp\/v2\/pages\/153\/revisions"}],"predecessor-version":[{"id":1193,"href":"https:\/\/garafincas.com\/index.php\/wp-json\/wp\/v2\/pages\/153\/revisions\/1193"}],"wp:attachment":[{"href":"https:\/\/garafincas.com\/index.php\/wp-json\/wp\/v2\/media?parent=153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}