{"id":149,"date":"2026-10-09T08:34:57","date_gmt":"2026-10-09T08:34:57","guid":{"rendered":"https:\/\/hechoporti.es\/?page_id=149"},"modified":"2026-10-09T13:44:36","modified_gmt":"2026-10-09T13:44:36","slug":"empieza","status":"publish","type":"page","link":"https:\/\/hechoporti.es\/index.php\/empieza\/","title":{"rendered":"Empieza"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"149\" class=\"elementor elementor-149\">\n\t\t\t\t<div class=\"elementor-element elementor-element-cbbe63b hpt-qhead e-flex e-con-boxed e-con e-parent\" data-id=\"cbbe63b\" data-element_type=\"container\" data-e-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-ed81a41 elementor-widget elementor-widget-image\" data-id=\"ed81a41\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"\/?page_id=12\">\n\t\t\t\t\t\t\t<img fetchpriority=\"high\" decoding=\"async\" width=\"996\" height=\"161\" src=\"https:\/\/hechoporti.es\/wp-content\/uploads\/2026\/10\/hecho-por-ti-logo.png\" class=\"attachment-full size-full wp-image-8\" alt=\"\" srcset=\"https:\/\/hechoporti.es\/wp-content\/uploads\/2026\/10\/hecho-por-ti-logo.png 996w, https:\/\/hechoporti.es\/wp-content\/uploads\/2026\/10\/hecho-por-ti-logo-300x48.png 300w, https:\/\/hechoporti.es\/wp-content\/uploads\/2026\/10\/hecho-por-ti-logo-768x124.png 768w\" sizes=\"(max-width: 996px) 100vw, 996px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2081f2b elementor-hidden-mobile elementor-widget elementor-widget-heading\" data-id=\"2081f2b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">Diagn\u00f3stico gratuito \u00b7 3 min<\/p>\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-a09271a hpt-sec e-flex e-con-boxed e-con e-parent\" data-id=\"a09271a\" data-element_type=\"container\" data-e-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-59c08c3 elementor-widget elementor-widget-html\" data-id=\"59c08c3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<style>\nbody{background:#071A35}\n.e-con[id]{scroll-margin-top:88px}\n.hpt-hero{position:relative;overflow:clip;background:\n radial-gradient(900px circle at 18% -10%,rgba(56,120,255,.18),transparent 60%),\n radial-gradient(650px circle at 52% 60%,rgba(242,107,42,.13),transparent 62%),\n radial-gradient(600px circle at 0% 100%,rgba(247,178,59,.08),transparent 60%),\n linear-gradient(180deg,#081D3B 0%,#071A35 55%,#05152C 100%)!important}\n.hpt-hero:after{content:\"\";position:absolute;inset:0;pointer-events:none;z-index:0;\n background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);\n background-size:56px 56px;background-position:-1px -1px;\n -webkit-mask-image:radial-gradient(ellipse 70% 80% at 30% 45%,#000 0%,rgba(0,0,0,.35) 55%,transparent 85%);\n mask-image:radial-gradient(ellipse 70% 80% at 30% 45%,#000 0%,rgba(0,0,0,.35) 55%,transparent 85%)}\n.hpt-hero>.e-con,.hpt-hero>.e-con-inner>.e-con{position:relative;z-index:1}\n.hpt-header{position:sticky!important;top:0;z-index:999;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}\n.hpt-header .elementor-widget{flex-grow:0!important}\n.hpt-header .elementor-widget-image,.hpt-header .hpt-header-cta{flex:1 1 0!important;min-width:0}\n.hpt-header .hpt-header-cta,.hpt-header .hpt-header-cta>.elementor-widget-container,.hpt-header .hpt-header-cta .elementor-button-wrapper{display:flex!important;justify-content:flex-end!important}\n.hpt-header .hpt-nav .elementor-icon-list-items{justify-content:center;flex-wrap:nowrap}\n.hpt-header .hpt-nav a{white-space:nowrap;padding:8px 0}\n.hpt-header .elementor-widget-image{line-height:0}\n.hpt-nav ul{margin:0!important}\n.hpt-nav a{position:relative}\n.hpt-nav a:after{content:\"\";position:absolute;left:0;right:0;bottom:-6px;height:2px;border-radius:2px;background:linear-gradient(90deg,#F26B2A,#F7B23B);transform:scaleX(0);transition:transform .25s ease}\n.hpt-nav a:hover:after{transform:scaleX(1)}\n\/* align left column with the header's 1280px box *\/\n.hpt-row{position:relative}\n.hpt-left{padding-left:max(24px,calc((100vw - 1280px)\/2))!important}\n@media(min-width:1025px){.hpt-h1 .elementor-heading-title{font-size:clamp(44px,3.9vw,76px)!important}}\n.hpt-h1 .elementor-heading-title{background:linear-gradient(180deg,#FFFFFF 55%,#C9D4E6 100%);-webkit-background-clip:text;background-clip:text;color:transparent!important;padding-bottom:4px}\n.hpt-cta .elementor-button{box-shadow:0 10px 30px rgba(242,107,42,.35);transition:box-shadow .25s,transform .25s}\n.hpt-cta .elementor-button:hover{box-shadow:0 14px 40px rgba(242,107,42,.55);transform:translateY(-2px)}\n.hpt-cta .elementor-button-icon{transition:transform .25s}.hpt-cta .elementor-button:hover .elementor-button-icon{transform:translateX(4px)}\n\/* image side: masked so it melts into the background on the left and bottom *\/\n.hpt-visual{position:relative;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 38%),linear-gradient(0deg,transparent 0%,#000 28%);\n -webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0%,#000 38%),linear-gradient(0deg,transparent 0%,#000 28%);mask-composite:intersect}\n.hpt-visual:after{content:\"\";position:absolute;inset:0;pointer-events:none;\n background:linear-gradient(200deg,rgba(242,107,42,.22) 0%,rgba(242,107,42,0) 45%),linear-gradient(90deg,rgba(7,26,53,.55),rgba(7,26,53,0) 60%)}\n.hpt-stats{position:absolute!important;z-index:3;left:56%;top:150px;width:304px!important;\n background:linear-gradient(160deg,rgba(14,40,78,.92),rgba(4,18,39,.92))!important;\n backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 24px 60px rgba(0,0,0,.45);animation:hptFloat 6s ease-in-out infinite}\n.hpt-stats:before{content:\"\";position:absolute;inset:-1px;border-radius:18px;padding:1px;pointer-events:none;\n background:linear-gradient(140deg,rgba(247,178,59,.55),rgba(255,255,255,.08) 40%,rgba(242,107,42,.3));\n -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}\n.hpt-stats .elementor-widget-counter{flex-grow:0!important;width:auto!important}.hpt-stats .elementor-counter,.hpt-stats .elementor-counter-number-wrapper{justify-content:flex-start!important;margin:0!important;text-align:left!important}\n.hpt-stats{gap:18px!important}.hpt-stats>.e-con{gap:16px!important}.hpt-stats .e-con .e-con{gap:8px!important}\n.hpt-stats .elementor-counter-number-prefix,.hpt-stats .elementor-counter-number-suffix{display:none!important}\n@keyframes hptFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}\n@media(max-width:1024px){.hpt-left{padding-left:24px!important;padding-right:24px!important}\n .hpt-stats{position:relative!important;left:auto;top:auto;margin:-150px 24px 40px!important}\n .hpt-visual{-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 25%,#000 70%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0%,#000 25%,#000 70%,transparent 100%)}}\n@media(max-width:767px){.hpt-left{padding-left:20px!important;padding-right:20px!important}\n .hpt-header-cta .elementor-button{padding:11px 16px!important;font-size:14px!important}\n .hpt-stats{margin:-130px 20px 32px!important;width:auto!important;max-width:300px}\n .hpt-left .elementor-widget-text-editor br{display:none}}\n<\/style>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-77755f9 elementor-widget elementor-widget-html\" data-id=\"77755f9\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<style>\n.hpt-sec{position:relative;overflow:clip}\n.hpt-sec:after{content:\"\";position:absolute;inset:0;pointer-events:none;z-index:0;\n background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);\n background-size:56px 56px;-webkit-mask-image:radial-gradient(ellipse 60% 70% at 50% 0%,#000,transparent 75%);mask-image:radial-gradient(ellipse 60% 70% at 50% 0%,#000,transparent 75%)}\n.hpt-sec>.e-con-inner{position:relative;z-index:1}\n.hpt-eyebrow .elementor-heading-title{display:inline-flex;align-items:center;gap:10px}\n.hpt-eyebrow .elementor-heading-title:before{content:\"\";width:22px;height:2px;border-radius:2px;background:linear-gradient(90deg,#F26B2A,#F7B23B)}\n.hpt-grad{background:linear-gradient(90deg,#F26B2A,#F7B23B);-webkit-background-clip:text;background-clip:text;color:transparent}\n\/* service cards *\/\n.hpt-card{position:relative;transition:transform .3s ease,box-shadow .3s ease,background-color .3s ease}\n.hpt-card:before{content:\"\";position:absolute;inset:-1px;border-radius:20px;padding:1px;pointer-events:none;opacity:.35;transition:opacity .3s ease;\n background:linear-gradient(150deg,rgba(247,178,59,.9),rgba(255,255,255,.06) 45%,rgba(242,107,42,.5));\n -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}\n.hpt-card:hover{transform:translateY(-6px);box-shadow:0 22px 50px rgba(0,0,0,.35)}\n.hpt-card:hover:before{opacity:1}\n.hpt-card .hpt-ico .elementor-icon{border:1px solid rgba(255,255,255,.08);transition:transform .3s ease}\n.hpt-card:hover .hpt-ico .elementor-icon{transform:translateY(-3px) rotate(-4deg)}.hpt-card:hover .hpt-ico:nth-child(2) .elementor-icon{transition-delay:.05s}.hpt-card:hover .hpt-ico:nth-child(3) .elementor-icon{transition-delay:.1s}\n.hpt-card .hpt-ico{flex-grow:0!important;width:auto!important}\n.hpt-logo img{width:52px!important;height:52px!important;object-fit:contain;display:block;filter:drop-shadow(0 6px 14px rgba(0,0,0,.35));transition:transform .3s ease}\n.hpt-card:hover .hpt-logo img{transform:translateY(-3px) rotate(-4deg)}\n.hpt-tag .elementor-heading-title{display:inline-block;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1)}\n\/* questionnaire CTA *\/\n.hpt-quiz{position:relative;overflow:hidden}\n.hpt-quiz:after{content:\"\";position:absolute;right:-120px;top:-120px;width:340px;height:340px;border-radius:50%;pointer-events:none;\n background:radial-gradient(circle,rgba(247,178,59,.28),transparent 65%)}\n.hpt-quiz>*{position:relative;z-index:1}\n\/* steps *\/\n.hpt-steps{position:relative}\n.hpt-steps:after{content:\"\";position:absolute;top:92px;left:16.67%;right:16.67%;height:2px;z-index:0;\n background:linear-gradient(90deg,rgba(242,107,42,0),rgba(242,107,42,.7) 15%,rgba(247,178,59,.7) 85%,rgba(247,178,59,0))}\n.hpt-step{position:relative;z-index:1}\n.hpt-num .elementor-heading-title{width:88px;height:88px;border-radius:50%;display:flex;align-items:center;justify-content:center;\n background:linear-gradient(140deg,#F26B2A,#F7B23B);color:#fff!important;box-shadow:0 0 0 8px rgba(247,178,59,.10),0 14px 36px rgba(242,107,42,.4)}\n.hpt-step:hover .hpt-num .elementor-heading-title{animation:hptPop .5s ease}\n@keyframes hptPop{50%{transform:scale(1.08)}}\n.hpt-note{position:relative}\n.hpt-note:after{content:\"\";position:absolute;left:-1px;top:24px;bottom:24px;width:3px;border-radius:3px;background:linear-gradient(180deg,#F26B2A,#F7B23B)}\n@media(max-width:1024px){.hpt-steps:after{display:none}}\n@media(max-width:767px){.hpt-num .elementor-heading-title{width:64px;height:64px;font-size:24px!important}.hpt-sec h2 br{display:none}}\n<\/style><style>\n\/* distraction-free questionnaire page *\/\n.hpt-qhead .elementor-widget{flex-grow:0!important}\n.hq-card{min-height:calc(100vh - 150px)!important;min-height:calc(100dvh - 150px)!important}\n.hq-title{font-size:36px!important}\n.hq-opt{font-size:18px!important;padding:17px 20px!important}\n.hq-tag{font-size:13px;color:#9FB0C8;margin:0 0 6px;letter-spacing:.3px}\n@media(max-width:767px){\n .hq-card{min-height:calc(100vh - 92px)!important;min-height:calc(100dvh - 92px)!important;border-radius:20px;padding:20px 18px 20px!important}\n .hq-opts.cols2{grid-template-columns:1fr 1fr!important;gap:8px!important}\n .hq-opts.cols2 .hq-opt{font-size:14px!important;padding:12px 10px!important;gap:8px!important;line-height:1.25}\n .hq-opts.cols2 .hq-key{width:24px;height:24px;font-size:12px;border-radius:7px}\n .hq-opts.cols2 .hq-tick{display:none}\n .hq-top{margin-bottom:20px!important}\n .hq-title{font-size:26px!important}\n .hq-help{margin-bottom:18px!important}\n .hq-opt{font-size:16px!important;padding:15px 14px!important}\n}\n<\/style>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-817ce37 elementor-widget elementor-widget-html\" data-id=\"817ce37\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<style>\n.hq{font-family:Inter,sans-serif;color:#D5DDEA}\n.hq-card{position:relative;background:linear-gradient(160deg,rgba(14,40,78,.75),rgba(5,21,44,.88));border:1px solid rgba(255,255,255,.09);border-radius:24px;padding:34px 40px 30px;box-shadow:0 30px 70px rgba(0,0,0,.35);min-height:440px;display:flex;flex-direction:column}\n.hq-top{display:flex;align-items:center;gap:14px;margin-bottom:30px}\n.hq-bar{flex:1;height:6px;border-radius:6px;background:rgba(255,255,255,.08);overflow:hidden}\n.hq-bar i{display:block;height:100%;width:0;border-radius:6px;background:linear-gradient(90deg,#F26B2A,#F7B23B);transition:width .4s ease}\n.hq-count{font-size:14px;color:#9FB0C8;font-variant-numeric:tabular-nums;min-width:48px;text-align:right}\n.hq-screen{flex:1;animation:hqIn .35s ease}\n@keyframes hqIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}\n.hq-num{font-size:14px;letter-spacing:2px;text-transform:uppercase;color:#F7B23B;font-weight:600;margin:0 0 10px}\n.hq-title{font-size:30px;line-height:1.2;font-weight:700;color:#fff;margin:0 0 8px;letter-spacing:-.5px}\n.hq-help{font-size:16px;color:#9FB0C8;margin:0 0 26px}\n.hq-opts{display:grid;gap:12px;max-width:560px}\n.hq-opt{display:flex;align-items:center;gap:14px;width:100%;text-align:left;cursor:pointer;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.14);border-radius:14px;padding:15px 18px;color:#E4E9F2;font:500 17px Inter,sans-serif;transition:border-color .2s,background .2s,transform .15s}\n.hq-opt:hover{border-color:rgba(247,178,59,.65);background:rgba(247,178,59,.06)}\n.hq-opt:active{transform:scale(.99)}\n.hq-key{flex:none;width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;font:700 14px Inter,sans-serif;color:#F7B23B;border:1px solid rgba(247,178,59,.45);background:rgba(247,178,59,.08);transition:all .2s}\n.hq-opt.sel{border-color:transparent;background:linear-gradient(90deg,rgba(242,107,42,.95),rgba(247,178,59,.95));color:#fff;box-shadow:0 10px 26px rgba(242,107,42,.3)}\n.hq-opt.sel .hq-key{background:rgba(255,255,255,.22);border-color:transparent;color:#fff}\n.hq-opt .hq-tick{margin-left:auto;opacity:0}\n.hq-opt.sel .hq-tick{opacity:1}\n.hq-opts.cols2{grid-template-columns:1fr 1fr;max-width:none}\n.hq input[type=text],.hq input[type=tel],.hq input[type=email],.hq textarea{width:100%;max-width:560px;box-sizing:border-box;background:rgba(3,14,31,.6);border:1px solid rgba(255,255,255,.16);border-radius:14px;color:#fff;font:18px Inter,sans-serif;padding:16px 18px;outline:none;transition:border-color .2s,box-shadow .2s}\n.hq textarea{min-height:110px;resize:vertical}\n.hq input:focus,.hq textarea:focus{border-color:#F7B23B;box-shadow:0 0 0 3px rgba(247,178,59,.18)}\n.hq ::placeholder{color:#6B7C96}\n.hq-fields{display:grid;gap:14px;max-width:560px}\n.hq-fields label{display:block;font-size:14px;font-weight:600;color:#C5D0E0;margin:0 0 6px}\n.hq-reveal{margin-top:16px;max-width:560px}\n.hq-nav{display:flex;align-items:center;gap:12px;margin-top:30px}\n.hq-btn{font:600 17px Inter,sans-serif;border:0;border-radius:40px;padding:15px 32px;cursor:pointer;transition:transform .2s,box-shadow .2s,opacity .2s}\n.hq-next{background:linear-gradient(90deg,#F26B2A,#F7B23B);color:#fff;box-shadow:0 10px 28px rgba(242,107,42,.35)}\n.hq-next:hover{transform:translateY(-2px)}\n.hq-next[disabled]{opacity:.6;cursor:wait;transform:none}\n.hq-back{background:transparent;color:#D5DDEA;border:1px solid rgba(255,255,255,.2);padding:15px 22px}\n.hq-hint{font-size:13px;color:#6B7C96;margin-left:6px}\n.hq-err{display:none;margin-top:16px;max-width:560px;padding:12px 16px;border-radius:12px;background:rgba(234,67,53,.12);border:1px solid rgba(234,67,53,.4);color:#FFB4AB;font-size:15px}\n.hq-consent{display:flex;gap:12px;align-items:flex-start;font-size:15px;color:#C5D0E0;margin-top:18px;max-width:560px}\n.hq-consent input{width:22px;height:22px;accent-color:#F26B2A;flex:none;margin-top:1px}\n.hq-consent a{color:#F7B23B}\n.hq-done{text-align:center;padding:40px 10px;margin:auto}\n.hq-ok{width:84px;height:84px;border-radius:50%;margin:0 auto 22px;display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#F26B2A,#F7B23B);box-shadow:0 0 0 10px rgba(247,178,59,.12),0 16px 40px rgba(242,107,42,.4)}\n.hq-done h2{font-size:30px;color:#fff;margin:0 0 10px}\n.hq-done p{color:#C5D0E0;font-size:17px;margin:0 auto 22px;max-width:480px}\n@media(max-width:767px){.hq-card{padding:24px 18px 22px;min-height:420px}.hq-title{font-size:24px}.hq-opt{font-size:16px;padding:14px 14px}.hq-opts.cols2{grid-template-columns:1fr}.hq-btn{padding:14px 24px;font-size:16px}.hq-hint{display:none}}\n<\/style>\n\n<div class=\"hq\" id=\"hq\"><div class=\"hq-card\">\n <div class=\"hq-top\"><div class=\"hq-bar\"><i id=\"hq-bar\"><\/i><\/div><div class=\"hq-count\" id=\"hq-count\"><\/div><\/div>\n <div id=\"hq-stage\"><\/div>\n<\/div><\/div>\n\n<script>\n(function(){\nvar Q=[\n {id:'negocio',type:'text',t:'\u00bfC\u00f3mo se llama tu negocio?',ph:'Ej.: Talleres Mart\u00ed',req:1},\n {id:'sector',type:'choice',t:'\u00bfA qu\u00e9 se dedica?',cols:2,req:1,o:['Reformas y construcci\u00f3n','Fontaner\u00eda, electricidad o clima','Taller y automoci\u00f3n','Cl\u00ednica y salud','Est\u00e9tica y peluquer\u00eda','Restauraci\u00f3n','Inmobiliaria','Asesor\u00eda y abogados','Academia y formaci\u00f3n','Gimnasio y deporte','Tienda local','Otro']},\n {id:'zona',type:'text',t:'\u00bfEn qu\u00e9 ciudad o zona trabajas?',ph:'Ej.: Lloret de Mar y alrededores',req:1},\n {id:'servicio',type:'text',t:'\u00bfQu\u00e9 servicio te interesa m\u00e1s vender?',help:'El que m\u00e1s te deja de beneficio.',ph:'Ej.: reformas de ba\u00f1o',skip:'Prefiero no decirlo'},\n {id:'web',type:'gate',t:'\u00bfTienes p\u00e1gina web?',yes:'S\u00ed, tengo web',no:'No tengo web',ph:'tunegocio.es'},\n {id:'google',type:'gate',t:'\u00bfTienes ficha en Google Maps?',yes:'S\u00ed',no:'No \/ no lo s\u00e9',ph:'Pega el enlace o escribe el nombre como aparece'},\n {id:'instagram',type:'gate',t:'\u00bfTienes Instagram u otra red social del negocio?',yes:'S\u00ed',no:'No',ph:'@tunegocio'},\n {id:'competidores',type:'textarea',t:'Nombra 2 o 3 competidores fuertes en tu zona',help:'Nombre o web. Los usamos para compararte.',ph:'Uno por l\u00ednea',skip:'No lo s\u00e9'},\n {id:'clientes_mes',type:'choice',t:'\u00bfCu\u00e1ntos clientes nuevos consigues al mes?',req:1,o:['0\u20135','6\u201315','16\u201330','M\u00e1s de 30']},\n {id:'capacidad',type:'choice',t:'\u00bfCu\u00e1ntos m\u00e1s podr\u00edas atender?',o:['Ninguno m\u00e1s','Unos pocos','El doble','Muchos m\u00e1s']},\n {id:'origen',type:'multi',t:'\u00bfDe d\u00f3nde te llegan los clientes?',help:'Puedes marcar varios.',o:['Boca a boca','Google','Redes sociales','Anuncios','No lo s\u00e9']},\n {id:'llamadas_perdidas',type:'choice',t:'\u00bfCu\u00e1ntas llamadas o WhatsApps no puedes contestar al d\u00eda?',req:1,o:['0','1\u20132','3\u20135','M\u00e1s de 5','No lo s\u00e9']},\n {id:'sin_contestar',type:'choice',t:'Cuando no puedes contestar, \u00bfqu\u00e9 pasa?',o:['Devuelvo la llamada el mismo d\u00eda','Al d\u00eda siguiente','A veces no la devuelvo','No s\u00e9 qui\u00e9n llam\u00f3']},\n {id:'ticket',type:'choice',t:'\u00bfCu\u00e1nto vale de media un trabajo o cliente?',req:1,o:['Menos de 50 \u20ac','50\u2013150 \u20ac','150\u2013500 \u20ac','500\u20131.500 \u20ac','M\u00e1s de 1.500 \u20ac']},\n {id:'freno',type:'choice',t:'\u00bfQu\u00e9 es lo que m\u00e1s te frena para conseguir clientes?',o:['No me encuentran','No tengo tiempo','Prob\u00e9 anuncios y no funcion\u00f3','Otro']},\n {id:'objetivo',type:'choice',t:'\u00bfCu\u00e1ntos clientes nuevos al mes quieres conseguir?',req:1,o:['Hasta 5 m\u00e1s','5\u201315 m\u00e1s','15\u201330 m\u00e1s','M\u00e1s de 30']},\n {id:'presupuesto',type:'choice',t:'\u00bfCu\u00e1nto podr\u00edas invertir al mes en marketing?',req:1,o:['Menos de 300 \u20ac','300\u2013700 \u20ac','700\u20131.500 \u20ac','M\u00e1s de 1.500 \u20ac']},\n {id:'contacto',type:'contact',t:'Por \u00faltimo, \u00bfc\u00f3mo te contactamos?'}\n];\nvar L='ABCDEFGHIJKL', A={}, i=0, stage=document.getElementById('hq-stage');\nvar reunion=\/[?&](reunion|presencial)\\b\/.test(location.search), sending=false;\nfunction esc(s){return String(s).replace(\/[&<>\"]\/g,function(c){return{'&':'&amp;','<':'&lt;','>':'&gt;','\"':'&quot;'}[c]})}\nfunction opt(k,label,sel){return '<button type=\"button\" class=\"hq-opt'+(sel?' sel':'')+'\" data-v=\"'+esc(label)+'\"><span class=\"hq-key\">'+L[k]+'<\/span><span>'+esc(label)+'<\/span><svg class=\"hq-tick\" width=\"18\" height=\"18\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#fff\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12.5l4.5 4.5L19 7\"\/><\/svg><\/button>'}\nfunction progress(){var n=Q.length;document.getElementById('hq-bar').style.width=(i\/n*100)+'%';document.getElementById('hq-count').textContent=Math.min(i+1,n)+' \/ '+n;}\nfunction render(){\n var q=Q[i], h='<div class=\"hq-screen\"><p class=\"hq-num\">Pregunta '+(i+1)+'<\/p><h2 class=\"hq-title\">'+esc(q.t)+'<\/h2>'+(q.help?'<p class=\"hq-help\">'+esc(q.help)+'<\/p>':'<p class=\"hq-help\">&nbsp;<\/p>');\n var v=A[q.id], showNext=true, hint='';\n if(q.type==='choice'){h+='<div class=\"hq-opts'+(q.cols?' cols2':'')+'\">'+q.o.map(function(o,k){return opt(k,o,v===o)}).join('')+'<\/div>';showNext=!!v;hint='o pulsa la letra';}\n else if(q.type==='multi'){v=v||[];h+='<div class=\"hq-opts\">'+q.o.map(function(o,k){return opt(k,o,v.indexOf(o)>-1)}).join('')+'<\/div>';}\n else if(q.type==='gate'){var has=v!==undefined&&v!=='';h+='<div class=\"hq-opts\">'+opt(0,q.yes,has||A['_'+q.id]==='y')+opt(1,q.no,A['_'+q.id]==='n')+'<\/div><div class=\"hq-reveal\" style=\"display:'+(has||A['_'+q.id]==='y'?'block':'none')+'\"><input type=\"text\" id=\"hq-in\" placeholder=\"'+esc(q.ph)+'\" value=\"'+esc(v||'')+'\"><\/div>';showNext=A['_'+q.id]==='y';}\n else if(q.type==='text'){h+='<input type=\"text\" id=\"hq-in\" placeholder=\"'+esc(q.ph||'')+'\" value=\"'+esc(v||'')+'\">';hint='o pulsa Intro \u21b5';}\n else if(q.type==='textarea'){h+='<textarea id=\"hq-in\" placeholder=\"'+esc(q.ph||'')+'\">'+esc(v||'')+'<\/textarea>';}\n else if(q.type==='contact'){var c=A.contacto||{};h+='<div class=\"hq-fields\"><div><label for=\"hq-c1\">Tu nombre<\/label><input type=\"text\" id=\"hq-c1\" autocomplete=\"name\" value=\"'+esc(c.contacto||'')+'\"><\/div><div><label for=\"hq-c2\">Tel\u00e9fono<\/label><input type=\"tel\" id=\"hq-c2\" inputmode=\"tel\" autocomplete=\"tel\" value=\"'+esc(c.telefono||'')+'\"><\/div><div><label for=\"hq-c3\">Email (opcional)<\/label><input type=\"email\" id=\"hq-c3\" autocomplete=\"email\" value=\"'+esc(c.email||'')+'\"><\/div><\/div><label class=\"hq-consent\"><input type=\"checkbox\" id=\"hq-consent\"'+(c.consent?' checked':'')+'><span>He le\u00eddo y acepto la <a href=\"\/?page_id=3\" target=\"_blank\" rel=\"noopener\">pol\u00edtica de privacidad<\/a>. NGD Studios S.L. tratar\u00e1 mis datos para analizar mi negocio y enviarme una propuesta.<\/span><\/label><input type=\"text\" id=\"hq-hp\" tabindex=\"-1\" autocomplete=\"off\" aria-hidden=\"true\" style=\"position:absolute;left:-9999px;width:1px;height:1px\">';}\n var last=i===Q.length-1;\n h+='<div class=\"hq-err\" id=\"hq-err\" role=\"alert\"><\/div><div class=\"hq-nav\">'+(i?'<button type=\"button\" class=\"hq-btn hq-back\" id=\"hq-back\">\u2190<\/button>':'')+\n   '<button type=\"button\" class=\"hq-btn hq-next\" id=\"hq-next\" style=\"display:'+(showNext||q.type!=='choice'&&q.type!=='gate'?'inline-block':'none')+'\">'+(last?'Enviar':'Siguiente')+'<\/button>'+\n   (q.skip?'<button type=\"button\" class=\"hq-btn hq-back\" id=\"hq-skip\">'+esc(q.skip)+'<\/button>':'')+\n   (hint?'<span class=\"hq-hint\">'+hint+'<\/span>':'')+'<\/div><\/div>';\n stage.innerHTML=h; progress(); bind(q);\n var f=stage.querySelector('#hq-in,#hq-c1'); if(f&&window.matchMedia('(min-width:768px)').matches) setTimeout(function(){f.focus()},60);\n var card=document.getElementById('hq'), top=card.getBoundingClientRect().top+window.pageYOffset-100; if(window.pageYOffset>top) window.scrollTo({top:top,behavior:'smooth'});\n}\nfunction err(m){var e=document.getElementById('hq-err');e.textContent=m;e.style.display='block';}\nfunction go(d){i=Math.max(0,Math.min(Q.length-1,i+d));render();}\nfunction bind(q){\n var opts=[].slice.call(stage.querySelectorAll('.hq-opt'));\n opts.forEach(function(b,k){b.addEventListener('click',function(){\n  if(q.type==='choice'){A[q.id]=b.dataset.v;opts.forEach(function(x){x.classList.toggle('sel',x===b)});setTimeout(function(){go(1)},260);}\n  else if(q.type==='multi'){var v=A[q.id]=A[q.id]||[];var p=v.indexOf(b.dataset.v);if(p>-1)v.splice(p,1);else v.push(b.dataset.v);b.classList.toggle('sel');}\n  else if(q.type==='gate'){opts.forEach(function(x){x.classList.toggle('sel',x===b)});\n   if(k===0){A['_'+q.id]='y';stage.querySelector('.hq-reveal').style.display='block';document.getElementById('hq-next').style.display='inline-block';var inp=document.getElementById('hq-in');setTimeout(function(){inp.focus()},50);}\n   else{A['_'+q.id]='n';A[q.id]='';setTimeout(function(){go(1)},260);}}\n })});\n var nx=document.getElementById('hq-next'), bk=document.getElementById('hq-back'), sk=document.getElementById('hq-skip');\n if(bk) bk.addEventListener('click',function(){go(-1)});\n if(sk) sk.addEventListener('click',function(){A[q.id]='';go(1)});\n nx.addEventListener('click',function(){submitStep(q)});\n var inp=document.getElementById('hq-in'); if(inp&&inp.tagName==='INPUT') inp.addEventListener('keydown',function(e){if(e.key==='Enter'){e.preventDefault();submitStep(q)}});\n}\nfunction submitStep(q){\n if(q.type==='text'||q.type==='textarea'||q.type==='gate'){var v=(document.getElementById('hq-in')||{}).value||'';v=v.trim();if(q.req&&!v){err('Escribe una respuesta para continuar.');return;}A[q.id]=v;}\n if(q.type==='choice'&&q.req&&!A[q.id]){err('Elige una opci\u00f3n.');return;}\n if(q.type==='contact'){send();return;}\n go(1);\n}\ndocument.addEventListener('keydown',function(e){\n if(!stage.isConnected||\/INPUT|TEXTAREA\/.test((e.target||{}).tagName||'')) return;\n var q=Q[i]; if(!q||(q.type!=='choice'&&q.type!=='multi'&&q.type!=='gate')) return;\n var k=L.indexOf((e.key||'').toUpperCase()); var b=stage.querySelectorAll('.hq-opt')[k]; if(k>-1&&b){e.preventDefault();b.click();}\n else if(e.key==='Enter'&&q.type==='multi'){e.preventDefault();go(1);}\n});\nfunction send(){\n if(sending) return;\n var c={contacto:document.getElementById('hq-c1').value.trim(),telefono:document.getElementById('hq-c2').value.trim(),email:document.getElementById('hq-c3').value.trim(),consent:document.getElementById('hq-consent').checked};\n A.contacto=c;\n if(!c.contacto||!c.telefono){err('Indica tu nombre y un tel\u00e9fono.');return;}\n if(c.email&&!\/^\\S+@\\S+\\.\\S+$\/.test(c.email)){err('Revisa el email.');return;}\n if(!c.consent){err('Para enviarlo, acepta la pol\u00edtica de privacidad.');return;}\n var d={modo:reunion?'presencial':'web',consent:true,website_hp:document.getElementById('hq-hp').value,contacto:c.contacto,telefono:c.telefono,email:c.email};\n Q.forEach(function(q){if(q.type!=='contact') d[q.id]=A[q.id]===undefined?'':A[q.id]});\n var nx=document.getElementById('hq-next');sending=true;nx.disabled=true;nx.textContent='Enviando\u2026';\n fetch('\/wp-json\/hpt\/v1\/cuestionario',{method:'POST',headers:{'Content-Type':'application\/json'},body:JSON.stringify(d)})\n  .then(function(r){return r.json().then(function(j){return{ok:r.ok&&j.ok,j:j}})})\n  .then(function(res){if(!res.ok)throw new Error(res.j&&res.j.error||'');done();})\n  .catch(function(e){err(e.message||'No se pudo enviar. Revisa tu conexi\u00f3n e int\u00e9ntalo de nuevo.');nx.disabled=false;nx.textContent='Enviar';})\n  .finally(function(){sending=false;});\n}\nfunction done(){\n document.getElementById('hq-bar').style.width='100%';document.getElementById('hq-count').textContent='\u2713';\n stage.innerHTML='<div class=\"hq-screen hq-done\"><div class=\"hq-ok\"><svg width=\"40\" height=\"40\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"#fff\" stroke-width=\"3\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12.5l4.5 4.5L19 7\"\/><\/svg><\/div><h2>\u00a1Recibido!<\/h2><p>Analizamos tu negocio y tu competencia y te preparamos una propuesta a medida. Te contactamos muy pronto.<\/p>'+(reunion?'<button type=\"button\" class=\"hq-btn hq-next\" id=\"hq-again\">Nuevo cuestionario<\/button>':'')+'<\/div>';\n var ag=document.getElementById('hq-again'); if(ag) ag.addEventListener('click',function(){A={};i=0;render();});\n}\nrender();\n})();\n<\/script>\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>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Diagn\u00f3stico gratuito \u00b7 3 min<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"class_list":["post-149","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/hechoporti.es\/index.php\/wp-json\/wp\/v2\/pages\/149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hechoporti.es\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hechoporti.es\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hechoporti.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hechoporti.es\/index.php\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":15,"href":"https:\/\/hechoporti.es\/index.php\/wp-json\/wp\/v2\/pages\/149\/revisions"}],"predecessor-version":[{"id":197,"href":"https:\/\/hechoporti.es\/index.php\/wp-json\/wp\/v2\/pages\/149\/revisions\/197"}],"wp:attachment":[{"href":"https:\/\/hechoporti.es\/index.php\/wp-json\/wp\/v2\/media?parent=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}