{"id":86747,"date":"2026-06-19T23:09:01","date_gmt":"2026-06-19T21:09:01","guid":{"rendered":"https:\/\/www.gayarre.eu\/?page_id=86747"},"modified":"2026-11-22T01:15:15","modified_gmt":"2026-11-22T00:15:15","slug":"estimation","status":"publish","type":"page","link":"https:\/\/www.gayarre.eu\/en\/estimation\/","title":{"rendered":"ESTIMATION"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"86747\" class=\"elementor elementor-86747 elementor-86738\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ec7a57d e-flex e-con-boxed e-con e-parent\" data-id=\"ec7a57d\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ff74b9f elementor-widget elementor-widget-html\" data-id=\"ff74b9f\" 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<!--\r\nGAYARRE \u00b7 Investment Guide \u00b7 V5 (EN)\r\nPegar completo en el widget HTML de Elementor, en la p\u00e1gina EN \/en\/estimation\/ (sustituye a la V4.2 EN).\r\nMisma l\u00f3gica, mismas tarifas y mismos c\u00e1lculos que la V5 ES. Los c\u00f3digos internos de ORIENT_TIPO\r\n('ORIENTACI\u00d3N' \/ 'NO ENCAJE') se dejan en espa\u00f1ol a prop\u00f3sito: de ellos dependen las condiciones de ActiveCampaign.\r\nLa portada no muestra cifras: el precio solo llega por correo, y solo despu\u00e9s de que Juan lo revise.\r\nTipograf\u00eda: Raleway. Sin librer\u00edas externas.\r\n\r\nCAMBIOS V5 (21-22\/11\/2026): los mismos que en la V5 ES (ver su cabecera).\r\n- N\u00famero exacto de viviendas, MAX_RATIO 0,8 %, c\u00e1psulas 4 \/ 8 \/ 12, piscina como espacio habitual.\r\n- Quien parte de im\u00e1genes existentes va siempre al Nivel 1 (o al 2 si pide algo que no est\u00e1 en ellas). Nunca al Nivel 3.\r\n- Tarifas de extras y de lo que va aparte, desglose en el correo, descuento por encargar varios y tope de 50.000 \u20ac.\r\n- Nada sale solo: Juan revisa y aprueba cada orientaci\u00f3n (menos de 24 horas laborables).\r\n\r\nACTIVECAMPAIGN: formulario 57 (ORIENTADOR-ENTRADA-EN), lista 114 (BUDGET ORIENTATION) y los mismos campos.\r\nNunca usar aqu\u00ed el formulario 55.\r\n-->\r\n\r\n<div id=\"gpg-host\"><\/div>\r\n\r\n<template id=\"gpg-template\">\r\n<style>\r\n:host{ all:initial; display:block; width:100%; }\r\n:host *{ box-sizing:border-box; }\r\n\r\n#gayarre-price-guide{\r\n  --black:#0b0b0b; --text:#161616; --muted:#6a6a6a; --line:#d9d9d9; --soft:#f4f4f2;\r\n  --white:#ffffff; --brand-red:#C94242; --brand-hover:#36BDBD;\r\n  --c-int:#f3efe8; --c-ext:#e8f0ee; --c-com:#e6eef6;\r\n  --font:'Raleway', Arial, Helvetica, sans-serif;\r\n  font-family:var(--font) !important; color:var(--text) !important; background:#ffffff;\r\n  -webkit-text-size-adjust:100%; scroll-margin-top:90px;\r\n}\r\n#gayarre-price-guide *, #gayarre-price-guide button, #gayarre-price-guide input,\r\n#gayarre-price-guide select, #gayarre-price-guide textarea, #gayarre-price-guide a,\r\n#gayarre-price-guide h2, #gayarre-price-guide h3, #gayarre-price-guide label{\r\n  box-sizing:border-box; font-family:var(--font) !important;\r\n}\r\n#gayarre-price-guide .gpg-shell{\r\n  max-width:1120px; margin:0 auto; padding:clamp(36px,6vw,78px) clamp(20px,4vw,54px);\r\n  background:#fff; border:1px solid #e5e5e5;\r\n}\r\n#gayarre-price-guide .gpg-screen{display:none}\r\n#gayarre-price-guide .gpg-screen.is-active{display:block}\r\n#gayarre-price-guide .gpg-kicker{\r\n  display:block; margin-bottom:18px; font-size:11px; line-height:1.2; letter-spacing:.16em; font-weight:700;\r\n}\r\n#gayarre-price-guide h2{\r\n  max-width:930px; margin:0 0 28px; font-size:clamp(36px,5.2vw,70px); line-height:1; letter-spacing:-.04em; font-weight:700;\r\n}\r\n#gayarre-price-guide h3{\r\n  max-width:900px; margin:0 0 16px; font-size:clamp(26px,3.4vw,44px); line-height:1.06; letter-spacing:-.03em; font-weight:700;\r\n}\r\n#gayarre-price-guide h2, #gayarre-price-guide h3{ overflow-wrap:break-word; word-break:normal; hyphens:auto; }\r\n#gayarre-price-guide p{margin-top:0}\r\n#gayarre-price-guide .gpg-lead{ max-width:860px; margin:30px 0 28px; font-size:clamp(17px,1.9vw,23px); line-height:1.45; }\r\n#gayarre-price-guide .gpg-warning{ max-width:880px; margin:0 0 32px; padding:24px 26px; border:2px solid var(--black); background:#fff; }\r\n#gayarre-price-guide .gpg-warning strong{display:block; margin-bottom:9px; font-size:17px;}\r\n#gayarre-price-guide .gpg-warning p{margin:0 0 8px; font-size:15px; line-height:1.55;}\r\n#gayarre-price-guide .gpg-warning p:last-child{margin-bottom:0}\r\n#gayarre-price-guide .gpg-level-summary{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:0 0 32px; }\r\n#gayarre-price-guide .gpg-level-summary article{padding:23px; border:1px solid var(--line);}\r\n#gayarre-price-guide .gpg-level-summary article>span{ display:block; font-size:10px; letter-spacing:.14em; font-weight:700; }\r\n#gayarre-price-guide .gpg-level-summary strong{ display:block; margin:8px 0 14px; font-size:clamp(20px,2.2vw,28px); line-height:1; }\r\n#gayarre-price-guide .gpg-level-summary p{margin:0 0 10px; font-size:14px; line-height:1.45;}\r\n#gayarre-price-guide .gpg-level-summary p:last-child{margin-bottom:0}\r\n#gayarre-price-guide .gpg-level-summary .gpg-incl{font-size:13px; padding-top:10px; border-top:1px solid var(--line);}\r\n#gayarre-price-guide .gpg-note{ max-width:880px; margin:0 0 32px; padding:20px 24px; background:var(--soft); font-size:15px; line-height:1.6; }\r\n#gayarre-price-guide .gpg-note em{display:block; margin-top:10px; font-size:14px;}\r\n#gayarre-price-guide .gpg-note a{color:var(--text);}\r\n\r\n\/* Cuadro de vistas incluidas *\/\r\n#gayarre-price-guide .gpg-base{ max-width:880px; margin:0 0 32px; }\r\n#gayarre-price-guide .gpg-base-title{ margin:0 0 6px; font-size:clamp(20px,2.4vw,28px); line-height:1.15; font-weight:700; letter-spacing:-.02em; }\r\n#gayarre-price-guide .gpg-base-sub{ margin:0 0 18px; font-size:15px; line-height:1.55; }\r\n#gayarre-price-guide table.gpg-vistas{ width:100%; border-collapse:collapse; font-size:15px; }\r\n#gayarre-price-guide table.gpg-vistas th{ text-align:right; padding:10px 14px; font-size:11px; letter-spacing:.14em; font-weight:700; border-bottom:2px solid var(--black); }\r\n#gayarre-price-guide table.gpg-vistas th:first-child{ text-align:left; }\r\n#gayarre-price-guide table.gpg-vistas td{ padding:10px 14px; border-bottom:1px solid #fff; }\r\n#gayarre-price-guide table.gpg-vistas td.n{ text-align:right; font-weight:700; width:110px; }\r\n#gayarre-price-guide table.gpg-vistas tr.g td{ padding-top:14px; font-size:11px; letter-spacing:.14em; font-weight:700; }\r\n#gayarre-price-guide table.gpg-vistas tr.int td{ background:var(--c-int); }\r\n#gayarre-price-guide table.gpg-vistas tr.ext td{ background:var(--c-ext); }\r\n#gayarre-price-guide table.gpg-vistas tr.com td{ background:var(--c-com); }\r\n#gayarre-price-guide table.gpg-vistas tr.t td{ border-top:2px solid var(--black); font-weight:700; background:#fff; }\r\n#gayarre-price-guide .gpg-base-foot{ margin:14px 0 0; font-size:14px; line-height:1.55; }\r\n\r\n#gayarre-price-guide .gpg-button{\r\n  display:inline-block; padding:19px 40px; border:0; cursor:pointer; min-height:54px;\r\n  font-size:13px; letter-spacing:.13em; font-weight:700; text-decoration:none;\r\n}\r\n#gayarre-price-guide .gpg-micro{margin:16px 0 0; font-size:13px;}\r\n#gayarre-price-guide .gpg-progress-head{\r\n  display:flex; justify-content:space-between; margin-bottom:10px; font-size:11px; letter-spacing:.13em; font-weight:700;\r\n}\r\n#gayarre-price-guide .gpg-progress{height:3px; background:var(--line); margin-bottom:44px;}\r\n#gayarre-price-guide .gpg-progress span{ display:block; height:3px; width:11%; background:var(--brand-red); transition:width .25s ease; }\r\n#gayarre-price-guide .gpg-step{display:none}\r\n#gayarre-price-guide .gpg-step.is-active{display:block}\r\n#gayarre-price-guide .gpg-number{ font-size:12px; letter-spacing:.14em; font-weight:700; }\r\n#gayarre-price-guide .gpg-block{ margin:4px 0 16px; font-size:11px; letter-spacing:.16em; font-weight:700; }\r\n#gayarre-price-guide .gpg-help{ max-width:760px; margin:0 0 28px; font-size:15px; line-height:1.55; }\r\n#gayarre-price-guide .gpg-options{display:grid; grid-template-columns:1fr; gap:10px;}\r\n#gayarre-price-guide .gpg-grid-2{grid-template-columns:repeat(2,1fr);}\r\n#gayarre-price-guide .gpg-option{\r\n  display:block; width:100%; padding:22px 24px; text-align:left; cursor:pointer; min-height:54px; transition:.15s ease;\r\n}\r\n#gayarre-price-guide .gpg-option b{display:block; font-size:17px; line-height:1.3;}\r\n#gayarre-price-guide .gpg-option span{ display:block; margin-top:7px; font-size:14px; line-height:1.5; }\r\n#gayarre-price-guide .gpg-checks{display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:34px;}\r\n#gayarre-price-guide .gpg-checks-group{ grid-column:1\/-1; margin:12px 0 2px; font-size:11px; letter-spacing:.16em; font-weight:700; }\r\n#gayarre-price-guide .gpg-checks-group:first-child{margin-top:0}\r\n#gayarre-price-guide .gpg-check{ display:flex; gap:14px; padding:20px 22px; cursor:pointer; min-height:54px; border:1px solid var(--line); background:#fff; }\r\n#gayarre-price-guide .gpg-check.is-checked{border-color:var(--black); background:var(--soft);}\r\n#gayarre-price-guide .gpg-check input{margin-top:4px;}\r\n#gayarre-price-guide .gpg-check b{display:block; font-size:16px;}\r\n#gayarre-price-guide .gpg-check small{display:block; margin-top:5px; font-size:13px; line-height:1.45;}\r\n#gayarre-price-guide .gpg-back-wrap{margin-top:34px; padding-top:22px; border-top:1px solid var(--line);}\r\n#gayarre-price-guide .gpg-back, #gayarre-price-guide .gpg-restart{\r\n  background:none; border:0; cursor:pointer; padding:0; font-size:15px; font-style:italic; text-decoration:none; border-bottom:1px solid var(--line);\r\n}\r\n#gayarre-price-guide .gpg-restart::before{content:\"> \";}\r\n#gayarre-price-guide .gpg-back:hover, #gayarre-price-guide .gpg-restart:hover{border-bottom-color:var(--text);}\r\n#gayarre-price-guide .gpg-fields{display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin-bottom:22px; max-width:880px;}\r\n#gayarre-price-guide .gpg-field{display:block;}\r\n#gayarre-price-guide .gpg-field>span{ display:block; margin-bottom:8px; font-size:12px; letter-spacing:.1em; font-weight:700; }\r\n#gayarre-price-guide .gpg-field>span em{font-style:normal; font-weight:400; letter-spacing:0;}\r\n#gayarre-price-guide .gpg-field input{ width:100%; padding:16px 18px; font-size:16px; border-radius:0; }\r\n#gayarre-price-guide .gpg-field input:focus{outline:0; border-color:var(--brand-red) !important;}\r\n#gayarre-price-guide .gpg-consent{ display:flex; gap:12px; max-width:760px; margin-bottom:20px; font-size:14px; line-height:1.55; cursor:pointer; }\r\n#gayarre-price-guide .gpg-consent input{margin-top:4px;}\r\n#gayarre-price-guide .gpg-consent a{color:var(--text);}\r\n#gayarre-price-guide .gpg-error{\r\n  margin:0 0 20px; padding:16px 18px; font-size:15px; line-height:1.55;\r\n  background:#fdecea; border:1px solid var(--brand-red); border-left:5px solid var(--brand-red); color:#8a1f1f !important;\r\n}\r\n#gayarre-price-guide .gpg-error strong{ display:block; margin-bottom:6px; font-size:16px; font-weight:700; color:#8a1f1f !important; }\r\n#gayarre-price-guide .gpg-field input.is-error{ border-color:var(--brand-red) !important; background:#fdecea !important; }\r\n#gayarre-price-guide .gpg-second-chance{ max-width:760px; margin:8px 0 26px; padding:22px 24px; background:var(--soft); border-left:3px solid var(--brand-red); }\r\n#gayarre-price-guide .gpg-second-chance strong{display:block; margin-bottom:8px; font-size:16px;}\r\n#gayarre-price-guide .gpg-second-chance p{margin:0 0 14px; font-size:15px; line-height:1.6;}\r\n#gayarre-price-guide .gpg-debug{\r\n  max-width:880px; margin:0 0 30px; padding:20px 22px; background:#111; color:#7fe07f; border:1px solid #333;\r\n  font-family:ui-monospace,Menlo,Consolas,monospace !important; font-size:12px; line-height:1.55;\r\n  white-space:pre-wrap; word-break:break-word; max-height:420px; overflow:auto;\r\n}\r\n#gayarre-price-guide .gpg-cta{margin-top:40px; padding-top:36px; border-top:2px solid var(--black);}\r\n#gayarre-price-guide .gpg-cta p{max-width:640px; margin-bottom:26px; font-size:16px; line-height:1.55;}\r\n#gayarre-price-guide .gpg-cta .gpg-button{margin-bottom:22px;}\r\n#gayarre-price-guide .gpg-step-button{margin-top:14px;}\r\n\r\n\/* Solo en MODO_DEMO: vista previa del correo que Juan aprueba *\/\r\n#gayarre-price-guide .gpg-demo{ max-width:880px; margin:0 0 36px; border:3px dashed var(--black); }\r\n#gayarre-price-guide .gpg-demo-head{ padding:16px 20px; background:var(--black); }\r\n#gayarre-price-guide .gpg-demo-head b{ display:block; font-size:12px; letter-spacing:.14em; }\r\n#gayarre-price-guide .gpg-demo-head span{ display:block; margin-top:6px; font-size:14px; line-height:1.5; }\r\n#gayarre-price-guide .gpg-demo-body{ padding:26px 24px; font-size:15px; line-height:1.6; }\r\n#gayarre-price-guide .gpg-demo-body .asunto{ margin:0 0 18px; padding:10px 14px; background:var(--soft); font-size:14px; }\r\n#gayarre-price-guide .gpg-demo-body h4{ margin:0 0 16px; font-size:26px; line-height:1.15; letter-spacing:-.02em; }\r\n#gayarre-price-guide .gpg-demo-body .lbl{ margin:24px 0 8px; font-size:11px; letter-spacing:.16em; font-weight:700; }\r\n#gayarre-price-guide .gpg-demo-body .caja{ margin:6px 0 10px; padding:22px 22px; background:var(--black); }\r\n#gayarre-price-guide .gpg-demo-body .caja b{ display:block; font-size:30px; line-height:1.1; }\r\n#gayarre-price-guide .gpg-demo-body .caja span{ display:block; margin-top:8px; font-size:15px; }\r\n\r\n@media (max-width:820px){\r\n  #gayarre-price-guide .gpg-shell{ padding:clamp(26px,5vw,40px) clamp(18px,5vw,28px); }\r\n  #gayarre-price-guide .gpg-level-summary, #gayarre-price-guide .gpg-grid-2,\r\n  #gayarre-price-guide .gpg-checks, #gayarre-price-guide .gpg-fields{grid-template-columns:1fr; gap:10px;}\r\n  #gayarre-price-guide .gpg-fields{gap:16px;}\r\n  #gayarre-price-guide .gpg-button{width:100%; text-align:center; padding:20px 24px;}\r\n  #gayarre-price-guide .gpg-progress{margin-bottom:30px;}\r\n  #gayarre-price-guide .gpg-lead{margin:24px 0 22px;}\r\n  #gayarre-price-guide .gpg-level-summary article{padding:20px;}\r\n  #gayarre-price-guide .gpg-warning, #gayarre-price-guide .gpg-note{padding:20px;}\r\n  #gayarre-price-guide table.gpg-vistas td, #gayarre-price-guide table.gpg-vistas th{ padding:9px 10px; }\r\n  #gayarre-price-guide table.gpg-vistas td.n{ width:70px; }\r\n}\r\n@media (max-width:480px){\r\n  #gayarre-price-guide h2{font-size:32px; line-height:1.06; letter-spacing:-.03em;}\r\n  #gayarre-price-guide h3{font-size:25px; line-height:1.12; letter-spacing:-.02em;}\r\n  #gayarre-price-guide .gpg-lead{font-size:17px;}\r\n  #gayarre-price-guide .gpg-option{padding:18px;}\r\n  #gayarre-price-guide .gpg-option b{font-size:16px;}\r\n  #gayarre-price-guide .gpg-option span{font-size:13.5px;}\r\n  #gayarre-price-guide .gpg-check{padding:16px 18px;}\r\n  #gayarre-price-guide .gpg-help{font-size:14px; margin-bottom:22px;}\r\n  #gayarre-price-guide .gpg-button{font-size:12px; letter-spacing:.1em;}\r\n  #gayarre-price-guide .gpg-progress-head{font-size:10px;}\r\n  #gayarre-price-guide .gpg-second-chance{padding:18px;}\r\n  #gayarre-price-guide .gpg-debug{font-size:11px; padding:14px;}\r\n  #gayarre-price-guide table.gpg-vistas{ font-size:14px; }\r\n}\r\n@media (max-width:380px){\r\n  #gayarre-price-guide h2{font-size:28px;}\r\n  #gayarre-price-guide h3{font-size:22px;}\r\n}\r\n\r\n\/* BLINDAJE CONTRA EL TEMA DE LA WEB: todo con color expl\u00edcito. *\/\r\n#gayarre-price-guide button, #gayarre-price-guide .gpg-option, #gayarre-price-guide .gpg-option b,\r\n#gayarre-price-guide .gpg-check, #gayarre-price-guide .gpg-check b, #gayarre-price-guide p,\r\n#gayarre-price-guide label, #gayarre-price-guide h2, #gayarre-price-guide h3, #gayarre-price-guide h4,\r\n#gayarre-price-guide li, #gayarre-price-guide td, #gayarre-price-guide th{ color:var(--text) !important; }\r\n#gayarre-price-guide .gpg-option{ background:#ffffff !important; border:1px solid var(--line) !important; }\r\n#gayarre-price-guide .gpg-option:hover{ background:var(--soft) !important; border-color:var(--brand-red) !important; }\r\n#gayarre-price-guide .gpg-option.is-selected{ background:var(--black) !important; border-color:var(--black) !important; }\r\n#gayarre-price-guide .gpg-option.is-selected, #gayarre-price-guide .gpg-option.is-selected b{ color:#ffffff !important; }\r\n#gayarre-price-guide .gpg-option.is-selected span{ color:#cfcfcf !important; }\r\n#gayarre-price-guide .gpg-option span, #gayarre-price-guide .gpg-check small, #gayarre-price-guide .gpg-help,\r\n#gayarre-price-guide .gpg-micro, #gayarre-price-guide .gpg-number, #gayarre-price-guide .gpg-progress-head,\r\n#gayarre-price-guide .gpg-back, #gayarre-price-guide .gpg-restart, #gayarre-price-guide .gpg-level-summary p,\r\n#gayarre-price-guide .gpg-note em, #gayarre-price-guide .gpg-consent, #gayarre-price-guide .gpg-field>span em,\r\n#gayarre-price-guide .gpg-base-sub, #gayarre-price-guide .gpg-base-foot{ color:var(--muted) !important; }\r\n#gayarre-price-guide .gpg-level-summary .gpg-incl{ color:var(--text) !important; }\r\n#gayarre-price-guide .gpg-kicker, #gayarre-price-guide .gpg-block, #gayarre-price-guide .gpg-checks-group,\r\n#gayarre-price-guide .gpg-level-summary article > span, #gayarre-price-guide .gpg-level-summary strong,\r\n#gayarre-price-guide .gpg-field>span, #gayarre-price-guide .gpg-base-title{ color:var(--black) !important; }\r\n#gayarre-price-guide .gpg-demo-head b, #gayarre-price-guide .gpg-demo-head span,\r\n#gayarre-price-guide .gpg-demo-body .caja b, #gayarre-price-guide .gpg-demo-body .caja span{ color:#ffffff !important; }\r\n#gayarre-price-guide .gpg-primary, #gayarre-price-guide a.gpg-primary{\r\n  background:var(--brand-red) !important; color:#ffffff !important; border:0 !important; text-decoration:none !important;\r\n  transition:background .18s ease, color .18s ease;\r\n}\r\n#gayarre-price-guide .gpg-primary:hover, #gayarre-price-guide a.gpg-primary:hover{ background:var(--brand-hover) !important; color:var(--black) !important; }\r\n#gayarre-price-guide .gpg-field input{ background:#ffffff !important; color:var(--text) !important; border:1px solid var(--line) !important; }\r\n#gayarre-price-guide .gpg-shell{ background:#ffffff !important; }\r\n<\/style>\r\n\r\n<div id=\"gayarre-price-guide\">\r\n  <div class=\"gpg-shell\">\r\n\r\n    <!-- PORTADA -->\r\n    <section id=\"gpg-intro\" class=\"gpg-screen is-active\">\r\n      <div class=\"gpg-kicker\">INVESTMENT GUIDE<\/div>\r\n      <h2>Get a sense of the numbers before we talk.<\/h2>\r\n\r\n      <div class=\"gpg-warning\">\r\n        <strong>This is not a quote.<\/strong>\r\n        <p>\r\n          It is a guide so that, before booking a meeting, you know the order of magnitude of the\r\n          visualization for your development. It works both ways: you can see whether we are the\r\n          right fit for you, and we can see whether you are the right fit for us.\r\n        <\/p>\r\n        <p>\r\n          We do not charge per image. We charge for what the development needs to communicate in\r\n          order to sell sooner. That is why the first things you will see are questions about your\r\n          project, not about how many renders you want.\r\n        <\/p>\r\n        <p>\r\n          At the end I will ask for your name and your company email. I review every case personally,\r\n          and within one working day I will email you the guide, fully explained. I am telling you now so that it does not come as a surprise.\r\n        <\/p>\r\n      <\/div>\r\n\r\n      <p class=\"gpg-lead\">\r\n        We work at three levels. <strong>All three include images, video and social media clips.<\/strong>\r\n        What changes between them is the material we start from, and whether the development is\r\n        shown well or also tells a story.\r\n      <\/p>\r\n\r\n      <div class=\"gpg-base\">\r\n        <p class=\"gpg-base-title\">What the base price covers<\/p>\r\n        <p class=\"gpg-base-sub\">This is what a standard development needs in order to sell. If yours needs nothing more, the base price is the price.<\/p>\r\n        <div id=\"gpg-vistas-intro\"><\/div>\r\n        <p class=\"gpg-base-foot\">\r\n          All for a single unit type. In Level 1 we start from your images: 12 of them, covering the spaces that already appear in your material.\r\n          If your development needs to show anything else, I will ask you what and we will go through it together. Drone footage is never included.\r\n        <\/p>\r\n      <\/div>\r\n\r\n      <div class=\"gpg-level-summary\">\r\n        <article>\r\n          <span>LEVEL 1<\/span>\r\n          <strong>We start from your images<\/strong>\r\n          <p>You already have images. We start from them, take them much further and use them to make the video you did not have, without modelling the development again. The spaces are the ones already in your material.<\/p>\r\n          <p class=\"gpg-incl\">12 images, a 1-minute video and 4 ten-second clips.<\/p>\r\n        <\/article>\r\n        <article>\r\n          <span>LEVEL 2<\/span>\r\n          <strong>From scratch, without a story<\/strong>\r\n          <p>We start from scratch. We show the development with the quality its price demands, so the buyer clearly sees what they are buying.<\/p>\r\n          <p class=\"gpg-incl\">24 images, a 2-minute video and 8 ten-second clips.<\/p>\r\n        <\/article>\r\n        <article>\r\n          <span>LEVEL 3<\/span>\r\n          <strong>From scratch, with a story<\/strong>\r\n          <p>We start from scratch and tell a story. It is about commercial ambition, and it is within reach for developments with many homes or a very high price per home.<\/p>\r\n          <p class=\"gpg-incl\">36 images, a 4-minute cinematic video and 12 ten-second clips.<\/p>\r\n        <\/article>\r\n      <\/div>\r\n\r\n      <p class=\"gpg-note\">\r\n        <strong>You do not have to choose a level.<\/strong> I will ask what material you are starting\r\n        from and what your development needs to achieve, and the level follows from that. If the\r\n        level you land on is out of proportion for the size of the project, I will tell you and\r\n        take you down a level.\r\n        <em>> the levels in detail, on the <a href=\"https:\/\/www.gayarre.eu\/en\/services\/\" target=\"_blank\" rel=\"noopener\">services page<\/a><\/em>\r\n      <\/p>\r\n\r\n      <button type=\"button\" class=\"gpg-button gpg-primary\" data-start>START<\/button>\r\n      <p class=\"gpg-micro\">Ten questions at most. Under three minutes.<\/p>\r\n    <\/section>\r\n\r\n    <!-- FORMULARIO -->\r\n    <section id=\"gpg-form\" class=\"gpg-screen\">\r\n      <div class=\"gpg-progress-head\">\r\n        <span id=\"gpg-step-label\">Question 1 of 10<\/span>\r\n        <span id=\"gpg-step-percent\">10%<\/span>\r\n      <\/div>\r\n      <div class=\"gpg-progress\"><span id=\"gpg-progress-bar\"><\/span><\/div>\r\n\r\n      <div class=\"gpg-step is-active\" data-step=\"1\">\r\n        <div class=\"gpg-number\">01<\/div>\r\n        <div class=\"gpg-block\">THE DEVELOPMENT<\/div>\r\n        <h3>Which development are we talking about?<\/h3>\r\n        <p class=\"gpg-help\">If it does not have a commercial name yet, use the working name.<\/p>\r\n        <div class=\"gpg-fields\">\r\n          <label class=\"gpg-field\"><span>Development name<\/span>\r\n            <input type=\"text\" id=\"gpg-promo-name\" placeholder=\"Residence\u2026\" autocomplete=\"off\"><\/label>\r\n          <label class=\"gpg-field\"><span>Location<\/span>\r\n            <input type=\"text\" id=\"gpg-promo-place\" placeholder=\"City or town\" autocomplete=\"off\"><\/label>\r\n        <\/div>\r\n        <p class=\"gpg-error\" id=\"gpg-promo-error\" hidden>Please fill in both fields to continue.<\/p>\r\n        <button type=\"button\" class=\"gpg-button gpg-primary\" data-promo-next>CONTINUE<\/button>\r\n      <\/div>\r\n\r\n      <div class=\"gpg-step\" data-step=\"2\">\r\n        <div class=\"gpg-number\">02<\/div>\r\n        <div class=\"gpg-block\">THE DEVELOPMENT<\/div>\r\n        <h3>How many homes does the development have?<\/h3>\r\n        <p class=\"gpg-help\">The exact number. If it is phased, count only the phase you are launching now.<\/p>\r\n        <div class=\"gpg-fields\">\r\n          <label class=\"gpg-field\"><span>Number of homes<\/span>\r\n            <input type=\"number\" id=\"gpg-units\" min=\"1\" max=\"3000\" step=\"1\" inputmode=\"numeric\" placeholder=\"For example, 14\" autocomplete=\"off\"><\/label>\r\n        <\/div>\r\n        <p class=\"gpg-error\" id=\"gpg-units-error\" hidden>Please enter the number of homes (a whole number, no separators).<\/p>\r\n        <button type=\"button\" class=\"gpg-button gpg-primary\" data-units-next>CONTINUE<\/button>\r\n      <\/div>\r\n\r\n      <div class=\"gpg-step\" data-step=\"3\">\r\n        <div class=\"gpg-number\">03<\/div>\r\n        <div class=\"gpg-block\">THE DEVELOPMENT<\/div>\r\n        <h3>Average sale price per home?<\/h3>\r\n        <p class=\"gpg-help\">A rough range is enough. It is only used to put the investment in proportion with the project.<\/p>\r\n        <div class=\"gpg-options gpg-grid-2\">\r\n          <button type=\"button\" class=\"gpg-option\" data-field=\"price\" data-value=\"170000\"><b>Under \u20ac200,000<\/b><\/button>\r\n          <button type=\"button\" class=\"gpg-option\" data-field=\"price\" data-value=\"275000\"><b>\u20ac200,000 \u2013 \u20ac350,000<\/b><\/button>\r\n          <button type=\"button\" class=\"gpg-option\" data-field=\"price\" data-value=\"475000\"><b>\u20ac350,000 \u2013 \u20ac600,000<\/b><\/button>\r\n          <button type=\"button\" class=\"gpg-option\" data-field=\"price\" data-value=\"800000\"><b>\u20ac600,000 \u2013 \u20ac1,000,000<\/b><\/button>\r\n          <button type=\"button\" class=\"gpg-option\" data-field=\"price\" data-value=\"1400000\"><b>Over \u20ac1,000,000<\/b><\/button>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <div class=\"gpg-step\" data-step=\"4\">\r\n        <div class=\"gpg-number\">04<\/div>\r\n        <div class=\"gpg-block\">THE DEVELOPMENT<\/div>\r\n        <h3>When does it go on sale?<\/h3>\r\n        <p class=\"gpg-help\">The timing does not change the figure. It changes what makes sense to produce first.<\/p>\r\n        <div class=\"gpg-options gpg-grid-2\">\r\n          <button type=\"button\" class=\"gpg-option\" data-field=\"timing\" data-value=\"0\"><b>It is already on the market<\/b><\/button>\r\n          <button type=\"button\" class=\"gpg-option\" data-field=\"timing\" data-value=\"1\"><b>In less than 3 months<\/b><\/button>\r\n          <button type=\"button\" class=\"gpg-option\" data-field=\"timing\" data-value=\"2\"><b>In 3 to 9 months<\/b><\/button>\r\n          <button type=\"button\" class=\"gpg-option\" data-field=\"timing\" data-value=\"3\"><b>Later, or no date yet<\/b><\/button>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <div class=\"gpg-step\" data-step=\"5\">\r\n        <div class=\"gpg-number\">05<\/div>\r\n        <div class=\"gpg-block\">THE DEVELOPMENT<\/div>\r\n        <h3>What is proving hardest right now?<\/h3>\r\n        <p class=\"gpg-help\">Tick everything that applies. It does not change the figure, but it completely changes what needs to be produced.<\/p>\r\n        <div class=\"gpg-checks\" id=\"gpg-pain-checks\">\r\n          <label class=\"gpg-check\"><input type=\"checkbox\" value=\"0\"><span><b>Getting people to show interest<\/b><\/span><\/label>\r\n          <label class=\"gpg-check\"><input type=\"checkbox\" value=\"1\"><span><b>Getting interested buyers to decide<\/b><\/span><\/label>\r\n          <label class=\"gpg-check\"><input type=\"checkbox\" value=\"2\"><span><b>Holding the price without discounting<\/b><\/span><\/label>\r\n          <label class=\"gpg-check\"><input type=\"checkbox\" value=\"3\"><span><b>I do not know yet<\/b><\/span><\/label>\r\n        <\/div>\r\n        <p class=\"gpg-error\" id=\"gpg-pain-error\" hidden>Please tick at least one option to continue.<\/p>\r\n        <button type=\"button\" class=\"gpg-button gpg-primary\" data-pain-next>CONTINUE<\/button>\r\n      <\/div>\r\n\r\n      <div class=\"gpg-step\" data-step=\"6\">\r\n        <div class=\"gpg-number\">06<\/div>\r\n        <div class=\"gpg-block\">THE STARTING POINT<\/div>\r\n        <h3>What material are you starting from?<\/h3>\r\n        <p class=\"gpg-help\">Do not choose a level: I will work that out. Just tell me what you have today.<\/p>\r\n        <div class=\"gpg-options\">\r\n          <button type=\"button\" class=\"gpg-option\" data-field=\"start\" data-value=\"0\">\r\n            <b>I already have an image production.<\/b>\r\n            <span>I want to make the most of it and take it much further without redoing the development in 3D.<\/span>\r\n          <\/button>\r\n          <button type=\"button\" class=\"gpg-option\" data-field=\"start\" data-value=\"1\">\r\n            <b>I have not produced any material yet, or what I have is not usable.<\/b>\r\n            <span>What the development needs to show has to be created from scratch.<\/span>\r\n          <\/button>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <div class=\"gpg-step\" data-step=\"7\">\r\n        <div class=\"gpg-number\">07<\/div>\r\n        <div class=\"gpg-block\">YOUR DEVELOPMENT AND YOUR MARKET<\/div>\r\n        <h3>Which of these situations is closest to yours?<\/h3>\r\n        <p class=\"gpg-help\">Answer with your product and your area in mind, not the budget. Bear in mind that Level 3 is about commercial ambition, and it is within reach for developments with many homes or a very high price per home.<\/p>\r\n        <div class=\"gpg-options\">\r\n          <button type=\"button\" class=\"gpg-option\" data-field=\"goal\" data-value=\"1\">\r\n            <b>It is a good development and I want it to be seen as such.<\/b>\r\n            <span>That it is understood, that it lives up to its price and that it comes out ahead when the buyer compares.<\/span>\r\n          <\/button>\r\n          <button type=\"button\" class=\"gpg-option\" data-field=\"goal\" data-value=\"3\">\r\n            <b>I want to take this development as far as it can go.<\/b>\r\n            <span>It is an exclusive product, or a large development that really has to stand out. The communication has to match that level in every detail.<\/span>\r\n          <\/button>\r\n          <button type=\"button\" class=\"gpg-option\" data-field=\"goal\" data-value=\"5\">\r\n            <b>I compete in an area with a great deal of similar supply.<\/b>\r\n            <span>There is a lot of direct competition and the buyer has plenty of choice.<\/span>\r\n          <\/button>\r\n        <\/div>\r\n      <\/div>\r\n\r\n      <!-- Pasos 8-10 din\u00e1micos seg\u00fan el nivel (en Nivel 1 solo hay 8 y 9) -->\r\n      <div class=\"gpg-step\" data-step=\"8\">\r\n        <div class=\"gpg-number\">08<\/div>\r\n        <div class=\"gpg-block\" id=\"gpg-q8-block\"><\/div>\r\n        <h3 id=\"gpg-q8-title\"><\/h3>\r\n        <p class=\"gpg-help\" id=\"gpg-q8-help\"><\/p>\r\n        <div id=\"gpg-q8-content\"><\/div>\r\n        <button type=\"button\" class=\"gpg-button gpg-primary gpg-step-button\" data-next=\"8\" hidden>CONTINUE<\/button>\r\n      <\/div>\r\n\r\n      <div class=\"gpg-step\" data-step=\"9\">\r\n        <div class=\"gpg-number\">09<\/div>\r\n        <div class=\"gpg-block\" id=\"gpg-q9-block\"><\/div>\r\n        <h3 id=\"gpg-q9-title\"><\/h3>\r\n        <p class=\"gpg-help\" id=\"gpg-q9-help\"><\/p>\r\n        <div id=\"gpg-q9-content\"><\/div>\r\n        <button type=\"button\" class=\"gpg-button gpg-primary gpg-step-button\" data-next=\"9\" hidden>CONTINUE<\/button>\r\n      <\/div>\r\n\r\n      <div class=\"gpg-step\" data-step=\"10\">\r\n        <div class=\"gpg-number\">10<\/div>\r\n        <div class=\"gpg-block\" id=\"gpg-q10-block\"><\/div>\r\n        <h3 id=\"gpg-q10-title\"><\/h3>\r\n        <p class=\"gpg-help\" id=\"gpg-q10-help\"><\/p>\r\n        <div id=\"gpg-q10-content\"><\/div>\r\n        <button type=\"button\" class=\"gpg-button gpg-primary gpg-step-button\" data-next=\"10\" hidden>CONTINUE<\/button>\r\n      <\/div>\r\n\r\n      <div class=\"gpg-back-wrap\">\r\n        <button type=\"button\" class=\"gpg-back\" data-prev>\u2190 Back<\/button>\r\n      <\/div>\r\n    <\/section>\r\n\r\n    <!-- PUERTA -->\r\n    <section id=\"gpg-gate\" class=\"gpg-screen\">\r\n      <div class=\"gpg-kicker\">LAST STEP<\/div>\r\n      <h2>Where should I send it?<\/h2>\r\n      <p class=\"gpg-lead\">\r\n        I will email it to you fully explained, with what is included and what is not, so that it is\r\n        not a bare number on a screen. Tell me who to send it to.\r\n      <\/p>\r\n      <div class=\"gpg-warning\">\r\n        <strong>Company email, please.<\/strong>\r\n        <p>I do not accept free email addresses. This is a professional enquiry about a specific development, and I want to know which developer you work for before I give you a figure.<\/p>\r\n        <p>I keep your answers together with your details to review the case before a possible meeting. I may write to you again from time to time; every email includes a link to unsubscribe. I do not pass anything on to third parties.<\/p>\r\n      <\/div>\r\n      <div class=\"gpg-fields\">\r\n        <label class=\"gpg-field\"><span>Full name<\/span><input type=\"text\" id=\"gpg-lead-name\" autocomplete=\"name\"><\/label>\r\n        <label class=\"gpg-field\"><span>Company<\/span><input type=\"text\" id=\"gpg-lead-company\" autocomplete=\"organization\"><\/label>\r\n        <label class=\"gpg-field\"><span>Email<\/span><input type=\"email\" id=\"gpg-lead-email\" autocomplete=\"email\"><\/label>\r\n        <label class=\"gpg-field\"><span>Phone <em>(optional)<\/em><\/span><input type=\"tel\" id=\"gpg-lead-phone\" autocomplete=\"tel\"><\/label>\r\n      <\/div>\r\n      <label class=\"gpg-consent\">\r\n        <input type=\"checkbox\" id=\"gpg-lead-consent\">\r\n        <span>I have read and accept the <a href=\"https:\/\/www.gayarre.eu\/en\/legal-terms\/\" target=\"_blank\" rel=\"noopener\">privacy policy<\/a>. I authorise GAYARRE to contact me regarding this enquiry.<\/span>\r\n      <\/label>\r\n      <p class=\"gpg-error\" id=\"gpg-gate-error\" hidden><\/p>\r\n      <button type=\"button\" class=\"gpg-button gpg-primary\" data-result>SEND IT TO ME<\/button>\r\n      <p class=\"gpg-micro\">If you would rather not leave your details, simply close this page. No problem at all.<\/p>\r\n      <div class=\"gpg-back-wrap\">\r\n        <button type=\"button\" class=\"gpg-back\" data-gate-back>\u2190 Back to the answers<\/button>\r\n      <\/div>\r\n    <\/section>\r\n\r\n    <!-- ENVIADA -->\r\n    <section id=\"gpg-sent\" class=\"gpg-screen\">\r\n      <div class=\"gpg-kicker\">REQUEST RECEIVED<\/div>\r\n      <h2>You will receive your guide within one working day.<\/h2>\r\n      <p class=\"gpg-lead\">\r\n        I am not sending it straight away because I review every guide personally before it goes out. It will reach\r\n        <strong id=\"gpg-sent-email\"><\/strong> with the base price,\r\n        every view it includes, what is left out and what share of the development's sales volume it represents.\r\n      <\/p>\r\n      <div class=\"gpg-warning\">\r\n        <strong>Why I am not showing it here.<\/strong>\r\n        <p>Because I want to know who I am giving it to, and I want it to arrive properly. A figure without context is worth nothing; I would rather send it to you explained, with my name behind it.<\/p>\r\n        <p>If it has not arrived within one working day, please check your spam folder or write to me at <a href=\"mailto:juan@gayarre.eu\">juan@gayarre.eu<\/a>.<\/p>\r\n      <\/div>\r\n      <div id=\"gpg-demo\"><\/div>\r\n      <pre id=\"gpg-debug\" class=\"gpg-debug\" hidden><\/pre>\r\n      <div class=\"gpg-cta\">\r\n        <h3>And if you would rather not wait, we can talk.<\/h3>\r\n        <p>Forty-five minutes. We review the project, the available material and what makes sense to produce. If it is not a fit by the end, I will be the one to tell you.<\/p>\r\n        <a class=\"gpg-button gpg-primary\" href=\"https:\/\/tidycal.com\/juangayarre\/free-meeting-session\" target=\"_blank\" rel=\"noopener\">BOOK A MEETING WITH ME<\/a>\r\n        <div class=\"gpg-second-chance\">\r\n          <strong>Want to review what you ticked?<\/strong>\r\n          <p>If you ticked anything just in case, you can redo it. I will receive the new version and send you that one.<\/p>\r\n          <button type=\"button\" class=\"gpg-restart\" data-restart>I want to review my answers and recalculate<\/button>\r\n        <\/div>\r\n      <\/div>\r\n    <\/section>\r\n\r\n  <\/div>\r\n<\/div>\r\n<\/template>\r\n\r\n<script>\r\n(function(){\r\n  const host = document.getElementById('gpg-host');\r\n  const tpl  = document.getElementById('gpg-template');\r\n  if(!host || !tpl) return;\r\n  if(host.shadowRoot) return;\r\n\r\n  const shadow = host.attachShadow({mode:'open'});\r\n  shadow.appendChild(tpl.content.cloneNode(true));\r\n  tpl.remove();\r\n\r\n  if(!document.getElementById('gpg-font')){\r\n    const link = document.createElement('link');\r\n    link.id = 'gpg-font'; link.rel = 'stylesheet';\r\n    link.href = 'https:\/\/fonts.googleapis.com\/css2?family=Raleway:ital,wght@0,300..900;1,300..900&display=swap';\r\n    document.head.appendChild(link);\r\n  }\r\n\r\n  const root = shadow.querySelector('#gayarre-price-guide');\r\n  if(!root) return;\r\n\r\n  \/* ===== AJUSTES ===================================================== *\/\r\n\r\n  \/* Filtro de proporci\u00f3n: el PRECIO BASE del nivel no puede pasar de este % del volumen de venta.\r\n     Lo que el promotor marque fuera de lo habitual ya no cuenta aqu\u00ed: no puede rechazarle\r\n     ni bajarle de nivel. Eso lo decide Juan al revisar cada caso. *\/\r\n  const MAX_RATIO = 0.008;   \/* 0,8 %: el 16 % de lo recuperable si el efecto vale un 5 %. Deja hacer Nivel 3 desde 6 M\u20ac. *\/\r\n\r\n  \/* Competencia extrema: solo lleva a Nivel 3 si la promoci\u00f3n mueve al menos este volumen\r\n     (viviendas x precio medio). Valor provisional: 50 viviendas a 500.000 \u20ac. *\/\r\n  const VOLUMEN_NIVEL3 = 25000000;\r\n\r\n  \/* TOPE: si la orientaci\u00f3n con extras supera esta cifra, el correo lo dice, da el desglose\r\n     completo y propone repasarlo juntos en una reuni\u00f3n. *\/\r\n  const TOPE_CIFRA = 50000;\r\n\r\n  \/* FACTOR CORRECTOR DE LOS EXTRAS (estimaci\u00f3n interna, solo Niveles 2 y 3).\r\n     No se suma cada cosa entera: cuanto m\u00e1s se encarga, m\u00e1s se aprovecha lo ya montado\r\n     (modelo, luz, mobiliario, c\u00e1maras). Igual que 5 vistas de un mismo espacio no cuestan\r\n     lo que 5 espacios distintos.\r\n       espacio:   lo que suma el PRIMER espacio fuera de lo habitual (\u20ac).\r\n       DECRECIENTE: cada extra siguiente cuenta este factor del anterior (0.8 = un 20 % menos).\r\n       tipologia: lo que suma la SEGUNDA tipolog\u00eda (\u20ac); la tercera y siguientes, con el mismo factor decreciente.\r\n       entorno:   entorno complejo, con peso propio y sin descuento. Rebajado el 21\/11\/2026: no es para tanto. *\/\r\n  const EXTRAS = {\r\n    2:{ espacio:500, tipologia:2000, entorno:1000 },\r\n    3:{ espacio:500, tipologia:2000, entorno:1000 }\r\n  };\r\n  \/* Lo que va aparte, con su precio (no lleva descuento). Tarifas de Juan, 21\/11\/2026. *\/\r\n  const PRECIO_APARTE = {\r\n    dron: 2000,                       \/\/ plan de vuelo + postproducci\u00f3n de las secuencias, A PARTIR DE. El vuelo no se incluye.\r\n    '360': 2500,                      \/\/ 250 \u20ac por espacio, 10 espacios\r\n    plantas: 250                      \/\/ por planta tipo (se multiplica por el n\u00famero de tipolog\u00edas)\r\n  };\r\n  const DECRECIENTE = 0.8;\r\n\r\n  \/* Filtro de precio percibido, con excepci\u00f3n para promociones grandes. *\/\r\n  const PRECIO_MINIMO = 200000;\r\n  const VIVIENDAS_EXCEPCION = 90;\r\n\r\n  \/* true: no env\u00eda nada a ActiveCampaign y ense\u00f1a en pantalla el correo que Juan aprobar\u00eda.\r\n     EN LA WEB PUBLICADA, SIEMPRE false. *\/\r\n  const MODO_DEMO = false;\r\n  const MODO_PRUEBA = false;   \/\/ true para ver los datos enviados en la \u00faltima pantalla\r\n\r\n  const AC_ACTION = 'https:\/\/gayarre.activehosted.com\/proc.php';\r\n  \/* Formulario EN de ActiveCampaign: ORIENTADOR-ENTRADA-EN (id 57), lista 114.\r\n     No reutilizar el formulario ES (55): meter\u00eda al contacto en la lista espa\u00f1ola. *\/\r\n  const AC_U = '57';\r\n  const AC_F = '57';\r\n  const AC_LIST = '114';       \/\/ BUDGET ORIENTATION (EN)\r\n\r\n  const AC_FIELDS = {\r\n    promocion_nombre:'54', promocion_ubicacion:'55', promocion_viviendas:'56', promocion_precio:'57',\r\n    promocion_lanzamiento:'58', dificultad:'59', orient_nivel:'53', orient_horquilla:'60',\r\n    orient_porcentaje:'61', orient_volumen:'62', orient_titular:'63', orient_razones:'64',\r\n    orient_significa:'65', orient_lectura:'66', orient_tipo:'52', empresa:'44'\r\n  };\r\n\r\n  const DOMINIOS_BLOQUEADOS = [\r\n    'gmail.com','googlemail.com','hotmail.com','hotmail.es','outlook.com','outlook.es',\r\n    'live.com','live.es','msn.com','yahoo.com','yahoo.es','ymail.com','icloud.com',\r\n    'me.com','mac.com','aol.com','gmx.com','gmx.es','protonmail.com','proton.me',\r\n    'yandex.com','mail.com','mail.ru','zoho.com','terra.es','telefonica.net','wanadoo.es',\r\n    'hotmail.co.uk','outlook.co.uk','live.co.uk','yahoo.co.uk','btinternet.com','sky.com','comcast.net','att.net','verizon.net'\r\n  ];\r\n\r\n  \/* ===== LO QUE ENTRA EN EL PRECIO BASE ============================== *\/\r\n\r\n  \/* Vistas por espacio en Nivel 2 y Nivel 3. Las columnas tienen que sumar 24 y 36.\r\n     Bloque: int = interior de la vivienda \u00b7 ext = exteriores \u00b7 com = zona com\u00fan. *\/\r\n  const VISTAS = [\r\n    ['grupo','INSIDE THE HOME','int'],\r\n    ['Living room',                 4, 6, 'int'],\r\n    ['Kitchen',                     3, 4, 'int'],\r\n    ['Master bedroom',              2, 3, 'int'],\r\n    ['Bathrooms (two)',             2, 2, 'int'],\r\n    ['Terrace',                     2, 3, 'int'],\r\n    ['Garden',                      2, 3, 'int'],\r\n    ['grupo','EXTERIORS','ext'],\r\n    ['Street fa\u00e7ade',               3, 5, 'ext'],\r\n    ['Inside the grounds',          3, 5, 'ext'],\r\n    ['grupo','COMMUNAL AREA','com'],\r\n    ['Swimming pool',               3, 5, 'com']\r\n  ];\r\n  const COLOR_BLOQUE = {int:'#f3efe8', ext:'#e8f0ee', com:'#e6eef6'};\r\n  function totalVistas(col){ return VISTAS.filter(function(v){return v[0]!=='grupo';}).reduce(function(s,v){return s+v[col];},0); }\r\n\r\n  \/* Cuadro de la portada: Nivel 2 y Nivel 3 en columnas. *\/\r\n  function cuadroPortada(){\r\n    let h = '<table class=\"gpg-vistas\"><thead><tr><th>SPACE<\/th><th>LEVEL 2<\/th><th>LEVEL 3<\/th><\/tr><\/thead><tbody>';\r\n    VISTAS.forEach(function(v){\r\n      if(v[0]==='grupo') h += '<tr class=\"g '+v[2]+'\"><td colspan=\"3\">'+v[1]+'<\/td><\/tr>';\r\n      else h += '<tr class=\"'+v[3]+'\"><td>'+v[0]+'<\/td><td class=\"n\">'+v[1]+'<\/td><td class=\"n\">'+v[2]+'<\/td><\/tr>';\r\n    });\r\n    h += '<tr class=\"t\"><td>Total images<\/td><td class=\"n\">'+totalVistas(1)+'<\/td><td class=\"n\">'+totalVistas(2)+'<\/td><\/tr>';\r\n    return h + '<\/tbody><\/table>';\r\n  }\r\n\r\n  \/* Cuadro para el correo: discreto, en texto, sin colores. Solo el nivel que le toca. *\/\r\n  function cuadroCorreo(nivel){\r\n    const col = nivel===3 ? 2 : 1;\r\n    const grupos = []; let actual = null;\r\n    VISTAS.forEach(function(v){\r\n      if(v[0]==='grupo'){ actual = {t:v[1].charAt(0)+v[1].slice(1).toLowerCase(), items:[]}; grupos.push(actual); }\r\n      else actual.items.push(v[0].toLowerCase()+' '+v[col]);\r\n    });\r\n    return '<p style=\"margin:6px 0 20px 0;font-size:14px;line-height:1.7;color:#555555;\">'+\r\n      grupos.map(function(g){ return '<strong>'+g.t+':<\/strong> '+g.items.join(' \u00b7 '); }).join('<br>')+\r\n      '<br><strong>Total: '+totalVistas(col)+' images<\/strong><\/p>';\r\n  }\r\n\r\n  const ESPACIOS_HABITUALES = 'living room, kitchen, master bedroom, two bathrooms, terrace, garden, street fa\u00e7ade, inside the grounds and swimming pool';\r\n\r\n  \/* ===== NIVELES ===================================================== *\/\r\n\r\n  const levels = {\r\n    1:{name:'Level 1', base:12000,\r\n       description:'We start from the images you already have. We take them much further and use them to build the video and the social media clips, without modelling the development again.'},\r\n    2:{name:'Level 2', base:24000,\r\n       description:'We start from scratch and show the development well: we produce what the buyer needs to see, with the quality its price demands. This level does not tell a story.'},\r\n    3:{name:'Level 3', base:48000,\r\n       description:'We start from scratch and tell a story. The video is built around the buyer and what they want to change in their life, which is why it sells far more powerfully than a walkthrough of the development.'}\r\n  };\r\n\r\n  \/* Lo que sale de lo habitual en Niveles 2 y 3. Se suma al precio base y se cuantifica hablando. *\/\r\n  const FUERA = [\r\n    ['grupo','INTERIORS'],\r\n    ['juvenil','Teenager bedroom',''],\r\n    ['infantil','Children bedroom',''],\r\n    ['gastroteca','Gastro lounge',''],\r\n    ['gimnasio','Gym',''],\r\n    ['coworking','Coworking space',''],\r\n    ['spa','Spa',''],\r\n    ['bodega','Wine cellar',''],\r\n    ['materiales','Material changes','Finish variants in any space.'],\r\n    ['grupo','EXTERIORS'],\r\n    ['entorno','Complex setting','A steep slope, very irregular ground or different fa\u00e7ades throughout. A plot with a gentle slope or a standard apartment block is not.'],\r\n    ['mas_exteriores','More exteriors','Beyond the street views and the views inside the grounds.'],\r\n    ['nocturnas','Night images','']\r\n  ];\r\n\r\n  \/* Lo que va siempre aparte. No mueve el precio base. *\/\r\n  const APARTE = {\r\n    1:[['dron','Drone \/ aerial view','Flight plan and post-production of the sequences. Never included in the base price.']],\r\n    2:[['dron','Drone \/ aerial view','Flight plan and post-production of the sequences. Never included in the base price.'],\r\n       ['360','360\u00b0 tours','Let the buyer explore the space.'],\r\n       ['plantas','Sales floor plans','Layouts explained clearly.']]\r\n  };\r\n  const APARTE_CORREO = {dron:'drone footage', '360':'360\u00b0 tours', plantas:'sales floor plans'};\r\n\r\n  const INCLUYE = {\r\n    1:['12 images worked on from your material','A video of approximately 1 minute, made from your images: the one you did not have','4 ten-second video clips for social media','Two rounds of revisions in the initial phase'],\r\n    2:['A video of approximately 2 minutes','8 ten-second video clips for social media','Two rounds of revisions in the initial phase'],\r\n    3:['A cinematic video of approximately 4 minutes, built on a story','12 ten-second video clips for social media','Production priority','Two rounds of revisions in the initial phase']\r\n  };\r\n  const NO_INCLUYE = {\r\n    1:['Drone footage, which is never included in the price','Sales floor plans, 360\u00b0 tours and spaces that are not in your images: they require producing from scratch and move to Level 2'],\r\n    2:['Drone footage, which is never included in the price','360\u00b0 tours and sales floor plans','Spaces beyond those in the table and any additional unit type']\r\n  };\r\n  NO_INCLUYE[3] = NO_INCLUYE[2];\r\n  NO_INCLUYE[1][0] = 'Drone footage, which is never included in the base price'; NO_INCLUYE[2][0] = 'Drone footage, which is never included in the base price';\r\n  APARTE[3] = APARTE[2];\r\n\r\n  const painText = {\r\n    0:['getting people to show interest','That is rarely solved by producing more images. It is solved by changing which ones are shown first and with what message.'],\r\n    1:['getting interested buyers to decide','The problem there is usually that the buyer cannot quite picture themselves living there, and that is tackled with scenes, not views.'],\r\n    2:['holding the price without discounting','This is where visualization has the most direct effect on margin: the price gets questioned when the development does not look like what it costs.'],\r\n    3:['that you do not know yet','That is an honest answer. Identifying it is precisely the first part of my work.']\r\n  };\r\n  function lecturaPain(){\r\n    const p = (state.pain||[]).filter(function(v){return painText[v];});\r\n    if(!p.length) return '';\r\n    if(p.length===1 && p[0]===3) return 'You tell me you do not know yet what is proving hardest. '+painText[3][1];\r\n    if(p.length===1) return 'What is proving hardest right now is '+painText[p[0]][0]+'. '+painText[p[0]][1];\r\n    const n = ['','','two','three','four'][p.length];\r\n    return 'You mentioned '+n+' things.<br><br>'+p.map(function(v){\r\n      return '<strong>'+capital(painText[v][0])+'.<\/strong> '+painText[v][1];\r\n    }).join('<br><br>');\r\n  }\r\n\r\n  const labels = {\r\n    price:{170000:'Under \u20ac200,000',275000:'\u20ac200,000 \u2013 \u20ac350,000',475000:'\u20ac350,000 \u2013 \u20ac600,000',800000:'\u20ac600,000 \u2013 \u20ac1,000,000',1400000:'Over \u20ac1,000,000'},\r\n    timing:{0:'Already on the market',1:'Launching in less than 3 months',2:'Launching in 3 to 9 months',3:'Later, or no date yet'},\r\n    pain:{0:'Getting people to show interest',1:'Getting interested buyers to decide',2:'Holding the price without discounting',3:'Does not know yet'},\r\n    start:{0:'Already has an image production',1:'Has no material, or it is not usable'},\r\n    goal:{1:'Good development, to be seen as such',3:'Take it as far as it can go (exclusive or large)',5:'Very strong competition in the area'},\r\n    newspace:{0:'No new spaces needed',4:'Needs spaces not in the existing material',1:'Not sure'},\r\n    tipologias:{1:'One unit type',2:'Two unit types',3:'Three or more unit types'}\r\n  };\r\n  function label(group, value){\r\n    if(group==='units') return value+(value===1?' home':' homes');\r\n    return (labels[group] && labels[group][value]) || String(value);\r\n  }\r\n  function textoPain(){ return (state.pain||[]).map(function(v){return label('pain',v);}).join(' \u00b7 '); }\r\n  function nombreDe(lista, key){\r\n    const f = lista.filter(function(o){return o[0]===key;})[0];\r\n    return f ? f[1] : key;\r\n  }\r\n\r\n  \/* ===== ESTADO ====================================================== *\/\r\n\r\n  const state = {\r\n    promoName:'', promoPlace:'', units:null, price:null, timing:null, pain:[],\r\n    start:null, goal:null, level:null, newspace:null, tipologias:null, fuera:[], aparte:[], lead:{}\r\n  };\r\n  let currentStep = 1;\r\n  let TOTAL = 10;   \/\/ 9 en Nivel 1\r\n\r\n  \/* El visitante nunca elige nivel. Con material \u2192 Nivel 1 siempre (sube a 2 por alcance). Sin material: al m\u00e1ximo (3) \u2192 Nivel 3. Competencia extrema (5) \u2192 Nivel 3 solo con volumen suficiente. Sin historia: con material \u2192 1, sin material \u2192 2. *\/\r\n  function deduceLevel(){\r\n    if(state.start===null || state.goal===null) return null;\r\n    if(state.start===0) return 1;   \/* Quien parte de material nunca va a Nivel 3 *\/\r\n    if(state.goal===3) return 3;\r\n    if(state.goal===5 && state.units && state.price && state.units*state.price >= VOLUMEN_NIVEL3) return 3;\r\n    return 2;\r\n  }\r\n\r\n  \/* ===== UTILIDADES ================================================== *\/\r\n\r\n  function euro(n){ return '\u20ac'+String(Math.round(n)).replace(\/\\B(?=(\\d{3})+(?!\\d))\/g,','); }\r\n  function millions(n){\r\n    if(n>=1000000) return '\u20ac'+(n\/1000000).toLocaleString('en-GB',{maximumFractionDigits:1})+'M';\r\n    return euro(n);\r\n  }\r\n  function listaNatural(arr){\r\n    if(arr.length<=1) return arr.join('');\r\n    return arr.slice(0,-1).join(', ')+' and '+arr[arr.length-1];\r\n  }\r\n  function capital(t){ return t.charAt(0).toUpperCase()+t.slice(1); }\r\n  const LI = 'margin:0 0 6px 0;';\r\n  function ulHTML(items){\r\n    return '<ul style=\"margin:8px 0 20px 0;padding:0 0 0 20px;\">'+items.map(function(i){return '<li style=\"'+LI+'\">'+i+'<\/li>';}).join('')+'<\/ul>';\r\n  }\r\n  function screenTo(id){\r\n    root.querySelectorAll('.gpg-screen').forEach(function(el){el.classList.remove('is-active');});\r\n    root.querySelector(id).classList.add('is-active');\r\n    host.scrollIntoView({behavior:'smooth',block:'start'});\r\n  }\r\n  function updateProgress(){\r\n    const pct=Math.round(currentStep\/TOTAL*100);\r\n    root.querySelector('#gpg-step-label').textContent='Question '+currentStep+' of '+TOTAL;\r\n    root.querySelector('#gpg-step-percent').textContent=pct+'%';\r\n    root.querySelector('#gpg-progress-bar').style.width=pct+'%';\r\n  }\r\n  function showStep(step){\r\n    currentStep=Math.min(Math.max(step,1),TOTAL);\r\n    root.querySelectorAll('.gpg-step').forEach(function(el){el.classList.remove('is-active');});\r\n    root.querySelector('.gpg-step[data-step=\"'+currentStep+'\"]').classList.add('is-active');\r\n    updateProgress();\r\n    const anclaje = root.querySelector('#gpg-form') || host;\r\n    anclaje.scrollIntoView({behavior:'smooth', block:'start'});\r\n  }\r\n  function optionHTML(field, options){\r\n    return '<div class=\"gpg-options\">'+options.map(function(o){\r\n      return '<button type=\"button\" class=\"gpg-option\" data-field=\"'+field+'\" data-value=\"'+o[0]+'\"><b>'+o[1]+'<\/b><\/button>';\r\n    }).join('')+'<\/div>';\r\n  }\r\n  function checksHTML(options){\r\n    return '<div class=\"gpg-checks\">'+options.map(function(o){\r\n      if(o[0]==='grupo') return '<div class=\"gpg-checks-group\">'+o[1]+'<\/div>';\r\n      return '<label class=\"gpg-check\"><input type=\"checkbox\" value=\"'+o[0]+'\"><span><b>'+o[1]+'<\/b>'+(o[2]?'<small>'+o[2]+'<\/small>':'')+'<\/span><\/label>';\r\n    }).join('')+'<\/div>';\r\n  }\r\n  function getChecked(sel){\r\n    return Array.prototype.slice.call(root.querySelectorAll(sel+' input:checked')).map(function(x){return x.value;});\r\n  }\r\n\r\n  \/* ===== PREGUNTAS DIN\u00c1MICAS ========================================= *\/\r\n\r\n  function pintarPaso(n, bloque, titulo, ayuda, html, conBoton){\r\n    root.querySelector('#gpg-q'+n+'-block').textContent = bloque;\r\n    root.querySelector('#gpg-q'+n+'-title').textContent = titulo;\r\n    root.querySelector('#gpg-q'+n+'-help').textContent = ayuda;\r\n    root.querySelector('#gpg-q'+n+'-content').innerHTML = html;\r\n    root.querySelector('[data-next=\"'+n+'\"]').hidden = !conBoton;\r\n  }\r\n\r\n  function renderDynamicQuestions(){\r\n    const lv = state.level;\r\n    if(!lv) return;\r\n    const tAparte = 'Will you need any of these?';\r\n    const hAparte = 'These are not part of any level and always go on top of the base price. Tick them if you will need them and I will tell you in the email how much they add.';\r\n\r\n    if(lv===1){\r\n      TOTAL = 9;\r\n      pintarPaso(8,'THE SCOPE','Do you need to show any space that does not appear in your images?',\r\n        'In Level 1 we work on what already exists. A space that was never modelled cannot be extracted from an image: if it is needed, it is produced from scratch and moves to Level 2.',\r\n        optionHTML('newspace',[\r\n          [0,'No. What I have covers what I need to show.'],\r\n          [4,'Yes. I need to show spaces that are not in that material.'],\r\n          [1,'I am not sure yet.']\r\n        ]), false);\r\n      pintarPaso(9,'ON TOP OF THE BASE PRICE',tAparte,hAparte,checksHTML(APARTE[1]),true);\r\n      pintarPaso(10,'','','','',false);\r\n    }else{\r\n      TOTAL = 10;\r\n      pintarPaso(8,'THE SCOPE','How many unit types need to be shown?',\r\n        'The base price covers one. If there are more, each one has its own interiors and that is added; I will show you how much in the email.',\r\n        optionHTML('tipologias',[[1,'One unit type'],[2,'Two unit types'],[3,'Three or more']]), false);\r\n      pintarPaso(9,'THE SCOPE','Do you need to show any space beyond those covered by the base price?',\r\n        'The base price covers: '+ESPACIOS_HABITUALES+'. Tick only what your development has and you want to show in addition to that. If you tick nothing, you get the base price as it is. And if your development does not have one of those spaces, that is fine: those views are shared out among the others.',\r\n        checksHTML(FUERA), true);\r\n      pintarPaso(10,'ON TOP OF THE BASE PRICE',tAparte,hAparte,checksHTML(APARTE[lv]),true);\r\n    }\r\n    updateProgress();\r\n    bindOptions();\r\n    bindChecks();\r\n  }\r\n\r\n  function bindChecks(){\r\n    root.querySelectorAll('.gpg-check input').forEach(function(input){\r\n      if(input.dataset.bound==='1') return;\r\n      input.dataset.bound='1';\r\n      input.addEventListener('change',function(){\r\n        input.closest('.gpg-check').classList.toggle('is-checked',input.checked);\r\n      });\r\n    });\r\n  }\r\n  function bindOptions(){\r\n    root.querySelectorAll('.gpg-option').forEach(function(btn){\r\n      if(btn.dataset.bound==='1') return;\r\n      btn.dataset.bound='1';\r\n      btn.addEventListener('click',function(){\r\n        const field=btn.dataset.field, value=Number(btn.dataset.value);\r\n        const group=btn.closest('.gpg-options');\r\n        if(group) group.querySelectorAll('.gpg-option').forEach(function(x){x.classList.remove('is-selected');});\r\n        btn.classList.add('is-selected');\r\n        state[field]=value;\r\n        if(field==='start' || field==='goal'){\r\n          const deduced=deduceLevel();\r\n          if(deduced && deduced!==state.level){\r\n            state.level=deduced;\r\n            state.newspace=null; state.tipologias=null; state.fuera=[]; state.aparte=[];\r\n            renderDynamicQuestions();\r\n          }\r\n        }\r\n        if(currentStep<TOTAL) setTimeout(function(){showStep(currentStep+1);},110);\r\n      });\r\n    });\r\n  }\r\n\r\n  \/* ===== ENV\u00cdO A ACTIVECAMPAIGN ====================================== *\/\r\n\r\n  function buildPayload(result){\r\n    return {\r\n      enviado:new Date().toISOString(),\r\n      contacto:state.lead,\r\n      dominio_email:(state.lead.email||'').split('@')[1] || '',\r\n      promocion:{nombre:state.promoName, ubicacion:state.promoPlace},\r\n      proyecto:{\r\n        viviendas:label('units',state.units), precio_medio:label('price',state.price),\r\n        volumen_venta_estimado:state.units*state.price,\r\n        comercializacion:label('timing',state.timing), dificultad_declarada:textoPain()\r\n      },\r\n      alcance:{\r\n        punto_de_partida:label('start',state.start), objetivo:label('goal',state.goal),\r\n        nivel_deducido:levels[state.level] ? levels[state.level].name : '',\r\n        espacios_nuevos_nivel_1:(state.newspace===null?'':label('newspace',state.newspace)),\r\n        tipologias:(state.tipologias===null?'':label('tipologias',state.tipologias)),\r\n        fuera_de_lo_habitual:state.fuera.map(function(k){return nombreDe(FUERA,k);}),\r\n        aparte:state.aparte.map(function(k){return nombreDe(APARTE[state.level]||[],k);})\r\n      },\r\n      resultado:result\r\n    };\r\n  }\r\n\r\n  function camposAC(result){\r\n    return {\r\n      promocion_nombre:state.promoName, promocion_ubicacion:state.promoPlace,\r\n      promocion_viviendas:label('units',state.units), promocion_precio:label('price',state.price),\r\n      promocion_lanzamiento:label('timing',state.timing), dificultad:textoPain(),\r\n      orient_tipo:result.tipo||'',\r\n      orient_nivel:result.nivel_resultante || result.nivel_minimo_posible || '',\r\n      orient_horquilla:result.horquilla||'',\r\n      orient_porcentaje:result.porcentaje_sobre_volumen||'',\r\n      orient_volumen:result.volumen_venta||'',\r\n      orient_titular:result.titular||'',\r\n      orient_razones:(result.razones ? result.razones.map(function(r){return '\u2014 '+r;}).join('<br><br>') : (result.motivo ? '\u2014 '+result.motivo : '')),\r\n      orient_significa:result.que_significa || (result.motivo ? result.motivo.replace(\/\\n\\n\/g,'<br><br>') : ''),\r\n      orient_lectura:result.lectura_dificultad||'',\r\n      empresa:state.lead.empresa||''\r\n    };\r\n  }\r\n\r\n  function sendLead(result){\r\n    window.GAYARRE_LAST_LEAD = buildPayload(result);\r\n    window.GAYARRE_LAST_CAMPOS = camposAC(result);\r\n    if(MODO_DEMO || !AC_U || !AC_F) return;\r\n\r\n    let frame = document.getElementById('gpg-ac-frame');\r\n    if(!frame){\r\n      frame = document.createElement('iframe');\r\n      frame.id = 'gpg-ac-frame'; frame.name = 'gpg-ac-frame';\r\n      frame.style.cssText = 'position:absolute;width:0;height:0;border:0;left:-9999px;';\r\n      document.body.appendChild(frame);\r\n    }\r\n    const form = document.createElement('form');\r\n    form.method='POST'; form.action=AC_ACTION; form.target='gpg-ac-frame'; form.style.display='none';\r\n    function campo(nombre, valor){\r\n      const i=document.createElement('input');\r\n      i.type='hidden'; i.name=nombre;\r\n      i.value=(valor===null || valor===undefined) ? '' : String(valor);\r\n      form.appendChild(i);\r\n    }\r\n    campo('u',AC_U); campo('f',AC_F); campo('s',''); campo('c','0'); campo('m','0'); campo('act','sub'); campo('v','2');\r\n    campo('p['+AC_LIST+']',AC_LIST); campo('status['+AC_LIST+']','1');\r\n    campo('email',state.lead.email||''); campo('fullname',state.lead.nombre||'');\r\n    campo('phone',state.lead.telefono||''); campo('customer_account_name',state.lead.empresa||'');\r\n\r\n    const v = window.GAYARRE_LAST_CAMPOS;\r\n    Object.keys(AC_FIELDS).forEach(function(k){ if(AC_FIELDS[k]) campo('field['+AC_FIELDS[k]+',0]', v[k]); });\r\n\r\n    window.GAYARRE_ULTIMO_ENVIO = Array.prototype.slice.call(form.querySelectorAll('input')).map(function(i){return i.name+' = '+i.value;});\r\n    document.body.appendChild(form);\r\n    try{ form.submit(); }catch(e){}\r\n    setTimeout(function(){ if(form.parentNode) form.parentNode.removeChild(form); }, 4000);\r\n  }\r\n\r\n  \/* ===== PUERTA ====================================================== *\/\r\n\r\n  function validateGate(){\r\n    const elName=root.querySelector('#gpg-lead-name'), elCompany=root.querySelector('#gpg-lead-company');\r\n    const elEmail=root.querySelector('#gpg-lead-email'), elPhone=root.querySelector('#gpg-lead-phone');\r\n    const name=elName.value.trim(), company=elCompany.value.trim(), email=elEmail.value.trim(), phone=elPhone.value.trim();\r\n    const consent=root.querySelector('#gpg-lead-consent').checked;\r\n    const err=root.querySelector('#gpg-gate-error');\r\n    [elName,elCompany,elEmail].forEach(function(el){ el.classList.remove('is-error'); });\r\n\r\n    const titulo='I have not sent your guide.';\r\n    let msg='', culpable=null;\r\n    if(!name || !company || !email){\r\n      msg='Some details are missing. Name, company and email are required.';\r\n      culpable = !name ? elName : (!company ? elCompany : elEmail);\r\n    }else if(!\/^[^\\s@]+@[^\\s@]+\\.[^\\s@]{2,}$\/.test(email)){\r\n      msg='That address does not look valid. Please check it and press the button again.';\r\n      culpable=elEmail;\r\n    }else if(DOMINIOS_BLOQUEADOS.indexOf(email.split('@')[1].toLowerCase())!==-1){\r\n      msg='I need your company email, not a free address. This is a professional enquiry about a specific development, and I want to know who you work for before I give you a figure. Please change the email and press the button again. If you disagree, you can write to me at juan@gayarre.eu or call me on +34 876 241 247.';\r\n      culpable=elEmail;\r\n    }else if(!consent){\r\n      msg='Please accept the privacy policy.';\r\n    }\r\n    if(msg){\r\n      err.innerHTML='<strong>'+titulo+'<\/strong>'+msg;\r\n      err.hidden=false;\r\n      if(culpable) culpable.classList.add('is-error');\r\n      err.scrollIntoView({behavior:'smooth', block:'center'});\r\n      if(culpable) setTimeout(function(){ culpable.focus({preventScroll:true}); }, 400);\r\n      return false;\r\n    }\r\n    err.hidden=true;\r\n    state.lead={nombre:name, empresa:company, email:email, telefono:phone};\r\n    try{ localStorage.setItem('gpg-lead', JSON.stringify(state.lead)); }catch(e){}\r\n    return true;\r\n  }\r\n\r\n  function leerRespuestas(){\r\n    state.fuera  = state.level===1 ? [] : getChecked('#gpg-q9-content');\r\n    state.aparte = getChecked(state.level===1 ? '#gpg-q9-content' : '#gpg-q10-content');\r\n  }\r\n\r\n  function openGate(){\r\n    leerRespuestas();\r\n    if(state.start===null || state.goal===null || !state.units || !state.price) return;\r\n    state.level=deduceLevel();\r\n    screenTo('#gpg-gate');\r\n  }\r\n\r\n  \/* ===== C\u00c1LCULO ===================================================== *\/\r\n\r\n  function calculate(){\r\n    if(!validateGate()) return;\r\n    state.level = deduceLevel();\r\n    leerRespuestas();\r\n    if(!state.level || !state.units || !state.price) return;\r\n\r\n    const volume = state.units * state.price;\r\n    const promo  = state.promoName || 'your development';\r\n    let resultLevel = state.level;\r\n    let reroute = null;\r\n\r\n    \/* Nivel 1 con espacios nuevos: sube a Nivel 2. *\/\r\n    if(state.level===1 && state.newspace===4){ resultLevel=2; reroute='up'; }\r\n\r\n    const tipExtra = Math.max(0,(state.tipologias||1)-1);\r\n    const hayFuera = state.fuera.length>0;\r\n    const hayExtras = hayFuera || tipExtra>0;\r\n\r\n    \/* Suelo: sin material, o con algo fuera de lo habitual, no se puede bajar a Nivel 1,\r\n       que solo trabaja sobre im\u00e1genes existentes. *\/\r\n    const floorLevel = (state.start===0 && reroute!=='up' && !hayExtras) ? 1 : 2;\r\n\r\n    \/* FILTRO de precio percibido *\/\r\n    if(state.price < PRECIO_MINIMO && state.units < VIVIENDAS_EXCEPCION){\r\n      sendLead({\r\n        tipo:'NO ENCAJE', email_a_enviar:'EMAIL-B \u00b7 no encaje', motivo_filtro:'precio percibido',\r\n        nivel_minimo_posible:levels[floorLevel].name, volumen_venta:millions(volume),\r\n        motivo:'With an average price in that range, '+(state.promoName||'this development')+\r\n          ' will generate around '+millions(volume)+' in sales.\\n\\n'+\r\n          'My work consists of raising what the buyer perceives a home to be worth, so that you sell it at a better price. '+\r\n          'In tightly priced product that headroom is short: the buyer has a ceiling and, however well the development is presented, they will not pay much more.\\n\\n'+\r\n          'Where it does pay off is in large developments, where even a small improvement per home adds up to a great deal. With this number of homes, that is not the case.'\r\n      });\r\n      showSent(); return;\r\n    }\r\n\r\n    \/* FILTRO de proporci\u00f3n, medido SOLO contra el precio base del nivel. *\/\r\n    const techo = volume * MAX_RATIO;\r\n    while(resultLevel>floorLevel && levels[resultLevel].base > techo){\r\n      resultLevel--;\r\n      reroute = (reroute==='up') ? 'up' : 'down';\r\n    }\r\n    if(levels[floorLevel].base > techo){\r\n      const margenJuego = Math.round(volume*0.05);\r\n      const costeMinimo = levels[floorLevel].base;\r\n      const pctSobreMargen = Math.round(costeMinimo\/margenJuego*100);\r\n      const pctLimite = Math.round(MAX_RATIO\/0.05*100);\r\n      sendLead({\r\n        tipo:'NO ENCAJE', email_a_enviar:'EMAIL-B \u00b7 no encaje',\r\n        nivel_minimo_posible:levels[floorLevel].name, volumen_venta:millions(volume),\r\n        motivo:(state.promoName||'This development')+' will generate around '+millions(volume)+' in sales.\\n\\n'+\r\n          'My work consists of making the development be perceived above what it would be without it, and that translates into the final price. '+\r\n          'Say that effect is worth 5%: in your case that would be around '+euro(margenJuego)+' at stake.\\n\\n'+\r\n          'The most contained intervention that your starting point allows has a base price of '+euro(costeMinimo)+\r\n          '. That is '+pctSobreMargen+'% of what you could recover.\\n\\n'+\r\n          'I take on work when that proportion stays below '+pctLimite+'%, because only then can I honestly tell you it pays for itself several times over. '+\r\n          'Here it does not, and forcing it would be taking advantage of your trust.'\r\n      });\r\n      showSent(); return;\r\n    }\r\n\r\n    const data = levels[resultLevel];\r\n\r\n    \/* Estimaci\u00f3n con extras, con el factor corrector. Solo la ve Juan al aprobar y,\r\n       si no pasa del tope, el promotor como cifra orientativa. *\/\r\n    \/* Desglose: cada extra a su precio, y un descuento por encargarlos juntos\r\n       (cada extra despu\u00e9s del primero cuenta un DECRECIENTE del anterior). *\/\r\n    function desglosar(nivel){\r\n      const cfg = EXTRAS[nivel];\r\n      const out = {lineas:[], lleno:0, real:0, descuento:0};\r\n      let f = 1;\r\n      if(cfg){\r\n      state.fuera.filter(function(k){return k!=='entorno';}).forEach(function(k){\r\n        out.lineas.push([nombreDe(FUERA,k), cfg.espacio]); out.lleno += cfg.espacio; out.real += cfg.espacio*f; f *= DECRECIENTE;\r\n      });\r\n      if(state.fuera.indexOf('entorno')!==-1){ out.lineas.push(['Complex setting', cfg.entorno]); out.lleno += cfg.entorno; out.real += cfg.entorno; }\r\n      let ft = 1;\r\n      for(let i=0;i<tipExtra;i++){\r\n        const pt = cfg.tipologia;\r\n        out.lineas.push([(i===0?'Second':'Additional') + ' unit type', pt]); out.lleno += pt; out.real += pt*ft; ft *= DECRECIENTE;\r\n      }\r\n      out.descuento = Math.round((out.lleno-out.real)\/100)*100;\r\n      }\r\n      \/* Lo de aparte, a su precio y sin descuento *\/\r\n      out.aparte = [];\r\n      state.aparte.forEach(function(k){\r\n        if(k==='dron') out.aparte.push(['Drone: flight plan and post-production (from, flight not included)', PRECIO_APARTE.dron]);\r\n        if(k==='360') out.aparte.push(['360\u00b0 tours (10 spaces, \u20ac250 each)', PRECIO_APARTE['360']]);\r\n        if(k==='plantas'){ const nt = state.tipologias||1; out.aparte.push(['Sales floor plans ('+nt+(nt===1?' typical plan':' typical plans')+', \u20ac250 each)', PRECIO_APARTE.plantas*nt]); }\r\n      });\r\n      out.sumaAparte = out.aparte.reduce(function(t,l){return t+l[1];},0);\r\n      return out;\r\n    }\r\n    function estimar(nivel){ const d = desglosar(nivel); return levels[nivel].base + d.lleno - (d.descuento||0) + d.sumaAparte; }\r\n    const estimado = estimar(resultLevel);\r\n    const desglose = desglosar(resultLevel);\r\n    const sobreTope = estimado > TOPE_CIFRA;\r\n    const hayAparte = state.aparte.length>0;\r\n    const ratio = estimado\/volume*100;\r\n    const numNivel = data.name.split(' ')[1];\r\n\r\n    let title;\r\n    if(sobreTope)             title = 'For '+promo+', the guide figure is above '+euro(TOPE_CIFRA)+'.';\r\n    else if(reroute==='up')        title = 'Because of its scope, '+promo+' is no longer a Level 1.';\r\n    else if(reroute==='down') title = 'For '+promo+', the sensible level is Level '+numNivel+'.';\r\n    else                      title = promo+' fits '+data.name+'.';\r\n\r\n    const reasons = [];\r\n    if(state.goal===3 && resultLevel===3){\r\n      reasons.push('You want to take this development as far as it can go. Level 3 is about commercial ambition: the communication is built around a story designed for that buyer, with a production that matches that level in every piece. That is why it is Level 3.');\r\n    }else if(state.goal===5 && resultLevel===3){\r\n      reasons.push('You compete with a great deal of similar supply, and the development has enough volume for a story of its own to pay off: it is the way to make the buyer stop comparing square metres and price and choose yours. That is why it is Level 3.');\r\n    }else if(state.goal===5 && !reroute && state.start!==0){\r\n      reasons.push('You compete with a great deal of similar supply. For the size of this development, a well-directed '+data.name+' is enough to set it apart: deciding what the buyer needs to see and showing it better than the others.');\r\n    }else if(resultLevel===1 && state.goal===3){\r\n      reasons.push('You want to take this development as far as it can go and you already have an image production. The way to get the most out of it is Level 1: we decide what the buyer needs to see, work on your images and make you the video you did not have.');\r\n    }else if(resultLevel===1 && state.goal===5){\r\n      reasons.push('You compete with a great deal of similar supply and you already have an image production. Level 1 puts it to work: we decide what the buyer needs to see to tell your development apart and show it better than the others, with the video you did not have.');\r\n    }else if(resultLevel===1){\r\n      reasons.push('You have an image production that works as a starting point, so there is no need to redo the development in 3D.');\r\n    }else if(state.start===0 && hayExtras && resultLevel===2 && !reroute){\r\n      reasons.push('You have images, but what you want to show goes beyond what appears in them. That means producing from scratch, which is why it is Level 2.');\r\n    }else if(reroute!=='up' && reroute!=='down'){\r\n      reasons.push('There is no material to start from, and the development stands on its own merits: it is enough to show it well, produced from scratch, without building a story.');\r\n    }\r\n    if(reroute==='up'){\r\n      reasons.push('You need to show spaces that do not exist in your current images. Level 1 only works on what has already been visualized, so it has to be produced from scratch.');\r\n    }\r\n    if(reroute==='down'){\r\n      reasons.push('For the sales volume of this development, the level your answers pointed to would be a disproportionate investment. I would rather tell you here than sell you a scope that will not pay you back.');\r\n      if(resultLevel===2) reasons.push('Level 2 is produced from scratch and shows the development well, without a story.');\r\n    }\r\n    if(state.level===1 && state.newspace===1 && resultLevel===1){\r\n      reasons.push('If, on reviewing your material, a space that needs to be shown is missing, it is produced from scratch and moves to Level 2. We will check this when we talk.');\r\n    }\r\n    if(state.timing===0) reasons.push('The development is already on the market: we would need to decide what to produce first so that it starts working as soon as possible.');\r\n    if(state.timing===3) reasons.push('With no launch date yet, there is room to produce in the right order rather than against the clock.');\r\n\r\n    \/* --- Qu\u00e9 significa: precio base, cuadro de vistas, incluye, no incluye y comparativa --- *\/\r\n    let significa;\r\n    if(!hayExtras && !hayAparte && resultLevel===1){\r\n      significa = 'We work on the images you already have, without adding new spaces, so there is nothing to add: '+\r\n        'your guide figure is the Level 1 base price, <strong>'+euro(data.base)+'<\/strong>. '+\r\n        'This is a guide, not a final quote. To be fine-tuned and effective, this investment calls for a meeting as soon as possible.<br><br>';\r\n    }else if(!hayExtras && !hayAparte){\r\n      significa = 'Everything you want to show is in the table below, which is what the base price covers. There is nothing to add: '+\r\n        'your guide figure is the '+data.name+' base price, <strong>'+euro(data.base)+'<\/strong>. '+\r\n        'This is a guide, not a final quote. To be fine-tuned and effective, this investment calls for a meeting as soon as possible.<br><br>';\r\n    }else{\r\n      const partes = [];\r\n      desglose.aparte.forEach(function(l){ partes.push(l[0].split(' (')[0].toLowerCase()); });\r\n      if(tipExtra) partes.push(state.tipologias>=3 ? 'three or more unit types' : 'a second unit type');\r\n      if(hayFuera) partes.push(listaNatural(state.fuera.map(function(k){return nombreDe(FUERA,k).toLowerCase();})));\r\n      {\r\n        const td='padding:5px 0;font-size:15px;color:#161616;';\r\n        let tabla = '<table role=\"presentation\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"border-collapse:collapse;width:100%;max-width:460px;margin:8px 0 16px 0;\">'+\r\n          '<tr><td style=\"'+td+'\">'+data.name+' base price<\/td><td align=\"right\" style=\"'+td+'\">'+euro(data.base)+'<\/td><\/tr>';\r\n        desglose.lineas.forEach(function(l){ tabla += '<tr><td style=\"'+td+'\">'+l[0]+'<\/td><td align=\"right\" style=\"'+td+'\">+ '+euro(l[1])+'<\/td><\/tr>'; });\r\n        if(desglose.descuento>0) tabla += '<tr><td style=\"'+td+'\">Discount for ordering everything together<\/td><td align=\"right\" style=\"'+td+'\">\u2212 '+euro(desglose.descuento)+'<\/td><\/tr>';\r\n        desglose.aparte.forEach(function(l){ tabla += '<tr><td style=\"'+td+'\">'+l[0]+'<\/td><td align=\"right\" style=\"'+td+'\">+ '+euro(l[1])+'<\/td><\/tr>'; });\r\n        const notaDron = state.aparte.indexOf('dron')!==-1 ? 'About the drone: the \u20ac2,000 is GAYARRE\\'s work, the flight plan coordinated with the rest of the production and the post-production of the sequences, which is very laborious. It is the minimum figure. The flight itself is separate: you can use your own aerial footage, have your pilot fly it following my directions, or use the pilot I work with.<br><br>' : '';\r\n        tabla += '<tr><td style=\"'+td+'border-top:1px solid #161616;font-weight:bold;\">Your guide figure<\/td><td align=\"right\" style=\"'+td+'border-top:1px solid #161616;font-weight:bold;\">'+euro(estimado)+'<\/td><\/tr><\/table>';\r\n        if(sobreTope){\r\n          significa = 'Your guide figure is above '+euro(TOPE_CIFRA)+'. '+data.name+' starts at '+euro(data.base)+', which covers what appears in the table below, '+\r\n            'and what you ticked on top of that is priced as follows'+(desglose.descuento>0 ? ', with the discount that applies for ordering everything together:' : ':')+tabla+\r\n            notaDron+'With this scope it is worth going through it together before closing anything: very often what really needs to be shown can be adjusted without losing impact. '+\r\n            'This is a guide, not a final quote. To be fine-tuned and effective, this investment calls for a meeting as soon as possible.<br><br>';\r\n        }else{\r\n          significa = 'The '+data.name+' base price covers '+(resultLevel===1?'the 12 images worked on from your material, the video and the clips':'what appears in the table below')+'. What you ticked on top of that is not included and is added, each item at its own price'+\r\n            (desglose.descuento>0 ? '. The more you order, the more of the work already done can be reused, which is why there is a discount:' : ':')+tabla+\r\n            notaDron+'This is a guide, not a final quote. To be fine-tuned and effective, this investment calls for a meeting as soon as possible.<br><br>';\r\n        }\r\n      }\r\n    }\r\n    \/* Las cuentas que justifican el nivel *\/\r\n    const enJuego = Math.round(volume*0.05\/1000)*1000;\r\n    const pctVol = (estimado\/volume*100).toLocaleString('en-GB',{minimumFractionDigits:2,maximumFractionDigits:2});\r\n    const pctRec = Math.round(estimado\/enJuego*100);\r\n    const veces = Math.floor(enJuego\/estimado);\r\n    const pctLim = (MAX_RATIO*100).toLocaleString('en-GB',{maximumFractionDigits:2});\r\n    significa += '<strong>The numbers<\/strong><br>'+\r\n      'Your development will generate around '+millions(volume)+' in sales. If well-planned visualization raises the price the buyer perceives by 5%, there is around '+euro(enJuego)+' at stake. '+\r\n      'This investment, '+euro(estimado)+', is '+pctVol+'% of the sales volume and '+pctRec+'% of what you can recover'+(veces>=2 ? ': it pays for itself around '+veces+' times over' : '')+'. '+\r\n      'I only propose a level when its base price stays below '+pctLim+'% of the sales volume, because that is when I can honestly tell you it pays for itself several times over.<br><br>';\r\n    if(resultLevel>1){\r\n      significa += '<strong>The images included, one by one<\/strong>'+cuadroCorreo(resultLevel);\r\n    }\r\n    const noIncluye = NO_INCLUYE[resultLevel].slice();\r\n    if(resultLevel>1 && hayExtras) noIncluye[2] = 'Other spaces beyond the table and more unit types: what you ticked is already priced above';\r\n    significa += '<strong>Also included<\/strong>'+ulHTML(INCLUYE[resultLevel])+\r\n      '<strong>Not included (quoted separately)<\/strong>'+ulHTML(noIncluye);\r\n\r\n    function precioOtroNivel(n){\r\n      const e = estimar(n);\r\n      return e===levels[n].base ? euro(e)+' base price' : euro(e)+': '+euro(levels[n].base)+' base plus '+euro(e-levels[n].base)+' for what you ticked';\r\n    }\r\n    if(resultLevel===1 && levels[2].base <= techo){\r\n      significa += '<strong>Your images are enough for Level 1. If you want to go beyond them, your development\\'s numbers also allow Level 2 ('+precioOtroNivel(2)+'), which is produced from scratch. This is what you would gain:<\/strong>'+ulHTML([\r\n        'Showing spaces that do not appear in your images today',\r\n        '24 images produced from scratch instead of 12 worked on from your material',\r\n        'A video of around 2 minutes instead of 1',\r\n        '8 social media clips instead of 4',\r\n        'The option to add sales floor plans and 360\u00b0 tours']);\r\n    }\r\n    if(resultLevel===2 && state.start!==0 && !sobreTope && levels[3].base <= techo){\r\n      const holgado = estimar(3) <= techo*0.75;\r\n      significa += '<strong>The numbers tell me that, although we can market your development with Level 2, its figures '+(holgado?'comfortably ':'')+\r\n        'allow Level 3 ('+precioOtroNivel(3)+'), with clearly better results. This is what you would gain:<\/strong>'+ulHTML([\r\n        'A story built around your buyer, so that they recognise themselves before seeing the development and remember it over the others',\r\n        '36 images instead of 24',\r\n        'A cinematic video of around 4 minutes instead of 2',\r\n        '12 social media clips instead of 8',\r\n        'Production priority']);\r\n    }\r\n    if(resultLevel===3){\r\n      significa += '<strong>If this figure seems too high, your development will also sell by moving down to Level 2 ('+precioOtroNivel(2)+'), but obviously not with the same sales effectiveness. This is what changes:<\/strong>'+ulHTML([\r\n        'No story: the video shows the development well, but does not build the narrative around the buyer',\r\n        '24 images instead of 36',\r\n        'A video of around 2 minutes instead of the 4-minute cinematic one',\r\n        '8 social media clips instead of 12',\r\n        'No production priority']);\r\n    }\r\n\r\n    sendLead({\r\n      tipo:'ORIENTACI\u00d3N', email_a_enviar:'EMAIL-A \u00b7 orientaci\u00f3n',\r\n      titular:title,\r\n      nivel_resultante:data.name,\r\n      desvio:(reroute==='up'?'moved up from Level 1':reroute==='down'?'moved down for proportionality':'none'),\r\n      horquilla:(((hayExtras||hayAparte) ? euro(estimado)+' (base price '+euro(data.base)+' plus what you ticked)' : euro(data.base)+' base price')),\r\n      estimacion_interna:euro(estimado),\r\n      volumen_venta:millions(volume),\r\n      porcentaje_sobre_volumen:(ratio.toLocaleString('en-GB',{minimumFractionDigits:2,maximumFractionDigits:2})+'%'),\r\n      razones:reasons,\r\n      que_significa:significa,\r\n      lectura_dificultad:lecturaPain()\r\n    });\r\n    showSent();\r\n  }\r\n\r\n  \/* ===== VISTA PREVIA (solo MODO_DEMO) =============================== *\/\r\n\r\n  function vistaPrevia(){\r\n    const c = window.GAYARRE_LAST_CAMPOS || {};\r\n    const noEncaje = c.orient_tipo==='NO ENCAJE';\r\n    let h = '<div class=\"gpg-demo\"><div class=\"gpg-demo-head\"><b>MODO DEMO \u00b7 LO QUE TE LLEGAR\u00cdA A TI PARA APROBAR<\/b>'+\r\n      '<span>Nivel: '+(c.orient_nivel||'')+' \u00b7 Estimaci\u00f3n interna: '+(((window.GAYARRE_LAST_LEAD||{}).resultado||{}).estimacion_interna||'\u2014')+'<\/span>'+\r\n      '<span>En la web real esto no lo ve el promotor. Te llega a ti en el aviso; si est\u00e1 bien, pones la etiqueta ORIENTADOR-APROBADO en su ficha y sale. '+\r\n      'Si algo est\u00e1 mal, corriges el campo en la ficha antes de aprobar.<\/span><\/div><div class=\"gpg-demo-body\">';\r\n    if(noEncaje){\r\n      h += '<p class=\"asunto\"><b>Asunto:<\/b> '+(c.promocion_nombre||'')+': I do not think we are the right fit<\/p>'+\r\n        '<h4>I do not think we are the right fit.<\/h4><p>'+(state.lead.nombre||'')+',<br>I am writing to tell you no, and I would rather do it now than after a meeting.<\/p>'+\r\n        '<p>'+c.orient_significa+'<\/p>';\r\n    }else{\r\n      h += '<p class=\"asunto\"><b>Asunto:<\/b> '+(c.promocion_nombre||'')+': the order of magnitude<\/p>'+\r\n        '<h4>'+c.orient_titular+'<\/h4><p>'+(state.lead.nombre||'')+',<br>here is what I mentioned about <b>'+(c.promocion_nombre||'')+'<\/b>. Your development will generate around '+c.orient_volumen+' in sales.<\/p>'+\r\n        '<div class=\"caja\"><b>'+c.orient_horquilla+'<\/b>'+(c.orient_porcentaje ? '<span>Approximately '+c.orient_porcentaje+' of your development\\'s sales volume.<\/span>' : '<span>Book a call and we will go through it.<\/span>')+'<\/div>'+\r\n        '<p class=\"lbl\">WHY THIS LEVEL<\/p><p>'+c.orient_razones+'<\/p>'+\r\n        '<p class=\"lbl\">WHAT IT MEANS<\/p><div>'+c.orient_significa+'<\/div>'+\r\n        (c.orient_lectura ? '<p class=\"lbl\">ABOUT WHAT YOU TOLD ME<\/p><p>'+c.orient_lectura+'<\/p>' : '');\r\n    }\r\n    return h + '<\/div><\/div>';\r\n  }\r\n\r\n  \/* ===== PANTALLA FINAL Y REINICIO =================================== *\/\r\n\r\n  function showSent(){\r\n    root.querySelector('#gpg-sent-email').textContent = state.lead.email || 'your inbox';\r\n    root.querySelector('#gpg-demo').innerHTML = MODO_DEMO ? vistaPrevia() : '';\r\n    const caja = root.querySelector('#gpg-debug');\r\n    if(MODO_PRUEBA){\r\n      let txt = (!AC_U || !AC_F) ? '\u26a0 AC_U \/ AC_F sin configurar: NO se ha enviado nada.\\n\\n' : (MODO_DEMO ? '\u26a0 MODO_DEMO: no se ha enviado nada.\\n\\n' : '\u2713 Enviado a ActiveCampaign\\n\\n');\r\n      txt += '\u2014\u2014\u2014 CAMPOS ENVIADOS \u2014\u2014\u2014\\n'+(window.GAYARRE_ULTIMO_ENVIO || ['(ninguno)']).join('\\n');\r\n      txt += '\\n\\n\u2014\u2014\u2014 DATOS COMPLETOS \u2014\u2014\u2014\\n'+JSON.stringify(window.GAYARRE_LAST_LEAD, null, 2);\r\n      caja.textContent = txt; caja.hidden = false;\r\n    }else{ caja.hidden = true; }\r\n    screenTo('#gpg-sent');\r\n  }\r\n\r\n  function reset(){\r\n    Object.assign(state,{promoName:'',promoPlace:'',units:null,price:null,timing:null,pain:[],\r\n      start:null,goal:null,level:null,newspace:null,tipologias:null,fuera:[],aparte:[],lead:{}});\r\n    currentStep=1; TOTAL=10;\r\n    root.querySelectorAll('.gpg-option').forEach(function(x){x.classList.remove('is-selected');});\r\n    root.querySelectorAll('#gpg-pain-checks input').forEach(function(x){x.checked=false; x.closest('.gpg-check').classList.remove('is-checked');});\r\n    root.querySelector('#gpg-pain-error').hidden=true;\r\n    [8,9,10].forEach(function(k){ pintarPaso(k,'','','','',false); });\r\n    root.querySelectorAll('#gpg-form .gpg-field input').forEach(function(x){x.value=''; x.classList.remove('is-error');});\r\n    root.querySelectorAll('#gpg-gate .gpg-field input').forEach(function(x){x.classList.remove('is-error');});\r\n    root.querySelector('#gpg-lead-consent').checked=false;\r\n    root.querySelector('#gpg-gate-error').hidden=true;\r\n    root.querySelector('#gpg-promo-error').hidden=true;\r\n    root.querySelector('#gpg-units-error').hidden=true;\r\n    root.querySelector('#gpg-demo').innerHTML='';\r\n    root.querySelectorAll('.gpg-step').forEach(function(el){el.classList.remove('is-active');});\r\n    root.querySelector('.gpg-step[data-step=\"1\"]').classList.add('is-active');\r\n    updateProgress();\r\n    screenTo('#gpg-intro');\r\n  }\r\n\r\n  \/* ===== EVENTOS ===================================================== *\/\r\n\r\n  root.querySelector('#gpg-vistas-intro').innerHTML = cuadroPortada();\r\n\r\n  root.querySelector('[data-promo-next]').addEventListener('click',function(){\r\n    const n=root.querySelector('#gpg-promo-name').value.trim();\r\n    const p=root.querySelector('#gpg-promo-place').value.trim();\r\n    const err=root.querySelector('#gpg-promo-error');\r\n    if(!n || !p){ err.hidden=false; return; }\r\n    err.hidden=true; state.promoName=n; state.promoPlace=p;\r\n    showStep(2);\r\n  });\r\n  root.querySelector('[data-units-next]').addEventListener('click',function(){\r\n    const el=root.querySelector('#gpg-units'), err=root.querySelector('#gpg-units-error');\r\n    const n=parseInt(String(el.value).replace(\/[^0-9]\/g,''),10);\r\n    if(!n || n<1 || n>3000){ err.hidden=false; el.classList.add('is-error'); return; }\r\n    err.hidden=true; el.classList.remove('is-error'); state.units=n; showStep(3);\r\n  });\r\n  root.querySelector('[data-pain-next]').addEventListener('click',function(){\r\n    state.pain = getChecked('#gpg-pain-checks').map(Number);\r\n    const err = root.querySelector('#gpg-pain-error');\r\n    if(!state.pain.length){ err.hidden=false; return; }\r\n    err.hidden=true; showStep(6);\r\n  });\r\n  root.querySelectorAll('[data-next]').forEach(function(b){\r\n    b.addEventListener('click',function(){\r\n      if(Number(b.dataset.next)>=TOTAL) openGate(); else showStep(Number(b.dataset.next)+1);\r\n    });\r\n  });\r\n  root.querySelector('[data-gate-back]').addEventListener('click',function(){ screenTo('#gpg-form'); showStep(TOTAL); });\r\n  root.querySelector('[data-start]').addEventListener('click',function(){ screenTo('#gpg-form'); showStep(1); });\r\n  root.querySelector('[data-prev]').addEventListener('click',function(){\r\n    if(currentStep>1) showStep(currentStep-1); else screenTo('#gpg-intro');\r\n  });\r\n  root.querySelector('[data-result]').addEventListener('click',calculate);\r\n  root.querySelectorAll('[data-restart]').forEach(function(b){b.addEventListener('click',reset);});\r\n  root.querySelectorAll('#gpg-gate .gpg-field input').forEach(function(el){\r\n    el.addEventListener('input',function(){ el.classList.remove('is-error'); });\r\n  });\r\n\r\n  \/* Datos del contacto recordados en este navegador (si ya rellen\u00f3 el orientador antes). *\/\r\n  try{\r\n    const g = JSON.parse(localStorage.getItem('gpg-lead') || 'null');\r\n    if(g){\r\n      root.querySelector('#gpg-lead-name').value    = g.nombre   || '';\r\n      root.querySelector('#gpg-lead-company').value = g.empresa  || '';\r\n      root.querySelector('#gpg-lead-email').value   = g.email    || '';\r\n      root.querySelector('#gpg-lead-phone').value   = g.telefono || '';\r\n    }\r\n  }catch(e){}\r\n\r\n  bindOptions();\r\n  updateProgress();\r\n\r\n  \/* Enlace del correo para rehacer la orientaci\u00f3n: ...\/en\/estimation\/?rehacer=1 *\/\r\n  try{\r\n    if(new URLSearchParams(window.location.search).has('rehacer')){\r\n      screenTo('#gpg-form'); showStep(1);\r\n    }\r\n  }catch(e){}\r\n})();\r\n<\/script>\r\n\t\t\t\t<\/div>\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>INVESTMENT GUIDE Get a sense of the numbers before we talk. This is not a quote. It is a guide so that, before booking a meeting, you know the order of magnitude of the visualization for your development. It works both ways: you can see whether we are the right fit for you, and we &#8230; <a title=\"ESTIMATION\" class=\"read-more\" href=\"https:\/\/www.gayarre.eu\/en\/estimation\/\" aria-label=\"Read more about ESTIMATION\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-86747","page","type-page","status-publish"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.gayarre.eu\/en\/wp-json\/wp\/v2\/pages\/86747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gayarre.eu\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.gayarre.eu\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.gayarre.eu\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gayarre.eu\/en\/wp-json\/wp\/v2\/comments?post=86747"}],"version-history":[{"count":29,"href":"https:\/\/www.gayarre.eu\/en\/wp-json\/wp\/v2\/pages\/86747\/revisions"}],"predecessor-version":[{"id":91471,"href":"https:\/\/www.gayarre.eu\/en\/wp-json\/wp\/v2\/pages\/86747\/revisions\/91471"}],"wp:attachment":[{"href":"https:\/\/www.gayarre.eu\/en\/wp-json\/wp\/v2\/media?parent=86747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}