{"id":10554,"date":"2025-04-10T19:44:53","date_gmt":"2025-04-10T19:44:53","guid":{"rendered":"https:\/\/unimate.ai\/?page_id=10554"},"modified":"2025-12-19T16:57:40","modified_gmt":"2025-12-19T16:57:40","slug":"agendar-demo","status":"publish","type":"page","link":"https:\/\/unimate.ai\/en\/agendar-demo\/","title":{"rendered":"Schedule a Demo"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"10554\" class=\"elementor elementor-10554\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3dd6f11 e-con-full e-flex e-con e-parent\" data-id=\"3dd6f11\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-8d13abf e-con-full e-flex e-con e-child\" data-id=\"8d13abf\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-71e78d8 elementor-widget__width-initial elementor-widget-tablet__width-initial elementor-widget elementor-widget-heading\" data-id=\"71e78d8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Schedule a Demo<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-ea631fe elementor-section-stretched elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"ea631fe\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;stretch_section&quot;:&quot;section-stretched&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d2c155e\" data-id=\"d2c155e\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-9d93a94 elementor-widget elementor-widget-html\" data-id=\"9d93a94\" 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<div id=\"calendly-smart-container\" style=\"width: 100%; min-height: 400px; box-sizing: border-box;\"><\/div>\r\n\r\n<script>\r\nvar calendlyCargado = false;\r\n\r\nfunction inyectarCalendlyFinal() {\r\n    if (calendlyCargado) return; \r\n    \r\n    const contenedor = document.getElementById('calendly-smart-container');\r\n    contenedor.innerHTML = ''; \r\n    contenedor.style.border = 'none';\r\n    contenedor.style.backgroundColor = 'transparent';\r\n\r\n    const div = document.createElement('div');\r\n    div.className = 'calendly-inline-widget';\r\n    div.dataset.url = 'https:\/\/calendly.com\/unimaterpa\/conozca-nuestros-robots';\r\n    div.style.width = '100%';\r\n    div.style.height = '1100px'; \/\/ Altura suficiente para evitar scroll\r\n    div.style.minHeight = '900px'; \r\n    \r\n    const script = document.createElement('script');\r\n    script.type = 'text\/javascript';\r\n    script.src = 'https:\/\/assets.calendly.com\/assets\/external\/widget.js';\r\n    script.async = true;\r\n\r\n    contenedor.appendChild(div);\r\n    document.body.appendChild(script);\r\n    calendlyCargado = true;\r\n}\r\n\r\nfunction mostrarBotonManual() {\r\n    const contenedor = document.getElementById('calendly-smart-container');\r\n    if (calendlyCargado) return;\r\n\r\n    contenedor.style.height = '600px'; \r\n    contenedor.style.display = 'flex';\r\n    contenedor.style.flexDirection = 'column';\r\n    contenedor.style.alignItems = 'center';\r\n    contenedor.style.justifyContent = 'center';\r\n    contenedor.style.border = '1px dashed #ccc';\r\n    contenedor.style.backgroundColor = '#fafafa';\r\n\r\n    contenedor.innerHTML = `\r\n        <div style=\"text-align: center; padding: 40px; width: 100%;\">\r\n            <h3 style=\"margin-bottom: 15px; font-family: sans-serif;\">Agendar demo<\/h3>\r\n            <button id=\"btn-calendly-directo\" style=\"background-color: #0837c4; color: white; border: none; padding: 16px 32px; border-radius: 50px; font-weight: bold; cursor: pointer; font-size: 18px;\">\r\n                Ver calendario y reservar\r\n            <\/button>\r\n            <p style=\"font-size: 13px; color: #777; margin-top: 20px; font-family: sans-serif;\">\r\n                Al hacer clic, aceptas cargar Calendly.\r\n            <\/p>\r\n        <\/div>`;\r\n\r\n    document.getElementById('btn-calendly-directo').addEventListener('click', inyectarCalendlyFinal);\r\n}\r\n\r\nfunction verificarYEjecutar() {\r\n    if (window.Cookiebot && Cookiebot.consent && Cookiebot.consent.marketing) {\r\n        inyectarCalendlyFinal();\r\n    } else {\r\n        mostrarBotonManual();\r\n    }\r\n}\r\n\r\nwindow.addEventListener('load', function() {\r\n    setTimeout(verificarYEjecutar, 600);\r\n});\r\n\r\nwindow.addEventListener('CookiebotOnAccept', function() {\r\n    if (Cookiebot.consent.marketing) inyectarCalendlyFinal();\r\n});\r\n<\/script>\r\n\r\n<style>\r\n\/* Forzar que el iframe de Calendly use la altura completa del contenedor *\/\r\n.calendly-inline-widget iframe {\r\n    height: 100% !important;\r\n    min-height: 900px !important;\r\n}\r\n<\/style>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>Schedule a Demo<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-home.php","meta":{"rs_blank_template":"","rs_page_bg_color":"","slide_template_v7":"","footnotes":""},"class_list":["post-10554","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/unimate.ai\/en\/wp-json\/wp\/v2\/pages\/10554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unimate.ai\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/unimate.ai\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/unimate.ai\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unimate.ai\/en\/wp-json\/wp\/v2\/comments?post=10554"}],"version-history":[{"count":22,"href":"https:\/\/unimate.ai\/en\/wp-json\/wp\/v2\/pages\/10554\/revisions"}],"predecessor-version":[{"id":11857,"href":"https:\/\/unimate.ai\/en\/wp-json\/wp\/v2\/pages\/10554\/revisions\/11857"}],"wp:attachment":[{"href":"https:\/\/unimate.ai\/en\/wp-json\/wp\/v2\/media?parent=10554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}