{"id":143,"date":"2026-07-30T10:07:30","date_gmt":"2026-07-30T10:07:30","guid":{"rendered":"https:\/\/sentiranimal.com\/?page_id=143"},"modified":"2026-10-01T01:29:00","modified_gmt":"2026-10-01T01:29:00","slug":"encuentra-el-servicio-ideal-para-tu-perro","status":"publish","type":"page","link":"https:\/\/sentiranimal.com\/en\/encuentra-el-servicio-ideal-para-tu-perro\/","title":{"rendered":"Encuentra el servicio ideal para tu perro"},"content":{"rendered":"<div class=\"et_pb_section_0 et_pb_section et_section_regular et_flex_section\">\n<div class=\"et_pb_row_0 et_pb_row et_flex_row\">\n<div class=\"et_pb_column_0 et_pb_column et-last-child et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_24_24 et_flex_column_24_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_code_0 et_pb_code et_pb_module\"><div class=\"et_pb_code_inner\"><!-- SENTIR ANIMAL: QUIZ PARA ENCONTRAR EL SERVICIO -->\n<div id=\"sa-service-quiz\" class=\"saq\">\n  <div class=\"saq-card\">\n\n    <div class=\"saq-progress-wrap\" aria-hidden=\"true\">\n      <div class=\"saq-progress\"><span><\/span><\/div>\n      <div class=\"saq-progress-text\"><\/div>\n    <\/div>\n\n    <section class=\"saq-screen saq-intro is-active\">\n      <span class=\"saq-kicker\"><\/span>\n      <h1><\/h1>\n      <p class=\"saq-lead\"><\/p>\n\n      <button type=\"button\" class=\"saq-btn saq-start\"><\/button>\n\n      <p class=\"saq-time\"><\/p>\n    <\/section>\n\n    <section class=\"saq-screen saq-question\" aria-live=\"polite\">\n      <h2><\/h2>\n\n      <div class=\"saq-answers\"><\/div>\n\n      <div class=\"saq-nav\">\n        <button type=\"button\" class=\"saq-back\"><\/button>\n        <button type=\"button\" class=\"saq-btn saq-next\" disabled><\/button>\n      <\/div>\n    <\/section>\n\n    <section class=\"saq-screen saq-result\" aria-live=\"polite\">\n      <span class=\"saq-kicker\"><\/span>\n      <h2><\/h2>\n\n      <div class=\"saq-result-list\"><\/div>\n\n      <div class=\"saq-result-actions\">\n        <button type=\"button\" class=\"saq-restart\"><\/button>\n      <\/div>\n\n      <p class=\"saq-note\"><\/p>\n    <\/section>\n\n  <\/div>\n<\/div>\n\n<style>\n  #sa-service-quiz {\n    --saq-navy: #294f79;\n    --saq-yellow: #ffe17c;\n    --saq-coral: #e7645d;\n    --saq-cream: #fff9f2;\n    --saq-ink: #2d2d2d;\n    --saq-muted: #686868;\n\n    max-width: 820px;\n    margin: 36px auto;\n    color: var(--saq-ink);\n    font-family: inherit;\n  }\n\n  #sa-service-quiz * {\n    box-sizing: border-box;\n  }\n\n  #sa-service-quiz .saq-card {\n    padding: clamp(26px, 5vw, 58px);\n    border: 1px solid rgba(41, 79, 121, 0.12);\n    border-radius: 28px;\n    background: var(--saq-cream);\n    box-shadow: 0 18px 55px rgba(41, 79, 121, 0.12);\n  }\n\n  #sa-service-quiz .saq-screen {\n    display: none;\n  }\n\n  #sa-service-quiz .saq-screen.is-active {\n    display: block;\n    animation: saqIn 0.28s ease;\n  }\n\n  @keyframes saqIn {\n    from {\n      opacity: 0;\n      transform: translateY(8px);\n    }\n\n    to {\n      opacity: 1;\n      transform: translateY(0);\n    }\n  }\n\n  #sa-service-quiz .saq-kicker {\n    display: inline-block;\n    margin-bottom: 12px;\n    color: var(--saq-coral);\n    font-size: 13px;\n    font-weight: 800;\n    letter-spacing: 0.12em;\n    text-transform: uppercase;\n  }\n\n  #sa-service-quiz h1,\n  #sa-service-quiz h2,\n  #sa-service-quiz h3 {\n    margin: 0 0 18px;\n    color: var(--saq-ink);\n    line-height: 1.12;\n  }\n\n  #sa-service-quiz h1 {\n    font-size: clamp(34px, 6vw, 58px);\n  }\n\n  #sa-service-quiz h2 {\n    font-size: clamp(28px, 4vw, 42px);\n  }\n\n  #sa-service-quiz h3 {\n    color: var(--saq-navy);\n    font-size: clamp(25px, 3.4vw, 36px);\n  }\n\n  #sa-service-quiz p {\n    font-size: 18px;\n    line-height: 1.65;\n  }\n\n  #sa-service-quiz .saq-lead {\n    max-width: 680px;\n    margin: 0 0 28px;\n  }\n\n  #sa-service-quiz .saq-time,\n  #sa-service-quiz .saq-note {\n    margin: 15px 0 0;\n    color: var(--saq-muted);\n    font-size: 14px;\n  }\n\n  #sa-service-quiz button,\n  #sa-service-quiz a {\n    font-family: inherit;\n  }\n\n  #sa-service-quiz .saq-btn {\n    display: inline-flex;\n    align-items: center;\n    justify-content: center;\n    min-height: 54px;\n    padding: 14px 27px;\n    border: 0;\n    border-radius: 999px;\n    background: var(--saq-navy);\n    color: var(--saq-yellow) !important;\n    font-size: 14px;\n    font-weight: 800;\n    letter-spacing: 0.08em;\n    line-height: 1.2;\n    text-align: center;\n    text-decoration: none;\n    text-transform: uppercase;\n    cursor: pointer;\n    transition:\n      transform 0.18s ease,\n      box-shadow 0.18s ease,\n      opacity 0.18s ease;\n  }\n\n  #sa-service-quiz .saq-btn:hover {\n    transform: translateY(-2px);\n    box-shadow: 0 10px 22px rgba(41, 79, 121, 0.2);\n  }\n\n  #sa-service-quiz .saq-btn:disabled {\n    opacity: 0.42;\n    cursor: not-allowed;\n    transform: none;\n    box-shadow: none;\n  }\n\n  #sa-service-quiz .saq-progress-wrap {\n    display: none;\n    margin-bottom: 30px;\n  }\n\n  #sa-service-quiz .saq-progress {\n    height: 9px;\n    overflow: hidden;\n    border-radius: 999px;\n    background: rgba(41, 79, 121, 0.12);\n  }\n\n  #sa-service-quiz .saq-progress span {\n    display: block;\n    width: 0;\n    height: 100%;\n    border-radius: inherit;\n    background: linear-gradient(\n      90deg,\n      var(--saq-coral),\n      var(--saq-yellow)\n    );\n    transition: width 0.25s ease;\n  }\n\n  #sa-service-quiz .saq-progress-text {\n    margin-top: 8px;\n    color: var(--saq-muted);\n    font-size: 13px;\n    text-align: right;\n  }\n\n  #sa-service-quiz .saq-answers {\n    display: grid;\n    gap: 13px;\n    margin: 25px 0 30px;\n  }\n\n  #sa-service-quiz .saq-answer {\n    width: 100%;\n    padding: 17px 19px;\n    border: 2px solid rgba(41, 79, 121, 0.14);\n    border-radius: 16px;\n    background: #ffffff;\n    color: var(--saq-ink);\n    font-size: 16px;\n    line-height: 1.45;\n    text-align: left;\n    cursor: pointer;\n    transition:\n      border-color 0.16s ease,\n      background 0.16s ease,\n      transform 0.16s ease;\n  }\n\n  #sa-service-quiz .saq-answer:hover {\n    border-color: rgba(41, 79, 121, 0.42);\n    transform: translateY(-1px);\n  }\n\n  #sa-service-quiz .saq-answer.is-selected {\n    border-color: var(--saq-navy);\n    background: rgba(255, 225, 124, 0.28);\n    box-shadow: 0 0 0 3px rgba(41, 79, 121, 0.06);\n  }\n\n  #sa-service-quiz .saq-nav,\n  #sa-service-quiz .saq-result-actions {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    gap: 15px;\n    flex-wrap: wrap;\n  }\n\n  #sa-service-quiz .saq-back,\n  #sa-service-quiz .saq-restart {\n    padding: 10px 2px;\n    border: 0;\n    background: transparent;\n    color: var(--saq-navy);\n    font-size: 15px;\n    font-weight: 700;\n    text-decoration: underline;\n    cursor: pointer;\n  }\n\n  #sa-service-quiz .saq-result-list {\n    display: grid;\n    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));\n    gap: 18px;\n    margin: 26px 0;\n  }\n\n  #sa-service-quiz .saq-result-card {\n    display: flex;\n    flex-direction: column;\n    align-items: flex-start;\n    padding: 24px;\n    border: 1px solid rgba(39, 78, 124, 0.18);\n    border-radius: 18px;\n    background: #ffffff;\n    box-shadow: 0 10px 28px rgba(39, 78, 124, 0.08);\n  }\n\n  #sa-service-quiz .saq-result-card h3 {\n    margin: 0 0 12px;\n  }\n\n  #sa-service-quiz .saq-result-card p {\n    flex: 1;\n    margin: 0 0 20px;\n  }\n\n  @media (max-width: 600px) {\n    #sa-service-quiz {\n      margin: 18px auto;\n    }\n\n    #sa-service-quiz .saq-card {\n      padding: 25px 20px;\n      border-radius: 20px;\n    }\n\n    #sa-service-quiz p {\n      font-size: 16px;\n    }\n\n    #sa-service-quiz .saq-btn,\n    #sa-service-quiz .saq-result-actions {\n      width: 100%;\n    }\n\n    #sa-service-quiz .saq-result-card .saq-btn {\n      text-align: center;\n    }\n\n    #sa-service-quiz .saq-nav .saq-next {\n      flex: 1;\n    }\n\n    #sa-service-quiz .saq-result-actions {\n      align-items: stretch;\n      flex-direction: column;\n    }\n  }\n<\/style>\n\n<script>\n(function () {\n  const root = document.getElementById(\"sa-service-quiz\");\n\n  if (!root || root.dataset.ready === \"1\") {\n    return;\n  }\n\n  root.dataset.ready = \"1\";\n\n  const isEnglish = (document.documentElement.lang || \"\")\n    .toLowerCase()\n    .startsWith(\"en\");\n\n  const lang = isEnglish ? \"en\" : \"es\";\n\n  const content = {\n    es: {\n      kicker: \"Quiz de orientaci\u00f3n \u00b7 2 minutos\",\n      title: \"\u00bfQu\u00e9 necesita tu perro en este momento?\",\n      lead:\n        \"Cada perro y cada familia tienen necesidades diferentes. \" +\n        \"Responde 5 preguntas r\u00e1pidas y descubre qu\u00e9 tipo de acompa\u00f1amiento \" +\n        \"se adapta mejor a tus objetivos.\",\n\n      start: \"Comenzar el quiz\",\n      time: \"Sin respuestas correctas o incorrectas.\",\n\n      progress: function (number, total) {\n        return \"Pregunta \" + number + \" de \" + total;\n      },\n\n      next: \"Siguiente\",\n      resultButton: \"Ver mi recomendaci\u00f3n\",\n      back: \"Anterior\",\n\n      resultKicker: \"Tu recomendaci\u00f3n\",\n\n      oneResult:\n        \"El servicio que mejor se adapta a ti y a tu perro es:\",\n\n      twoResults:\n        \"Estos dos servicios pueden adaptarse a las necesidades de tu familia:\",\n\n      restart: \"Volver a realizar el quiz\",\n\n      note:\n        \"Esta recomendaci\u00f3n es orientativa. El servicio definitivo se \" +\n        \"confirmar\u00e1 despu\u00e9s de conocer mejor tu caso.\",\n\n      questions: [\n        {\n          q: \"\u00bfQu\u00e9 describe mejor la etapa actual de tu perro?\",\n          a: [\n            [\n              \"Es un cachorro y queremos empezar su educaci\u00f3n correctamente.\",\n              \"puppy\"\n            ],\n            [\n              \"Ya tiene bases, pero necesita practicar habilidades para la vida diaria.\",\n              \"functional\"\n            ],\n            [\n              \"Necesitamos orientaci\u00f3n sobre una situaci\u00f3n o comportamiento espec\u00edfico.\",\n              \"personal\"\n            ],\n            [\n              \"No estoy seguro de lo que necesita.\",\n              \"personal\"\n            ]\n          ]\n        },\n\n        {\n          q: \"\u00bfCu\u00e1l es tu principal objetivo?\",\n          a: [\n            [\n              \"Crear rutinas, h\u00e1bitos y buenas bases desde el comienzo.\",\n              \"puppy\"\n            ],\n            [\n              \"Mejorar el paseo, el llamado, el autocontrol y otras habilidades pr\u00e1cticas.\",\n              \"functional\"\n            ],\n            [\n              \"Comprender mejor su comportamiento y recibir un plan adaptado.\",\n              \"personal\"\n            ],\n            [\n              \"Que mi perro tenga actividad f\u00edsica, trabajo mental y entrenamiento aunque yo tenga poco tiempo.\",\n              \"home\"\n            ]\n          ]\n        },\n\n        {\n          q: \"\u00bfQu\u00e9 situaci\u00f3n te gustar\u00eda trabajar principalmente?\",\n          a: [\n            [\n              \"Ir al ba\u00f1o, morder, dormir, socializaci\u00f3n o adaptaci\u00f3n al hogar.\",\n              \"puppy\"\n            ],\n            [\n              \"Tirar de la correa, no responder al llamado o falta de autocontrol.\",\n              \"functional\"\n            ],\n            [\n              \"Miedo, ansiedad, reactividad, agresividad o dificultad para quedarse solo.\",\n              \"personal\"\n            ],\n            [\n              \"No existe un problema concreto, pero necesita m\u00e1s actividad y estimulaci\u00f3n durante el d\u00eda.\",\n              \"home\"\n            ]\n          ]\n        },\n\n        {\n          q: \"\u00bfQu\u00e9 tipo de acompa\u00f1amiento prefieres?\",\n          a: [\n            [\n              \"Orientaci\u00f3n para educar correctamente a mi cachorro y acompa\u00f1ar su desarrollo.\",\n              \"puppy\"\n            ],\n            [\n              \"Participar en las sesiones y aprender c\u00f3mo practicar con mi perro.\",\n              \"functional\"\n            ],\n            [\n              \"Una consulta para analizar nuestro caso y recibir un plan personalizado.\",\n              \"personal\"\n            ],\n            [\n              \"Tengo poco tiempo y prefiero que Ana trabaje directamente con mi perro.\",\n              \"home\"\n            ]\n          ]\n        },\n\n        {\n          q: \"\u00bfCu\u00e1l de estas frases representa mejor lo que buscas?\",\n          a: [\n            [\n              \"Quiero darle a mi cachorro el mejor comienzo posible.\",\n              \"puppy\"\n            ],\n            [\n              \"Quiero que mi perro se desenvuelva mejor en situaciones cotidianas.\",\n              \"functional\"\n            ],\n            [\n              \"Quiero entender mejor a mi perro y saber c\u00f3mo acompa\u00f1arlo.\",\n              \"personal\"\n            ],\n            [\n              \"Tengo poco tiempo y quiero que mi perro tenga actividad f\u00edsica y mental durante el d\u00eda.\",\n              \"home\"\n            ]\n          ]\n        }\n      ],\n\n      results: {\n        puppy: {\n          title: \"Entrenamiento para cachorros\",\n\n          copy:\n            \"Tu cachorro est\u00e1 en una etapa ideal para aprender y desarrollar \" +\n            \"habilidades importantes. Este servicio te ayudar\u00e1 a comprenderlo, \" +\n            \"crear h\u00e1bitos saludables y construir una relaci\u00f3n equilibrada \" +\n            \"desde el comienzo.\",\n\n          button: \"Ver Cachorros\",\n\n          url: \"\/cachorros\/\"\n        },\n\n        functional: {\n          title: \"Entrenamiento funcional\",\n\n          copy:\n            \"Este servicio es adecuado si quieres participar, aprender los \" +\n            \"ejercicios y practicar habilidades para la vida diaria junto a tu perro.\",\n\n          button: \"Ver Entrenamiento funcional\",\n\n          url: \"\/entrenamiento-estructurado\/\"\n        },\n\n        personal: {\n          title: \"Asesor\u00eda personalizada\",\n\n          copy:\n            \"Tu perro y tu familia pueden beneficiarse de una orientaci\u00f3n \" +\n            \"adaptada a tu situaci\u00f3n. Este servicio permite comprender mejor \" +\n            \"sus necesidades, resolver dudas y crear un plan personalizado \" +\n            \"seg\u00fan tus objetivos y estilo de vida.\",\n\n          button: \"Ver Asesor\u00eda personalizada\",\n\n          url: \"\/problemas-de-comportamiento\/\"\n        },\n\n        home: {\n          title: \"Escuela Canina en Casa\",\n\n          copy:\n            \"Este servicio puede ayudarte si tienes poco tiempo y quieres que \" +\n            \"tu perro tenga una sesi\u00f3n individual con actividad f\u00edsica, trabajo \" +\n            \"mental y habilidades \u00fatiles mientras contin\u00faas con tu d\u00eda.\",\n\n          button: \"Ver Escuela Canina en Casa\",\n\n          url: \"\/escuela-canina-en-casa\/\"\n        }\n      }\n    },\n\n    en: {\n      kicker: \"Service quiz \u00b7 2 minutes\",\n      title: \"What Does Your Dog Need Right Now?\",\n\n      lead:\n        \"Every dog and family has different needs. Answer 5 quick questions \" +\n        \"to discover which type of support best suits your goals.\",\n\n      start: \"Start the quiz\",\n      time: \"There are no right or wrong answers.\",\n\n      progress: function (number, total) {\n        return \"Question \" + number + \" of \" + total;\n      },\n\n      next: \"Next\",\n      resultButton: \"See my recommendation\",\n      back: \"Back\",\n\n      resultKicker: \"Your recommendation\",\n\n      oneResult:\n        \"The service that best suits you and your dog is:\",\n\n      twoResults:\n        \"These two services may suit your family\u2019s needs:\",\n\n      restart: \"Take the quiz again\",\n\n      note:\n        \"This recommendation is a guide. The most suitable service will be \" +\n        \"confirmed after learning more about your situation.\",\n\n      questions: [\n        {\n          q: \"Which option best describes your dog\u2019s current stage?\",\n          a: [\n            [\n              \"My dog is a puppy and we want to start their education the right way.\",\n              \"puppy\"\n            ],\n            [\n              \"My dog has some foundations but needs practical everyday skills.\",\n              \"functional\"\n            ],\n            [\n              \"We need guidance with a specific situation or behaviour.\",\n              \"personal\"\n            ],\n            [\n              \"I\u2019m not sure what my dog needs.\",\n              \"personal\"\n            ]\n          ]\n        },\n\n        {\n          q: \"What is your main goal?\",\n          a: [\n            [\n              \"Build routines, healthy habits and strong foundations from the beginning.\",\n              \"puppy\"\n            ],\n            [\n              \"Improve walking, recall, self-control and other practical skills.\",\n              \"functional\"\n            ],\n            [\n              \"Understand my dog\u2019s behaviour and receive a tailored plan.\",\n              \"personal\"\n            ],\n            [\n              \"Give my dog physical activity, mental work and training even though I have limited time.\",\n              \"home\"\n            ]\n          ]\n        },\n\n        {\n          q: \"What would you mainly like to work on?\",\n          a: [\n            [\n              \"Toileting, mouthing, sleep, socialisation or settling into the home.\",\n              \"puppy\"\n            ],\n            [\n              \"Lead pulling, recall or self-control.\",\n              \"functional\"\n            ],\n            [\n              \"Fear, anxiety, reactivity, aggression or difficulty being left alone.\",\n              \"personal\"\n            ],\n            [\n              \"There is no specific problem, but my dog needs more activity and stimulation during the day.\",\n              \"home\"\n            ]\n          ]\n        },\n\n        {\n          q: \"What type of support would you prefer?\",\n          a: [\n            [\n              \"Guidance to educate my puppy and support their development.\",\n              \"puppy\"\n            ],\n            [\n              \"Participate in the sessions and learn how to practise with my dog.\",\n              \"functional\"\n            ],\n            [\n              \"A consultation to assess our situation and create a personalised plan.\",\n              \"personal\"\n            ],\n            [\n              \"I have limited time and prefer Ana to work directly with my dog.\",\n              \"home\"\n            ]\n          ]\n        },\n\n        {\n          q: \"Which statement best describes what you are looking for?\",\n          a: [\n            [\n              \"I want to give my puppy the best possible start.\",\n              \"puppy\"\n            ],\n            [\n              \"I want my dog to feel and behave more confidently in everyday situations.\",\n              \"functional\"\n            ],\n            [\n              \"I want to understand my dog better and know how to support them.\",\n              \"personal\"\n            ],\n            [\n              \"I have limited time and want my dog to have physical and mental activity during the day.\",\n              \"home\"\n            ]\n          ]\n        }\n      ],\n\n      results: {\n        puppy: {\n          title: \"Puppy Training\",\n\n          copy:\n            \"Your puppy is at an ideal stage to learn and develop important \" +\n            \"life skills. This service will help you understand your puppy, \" +\n            \"build healthy habits and create a balanced relationship from the beginning.\",\n\n          button: \"View Puppy Training\",\n\n          url: \"\/en\/cachorros\/\"\n        },\n\n        functional: {\n          title: \"Real-Life Skills Training\",\n\n          copy:\n            \"This service is suitable if you want to participate, learn the \" +\n            \"exercises and practise everyday skills with your dog.\",\n\n          button: \"View Real-Life Skills Training\",\n\n          url: \"\/en\/entrenamiento-estructurado\/\"\n        },\n\n        personal: {\n          title: \"Personalised Consultation\",\n\n          copy:\n            \"You and your dog could benefit from support tailored to your \" +\n            \"situation. This service helps clarify your dog\u2019s needs and creates \" +\n            \"a personalised plan based on your goals and lifestyle.\",\n\n          button: \"View Personalised Consultation\",\n\n          url: \"\/en\/problemas-de-comportamiento\/\"\n        },\n\n        home: {\n          title: \"Home Dog School\",\n\n          copy:\n            \"This service may suit you if you have limited time and want your \" +\n            \"dog to receive an individual session with physical activity, \" +\n            \"mental work and useful skills while you continue with your day.\",\n\n          button: \"View Home Dog School\",\n\n          url: \"\/en\/escuela-canina-en-casa\/\"\n        }\n      }\n    }\n  };\n\n  const text = content[lang];\n\n  const intro = root.querySelector(\".saq-intro\");\n  const questionScreen = root.querySelector(\".saq-question\");\n  const resultScreen = root.querySelector(\".saq-result\");\n\n  const progressWrap = root.querySelector(\".saq-progress-wrap\");\n  const progressBar = root.querySelector(\".saq-progress span\");\n  const progressText = root.querySelector(\".saq-progress-text\");\n\n  const questionTitle = questionScreen.querySelector(\"h2\");\n  const answersWrap = root.querySelector(\".saq-answers\");\n\n  const nextButton = root.querySelector(\".saq-next\");\n  const backButton = root.querySelector(\".saq-back\");\n  const startButton = root.querySelector(\".saq-start\");\n  const restartButton = root.querySelector(\".saq-restart\");\n\n  intro.querySelector(\".saq-kicker\").textContent = text.kicker;\n  intro.querySelector(\"h1\").textContent = text.title;\n  intro.querySelector(\".saq-lead\").textContent = text.lead;\n\n  startButton.textContent = text.start;\n  intro.querySelector(\".saq-time\").textContent = text.time;\n\n  backButton.textContent = \"\u2190 \" + text.back;\n\n  let questionIndex = 0;\n  let selections = Array(text.questions.length).fill(null);\n\n  const storageKey =\n    \"sentir-animal-service-quiz-\" + lang + \"-v4\";\n\n  function saveProgress(active) {\n    try {\n      sessionStorage.setItem(\n        storageKey,\n        JSON.stringify({\n          active: active,\n          index: questionIndex,\n          selections: selections\n        })\n      );\n    } catch (error) {\n      \/* El quiz puede funcionar sin sessionStorage. *\/\n    }\n  }\n\n  function loadProgress() {\n    try {\n      const saved = JSON.parse(\n        sessionStorage.getItem(storageKey) || \"null\"\n      );\n\n      if (\n        saved &&\n        saved.active === true &&\n        Number.isInteger(saved.index) &&\n        saved.index >= 0 &&\n        saved.index < text.questions.length &&\n        Array.isArray(saved.selections) &&\n        saved.selections.length === text.questions.length\n      ) {\n        questionIndex = saved.index;\n        selections = saved.selections;\n        return true;\n      }\n    } catch (error) {\n      \/* Si no se puede recuperar, empieza nuevamente. *\/\n    }\n\n    return false;\n  }\n\n  function showScreen(screen) {\n    root.querySelectorAll(\".saq-screen\").forEach(function (element) {\n      element.classList.remove(\"is-active\");\n    });\n\n    screen.classList.add(\"is-active\");\n  }\n\n  function renderQuestion() {\n    const item = text.questions[questionIndex];\n\n    showScreen(questionScreen);\n\n    progressWrap.style.display = \"block\";\n\n    progressBar.style.width =\n      ((questionIndex + 1) \/ text.questions.length) * 100 + \"%\";\n\n    progressText.textContent = text.progress(\n      questionIndex + 1,\n      text.questions.length\n    );\n\n    questionTitle.textContent = item.q;\n    answersWrap.innerHTML = \"\";\n\n    item.a.forEach(function (answer, answerIndex) {\n      const button = document.createElement(\"button\");\n\n      button.type = \"button\";\n      button.className = \"saq-answer\";\n      button.textContent = answer[0];\n\n      const isSelected =\n        selections[questionIndex] === answerIndex;\n\n      button.setAttribute(\n        \"aria-pressed\",\n        isSelected ? \"true\" : \"false\"\n      );\n\n      if (isSelected) {\n        button.classList.add(\"is-selected\");\n      }\n\n      button.addEventListener(\"click\", function (event) {\n        event.preventDefault();\n        event.stopPropagation();\n\n        selections[questionIndex] = answerIndex;\n\n        saveProgress(true);\n\n        answersWrap\n          .querySelectorAll(\".saq-answer\")\n          .forEach(function (element) {\n            element.classList.remove(\"is-selected\");\n            element.setAttribute(\"aria-pressed\", \"false\");\n          });\n\n        button.classList.add(\"is-selected\");\n        button.setAttribute(\"aria-pressed\", \"true\");\n\n        nextButton.disabled = false;\n      });\n\n      answersWrap.appendChild(button);\n    });\n\n    backButton.style.visibility =\n      questionIndex === 0 ? \"hidden\" : \"visible\";\n\n    nextButton.textContent =\n      questionIndex === text.questions.length - 1\n        ? text.resultButton\n        : text.next;\n\n    nextButton.disabled =\n      selections[questionIndex] === null;\n  }\n\n  function calculateResults() {\n    const scores = {\n      personal: 0,\n      puppy: 0,\n      functional: 0,\n      home: 0\n    };\n\n    selections.forEach(function (answerIndex, currentQuestion) {\n      const resultKey =\n        text.questions[currentQuestion].a[answerIndex][1];\n\n      scores[resultKey] += 1;\n    });\n\n    const priority = [\n      \"personal\",\n      \"puppy\",\n      \"functional\",\n      \"home\"\n    ];\n\n    const ranked = priority.sort(function (first, second) {\n      return scores[second] - scores[first];\n    });\n\n    const finalResults = [ranked[0]];\n\n    if (\n      scores[ranked[1]] >= 2 &&\n      scores[ranked[0]] - scores[ranked[1]] <= 1\n    ) {\n      finalResults.push(ranked[1]);\n    }\n\n    return finalResults;\n  }\n\n  function renderResult() {\n    const resultKeys = calculateResults();\n\n    showScreen(resultScreen);\n    progressWrap.style.display = \"none\";\n\n    resultScreen.querySelector(\".saq-kicker\").textContent =\n      text.resultKicker;\n\n    resultScreen.querySelector(\"h2\").textContent =\n      resultKeys.length === 1\n        ? text.oneResult\n        : text.twoResults;\n\n    resultScreen.querySelector(\".saq-note\").textContent =\n      text.note;\n\n    const resultList =\n      resultScreen.querySelector(\".saq-result-list\");\n\n    resultList.innerHTML = \"\";\n\n    resultKeys.forEach(function (resultKey) {\n      const result = text.results[resultKey];\n\n      const card = document.createElement(\"article\");\n      card.className = \"saq-result-card\";\n\n      const title = document.createElement(\"h3\");\n      title.textContent = result.title;\n\n      const summary = document.createElement(\"p\");\n      summary.textContent = result.copy;\n\n      const link = document.createElement(\"a\");\n      link.className = \"saq-btn\";\n      link.textContent = result.button;\n      link.href = result.url;\n\n      card.appendChild(title);\n      card.appendChild(summary);\n      card.appendChild(link);\n\n      resultList.appendChild(card);\n    });\n\n    restartButton.textContent = text.restart;\n\n    root.scrollIntoView({\n      behavior: \"smooth\",\n      block: \"start\"\n    });\n  }\n\n  startButton.addEventListener(\"click\", function (event) {\n    event.preventDefault();\n    event.stopPropagation();\n\n    questionIndex = 0;\n    selections = Array(text.questions.length).fill(null);\n\n    saveProgress(true);\n    renderQuestion();\n  });\n\n  nextButton.addEventListener(\"click\", function (event) {\n    event.preventDefault();\n    event.stopPropagation();\n\n    if (selections[questionIndex] === null) {\n      return;\n    }\n\n    if (questionIndex < text.questions.length - 1) {\n      questionIndex += 1;\n\n      saveProgress(true);\n      renderQuestion();\n    } else {\n      saveProgress(false);\n      renderResult();\n    }\n  });\n\n  backButton.addEventListener(\"click\", function (event) {\n    event.preventDefault();\n    event.stopPropagation();\n\n    if (questionIndex > 0) {\n      questionIndex -= 1;\n\n      saveProgress(true);\n      renderQuestion();\n    }\n  });\n\n  restartButton.addEventListener(\"click\", function (event) {\n    event.preventDefault();\n    event.stopPropagation();\n\n    questionIndex = 0;\n    selections = Array(text.questions.length).fill(null);\n\n    try {\n      sessionStorage.removeItem(storageKey);\n    } catch (error) {\n      \/* Continuar aunque no se pueda limpiar. *\/\n    }\n\n    showScreen(intro);\n    progressWrap.style.display = \"none\";\n\n    root.scrollIntoView({\n      behavior: \"smooth\",\n      block: \"start\"\n    });\n  });\n\n  if (loadProgress()) {\n    renderQuestion();\n  }\n})();\n<\/script><\/div><\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"footnotes":""},"class_list":["post-143","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sentiranimal.com\/en\/wp-json\/wp\/v2\/pages\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sentiranimal.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sentiranimal.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sentiranimal.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sentiranimal.com\/en\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":5,"href":"https:\/\/sentiranimal.com\/en\/wp-json\/wp\/v2\/pages\/143\/revisions"}],"predecessor-version":[{"id":367,"href":"https:\/\/sentiranimal.com\/en\/wp-json\/wp\/v2\/pages\/143\/revisions\/367"}],"wp:attachment":[{"href":"https:\/\/sentiranimal.com\/en\/wp-json\/wp\/v2\/media?parent=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}