{"id":535,"date":"2025-09-19T22:39:01","date_gmt":"2025-09-19T22:39:01","guid":{"rendered":"https:\/\/idaliacampillo.com.mx\/?page_id=535"},"modified":"2026-03-04T07:14:15","modified_gmt":"2026-03-04T13:14:15","slug":"consultas","status":"publish","type":"page","link":"https:\/\/idaliacampillo.com.mx\/english\/consultas\/","title":{"rendered":"Request a consultation"},"content":{"rendered":"<div class=\"wp-block-kadence-column kadence-column535_63585e-f2 kvs-md-false kvs-sm-false kb-section-has-overlay\"><div class=\"kt-inside-inner-col\">\n<h2 class=\"wp-block-heading has-text-align-center eplus-wrapper has-secondary-accent-text-color has-text-color has-link-color has-xxxx-large-font-size wp-elements-597939c981f9cbff9a3045b5082c5255\" style=\"margin-top:var(--wp--preset--spacing--x-large);margin-bottom:var(--wp--preset--spacing--x-large);padding-top:0;padding-bottom:0\" data-block-type=\"core\"><strong>Request a consultation<\/strong><\/h2>\n\n\n<p data-block-type=\"core\">\n<script>\n  if (typeof hasAmeliaEntitiesApiCall === 'undefined' && ('' === '' && '' !== '1')) {\n    var hasAmeliaEntitiesApiCall = true;\n  }\n  var ameliaShortcodeData = (typeof ameliaShortcodeData === 'undefined') ? [] : ameliaShortcodeData;\n  ameliaShortcodeData.push(\n    {\n      'hasApiCall': (typeof hasAmeliaEntitiesApiCall !== 'undefined') && hasAmeliaEntitiesApiCall,\n      'trigger': '',\n      'trigger_type': '',\n      'triggered_form': 'sbsNew',\n      'in_dialog': '',\n      'show': '',\n      'counter': '1000',\n      'category': '',\n      'service': '',\n      'employee': '',\n      'location': '',\n      'package': '',\n      'layout': '',\n    }\n  );\n\n  var ameliaShortcodeDataTriggered = (typeof ameliaShortcodeDataTriggered === 'undefined') ? [] : ameliaShortcodeDataTriggered;\n  if (ameliaShortcodeData[ameliaShortcodeData.length - 1].trigger !== '') {\n    if (ameliaShortcodeDataTriggered.filter(a => a.counter === ameliaShortcodeData[ameliaShortcodeData.length - 1].counter).length === 0) {\n      ameliaShortcodeDataTriggered.push(ameliaShortcodeData.pop());\n    } else {\n      ameliaShortcodeData.pop()\n    }\n  }\n  if (typeof hasAmeliaEntitiesApiCall !== 'undefined' && hasAmeliaEntitiesApiCall) {\n    hasAmeliaEntitiesApiCall = false;\n  }\n<\/script>\n\n<div\n  id=\"amelia-v2-booking-1000\"\n  class=\"amelia-v2-booking\"\n >\n    <step-form-wrapper><\/step-form-wrapper><\/div>\n<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-cover is-light uag-hide-desktop\" style=\"margin-top:var(--wp--preset--spacing--large);margin-bottom:var(--wp--preset--spacing--large);padding-top:var(--wp--preset--spacing--medium);padding-bottom:var(--wp--preset--spacing--medium)\" data-block-type=\"core\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"768\" height=\"1024\" class=\"wp-block-cover__image-background wp-image-2026 size-large\" alt=\"\" src=\"https:\/\/i0.wp.com\/idaliacampillo.com.mx\/wp-content\/uploads\/2025\/11\/WhatsApp-Image-2025-10-30-at-11.23.52-AM-2.jpeg?resize=768%2C1024&#038;ssl=1\" data-object-fit=\"cover\" srcset=\"https:\/\/i0.wp.com\/idaliacampillo.com.mx\/wp-content\/uploads\/2025\/11\/WhatsApp-Image-2025-10-30-at-11.23.52-AM-2.jpeg?resize=768%2C1024&amp;ssl=1 768w, https:\/\/i0.wp.com\/idaliacampillo.com.mx\/wp-content\/uploads\/2025\/11\/WhatsApp-Image-2025-10-30-at-11.23.52-AM-2.jpeg?resize=225%2C300&amp;ssl=1 225w, https:\/\/i0.wp.com\/idaliacampillo.com.mx\/wp-content\/uploads\/2025\/11\/WhatsApp-Image-2025-10-30-at-11.23.52-AM-2.jpeg?resize=1152%2C1536&amp;ssl=1 1152w, https:\/\/i0.wp.com\/idaliacampillo.com.mx\/wp-content\/uploads\/2025\/11\/WhatsApp-Image-2025-10-30-at-11.23.52-AM-2.jpeg?resize=9%2C12&amp;ssl=1 9w, https:\/\/i0.wp.com\/idaliacampillo.com.mx\/wp-content\/uploads\/2025\/11\/WhatsApp-Image-2025-10-30-at-11.23.52-AM-2.jpeg?resize=300%2C400&amp;ssl=1 300w, https:\/\/i0.wp.com\/idaliacampillo.com.mx\/wp-content\/uploads\/2025\/11\/WhatsApp-Image-2025-10-30-at-11.23.52-AM-2.jpeg?resize=600%2C800&amp;ssl=1 600w, https:\/\/i0.wp.com\/idaliacampillo.com.mx\/wp-content\/uploads\/2025\/11\/WhatsApp-Image-2025-10-30-at-11.23.52-AM-2.jpeg?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><span aria-hidden=\"true\" class=\"wp-block-cover__background has-background-dim\" style=\"background-color:#a6876f\"><\/span><div class=\"wp-block-cover__inner-container has-global-padding is-layout-constrained wp-block-cover-is-layout-constrained\">\n<h2 class=\"wp-block-heading has-text-align-center eplus-wrapper has-accent-text-color has-text-color has-link-color wp-elements-87df25b9f0a5a25b761880f0c0600899\" style=\"padding-top:var(--wp--preset--spacing--small);padding-bottom:var(--wp--preset--spacing--small)\" data-block-type=\"core\">Request a consultation<\/h2>\n\n\n<p data-block-type=\"core\">\n<script>\n  if (typeof hasAmeliaEntitiesApiCall === 'undefined' && ('' === '' && '' !== '1')) {\n    var hasAmeliaEntitiesApiCall = true;\n  }\n  var ameliaShortcodeData = (typeof ameliaShortcodeData === 'undefined') ? [] : ameliaShortcodeData;\n  ameliaShortcodeData.push(\n    {\n      'hasApiCall': (typeof hasAmeliaEntitiesApiCall !== 'undefined') && hasAmeliaEntitiesApiCall,\n      'trigger': '',\n      'trigger_type': '',\n      'triggered_form': 'sbsNew',\n      'in_dialog': '',\n      'show': 'all',\n      'counter': '1001',\n      'category': '',\n      'service': '',\n      'employee': '',\n      'location': '',\n      'package': '',\n      'layout': '',\n    }\n  );\n\n  var ameliaShortcodeDataTriggered = (typeof ameliaShortcodeDataTriggered === 'undefined') ? [] : ameliaShortcodeDataTriggered;\n  if (ameliaShortcodeData[ameliaShortcodeData.length - 1].trigger !== '') {\n    if (ameliaShortcodeDataTriggered.filter(a => a.counter === ameliaShortcodeData[ameliaShortcodeData.length - 1].counter).length === 0) {\n      ameliaShortcodeDataTriggered.push(ameliaShortcodeData.pop());\n    } else {\n      ameliaShortcodeData.pop()\n    }\n  }\n  if (typeof hasAmeliaEntitiesApiCall !== 'undefined' && hasAmeliaEntitiesApiCall) {\n    hasAmeliaEntitiesApiCall = false;\n  }\n<\/script>\n\n<div\n  id=\"amelia-v2-booking-1001\"\n  class=\"amelia-v2-booking\"\n >\n    <step-form-wrapper><\/step-form-wrapper><\/div>\n<\/p>\n<\/div><\/div>\n\n\n\n<script>\ndocument.addEventListener('DOMContentLoaded', function () {\n  const observer = new MutationObserver(function () {\n    const confirmSection = document.querySelector('.am-fs__main-content.am-fs__congrats');\n    if (confirmSection && !confirmSection.querySelector('.form-sync-done')) {\n\n      setTimeout(() => {\n        const name = confirmSection.querySelector('.am-fs__congrats-info-customer-name span:last-child')?.textContent.trim() || '';\n        const email = confirmSection.querySelector('.am-fs__congrats-info-customer-email span:last-child')?.textContent.trim() || '';\n        const phone = confirmSection.querySelector('.am-fs__congrats-info-customer-phone span:last-child')?.textContent.trim() || '';\n        const service = confirmSection.querySelector('.am-fs__congrats-info-app-service span:last-child')?.textContent.trim() || '';\n        const dateRaw = confirmSection.querySelector('.am-fs__congrats-info-app-date span:last-child')?.textContent.trim() || '';\n        const timeRaw = confirmSection.querySelector('.am-fs__congrats-info-app-time span:last-child')?.textContent.trim() || '';\n\n        \/\/ \ud83d\udd53 Normaliza fecha y hora\n        let fechaForm = dateRaw;\n        let fechaCalendar = \"\";\n\n        const meses = {\n          enero: '01', febrero: '02', marzo: '03', abril: '04',\n          mayo: '05', junio: '06', julio: '07', agosto: '08',\n          septiembre: '09', octubre: '10', noviembre: '11', diciembre: '12'\n        };\n\n        const fechaMatch = dateRaw.toLowerCase().match(\/([a-z]+)\\s+(\\d{1,2}),\\s+(\\d{4})\/);\n        if (fechaMatch && meses[fechaMatch[1]]) {\n          const mes = meses[fechaMatch[1]];\n          const dia = fechaMatch[2].padStart(2, '0');\n          const a\u00f1o = fechaMatch[3];\n          fechaForm = `${dia}\/${mes}\/${a\u00f1o}`;\n          fechaCalendar = `${a\u00f1o}-${mes}-${dia}`;\n        }\n\n        const horaMatch = timeRaw.match(\/(\\d{1,2}):(\\d{2})\/);\n        const hora = horaMatch ? `${horaMatch[1].padStart(2, '0')}:${horaMatch[2]}` : '';\n\n        \/\/ \ud83d\udce8 Enviar a Google Form\n        const formData = new FormData();\n        formData.append(\"entry.1236883877\", name);\n        formData.append(\"entry.1244453651\", phone);\n        formData.append(\"entry.505674302\", email);\n        formData.append(\"entry.340870596\", fechaForm);\n        formData.append(\"entry.1263066547\", service);\n        formData.append(\"entry.630770104\", hora);\n\n        fetch(\"https:\/\/docs.google.com\/forms\/d\/e\/1FAIpQLSeFs92c9nshvCk_liB6CJ3Zdm7c_ELrVdky3kVw8h-7cwBm8A\/formResponse\", {\n          method: \"POST\",\n          mode: \"no-cors\",\n          body: formData\n        });\n\n        \/\/ \u2705 Bot\u00f3n de WhatsApp (reactivado)\n        const doctorPhone = \"524871093910\"; \/\/ 52 + tu n\u00famero\n        const mensaje = `\ud83d\udcc5 Nueva cita registrada\n\ud83d\udc64 Nombre: ${name}\n\ud83d\udce7 Correo: ${email}\n\ud83d\udcde Tel\u00e9fono: ${phone}\n\ud83d\udc89 Servicio: ${service}\n\ud83d\uddd3\ufe0f Fecha: ${fechaForm}\n\ud83d\udd52 Hora: ${hora}`;\n        const url = `https:\/\/wa.me\/${doctorPhone}?text=${encodeURIComponent(mensaje)}`;\n\n        const boton = document.createElement(\"button\");\n        boton.textContent = \"\ud83d\udcf2 Confirmar cita por WhatsApp\";\n        boton.style.cssText = \"margin-top:20px;padding:10px 16px;background:#25D366;color:#fff;border:none;border-radius:6px;font-weight:bold;cursor:pointer;\";\n        boton.onclick = () => window.open(url, \"_blank\");\n        confirmSection.appendChild(boton);\n\n        \/\/ \ud83d\uddd3\ufe0f Enviar tambi\u00e9n a Google Calendar + Sheets\n        const calendarParams = new URLSearchParams({\n          nombre: name,\n          telefono: phone,\n          correo: email,\n          servicio: service,\n          fecha: fechaCalendar,\n          hora: hora\n        });\n\n        fetch(\"https:\/\/script.google.com\/macros\/s\/AKfycbxjx0OcFU-e8j0edEyk11YnwpqkqGIhWmrbaAbGCSZS49WEgDYqD8_YoF7meTGZdMjQ\/exec?\" + calendarParams.toString())\n          .then(() => console.log(\"\u2705 Evento enviado a Google Calendar\"))\n          .catch(err => console.error(\"\u274c Error al enviar a Calendar:\", err));\n\n        const mark = document.createElement('div');\n        mark.classList.add('form-sync-done');\n        confirmSection.appendChild(mark);\n\n      }, 1000);\n    }\n  });\n\n  observer.observe(document.body, { childList: true, subtree: true });\n});\n<\/script>","protected":false},"excerpt":{"rendered":"<p>Request a consultation<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-535","page","type-page","status-publish","hentry"],"aioseo_notices":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false},"uagb_author_info":{"display_name":"arturochavezchibli@gmail.com","author_link":"https:\/\/idaliacampillo.com.mx\/english\/author\/arturochavezchibligmail-com\/"},"uagb_comment_info":0,"uagb_excerpt":"Solicita tu consulta","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/idaliacampillo.com.mx\/english\/wp-json\/wp\/v2\/pages\/535","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idaliacampillo.com.mx\/english\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/idaliacampillo.com.mx\/english\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/idaliacampillo.com.mx\/english\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idaliacampillo.com.mx\/english\/wp-json\/wp\/v2\/comments?post=535"}],"version-history":[{"count":204,"href":"https:\/\/idaliacampillo.com.mx\/english\/wp-json\/wp\/v2\/pages\/535\/revisions"}],"predecessor-version":[{"id":2275,"href":"https:\/\/idaliacampillo.com.mx\/english\/wp-json\/wp\/v2\/pages\/535\/revisions\/2275"}],"wp:attachment":[{"href":"https:\/\/idaliacampillo.com.mx\/english\/wp-json\/wp\/v2\/media?parent=535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}