{"id":7559,"date":"2026-08-19T15:43:02","date_gmt":"2026-08-19T13:43:02","guid":{"rendered":"https:\/\/icomuni.cat\/?page_id=7559"},"modified":"2026-08-19T15:43:04","modified_gmt":"2026-08-19T13:43:04","slug":"test-supervivencia-negocio","status":"publish","type":"page","link":"https:\/\/icomuni.cat\/es\/test-supervivencia-negocio\/","title":{"rendered":"Test Supervivencia Negocio"},"content":{"rendered":"<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div><div id=\"icom-test-negocio\">\n\n  <!-- =========================\n       PANTALLA INICIAL\n  ========================== -->\n  <section class=\"icom-screen is-active\" data-screen=\"start\">\n    <div class=\"icom-card icom-center\">\n\n      <div class=\"icom-kicker\">TEST PARA NEGOCIOS \u00b7 MENOS DE 2 MINUTOS<\/div>\n\n      <h1>\n        Dentro de 3 a\u00f1os,<br>\n        \u00bfseguir\u00e1 existiendo tu negocio?\n      <\/h1>\n\n      <p class=\"icom-intro\">\n        Descubre c\u00f3mo de preparado est\u00e1 tu negocio para competir en un mercado\n        donde la inteligencia artificial ya est\u00e1 cambiando las reglas.\n      <\/p>\n\n      <div class=\"icom-pill\">\n        12 preguntas \u00b7 Sin tecnicismos \u00b7 Diagn\u00f3stico personalizado\n      <\/div>\n\n      <button type=\"button\" class=\"icom-main-button\" id=\"icom-start\">\n        EMPEZAR EL TEST\n      <\/button>\n\n      <p class=\"icom-small\">\n        No queremos saber cu\u00e1nto sabes de IA.<br>\n        Queremos saber si tu negocio est\u00e1 preparado para lo que viene.\n      <\/p>\n\n    <\/div>\n  <\/section>\n\n\n  <!-- =========================\n       PREGUNTAS\n  ========================== -->\n  <section class=\"icom-screen\" data-screen=\"quiz\" hidden>\n    <div class=\"icom-card\">\n\n      <div class=\"icom-progress-info\">\n        <span id=\"icom-progress-text\">1 de 12<\/span>\n        <span>Vamos bien \ud83d\udc40<\/span>\n      <\/div>\n\n      <div class=\"icom-progress\">\n        <div id=\"icom-progress-bar\"><\/div>\n      <\/div>\n\n      <div class=\"icom-question-area\">\n        <h2 id=\"icom-question\"><\/h2>\n        <div id=\"icom-options\" class=\"icom-options\"><\/div>\n      <\/div>\n\n      <button type=\"button\" id=\"icom-back\" class=\"icom-back\">\n        \u2190 Volver\n      <\/button>\n\n    <\/div>\n  <\/section>\n\n\n  <!-- =========================\n       FORMULARIO LEAD\n  ========================== -->\n  <section class=\"icom-screen\" data-screen=\"lead\" hidden>\n    <div class=\"icom-card\">\n\n      <div class=\"icom-center\">\n        <div class=\"icom-icon\">\ud83d\udd12<\/div>\n\n        <div class=\"icom-kicker\">TU DIAGN\u00d3STICO EST\u00c1 CALCULADO<\/div>\n\n        <h2>Ahora viene la parte interesante<\/h2>\n\n        <p class=\"icom-intro-small\">\n          D\u00e9janos tu nombre y email para guardar tu resultado.\n          Tendr\u00e1s que confirmar tu direcci\u00f3n antes de poder acceder al diagn\u00f3stico completo.\n        <\/p>\n      <\/div>\n\n\n      <form\n        id=\"icom-lead-form\"\n        action=\"https:\/\/icomuni.ipzmarketing.com\/f\/6jwCVJXTork\"\n        method=\"post\"\n        target=\"icom-mailrelay-frame\"\n        accept-charset=\"UTF-8\"\n      >\n\n        <!-- Honeypot original de Mailrelay -->\n        <input\n          type=\"text\"\n          name=\"anotheremail\"\n          id=\"icom-anotheremail\"\n          class=\"icom-honeypot\"\n          tabindex=\"-1\"\n          autocomplete=\"new-password\"\n        >\n\n\n        <!-- DATOS VISIBLES -->\n\n        <div class=\"icom-field\">\n          <label for=\"icom-name\">Nombre<\/label>\n          <input\n            type=\"text\"\n            id=\"icom-name\"\n            name=\"subscriber[name]\"\n            autocomplete=\"name\"\n            required\n          >\n        <\/div>\n\n        <div class=\"icom-field\">\n          <label for=\"icom-email\">Email<\/label>\n          <input\n            type=\"email\"\n            id=\"icom-email\"\n            name=\"subscriber[email]\"\n            autocomplete=\"email\"\n            required\n          >\n        <\/div>\n\n\n        <!-- =========================\n             CAMPOS OCULTOS MAILRELAY\n        ========================== -->\n\n        <!-- 1 Puntuaci\u00f3n total -->\n        <input\n          type=\"hidden\"\n          id=\"cf-total\"\n          name=\"subscriber[custom_fields][1]\"\n        >\n\n        <!-- 2 Estrategia -->\n        <input\n          type=\"hidden\"\n          id=\"cf-estrategia\"\n          name=\"subscriber[custom_fields][2]\"\n        >\n\n        <!-- 3 Captaci\u00f3n -->\n        <input\n          type=\"hidden\"\n          id=\"cf-captacion\"\n          name=\"subscriber[custom_fields][3]\"\n        >\n\n        <!-- 4 Ventas -->\n        <input\n          type=\"hidden\"\n          id=\"cf-ventas\"\n          name=\"subscriber[custom_fields][4]\"\n        >\n\n        <!-- 5 Procesos -->\n        <input\n          type=\"hidden\"\n          id=\"cf-procesos\"\n          name=\"subscriber[custom_fields][5]\"\n        >\n\n        <!-- 6 Adaptaci\u00f3n -->\n        <input\n          type=\"hidden\"\n          id=\"cf-adaptacion\"\n          name=\"subscriber[custom_fields][6]\"\n        >\n\n        <!-- 7 IA -->\n        <input\n          type=\"hidden\"\n          id=\"cf-ia\"\n          name=\"subscriber[custom_fields][7]\"\n        >\n\n        <!-- 8 \u00c1rea d\u00e9bil -->\n        <input\n          type=\"hidden\"\n          id=\"cf-debil\"\n          name=\"subscriber[custom_fields][8]\"\n        >\n\n        <!-- 9 \u00c1rea fuerte -->\n        <input\n          type=\"hidden\"\n          id=\"cf-fuerte\"\n          name=\"subscriber[custom_fields][9]\"\n        >\n\n        <!-- 10 Consentimiento privacidad -->\n        <input\n          type=\"hidden\"\n          id=\"cf-privacidad\"\n          name=\"subscriber[custom_fields][10]\"\n          value=\"0\"\n        >\n\n        <!-- 11 Consentimiento comercial -->\n        <input\n          type=\"hidden\"\n          id=\"cf-comercial\"\n          name=\"subscriber[custom_fields][11]\"\n          value=\"0\"\n        >\n\n        <!-- 12 Token -->\n        <input\n          type=\"hidden\"\n          id=\"cf-token\"\n          name=\"subscriber[custom_fields][12]\"\n        >\n\n        <!-- Para reproducir el submit original -->\n        <input\n          type=\"hidden\"\n          name=\"commit\"\n          value=\"Enviar\"\n        >\n\n\n        <!-- =========================\n             CONSENTIMIENTOS\n        ========================== -->\n\n        <label class=\"icom-check\">\n          <input\n            type=\"checkbox\"\n            id=\"icom-privacy\"\n            required\n          >\n\n          <span>\n            He le\u00eddo y acepto la\n            <a\n              href=\"https:\/\/icomuni.cat\/es\/politica-de-privacidad-y-aviso-legal\/\"\n              target=\"_blank\"\n              rel=\"noopener\"\n            >Pol\u00edtica de Privacidad<\/a>\n            y el tratamiento de mis datos para gestionar el test y enviarme mi diagn\u00f3stico.\n          <\/span>\n        <\/label>\n\n\n        <label class=\"icom-check\">\n          <input\n            type=\"checkbox\"\n            id=\"icom-commercial\"\n          >\n\n          <span>\n            Quiero recibir consejos, recursos y comunicaciones de IcomuniCaT\n            sobre marketing, tecnolog\u00eda e inteligencia artificial que puedan\n            ayudarme a mejorar mi negocio.\n          <\/span>\n        <\/label>\n\n\n        <!-- PRIMERA CAPA -->\n        <div class=\"icom-legal\">\n          <strong>Responsable:<\/strong> Cristian Caballero Santos (IcomuniCaT).\n          <strong>Finalidad:<\/strong> gestionar tu participaci\u00f3n en el test,\n          calcular y enviarte tu diagn\u00f3stico y, \u00fanicamente si lo autorizas,\n          enviarte comunicaciones relacionadas con nuestros contenidos y servicios.\n          <strong>Legitimaci\u00f3n:<\/strong> consentimiento.\n          Puedes ejercer tus derechos de acceso, rectificaci\u00f3n, supresi\u00f3n y otros\n          derechos indicados en nuestra\n          <a\n            href=\"https:\/\/icomuni.cat\/es\/politica-de-privacidad-y-aviso-legal\/\"\n            target=\"_blank\"\n            rel=\"noopener\"\n          >Pol\u00edtica de Privacidad y Aviso Legal<\/a>.\n        <\/div>\n\n\n        <div id=\"icom-form-error\" class=\"icom-error\" hidden><\/div>\n\n\n        <button\n          type=\"submit\"\n          id=\"icom-submit\"\n          class=\"icom-main-button icom-full\"\n        >\n          DESBLOQUEAR MI DIAGN\u00d3STICO\n        <\/button>\n\n      <\/form>\n\n\n      <!-- Mailrelay responder\u00e1 dentro de este iframe -->\n      <iframe\n        name=\"icom-mailrelay-frame\"\n        id=\"icom-mailrelay-frame\"\n        title=\"Mailrelay\"\n        hidden\n      ><\/iframe>\n\n    <\/div>\n  <\/section>\n\n\n  <!-- =========================\n       EMAIL DE CONFIRMACI\u00d3N\n  ========================== -->\n  <section class=\"icom-screen\" data-screen=\"sent\" hidden>\n    <div class=\"icom-card icom-center\">\n\n      <div class=\"icom-icon\">\u2709\ufe0f<\/div>\n\n      <div class=\"icom-kicker\">TU RESULTADO EST\u00c1 A SALVO<\/div>\n\n      <h2>Solo falta un clic<\/h2>\n\n      <p class=\"icom-intro-small\">\n        Te hemos enviado un email a:\n      <\/p>\n\n      <div class=\"icom-email-box\" id=\"icom-sent-email\"><\/div>\n\n      <p class=\"icom-intro-small\">\n        Confirma tu direcci\u00f3n para poder recibir tu diagn\u00f3stico.\n      <\/p>\n\n      <div class=\"icom-advice\">\n        <strong>\u00bfNo encuentras el email?<\/strong><br>\n        Revisa tambi\u00e9n Spam o Promociones. A veces los correos se van de excursi\u00f3n.\n      <\/div>\n\n    <\/div>\n  <\/section>\n\n<\/div>\n\n\n<style>\n\n\/* ========================================================\n   VARIABLES\n======================================================== *\/\n\n#icom-test-negocio {\n  --icom-blue: #4666AD;\n  --icom-purple: #3B276A;\n  --icom-purple-light: #694B98;\n  --icom-coral: #EA5955;\n  --icom-teal: #009CA3;\n  --icom-dark: #1F3564;\n\n  --icom-text: #20242C;\n  --icom-muted: #68707D;\n  --icom-border: #E5E8EE;\n  --icom-soft: #F6F7FA;\n  --icom-white: #FFFFFF;\n\n  max-width: 850px;\n  margin: 40px auto;\n  color: var(--icom-text);\n  font-family: inherit;\n}\n\n\n\/* ========================================================\n   RESET LOCAL\n======================================================== *\/\n\n#icom-test-negocio *,\n#icom-test-negocio *::before,\n#icom-test-negocio *::after {\n  box-sizing: border-box;\n}\n\n#icom-test-negocio [hidden] {\n  display: none !important;\n}\n\n\n\/* ========================================================\n   TARJETA\n======================================================== *\/\n\n#icom-test-negocio .icom-card {\n  background: var(--icom-white);\n  border: 1px solid var(--icom-border);\n  border-radius: 24px;\n  padding: clamp(28px, 6vw, 60px);\n  box-shadow:\n    0 20px 60px rgba(31, 53, 100, .08);\n}\n\n#icom-test-negocio .icom-center {\n  text-align: center;\n}\n\n\n\/* ========================================================\n   TIPOGRAF\u00cdA\n======================================================== *\/\n\n#icom-test-negocio h1 {\n  margin: 0 0 24px;\n  color: var(--icom-dark);\n  font-size: clamp(38px, 7vw, 66px);\n  line-height: 1.02;\n  letter-spacing: -.045em;\n}\n\n#icom-test-negocio h2 {\n  margin: 0 0 28px;\n  color: var(--icom-dark);\n  font-size: clamp(29px, 5vw, 43px);\n  line-height: 1.12;\n  letter-spacing: -.03em;\n}\n\n#icom-test-negocio .icom-kicker {\n  display: inline-block;\n  margin-bottom: 20px;\n  color: var(--icom-blue);\n  font-size: 12px;\n  font-weight: 800;\n  letter-spacing: .09em;\n}\n\n#icom-test-negocio .icom-intro {\n  max-width: 650px;\n  margin: 0 auto 24px;\n  color: var(--icom-muted);\n  font-size: 19px;\n  line-height: 1.6;\n}\n\n#icom-test-negocio .icom-intro-small {\n  max-width: 610px;\n  margin: 0 auto 28px;\n  color: var(--icom-muted);\n  font-size: 17px;\n  line-height: 1.6;\n}\n\n#icom-test-negocio .icom-small {\n  margin: 26px 0 0;\n  color: var(--icom-muted);\n  font-size: 13px;\n  line-height: 1.55;\n}\n\n\n\/* ========================================================\n   ELEMENTOS\n======================================================== *\/\n\n#icom-test-negocio .icom-pill {\n  display: inline-block;\n  margin-bottom: 30px;\n  padding: 10px 17px;\n  background: var(--icom-soft);\n  border-radius: 100px;\n  color: var(--icom-dark);\n  font-size: 13px;\n  font-weight: 600;\n}\n\n#icom-test-negocio .icom-icon {\n  margin-bottom: 15px;\n  font-size: 38px;\n}\n\n\n\/* ========================================================\n   BOT\u00d3N PRINCIPAL\n======================================================== *\/\n\n#icom-test-negocio .icom-main-button {\n  appearance: none;\n  border: 0;\n  border-radius: 12px;\n  padding: 17px 28px;\n  background: var(--icom-coral);\n  color: white;\n  font-family: inherit;\n  font-size: 15px;\n  font-weight: 800;\n  letter-spacing: .02em;\n  cursor: pointer;\n  transition:\n    transform .15s ease,\n    box-shadow .15s ease,\n    opacity .15s ease;\n}\n\n#icom-test-negocio .icom-main-button:hover {\n  transform: translateY(-2px);\n  box-shadow:\n    0 10px 25px rgba(234, 89, 85, .25);\n}\n\n#icom-test-negocio .icom-main-button:disabled {\n  opacity: .55;\n  cursor: wait;\n  transform: none;\n  box-shadow: none;\n}\n\n#icom-test-negocio .icom-full {\n  width: 100%;\n  margin-top: 20px;\n}\n\n\n\/* ========================================================\n   PROGRESO\n======================================================== *\/\n\n#icom-test-negocio .icom-progress-info {\n  display: flex;\n  justify-content: space-between;\n  gap: 20px;\n  margin-bottom: 9px;\n  color: var(--icom-muted);\n  font-size: 12px;\n  font-weight: 700;\n}\n\n#icom-test-negocio .icom-progress {\n  width: 100%;\n  height: 8px;\n  margin-bottom: 45px;\n  overflow: hidden;\n  background: #EDF0F4;\n  border-radius: 999px;\n}\n\n#icom-test-negocio #icom-progress-bar {\n  width: 0;\n  height: 100%;\n  background: var(--icom-teal);\n  border-radius: inherit;\n  transition: width .25s ease;\n}\n\n\n\/* ========================================================\n   PREGUNTAS\n======================================================== *\/\n\n#icom-test-negocio .icom-options {\n  display: grid;\n  gap: 12px;\n}\n\n#icom-test-negocio .icom-option {\n  width: 100%;\n  padding: 17px 20px;\n  border: 2px solid var(--icom-border);\n  border-radius: 14px;\n  background: white;\n  color: var(--icom-text);\n  font-family: inherit;\n  font-size: 17px;\n  line-height: 1.35;\n  text-align: left;\n  cursor: pointer;\n  transition:\n    border .15s ease,\n    background .15s ease,\n    transform .15s ease;\n}\n\n#icom-test-negocio .icom-option:hover {\n  border-color: var(--icom-blue);\n  transform: translateX(3px);\n}\n\n#icom-test-negocio .icom-option.is-selected {\n  border-color: var(--icom-blue);\n  background: rgba(70, 102, 173, .06);\n  color: var(--icom-dark);\n  font-weight: 700;\n}\n\n#icom-test-negocio .icom-back {\n  margin-top: 30px;\n  padding: 4px 0;\n  border: 0;\n  background: none;\n  color: var(--icom-muted);\n  font-family: inherit;\n  font-size: 13px;\n  cursor: pointer;\n}\n\n\n\/* ========================================================\n   FORMULARIO\n======================================================== *\/\n\n#icom-test-negocio .icom-field {\n  margin-bottom: 18px;\n}\n\n#icom-test-negocio .icom-field label {\n  display: block;\n  margin-bottom: 7px;\n  color: var(--icom-dark);\n  font-size: 14px;\n  font-weight: 700;\n}\n\n#icom-test-negocio .icom-field input {\n  display: block;\n  width: 100%;\n  height: 52px;\n  padding: 0 15px;\n  border: 1px solid #C9CFD9;\n  border-radius: 10px;\n  background: white;\n  color: var(--icom-text);\n  font-family: inherit;\n  font-size: 16px;\n}\n\n#icom-test-negocio .icom-field input:focus {\n  outline: 3px solid rgba(70, 102, 173, .14);\n  border-color: var(--icom-blue);\n}\n\n\n\/* ========================================================\n   CHECKBOX\n======================================================== *\/\n\n#icom-test-negocio .icom-check {\n  display: flex;\n  align-items: flex-start;\n  gap: 11px;\n  margin: 18px 0;\n  color: var(--icom-text);\n  font-size: 13px;\n  line-height: 1.55;\n  cursor: pointer;\n}\n\n#icom-test-negocio .icom-check input {\n  width: 18px;\n  height: 18px;\n  margin: 2px 0 0;\n  flex: 0 0 auto;\n}\n\n#icom-test-negocio a {\n  color: var(--icom-blue);\n  text-decoration: underline;\n}\n\n\n\/* ========================================================\n   LEGAL\n======================================================== *\/\n\n#icom-test-negocio .icom-legal {\n  margin-top: 23px;\n  padding: 15px 17px;\n  border-radius: 10px;\n  background: var(--icom-soft);\n  color: var(--icom-muted);\n  font-size: 10.5px;\n  line-height: 1.55;\n}\n\n\n\/* ========================================================\n   ERROR\n======================================================== *\/\n\n#icom-test-negocio .icom-error {\n  margin-top: 20px;\n  padding: 14px 17px;\n  border-left: 4px solid var(--icom-coral);\n  border-radius: 6px 10px 10px 6px;\n  background: rgba(234, 89, 85, .08);\n  color: #8B302D;\n  font-size: 13px;\n  line-height: 1.5;\n}\n\n\n\/* ========================================================\n   HONEYPOT\n======================================================== *\/\n\n#icom-test-negocio .icom-honeypot {\n  position: absolute !important;\n  left: -99999px !important;\n  width: 1px !important;\n  height: 1px !important;\n  opacity: 0 !important;\n  pointer-events: none !important;\n}\n\n\n\/* ========================================================\n   EMAIL ENVIADO\n======================================================== *\/\n\n#icom-test-negocio .icom-email-box {\n  display: inline-block;\n  margin: -5px auto 25px;\n  padding: 10px 18px;\n  border-radius: 10px;\n  background: var(--icom-soft);\n  color: var(--icom-dark);\n  font-weight: 800;\n  word-break: break-word;\n}\n\n#icom-test-negocio .icom-advice {\n  max-width: 520px;\n  margin: 28px auto 0;\n  padding: 17px 20px;\n  border-radius: 12px;\n  background: var(--icom-soft);\n  color: var(--icom-muted);\n  font-size: 13px;\n  line-height: 1.55;\n}\n\n\n\/* ========================================================\n   RESPONSIVE\n======================================================== *\/\n\n@media (max-width: 600px) {\n\n  #icom-test-negocio {\n    margin: 20px auto;\n  }\n\n  #icom-test-negocio .icom-card {\n    padding: 29px 20px;\n    border-radius: 18px;\n  }\n\n  #icom-test-negocio h1 {\n    font-size: 39px;\n  }\n\n  #icom-test-negocio h2 {\n    font-size: 30px;\n  }\n\n  #icom-test-negocio .icom-intro {\n    font-size: 17px;\n  }\n\n  #icom-test-negocio .icom-option {\n    padding: 15px 16px;\n    font-size: 16px;\n  }\n\n  #icom-test-negocio .icom-progress {\n    margin-bottom: 32px;\n  }\n\n}\n<\/style>\n\n\n<script>\n(function () {\n\n  'use strict';\n\n\n  \/* ======================================================\n     CONFIGURACI\u00d3N\n  ====================================================== *\/\n\n  const API_URL = '\/wp-json\/icomuni\/v1\/test-diagnosis';\n\n\n  const questions = [\n\n    {\n      text: '\u00bfSabes d\u00f3nde quieres estar dentro de un a\u00f1o?',\n      options: [\n        ['S\u00ed, y tengo un plan.', 3],\n        ['Tengo una idea.', 2],\n        ['M\u00e1s o menos.', 1],\n        ['Sobrevivamos a este mes primero.', 0]\n      ]\n    },\n\n    {\n      text: '\u00bfSabes qu\u00e9 productos o servicios te dejan m\u00e1s beneficio?',\n      options: [\n        ['S\u00ed.', 3],\n        ['Aproximadamente.', 2],\n        ['S\u00e9 lo que facturo.', 1],\n        ['Nunca lo he mirado.', 0]\n      ]\n    },\n\n    {\n      text: 'Si dejaran de recomendarte, \u00bfseguir\u00edan llegando clientes?',\n      options: [\n        ['S\u00ed.', 3],\n        ['Algunos.', 2],\n        ['Muy pocos.', 1],\n        ['Ni de broma.', 0]\n      ]\n    },\n\n    {\n      text: 'Si necesitaras m\u00e1s clientes el pr\u00f3ximo mes\u2026',\n      options: [\n        ['S\u00e9 c\u00f3mo conseguirlos.', 3],\n        ['Tengo algunas opciones.', 2],\n        ['Tendr\u00eda que probar.', 1],\n        ['Probemos suerte.', 0]\n      ]\n    },\n\n    {\n      text: '\u00bfPor qu\u00e9 te eligen a ti y no a otro?',\n      options: [\n        ['Est\u00e1 muy claro.', 3],\n        ['Tenemos varias diferencias.', 2],\n        ['Por confianza y trato.', 1],\n        ['Buena pregunta.', 0]\n      ]\n    },\n\n    {\n      text: 'Cuando env\u00edas un presupuesto y desaparecen\u2026',\n      options: [\n        ['Tenemos seguimiento.', 3],\n        ['Insistimos alguna vez.', 2],\n        ['Depende.', 1],\n        ['Esperamos su regreso.', 0]\n      ]\n    },\n\n    {\n      text: 'Si ma\u00f1ana falta la persona que sabe hacerlo todo\u2026',\n      options: [\n        ['Seguimos funcionando.', 3],\n        ['Nos complicar\u00eda un poco.', 2],\n        ['Tendr\u00edamos problemas.', 1],\n        ['P\u00e1nico.', 0]\n      ]\n    },\n\n    {\n      text: 'Si hoy pierdes el ordenador principal\u2026',\n      options: [\n        ['Seguimos trabajando.', 3],\n        ['Nos fastidia bastante.', 2],\n        ['Tenemos un problema serio.', 1],\n        ['Me muero.', 0]\n      ]\n    },\n\n    {\n      text: 'Cuando cambia algo importante en tu sector\u2026',\n      options: [\n        ['Nos adelantamos.', 3],\n        ['Reaccionamos r\u00e1pido.', 2],\n        ['Esperamos a ver.', 1],\n        ['Cambiamos cuando toca por narices.', 0]\n      ]\n    },\n\n    {\n      text: '\u00bfHay algo importante que sabes que deber\u00edas cambiar?',\n      options: [\n        ['No.', 3],\n        ['Alguna cosa peque\u00f1a.', 2],\n        ['S\u00ed.', 1],\n        ['Llevo meses haci\u00e9ndome el loco.', 0]\n      ]\n    },\n\n    {\n      text: '\u00bfQu\u00e9 papel tiene la IA ahora mismo en tu negocio?',\n      options: [\n        ['Ya forma parte del trabajo.', 3],\n        ['La usamos bastante.', 2],\n        ['La probamos alguna vez.', 1],\n        ['Poco o ninguno.', 0]\n      ]\n    },\n\n    {\n      text: '\u00bfLa IA ya ha cambiado alg\u00fan proceso real?',\n      options: [\n        ['S\u00ed, varios.', 3],\n        ['S\u00ed, alguno.', 2],\n        ['Estamos en ello.', 1],\n        ['No.', 0]\n      ]\n    }\n\n  ];\n\n\n  \/* ======================================================\n     ESTADO\n  ====================================================== *\/\n\n  let currentQuestion = 0;\n  let sending = false;\n\n  const answers = new Array(questions.length).fill(null);\n\n\n  \/* ======================================================\n     ELEMENTOS\n  ====================================================== *\/\n\n  const root = document.getElementById('icom-test-negocio');\n\n  if (!root) {\n    return;\n  }\n\n  const startButton =\n    document.getElementById('icom-start');\n\n  const backButton =\n    document.getElementById('icom-back');\n\n  const questionElement =\n    document.getElementById('icom-question');\n\n  const optionsElement =\n    document.getElementById('icom-options');\n\n  const progressText =\n    document.getElementById('icom-progress-text');\n\n  const progressBar =\n    document.getElementById('icom-progress-bar');\n\n  const form =\n    document.getElementById('icom-lead-form');\n\n  const submitButton =\n    document.getElementById('icom-submit');\n\n  const privacyCheckbox =\n    document.getElementById('icom-privacy');\n\n  const commercialCheckbox =\n    document.getElementById('icom-commercial');\n\n  const errorBox =\n    document.getElementById('icom-form-error');\n\n\n  \/* ======================================================\n     PANTALLAS\n  ====================================================== *\/\n\n  function showScreen(screenName) {\n\n    root\n      .querySelectorAll('.icom-screen')\n      .forEach(function (screen) {\n\n        const active =\n          screen.dataset.screen === screenName;\n\n        screen.hidden = !active;\n\n      });\n\n\n    setTimeout(function () {\n\n      root.scrollIntoView({\n        behavior: 'smooth',\n        block: 'start'\n      });\n\n    }, 30);\n\n  }\n\n\n  \/* ======================================================\n     PREGUNTA\n  ====================================================== *\/\n\n  function renderQuestion() {\n\n    const question =\n      questions[currentQuestion];\n\n\n    progressText.textContent =\n      (currentQuestion + 1) +\n      ' de ' +\n      questions.length;\n\n\n    progressBar.style.width =\n      (\n        ((currentQuestion + 1) \/ questions.length)\n        * 100\n      ) + '%';\n\n\n    questionElement.textContent =\n      question.text;\n\n\n    optionsElement.innerHTML = '';\n\n\n    question.options.forEach(function (option) {\n\n      const text = option[0];\n      const value = option[1];\n\n      const button =\n        document.createElement('button');\n\n\n      button.type = 'button';\n      button.className = 'icom-option';\n      button.textContent = text;\n\n\n      if (answers[currentQuestion] === value) {\n        button.classList.add('is-selected');\n      }\n\n\n      button.addEventListener(\n        'click',\n        function () {\n\n          answers[currentQuestion] = value;\n\n\n          optionsElement\n            .querySelectorAll('.icom-option')\n            .forEach(function (item) {\n              item.classList.remove('is-selected');\n            });\n\n\n          button.classList.add('is-selected');\n\n\n          setTimeout(function () {\n\n            if (\n              currentQuestion <\n              questions.length - 1\n            ) {\n\n              currentQuestion++;\n              renderQuestion();\n\n            } else {\n\n              showScreen('lead');\n\n            }\n\n          }, 170);\n\n        }\n      );\n\n\n      optionsElement.appendChild(button);\n\n    });\n\n\n    backButton.style.visibility =\n      currentQuestion === 0\n        ? 'hidden'\n        : 'visible';\n\n  }\n\n\n  \/* ======================================================\n     INICIO\n  ====================================================== *\/\n\n  startButton.addEventListener(\n    'click',\n    function () {\n\n      currentQuestion = 0;\n      renderQuestion();\n      showScreen('quiz');\n\n    }\n  );\n\n\n  \/* ======================================================\n     VOLVER\n  ====================================================== *\/\n\n  backButton.addEventListener(\n    'click',\n    function () {\n\n      if (currentQuestion > 0) {\n\n        currentQuestion--;\n        renderQuestion();\n\n      }\n\n    }\n  );\n\n\n  \/* ======================================================\n     ERROR\n  ====================================================== *\/\n\n  function showError(message) {\n\n    errorBox.textContent = message;\n    errorBox.hidden = false;\n\n  }\n\n\n  function hideError() {\n\n    errorBox.hidden = true;\n    errorBox.textContent = '';\n\n  }\n\n\n  \/* ======================================================\n     ENVIAR TEST\n  ====================================================== *\/\n\n  form.addEventListener(\n    'submit',\n    async function (event) {\n\n      event.preventDefault();\n\n\n      if (sending) {\n        return;\n      }\n\n\n      hideError();\n\n\n      \/* -------------------------\n         Validaci\u00f3n navegador\n      -------------------------- *\/\n\n      if (!form.reportValidity()) {\n        return;\n      }\n\n\n      \/* -------------------------\n         Honeypot\n      -------------------------- *\/\n\n      const honeypot =\n        document\n          .getElementById('icom-anotheremail')\n          .value\n          .trim();\n\n\n      if (honeypot !== '') {\n\n        \/*\n         * Un bot ha rellenado el campo invisible.\n         * Simulamos \u00e9xito y no hacemos nada.\n         *\/\n\n        showScreen('sent');\n        return;\n\n      }\n\n\n      \/* -------------------------\n         12 preguntas respondidas\n      -------------------------- *\/\n\n      if (\n        answers.some(function (answer) {\n          return answer === null;\n        })\n      ) {\n\n        showScreen('quiz');\n\n        showError(\n          'Falta alguna respuesta del test.'\n        );\n\n        return;\n\n      }\n\n\n      \/* -------------------------\n         Privacidad\n      -------------------------- *\/\n\n      if (!privacyCheckbox.checked) {\n\n        privacyCheckbox.focus();\n\n        showError(\n          'Necesitamos que aceptes la Pol\u00edtica de Privacidad para poder guardar y enviarte el diagn\u00f3stico.'\n        );\n\n        return;\n\n      }\n\n\n      sending = true;\n\n      submitButton.disabled = true;\n      submitButton.textContent =\n        'PREPARANDO TU DIAGN\u00d3STICO\u2026';\n\n\n      try {\n\n\n        \/* ==================================================\n           1. GUARDAR DIAGN\u00d3STICO EN WORDPRESS\n        ================================================== *\/\n\n        const apiResponse =\n          await fetch(\n            API_URL,\n            {\n              method: 'POST',\n\n              headers: {\n                'Content-Type':\n                  'application\/json'\n              },\n\n              body: JSON.stringify({\n                answers: answers\n              })\n            }\n          );\n\n\n        let apiData = null;\n\n\n        try {\n\n          apiData =\n            await apiResponse.json();\n\n        } catch (parseError) {\n\n          throw new Error(\n            'WordPress ha devuelto una respuesta que no podemos interpretar.'\n          );\n\n        }\n\n\n        if (\n          !apiResponse.ok ||\n          !apiData ||\n          apiData.success !== true ||\n          !apiData.token ||\n          !apiData.result\n        ) {\n\n          throw new Error(\n            apiData && apiData.message\n              ? apiData.message\n              : 'No hemos podido guardar el diagn\u00f3stico.'\n          );\n\n        }\n\n\n        const result =\n          apiData.result;\n\n\n        \/* ==================================================\n           2. RELLENAR MAILRELAY\n        ================================================== *\/\n\n        document\n          .getElementById('cf-total')\n          .value =\n            result.total;\n\n\n        document\n          .getElementById('cf-estrategia')\n          .value =\n            result.areas.estrategia;\n\n\n        document\n          .getElementById('cf-captacion')\n          .value =\n            result.areas.captacion;\n\n\n        document\n          .getElementById('cf-ventas')\n          .value =\n            result.areas.ventas;\n\n\n        document\n          .getElementById('cf-procesos')\n          .value =\n            result.areas.procesos;\n\n\n        document\n          .getElementById('cf-adaptacion')\n          .value =\n            result.areas.adaptacion;\n\n\n        document\n          .getElementById('cf-ia')\n          .value =\n            result.areas.ia;\n\n\n        document\n          .getElementById('cf-debil')\n          .value =\n            result.weakLabel;\n\n\n        document\n          .getElementById('cf-fuerte')\n          .value =\n            result.strongLabel;\n\n\n        document\n          .getElementById('cf-privacidad')\n          .value = 1;\n\n\n        document\n          .getElementById('cf-comercial')\n          .value =\n            commercialCheckbox.checked\n              ? 1\n              : 0;\n\n\n        document\n          .getElementById('cf-token')\n          .value =\n            apiData.token;\n\n\n        \/* ==================================================\n           3. GUARDAR EMAIL PARA PANTALLA SIGUIENTE\n        ================================================== *\/\n\n        const email =\n          document\n            .getElementById('icom-email')\n            .value\n            .trim();\n\n\n        \/* ==================================================\n           4. ENVIAR A MAILRELAY\n        ================================================== *\/\n\n        HTMLFormElement\n          .prototype\n          .submit\n          .call(form);\n\n\n        \/* ==================================================\n           5. MOSTRAR PANTALLA CONFIRMACI\u00d3N\n        ================================================== *\/\n\n        setTimeout(function () {\n\n          document\n            .getElementById('icom-sent-email')\n            .textContent =\n              email;\n\n\n          showScreen('sent');\n\n\n          sending = false;\n\n          submitButton.disabled = false;\n\n          submitButton.textContent =\n            'DESBLOQUEAR MI DIAGN\u00d3STICO';\n\n        }, 800);\n\n\n      } catch (error) {\n\n\n        console.error(\n          'IcomuniCaT Test:',\n          error\n        );\n\n\n        showError(\n          'Ha habido un problema guardando tu diagn\u00f3stico. ' +\n          'No hemos enviado tus datos todav\u00eda. ' +\n          'Prueba de nuevo en unos segundos.'\n        );\n\n\n        sending = false;\n\n        submitButton.disabled = false;\n\n        submitButton.textContent =\n          'DESBLOQUEAR MI DIAGN\u00d3STICO';\n\n      }\n\n    }\n  );\n\n})();\n<\/script>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-7559","page","type-page","status-publish","no-featured-image-padding"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/icomuni.cat\/es\/wp-json\/wp\/v2\/pages\/7559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/icomuni.cat\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/icomuni.cat\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/icomuni.cat\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/icomuni.cat\/es\/wp-json\/wp\/v2\/comments?post=7559"}],"version-history":[{"count":1,"href":"https:\/\/icomuni.cat\/es\/wp-json\/wp\/v2\/pages\/7559\/revisions"}],"predecessor-version":[{"id":7560,"href":"https:\/\/icomuni.cat\/es\/wp-json\/wp\/v2\/pages\/7559\/revisions\/7560"}],"wp:attachment":[{"href":"https:\/\/icomuni.cat\/es\/wp-json\/wp\/v2\/media?parent=7559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}