{"id":348,"date":"2026-01-11T00:30:53","date_gmt":"2026-01-11T00:30:53","guid":{"rendered":"https:\/\/plentylearning.com\/espanol\/?page_id=348"},"modified":"2026-01-11T01:35:54","modified_gmt":"2026-01-11T01:35:54","slug":"spanish-a2-everyday-interaction-cefr","status":"publish","type":"page","link":"https:\/\/plentylearning.com\/espanol\/spanish-a2-everyday-interaction-cefr\/","title":{"rendered":"Spanish A2 \u2013 Everyday Interaction (CEFR)"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\" \/>\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"\/>\n  <title>Spanish A2 \u2013 Everyday Interaction (CEFR) | Plenty Learning<\/title>\n  <style>\n    :root{\n      --brand:#5a2ea6; \/* Replace with your exact Plenty Learning HEX *\/\n      --bg:#0b0b10;\n      --card: rgba(18,18,33,.88);\n      --border: rgba(255,255,255,.12);\n      --text:#f3f3f7;\n      --muted:#c8c8d6;\n      --ok:#18a558;\n      --bad:#d94848;\n      --warn:#f0b429;\n      --shadow: 0 10px 26px rgba(0,0,0,.35);\n      --radius:18px;\n    }\n    *{box-sizing:border-box}\n    body{\n      margin:0;\n      font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;\n      background: linear-gradient(180deg, rgba(90,46,166,.14), transparent 42%), var(--bg);\n      color: var(--text);\n    }\n    .wrap{max-width: 1120px; margin:0 auto; padding: 18px;}\n    .topbar{\n      display:flex; flex-wrap:wrap;\n      align-items:center; justify-content:space-between; gap:14px;\n      padding:16px 18px; border:1px solid var(--border); border-radius: var(--radius);\n      background: rgba(18,18,33,.85); backdrop-filter: blur(8px); box-shadow: var(--shadow);\n    }\n    .brand{display:flex; align-items:center; gap:12px;}\n    .logo{\n      width:46px;height:46px;border-radius:14px;\n      background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.16), rgba(255,255,255,.06)), var(--brand);\n      display:grid;place-items:center;font-weight:900;\n      letter-spacing:.06em;\n      user-select:none;\n    }\n    h1{margin:0; font-size:16px; line-height:1.2;}\n    .subtitle{margin-top:2px; font-size:12px; color: var(--muted);}\n    .pill{\n      font-size:12px; padding:8px 10px; border-radius:999px;\n      border:1px solid var(--border); background: rgba(255,255,255,.04);\n      color: var(--muted); white-space:nowrap;\n    }\n\n    .grid{display:grid; grid-template-columns: 1fr; gap:14px; margin-top:14px;}\n    .card{\n      border:1px solid var(--border); border-radius: var(--radius);\n      background: var(--card); padding:16px; box-shadow: var(--shadow);\n    }\n    .muted{color: var(--muted); font-size:13px; line-height:1.5;}\n    .tiny{color: var(--muted); font-size:12px; line-height:1.45;}\n    .note{\n      border-left:4px solid var(--brand);\n      padding:10px 12px;\n      background: rgba(90,46,166,.12);\n      border-radius: 14px;\n      margin-top:10px;\n    }\n\n    .row{display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between;}\n    .btns{display:flex; flex-wrap:wrap; gap:10px; align-items:center;}\n    button, select, input[type=\"text\"], textarea{\n      border:1px solid var(--border);\n      background: rgba(255,255,255,.06);\n      color: var(--text);\n      padding:10px 12px;\n      border-radius:14px;\n      font-family: inherit;\n    }\n    button{cursor:pointer; font-weight:900; user-select:none;}\n    button.primary{background: var(--brand); border-color: rgba(255,255,255,.18);}\n    button.ghost{background: rgba(255,255,255,.03);}\n    button:active{transform: translateY(1px);}\n\n    select, input[type=\"text\"], textarea{\n      width:100%;\n      background: rgba(0,0,0,.25);\n      outline:none;\n      font-weight:600;\n    }\n    textarea{min-height:120px; resize:vertical;}\n\n    .tabs{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px;}\n    .tab{\n      padding:10px 12px; border-radius:14px;\n      border:1px solid var(--border);\n      background: rgba(255,255,255,.04);\n      cursor:pointer; font-weight:900; font-size:13px;\n      user-select:none;\n    }\n    .tab.active{background: var(--brand); border-color: rgba(255,255,255,.18);}\n\n    .badge{\n      font-size:11px; color: var(--muted);\n      border:1px solid var(--border);\n      padding:3px 8px;\n      border-radius: 999px;\n      background: rgba(255,255,255,.03);\n      white-space:nowrap;\n    }\n\n    .q{\n      padding:12px;\n      border:1px solid var(--border);\n      border-radius: 16px;\n      background: rgba(255,255,255,.03);\n      margin-top:12px;\n    }\n    .qhead{display:flex; gap:10px; align-items:flex-start; justify-content:space-between;}\n    .qhead b{font-size:14px;}\n    .feedback{margin-top:8px; font-size:13px; line-height:1.35;}\n    .ok{color: var(--ok);}\n    .bad{color: var(--bad);}\n    .warn{color: var(--warn);}\n\n    .rulebox{\n      display:none;\n      margin-top:10px;\n      padding:10px 12px;\n      border-radius:14px;\n      border:1px solid var(--border);\n      background: rgba(0,0,0,.22);\n    }\n    .rulebox.show{display:block;}\n\n    .stats{\n      display:grid;\n      grid-template-columns: repeat(4, minmax(0,1fr));\n      gap:10px;\n      margin-top:10px;\n    }\n    .stat{\n      border:1px solid var(--border);\n      background: rgba(255,255,255,.03);\n      border-radius: 16px;\n      padding:10px 12px;\n    }\n    .k{font-size:12px;color:var(--muted);}\n    .v{margin-top:4px; font-size:16px; font-weight:900;}\n\n    @media (max-width: 900px){\n      .stats{grid-template-columns:1fr 1fr;}\n    }\n\n    \/* Visual scaffolds with inline SVG (0 requests) *\/\n    .visualRow{\n      display:grid; grid-template-columns: repeat(3, minmax(0,1fr));\n      gap:10px; margin-top:10px;\n    }\n    @media (max-width: 900px){\n      .visualRow{grid-template-columns:1fr;}\n    }\n    .visual{\n      border:1px solid var(--border);\n      background: rgba(0,0,0,.22);\n      border-radius: 16px;\n      padding:12px;\n      display:flex; gap:10px; align-items:flex-start;\n    }\n    .ico{width:36px;height:36px;border-radius:12px;background: rgba(90,46,166,.22); display:grid; place-items:center; flex:0 0 auto; border:1px solid rgba(255,255,255,.10);}\n    .ico svg{width:20px;height:20px; opacity:.95}\n    .visual h4{margin:0 0 4px; font-size:13px;}\n    .visual .tiny{margin:0;}\n\n    \/* Simple matching UI *\/\n    .twoCol{\n      display:grid; grid-template-columns: 1fr 1fr;\n      gap:10px; margin-top:10px;\n    }\n    @media (max-width: 900px){ .twoCol{grid-template-columns:1fr;} }\n    .listBox{\n      border:1px solid var(--border);\n      background: rgba(0,0,0,.20);\n      border-radius:16px;\n      padding:10px;\n      min-height: 110px;\n    }\n    .item{\n      border:1px solid rgba(255,255,255,.16);\n      background: rgba(255,255,255,.04);\n      border-radius:14px;\n      padding:10px 12px;\n      margin:8px 0;\n      display:flex;\n      align-items:center;\n      justify-content:space-between;\n      gap:10px;\n      cursor:grab;\n      user-select:none;\n    }\n\n    \/* Drop bins (classification) *\/\n    .bin{\n      border:1px dashed rgba(255,255,255,.22);\n      border-radius: 16px;\n      padding:10px 12px;\n      margin:8px 0;\n      background: rgba(255,255,255,.02);\n      min-height: 70px;\n    }\n    .bin.ok{border-color: rgba(24,165,88,.65);}\n    .bin.bad{border-color: rgba(217,72,72,.65);}\n    .binTitle{display:flex; justify-content:space-between; align-items:center; gap:10px;}\n    .binTitle strong{font-size:14px;}\n    .slot{color: var(--muted); font-size:12px;}\n\n    .footer{ text-align:center; color: var(--muted); font-size:12px; padding: 10px; }\n  <\/style>\n<\/head>\n\n<body>\n  <div class=\"wrap\">\n    <div class=\"topbar\">\n      <div class=\"brand\">\n        <div class=\"logo\">PL<\/div>\n        <div>\n          <h1>Spanish A2 \u2013 Everyday Interaction (CEFR)<\/h1>\n          <div class=\"subtitle\">Self-learning for English speakers \u00b7 Interactive modules \u00b7 By TeacherJM<\/div>\n        <\/div>\n      <\/div>\n      <div class=\"btns\">\n        <span class=\"pill\">UK-aligned ESOL \u00b7 Communicative \u00b7 Auto-assessed<\/span>\n      <\/div>\n    <\/div>\n\n    <div class=\"grid\">\n      <section class=\"card\">\n        <div class=\"row\">\n          <div>\n            <h2 style=\"margin:0 0 6px; font-size:16px;\" id=\"moduleTitle\">Module 1 \u2013 Talking About the Past<\/h2>\n            <div class=\"muted\" id=\"moduleDesc\">\n              Instructions in English. Activities in Spanish. Use <b>Listen<\/b> for pronunciation (browser speech).\n            <\/div>\n          <\/div>\n          <div class=\"btns\">\n            <div style=\"min-width: 260px;\">\n              <label class=\"sr-only\" for=\"moduleSelect\">Select module<\/label>\n              <select id=\"moduleSelect\" aria-label=\"Select module\">\n                <option value=\"m1\">Module 1 \u2013 Past events<\/option>\n                <option value=\"m2\">Module 2 \u2013 Routines &#038; frequency<\/option>\n                <option value=\"m3\">Module 3 \u2013 Opinions &#038; comparisons<\/option>\n                <option value=\"m4\">Module 4 \u2013 Plans &#038; obligations<\/option>\n                <option value=\"m5\">Module 5 \u2013 Real-life interaction &#038; review<\/option>\n              <\/select>\n            <\/div>\n            <span class=\"badge\" id=\"moduleTime\">Estimated: 60\u201375 min<\/span>\n          <\/div>\n        <\/div>\n\n        <div class=\"note\">\n          <div class=\"muted\">\n            <b>Course outcomes (\u201cI can\u2026\u201d, CEFR A2):<\/b>\n            <ul style=\"margin:8px 0 0 18px;\">\n              <li>I can describe daily routines and habits.<\/li>\n              <li>I can talk about past events and experiences.<\/li>\n              <li>I can express simple opinions and comparisons.<\/li>\n              <li>I can talk about plans and obligations.<\/li>\n              <li>I can manage common real-life interactions (requests, directions, simple instructions).<\/li>\n            <\/ul>\n          <\/div>\n        <\/div>\n\n        <div class=\"tabs\" id=\"tabs\">\n          <div class=\"tab active\" data-tab=\"learn\">Learn<\/div>\n          <div class=\"tab\" data-tab=\"practice\">Practice<\/div>\n          <div class=\"tab\" data-tab=\"assess\">Assess<\/div>\n          <div class=\"tab\" data-tab=\"progress\">Progress<\/div>\n        <\/div>\n      <\/section>\n\n      <!-- LEARN -->\n      <section class=\"card\" id=\"panel-learn\">\n        <div class=\"row\">\n          <div>\n            <h3 style=\"margin:0 0 6px; font-size:15px;\">Learn (scaffolded guide)<\/h3>\n            <div class=\"tiny\">Instruction (EN): Read the mini rules, listen, then try Practice.<\/div>\n          <\/div>\n          <div class=\"btns\">\n            <button class=\"ghost\" type=\"button\" id=\"btnShowRule\">Show rule<\/button>\n            <button type=\"button\" id=\"btnListenExamples\">Listen: examples<\/button>\n          <\/div>\n        <\/div>\n\n        <div class=\"rulebox\" id=\"learnRuleBox\"><\/div>\n\n        <div class=\"visualRow\" id=\"learnVisuals\"><\/div>\n\n        <div class=\"q\">\n          <div class=\"qhead\">\n            <div>\n              <b>Mini phrase bank (Spanish)<\/b>\n              <div class=\"tiny\">Instruction (EN): Click Listen for pronunciation, then repeat aloud.<\/div>\n            <\/div>\n            <div class=\"btns\">\n              <button type=\"button\" id=\"btnListenPhrases\">Listen all<\/button>\n            <\/div>\n          <\/div>\n          <div class=\"muted\" style=\"margin-top:8px;\">\n            <ul style=\"margin:0 0 0 18px;\" id=\"phraseList\"><\/ul>\n          <\/div>\n        <\/div>\n      <\/section>\n\n      <!-- PRACTICE -->\n      <section class=\"card\" id=\"panel-practice\" style=\"display:none;\">\n        <div class=\"row\">\n          <div>\n            <h3 style=\"margin:0 0 6px; font-size:15px;\">Practice (interactive)<\/h3>\n            <div class=\"tiny\">Instruction (EN): Complete Activity A \u2192 B \u2192 C. Repeat until confident.<\/div>\n          <\/div>\n          <div class=\"btns\">\n            <button type=\"button\" id=\"btnResetPractice\">Reset practice<\/button>\n          <\/div>\n        <\/div>\n\n        <!-- Practice A -->\n        <div class=\"q\" id=\"practiceA\"><\/div>\n\n        <!-- Practice B -->\n        <div class=\"q\" id=\"practiceB\"><\/div>\n\n        <!-- Practice C -->\n        <div class=\"q\" id=\"practiceC\"><\/div>\n      <\/section>\n\n      <!-- ASSESS -->\n      <section class=\"card\" id=\"panel-assess\" style=\"display:none;\">\n        <div class=\"row\">\n          <div>\n            <h3 style=\"margin:0 0 6px; font-size:15px;\">Assess (auto-graded)<\/h3>\n            <div class=\"tiny\">Instruction (EN): Do the Writing task + Quiz. Pass mark: <b>80%<\/b>.<\/div>\n          <\/div>\n          <div class=\"btns\">\n            <button class=\"primary\" type=\"button\" id=\"btnCheckAssess\">Check<\/button>\n            <button class=\"ghost\" type=\"button\" id=\"btnRetryIncorrect\">Retry incorrect only<\/button>\n            <button type=\"button\" id=\"btnNewQuiz\">New set<\/button>\n            <button class=\"ghost\" type=\"button\" id=\"btnResetAssess\">Reset<\/button>\n          <\/div>\n        <\/div>\n\n        <div class=\"stats\">\n          <div class=\"stat\"><div class=\"k\">Quiz score<\/div><div class=\"v\"><span id=\"aScore\">0<\/span>\/<span id=\"aMax\">10<\/span><\/div><\/div>\n          <div class=\"stat\"><div class=\"k\">Streak<\/div><div class=\"v\" id=\"streak\">0<\/div><\/div>\n          <div class=\"stat\"><div class=\"k\">Best streak<\/div><div class=\"v\" id=\"bestStreak\">0<\/div><\/div>\n          <div class=\"stat\"><div class=\"k\">Average<\/div><div class=\"v\" id=\"avg\">\u2014<\/div><div class=\"tiny\"><span id=\"attempts\">0<\/span> attempts<\/div><\/div>\n        <\/div>\n\n        <div class=\"q\" id=\"writingTask\"><\/div>\n\n        <div class=\"q\">\n          <div class=\"qhead\">\n            <div>\n              <b>Quiz (Random 10)<\/b>\n              <div class=\"tiny\">Instruction (EN): Choose the best option. Use Show rule if needed.<\/div>\n            <\/div>\n            <div class=\"btns\">\n              <button class=\"ghost\" type=\"button\" id=\"btnShowQuizRule\">Show rule<\/button>\n              <button type=\"button\" id=\"btnListenQuizHint\">Listen<\/button>\n            <\/div>\n          <\/div>\n          <div class=\"rulebox\" id=\"quizRuleBox\"><\/div>\n          <div id=\"quiz\"><\/div>\n          <div class=\"feedback\" id=\"aMsg\"><\/div>\n        <\/div>\n      <\/section>\n\n      <!-- PROGRESS -->\n      <section class=\"card\" id=\"panel-progress\" style=\"display:none;\">\n        <h3 style=\"margin:0 0 6px; font-size:15px;\">Progress &#038; Self-assessment (UK-style)<\/h3>\n        <div class=\"muted\">Instruction (EN): Tick what you can do confidently. Save your progress.<\/div>\n\n        <div class=\"q\">\n          <div class=\"qhead\">\n            <div><b>\u201cI can\u2026\u201d checklist<\/b><\/div>\n            <div class=\"badge\">Self-reflection<\/div>\n          <\/div>\n\n          <div style=\"display:grid; gap:10px; margin-top:10px;\" id=\"canList\"><\/div>\n\n          <div class=\"btns\" style=\"margin-top:12px;\">\n            <button class=\"primary\" type=\"button\" id=\"btnSaveChecklist\">Save<\/button>\n            <button class=\"ghost\" type=\"button\" id=\"btnResetChecklist\">Reset<\/button>\n          <\/div>\n\n          <div class=\"feedback\" id=\"checkMsg\"><\/div>\n        <\/div>\n\n        <div class=\"q\">\n          <div class=\"qhead\">\n            <div><b>Recommended next step<\/b><\/div>\n            <div class=\"badge\">Personalised guidance<\/div>\n          <\/div>\n          <div class=\"muted\" id=\"nextStep\"><\/div>\n        <\/div>\n\n        <div class=\"footer\">\u00a9 Plenty Learning \u00b7 Spanish A2 \u00b7 By TeacherJM<\/div>\n      <\/section>\n    <\/div>\n  <\/div>\n\n<script>\n  \/\/ ==========================\n  \/\/ Core helpers\n  \/\/ ==========================\n  function normalize(str){\n    return (str || \"\")\n      .toString()\n      .trim()\n      .toLowerCase()\n      .normalize(\"NFD\").replace(\/[\\u0300-\\u036f]\/g, \"\");\n  }\n  function shuffle(arr){\n    const a = arr.slice();\n    for(let i=a.length-1;i>0;i--){\n      const j = Math.floor(Math.random()*(i+1));\n      [a[i], a[j]] = [a[j], a[i]];\n    }\n    return a;\n  }\n  function speakES(text){\n    try{\n      if(!(\"speechSynthesis\" in window)) return alert(\"Speech not supported in this browser.\");\n      window.speechSynthesis.cancel();\n      const u = new SpeechSynthesisUtterance(text);\n      const voices = window.speechSynthesis.getVoices();\n      const esVoice = voices.find(v => (v.lang || \"\").toLowerCase().startsWith(\"es\"));\n      if(esVoice) u.voice = esVoice;\n      u.lang = esVoice ? esVoice.lang : \"es-ES\";\n      u.rate = 0.95; u.pitch = 1.0;\n      window.speechSynthesis.speak(u);\n    } catch(e){\n      alert(\"Could not play audio. Try a different browser.\");\n    }\n  }\n  window.speechSynthesis && window.speechSynthesis.getVoices();\n\n  \/\/ ==========================\n  \/\/ Module data (5 modules)\n  \/\/ ==========================\n  const MODULES = {\n    m1: {\n      title: \"Module 1 \u2013 Talking About the Past\",\n      time: \"Estimated: 60\u201375 min\",\n      desc: \"Past events, recent experiences, and an introduction to imperfect background (era\/hab\u00eda).\",\n      learnRule: `\n        <div class=\"tiny\">\n          <b>Rule (English):<\/b><br\/>\n          \u2022 <b>Pret\u00e9rito Perfecto<\/b> (Present Perfect): <b>he\/has\/ha + participio<\/b> \u2192 connected to \u201cnow\u201d\n          (hoy, esta semana, este a\u00f1o, ya, todav\u00eda). Example: <b>He visitado<\/b> Espa\u00f1a.<br\/>\n          \u2022 <b>Pret\u00e9rito Indefinido<\/b> (Past Simple): finished time (ayer, anoche, el a\u00f1o pasado). Example: <b>Ayer fui<\/b> al cine.<br\/>\n          \u2022 <b>Imperfect<\/b> (intro): background \/ description (was\/used to, there was). Example: <b>Era<\/b> peque\u00f1o. <b>Hab\u00eda<\/b> mucha gente.\n        <\/div>\n      `,\n      examplesListen: \"He visitado un museo. Esta semana he trabajado mucho. Ayer fui al supermercado. El a\u00f1o pasado viaj\u00e9 a Per\u00fa. Cuando era ni\u00f1o, hab\u00eda un parque.\",\n      visuals: [\n        {h:\"Perfecto (connected)\", t:\"hoy \u00b7 esta semana \u00b7 este a\u00f1o \u00b7 ya \u00b7 todav\u00eda\", ex:\"He comido sushi.\" , ico:\"clock\"},\n        {h:\"Indefinido (finished)\", t:\"ayer \u00b7 anoche \u00b7 la semana pasada \u00b7 el a\u00f1o pasado\", ex:\"Ayer fui al cine.\", ico:\"calendar\"},\n        {h:\"Imperfect (background)\", t:\"era \u00b7 hab\u00eda (was \/ there was)\", ex:\"Hab\u00eda mucha gente.\", ico:\"home\"}\n      ],\n      phrases: [\n        {es:\"He visitado un museo.\", en:\"I have visited a museum.\"},\n        {es:\"Esta semana he trabajado mucho.\", en:\"This week I have worked a lot.\"},\n        {es:\"Hoy he comido sushi.\", en:\"Today I have eaten sushi.\"},\n        {es:\"Ayer fui al supermercado.\", en:\"Yesterday I went to the supermarket.\"},\n        {es:\"El a\u00f1o pasado viaj\u00e9 a Per\u00fa.\", en:\"Last year I traveled to Peru.\"},\n        {es:\"Cuando era ni\u00f1o, hab\u00eda un parque.\", en:\"When I was a child, there was a park.\"}\n      ],\n      practice: {\n        A: { \/\/ classify\n          type: \"classify\",\n          title: \"Activity A: Classify (Drag & Drop)\",\n          instr: \"Drag each sentence into the correct box: Pret\u00e9rito Perfecto or Pret\u00e9rito Indefinido.\",\n          rule: \"Tip: hoy\/esta semana\/ya\/todav\u00eda \u2192 usually Perfecto. Ayer\/el a\u00f1o pasado\/anoche \u2192 usually Indefinido.\",\n          bins: [\n            {id:\"perfecto\", name:\"Pret\u00e9rito Perfecto\"},\n            {id:\"indef\", name:\"Pret\u00e9rito Indefinido\"}\n          ],\n          items: [\n            {id:\"s1\", text:\"Hoy he estudiado espa\u00f1ol.\", bin:\"perfecto\"},\n            {id:\"s2\", text:\"Esta semana he trabajado mucho.\", bin:\"perfecto\"},\n            {id:\"s3\", text:\"Ayer com\u00ed en un restaurante.\", bin:\"indef\"},\n            {id:\"s4\", text:\"El a\u00f1o pasado viv\u00ed en otra ciudad.\", bin:\"indef\"},\n            {id:\"s5\", text:\"Ya he terminado la tarea.\", bin:\"perfecto\"},\n            {id:\"s6\", text:\"Anoche fui al cine.\", bin:\"indef\"}\n          ],\n          pass: 5\n        },\n        B: { \/\/ choose\n          type: \"choose\",\n          title: \"Activity B: Choose the correct form\",\n          instr: \"Select the best option (Spanish). Then click Check.\",\n          items: [\n            {q:\"Hoy ___ (comer) sushi.\", options:[\"he comido\",\"com\u00ed\"], a:\"he comido\"},\n            {q:\"Ayer ___ (ir) al supermercado.\", options:[\"he ido\",\"fui\"], a:\"fui\"},\n            {q:\"Este a\u00f1o ___ (viajar) a Argentina.\", options:[\"he viajado\",\"viaj\u00e9\"], a:\"he viajado\"},\n            {q:\"La semana pasada ___ (tener) un examen.\", options:[\"he tenido\",\"tuve\"], a:\"tuve\"}\n          ],\n          pass: 3\n        },\n        C: { \/\/ meaning\n          type: \"meaning\",\n          title: \"Activity C: Imperfect (intro) \u2013 meaning\",\n          instr: \"Choose the best English meaning (focus on era\/hab\u00eda).\",\n          items: [\n            {q:\"\u201cEra peque\u00f1o.\u201d means:\", options:[\"I was small\/young (background)\",\"I have been small\/young\"], a:\"I was small\/young (background)\"},\n            {q:\"\u201cHab\u00eda mucha gente.\u201d means:\", options:[\"There were many people\",\"There have been many people\"], a:\"There were many people\"}\n          ],\n          pass: 2\n        }\n      },\n      writing: {\n        prompt: \"Write 6\u20138 lines about a recent experience and a finished past event. Use 2 time markers + both Perfecto and Indefinido. Optional: add 1 era\/hab\u00eda.\",\n        help: \"Example: Esta semana he\u2026 \/ Ayer\u2026 \/ Me gust\u00f3 porque\u2026 \/ Hab\u00eda\u2026\",\n        checks: {minChars: 120, needMarkers: [\"hoy\",\"esta semana\",\"este a\u00f1o\",\"ayer\",\"anoche\",\"la semana pasada\",\"el a\u00f1o pasado\",\"ya\",\"todav\u00eda\"], needPerfect:true, needPast:true, needConnector:true}\n      },\n      quizRule: \"Perfecto = connected to now (hoy\/esta semana\/ya\/todav\u00eda). Indefinido = finished time (ayer\/el a\u00f1o pasado). Imperfect = background (era\/hab\u00eda).\",\n      quizListen: \"Hoy he comido. Ayer com\u00ed. Esta semana he trabajado. El a\u00f1o pasado trabaj\u00e9. Cuando era ni\u00f1o, hab\u00eda un parque.\",\n      quizBank: [\n        {p:\"Hoy ___ (comer) paella.\", opts:[\"he comido\",\"com\u00ed\"], a:\"he comido\", r:\"Hoy \u2192 Perfecto\"},\n        {p:\"Ayer ___ (ir) al m\u00e9dico.\", opts:[\"he ido\",\"fui\"], a:\"fui\", r:\"Ayer \u2192 Indefinido\"},\n        {p:\"Este a\u00f1o ___ (viajar) a M\u00e9xico.\", opts:[\"he viajado\",\"viaj\u00e9\"], a:\"he viajado\", r:\"Este a\u00f1o \u2192 Perfecto\"},\n        {p:\"El a\u00f1o pasado ___ (tener) vacaciones.\", opts:[\"he tenido\",\"tuve\"], a:\"tuve\", r:\"El a\u00f1o pasado \u2192 Indefinido\"},\n        {p:\"Ya ___ (terminar) la tarea.\", opts:[\"he terminado\",\"termin\u00e9\"], a:\"he terminado\", r:\"Ya \u2192 Perfecto\"},\n        {p:\"Anoche ___ (ver) una serie.\", opts:[\"he visto\",\"vi\"], a:\"vi\", r:\"Anoche \u2192 Indefinido\"},\n        {p:\"Cuando era ni\u00f1o, ___ un parque.\", opts:[\"hab\u00eda\",\"ha habido\"], a:\"hab\u00eda\", r:\"Background \u2192 Imperfect\"},\n        {p:\"Todav\u00eda no ___ (comer).\", opts:[\"he comido\",\"com\u00ed\"], a:\"he comido\", r:\"Todav\u00eda \u2192 Perfecto\"},\n        {p:\"\u00bf___ (viajar) a Espa\u00f1a alguna vez?\", opts:[\"Has viajado\",\"Viajaste\"], a:\"Has viajado\", r:\"Experiences \u2192 Perfecto\"},\n        {p:\"La semana pasada ___ (estudiar).\", opts:[\"he estudiado\",\"estudi\u00e9\"], a:\"estudi\u00e9\", r:\"Finished time \u2192 Indefinido\"},\n        {p:\"Antes ___ muy t\u00edmido.\", opts:[\"era\",\"he sido\"], a:\"era\", r:\"Background \u2192 Imperfect\"},\n        {p:\"Esta semana ___ (trabajar) mucho.\", opts:[\"he trabajado\",\"trabaj\u00e9\"], a:\"he trabajado\", r:\"This week \u2192 Perfecto\"}\n      ],\n      can: [\n        \"I can use Pret\u00e9rito Perfecto with time words like \u201choy\/esta semana\u201d.\",\n        \"I can use Pret\u00e9rito Indefinido with \u201cayer\/el a\u00f1o pasado\u201d.\",\n        \"I can write 6\u20138 lines about a past experience (A2).\",\n        \"I can recognise basic imperfect meaning (era\/hab\u00eda).\",\n        \"I can pass the quiz with 80% or more.\"\n      ]\n    },\n\n    m2: {\n      title: \"Module 2 \u2013 Daily Routines & Frequency\",\n      time: \"Estimated: 55\u201370 min\",\n      desc: \"Daily routines, reflexive verbs, schedules, frequency expressions.\",\n      learnRule: `\n        <div class=\"tiny\">\n          <b>Rule (English):<\/b><br\/>\n          \u2022 Reflexive verbs use <b>me\/te\/se\/nos\/se<\/b>: <b>me levanto<\/b>, <b>te acuestas<\/b>.<br\/>\n          \u2022 Frequency: <b>siempre<\/b>, <b>normalmente<\/b>, <b>a veces<\/b>, <b>nunca<\/b>.<br\/>\n          \u2022 Time: <b>a las<\/b> + hour: \u201cMe levanto <b>a las<\/b> siete.\u201d\n        <\/div>\n      `,\n      examplesListen: \"Me levanto a las siete. Siempre desayuno. A veces trabajo desde casa. Nunca me acuesto tarde.\",\n      visuals: [\n        {h:\"Reflexive verbs\", t:\"me\/te\/se + verb\", ex:\"Me levanto.\", ico:\"person\"},\n        {h:\"Frequency\", t:\"siempre \u00b7 normalmente \u00b7 a veces \u00b7 nunca\", ex:\"A veces estudio.\", ico:\"repeat\"},\n        {h:\"Schedules\", t:\"a las + hora\", ex:\"A las ocho trabajo.\", ico:\"clock\"}\n      ],\n      phrases: [\n        {es:\"Me levanto temprano.\", en:\"I get up early.\"},\n        {es:\"Me ducho por la ma\u00f1ana.\", en:\"I shower in the morning.\"},\n        {es:\"Siempre desayuno.\", en:\"I always have breakfast.\"},\n        {es:\"A veces estudio por la noche.\", en:\"I sometimes study at night.\"},\n        {es:\"Nunca me acuesto tarde.\", en:\"I never go to bed late.\"},\n        {es:\"Trabajo a las ocho.\", en:\"I work at eight.\"}\n      ],\n      practice: {\n        A: {\n          type:\"choose\",\n          title:\"Activity A: Reflexive or not?\",\n          instr:\"Choose the correct option.\",\n          items:[\n            {q:\"Yo ___ (levantarse) a las siete.\", options:[\"me levanto\",\"levanto\"], a:\"me levanto\"},\n            {q:\"Ella ___ (ducharse) por la ma\u00f1ana.\", options:[\"se ducha\",\"ducha\"], a:\"se ducha\"},\n            {q:\"Nosotros ___ (acostarse) temprano.\", options:[\"nos acostamos\",\"acostamos\"], a:\"nos acostamos\"},\n            {q:\"T\u00fa ___ caf\u00e9.\", options:[\"tomas\",\"te tomas\"], a:\"tomas\"}\n          ],\n          pass:3\n        },\n        B: {\n          type:\"cloze\",\n          title:\"Activity B: Frequency (fill the gap)\",\n          instr:\"Type the missing word (siempre \/ normalmente \/ a veces \/ nunca).\",\n          items:[\n            {q:\"Yo ___ estudio los lunes.\", a:\"siempre\"},\n            {q:\"___ trabajo desde casa, pero no todos los d\u00edas.\", a:\"a veces\"},\n            {q:\"Yo ___ bebo caf\u00e9 por la noche.\", a:\"nunca\"},\n            {q:\"Mi hermano ___ llega tarde.\", a:\"normalmente\"}\n          ],\n          pass:3\n        },\n        C: {\n          type:\"order\",\n          title:\"Activity C: Put the routine in order\",\n          instr:\"Order the routine from morning to night (1\u20135).\",\n          items:[\"Me levanto\",\"Desayuno\",\"Trabajo\/Estudio\",\"Ceno\",\"Me acuesto\"],\n          pass:5\n        }\n      },\n      writing: {\n        prompt:\"Write 6\u20138 lines describing your daily routine. Use 3 reflexive verbs + 2 frequency words + 2 time expressions (a las\u2026).\",\n        help:\"Example: Me levanto\u2026 Siempre\u2026 A veces\u2026 A las\u2026\",\n        checks:{minChars:120, needMarkers:[\"a las\",\"por la ma\u00f1ana\",\"por la tarde\",\"por la noche\",\"siempre\",\"a veces\",\"nunca\",\"normalmente\"], needPerfect:false, needPast:false, needConnector:true}\n      },\n      quizRule:\"Reflexive verbs: me\/te\/se\/nos\/se. Frequency words and time expressions (a las\u2026).\",\n      quizListen:\"Me levanto a las siete. Siempre desayuno. A veces trabajo. Nunca me acuesto tarde.\",\n      quizBank:[\n        {p:\"Yo ___ a las siete. (levantarse)\", opts:[\"me levanto\",\"levanto\"], a:\"me levanto\", r:\"Reflexive: me + verb\"},\n        {p:\"Ella ___ por la ma\u00f1ana. (ducharse)\", opts:[\"se ducha\",\"ducha\"], a:\"se ducha\", r:\"Reflexive: se\"},\n        {p:\"Nosotros ___ temprano. (acostarse)\", opts:[\"nos acostamos\",\"acostamos\"], a:\"nos acostamos\", r:\"Reflexive: nos\"},\n        {p:\"Yo ___ desayuno. (always)\", opts:[\"siempre\",\"nunca\"], a:\"siempre\", r:\"Frequency\"},\n        {p:\"Yo ___ bebo caf\u00e9 por la noche.\", opts:[\"nunca\",\"a veces\"], a:\"nunca\", r:\"Frequency\"},\n        {p:\"A veces ___ en casa.\", opts:[\"trabajo\",\"me trabajo\"], a:\"trabajo\", r:\"Not all verbs are reflexive\"},\n        {p:\"Trabajo ___ las ocho.\", opts:[\"a\",\"en\"], a:\"a\", r:\"Time: a las\"},\n        {p:\"Normalmente ___ tarde.\", opts:[\"llego\",\"me llego\"], a:\"llego\", r:\"Not reflexive\"},\n        {p:\"T\u00fa ___ a las seis. (levantarse)\", opts:[\"te levantas\",\"levantas\"], a:\"te levantas\", r:\"Reflexive: te\"},\n        {p:\"Nunca ___ tarde.\", opts:[\"me acuesto\",\"acuesto\"], a:\"me acuesto\", r:\"Reflexive: me\"}\n      ],\n      can:[\n        \"I can describe my routine using reflexive verbs (me levanto, me acuesto\u2026).\",\n        \"I can use frequency words (siempre, normalmente, a veces, nunca).\",\n        \"I can talk about schedules using 'a las\u2026'.\",\n        \"I can write a short routine paragraph (A2).\",\n        \"I can pass the quiz with 80% or more.\"\n      ]\n    },\n\n    m3: {\n      title:\"Module 3 \u2013 Opinions & Comparisons\",\n      time:\"Estimated: 60\u201375 min\",\n      desc:\"Simple opinions, preferences, comparatives and superlatives, connectors (porque\/pero).\",\n      learnRule: `\n        <div class=\"tiny\">\n          <b>Rule (English):<\/b><br\/>\n          \u2022 Opinions: <b>Creo que\u2026<\/b>, <b>Me gusta\u2026<\/b>, <b>Prefiero\u2026<\/b><br\/>\n          \u2022 Comparatives: <b>m\u00e1s\u2026 que<\/b>, <b>menos\u2026 que<\/b>, <b>tan\u2026 como<\/b><br\/>\n          \u2022 Superlatives: <b>el\/la m\u00e1s\u2026<\/b> (the most). Example: \u201cEs <b>la ciudad m\u00e1s bonita<\/b>.\u201d\n        <\/div>\n      `,\n      examplesListen:\"Creo que Madrid es m\u00e1s grande que Valencia. Me gusta el t\u00e9, pero prefiero el caf\u00e9. Barcelona es la ciudad m\u00e1s famosa.\",\n      visuals:[\n        {h:\"Opinions\", t:\"Creo que\u2026 \/ Me gusta\u2026 \/ Prefiero\u2026\", ex:\"Prefiero el caf\u00e9.\", ico:\"chat\"},\n        {h:\"Comparatives\", t:\"m\u00e1s\u2026 que \/ menos\u2026 que \/ tan\u2026 como\", ex:\"M\u00e1s barato que\u2026\", ico:\"scale\"},\n        {h:\"Connectors\", t:\"porque \u00b7 pero \u00b7 y \u00b7 entonces\", ex:\"Me gusta porque\u2026\", ico:\"link\"}\n      ],\n      phrases:[\n        {es:\"Creo que es interesante.\", en:\"I think it is interesting.\"},\n        {es:\"Me gusta el caf\u00e9, pero prefiero el t\u00e9.\", en:\"I like coffee, but I prefer tea.\"},\n        {es:\"Este libro es m\u00e1s f\u00e1cil que el otro.\", en:\"This book is easier than the other.\"},\n        {es:\"Es la ciudad m\u00e1s bonita.\", en:\"It\u2019s the most beautiful city.\"},\n        {es:\"Me gusta porque es barato.\", en:\"I like it because it\u2019s cheap.\"}\n      ],\n      practice:{\n        A:{\n          type:\"cloze\",\n          title:\"Activity A: Complete the comparative\",\n          instr:\"Fill the gaps (m\u00e1s \/ menos \/ tan).\",\n          items:[\n            {q:\"El caf\u00e9 es ___ fuerte que el t\u00e9.\", a:\"m\u00e1s\"},\n            {q:\"Esta tarea es ___ dif\u00edcil que la anterior.\", a:\"menos\"},\n            {q:\"Madrid es ___ grande ___ Barcelona. (tan...como)\", a:\"tan\"},\n            {q:\"Este hotel es ___ caro que ese.\", a:\"m\u00e1s\"}\n          ],\n          pass:3\n        },\n        B:{\n          type:\"choose\",\n          title:\"Activity B: Opinion + connector\",\n          instr:\"Choose the best option.\",\n          items:[\n            {q:\"Me gusta este curso ___ es pr\u00e1ctico.\", options:[\"porque\",\"pero\"], a:\"porque\"},\n            {q:\"Me gusta viajar, ___ no tengo tiempo.\", options:[\"pero\",\"porque\"], a:\"pero\"},\n            {q:\"Creo ___ es importante estudiar.\", options:[\"que\",\"de\"], a:\"que\"},\n            {q:\"Prefiero el t\u00e9 ___ el caf\u00e9.\", options:[\"a\",\"que\"], a:\"a\"}\n          ],\n          pass:3\n        },\n        C:{\n          type:\"order\",\n          title:\"Activity C: Build a mini opinion (order)\",\n          instr:\"Order the chunks to make a correct sentence.\",\n          items:[\"Me gusta\",\"porque\",\"es\",\"interesante\"],\n          pass:4\n        }\n      },\n      writing:{\n        prompt:\"Write 6\u20138 lines giving 2 opinions and 2 comparisons. Use: porque\/pero + 1 superlative (el\/la m\u00e1s\u2026).\",\n        help:\"Example: Me gusta\u2026 porque\u2026 \/ X es m\u00e1s\u2026 que\u2026 \/ Es la m\u00e1s\u2026\",\n        checks:{minChars:120, needMarkers:[\"porque\",\"pero\",\"m\u00e1s\",\"menos\",\"tan\",\"como\",\"la m\u00e1s\",\"el m\u00e1s\"], needPerfect:false, needPast:false, needConnector:true}\n      },\n      quizRule:\"Use 'm\u00e1s\u2026 que', 'menos\u2026 que', 'tan\u2026 como', and simple opinion starters (Creo que\u2026, Me gusta\u2026, Prefiero\u2026).\",\n      quizListen:\"Creo que es mejor. Es m\u00e1s barato que\u2026 Me gusta porque\u2026 pero prefiero\u2026 Es la ciudad m\u00e1s bonita.\",\n      quizBank:[\n        {p:\"El t\u00e9 es ___ fuerte que el caf\u00e9.\", opts:[\"menos\",\"m\u00e1s\"], a:\"menos\", r:\"Comparative\"},\n        {p:\"Este libro es ___ f\u00e1cil que el otro.\", opts:[\"m\u00e1s\",\"tan\"], a:\"m\u00e1s\", r:\"m\u00e1s\u2026 que\"},\n        {p:\"Madrid es tan grande ___ Barcelona.\", opts:[\"como\",\"que\"], a:\"como\", r:\"tan\u2026 como\"},\n        {p:\"Es la ciudad ___ bonita.\", opts:[\"m\u00e1s\",\"menos\"], a:\"m\u00e1s\", r:\"superlative\"},\n        {p:\"Me gusta ___ es barato.\", opts:[\"porque\",\"pero\"], a:\"porque\", r:\"connector\"},\n        {p:\"Me gusta, ___ prefiero otra opci\u00f3n.\", opts:[\"pero\",\"porque\"], a:\"pero\", r:\"connector\"},\n        {p:\"Creo ___ es importante.\", opts:[\"que\",\"a\"], a:\"que\", r:\"opinion\"},\n        {p:\"Prefiero el t\u00e9 ___ el caf\u00e9.\", opts:[\"a\",\"que\"], a:\"a\", r:\"preferir a\"},\n        {p:\"Este hotel es ___ caro que ese.\", opts:[\"m\u00e1s\",\"menos\"], a:\"m\u00e1s\", r:\"comparative\"},\n        {p:\"Mi ciudad es la ___ grande.\", opts:[\"m\u00e1s\",\"tan\"], a:\"m\u00e1s\", r:\"superlative\"}\n      ],\n      can:[\n        \"I can express simple opinions (Creo que\u2026, Me gusta\u2026, Prefiero\u2026).\",\n        \"I can use comparatives (m\u00e1s\/menos\u2026 que, tan\u2026 como).\",\n        \"I can use a superlative (el\/la m\u00e1s\u2026).\",\n        \"I can connect ideas with porque\/pero.\",\n        \"I can pass the quiz with 80% or more.\"\n      ]\n    },\n\n    m4: {\n      title:\"Module 4 \u2013 Plans & Obligations\",\n      time:\"Estimated: 60\u201375 min\",\n      desc:\"Ir a + infinitive, tener que, and basic object pronouns (me\/te\/lo\/la).\",\n      learnRule: `\n        <div class=\"tiny\">\n          <b>Rule (English):<\/b><br\/>\n          \u2022 Plans: <b>ir a + infinitive<\/b>: \u201cVoy a estudiar.\u201d<br\/>\n          \u2022 Obligation: <b>tener que + infinitive<\/b>: \u201cTengo que trabajar.\u201d<br\/>\n          \u2022 Basic object pronouns: <b>me\/te\/lo\/la<\/b> before the verb: \u201cYo <b>lo<\/b> necesito.\u201d \/ \u201c\u00bfMe ayudas?\u201d\n        <\/div>\n      `,\n      examplesListen:\"Ma\u00f1ana voy a estudiar. Hoy tengo que trabajar. \u00bfMe ayudas? Lo necesito.\",\n      visuals:[\n        {h:\"Plans\", t:\"ir a + infinitive\", ex:\"Voy a viajar.\", ico:\"plane\"},\n        {h:\"Obligation\", t:\"tener que + infinitive\", ex:\"Tengo que estudiar.\", ico:\"check\"},\n        {h:\"Pronouns\", t:\"me\/te\/lo\/la\", ex:\"Lo compro. \/ Me ayudas.\", ico:\"tag\"}\n      ],\n      phrases:[\n        {es:\"Ma\u00f1ana voy a estudiar.\", en:\"Tomorrow I\u2019m going to study.\"},\n        {es:\"Tengo que trabajar hoy.\", en:\"I have to work today.\"},\n        {es:\"\u00bfMe ayudas, por favor?\", en:\"Can you help me, please?\"},\n        {es:\"Lo necesito ahora.\", en:\"I need it now.\"},\n        {es:\"La compro ma\u00f1ana.\", en:\"I\u2019ll buy it tomorrow.\"}\n      ],\n      practice:{\n        A:{\n          type:\"choose\",\n          title:\"Activity A: Plans or obligation?\",\n          instr:\"Choose the correct option.\",\n          items:[\n            {q:\"Ma\u00f1ana ___ estudiar.\", options:[\"voy a\",\"tengo que\"], a:\"voy a\"},\n            {q:\"Hoy ___ terminar la tarea.\", options:[\"voy a\",\"tengo que\"], a:\"tengo que\"},\n            {q:\"Este fin de semana ___ visitar a mi familia.\", options:[\"voy a\",\"tengo que\"], a:\"voy a\"},\n            {q:\"Ahora ___ llamar al m\u00e9dico.\", options:[\"tengo que\",\"voy a\"], a:\"tengo que\"}\n          ],\n          pass:3\n        },\n        B:{\n          type:\"cloze\",\n          title:\"Activity B: Object pronouns (fill)\",\n          instr:\"Type the missing pronoun (me \/ te \/ lo \/ la).\",\n          items:[\n            {q:\"\u00bf___ ayudas, por favor? (help me)\", a:\"me\"},\n            {q:\"No ___ entiendo. (I don\u2019t understand you)\", a:\"te\"},\n            {q:\"___ necesito hoy. (I need it \u2013 masc.)\", a:\"lo\"},\n            {q:\"___ compro ma\u00f1ana. (I buy it \u2013 fem.)\", a:\"la\"}\n          ],\n          pass:3\n        },\n        C:{\n          type:\"order\",\n          title:\"Activity C: Sentence order\",\n          instr:\"Order the chunks to make a correct sentence.\",\n          items:[\"Ma\u00f1ana\",\"voy a\",\"comprar\",\"la entrada\"],\n          pass:4\n        }\n      },\n      writing:{\n        prompt:\"Write 6\u20138 lines about your plans and obligations this week. Use: 3 'voy a\u2026', 2 'tengo que\u2026', and 2 object pronouns (me\/te\/lo\/la).\",\n        help:\"Example: Esta semana voy a\u2026 \/ Tengo que\u2026 \/ Lo necesito\u2026 \/ \u00bfMe ayudas?\",\n        checks:{minChars:120, needMarkers:[\"ma\u00f1ana\",\"esta semana\",\"hoy\",\"voy a\",\"tengo que\",\"me\",\"te\",\"lo\",\"la\"], needPerfect:false, needPast:false, needConnector:true}\n      },\n      quizRule:\"Plans: ir a + infinitive. Obligation: tener que + infinitive. Pronouns: me\/te\/lo\/la before the verb.\",\n      quizListen:\"Ma\u00f1ana voy a estudiar. Hoy tengo que trabajar. \u00bfMe ayudas? Lo necesito.\",\n      quizBank:[\n        {p:\"Ma\u00f1ana ___ estudiar.\", opts:[\"voy a\",\"tengo que\"], a:\"voy a\", r:\"plan\"},\n        {p:\"Hoy ___ trabajar.\", opts:[\"voy a\",\"tengo que\"], a:\"tengo que\", r:\"obligation\"},\n        {p:\"\u00bf___ ayudas?\", opts:[\"me\",\"lo\"], a:\"me\", r:\"help me\"},\n        {p:\"___ necesito ahora. (it, masc.)\", opts:[\"lo\",\"la\"], a:\"lo\", r:\"pronoun\"},\n        {p:\"___ compro ma\u00f1ana. (it, fem.)\", opts:[\"lo\",\"la\"], a:\"la\", r:\"pronoun\"},\n        {p:\"Esta tarde ___ llamar a mi madre.\", opts:[\"voy a\",\"tengo que\"], a:\"voy a\", r:\"plan\"},\n        {p:\"Ahora ___ terminar.\", opts:[\"tengo que\",\"voy a\"], a:\"tengo que\", r:\"obligation\"},\n        {p:\"No ___ entiendo. (you)\", opts:[\"te\",\"me\"], a:\"te\", r:\"I don't understand you\"},\n        {p:\"El s\u00e1bado voy a ___ a un amigo.\", opts:[\"visitar\",\"visito\"], a:\"visitar\", r:\"ir a + infinitive\"},\n        {p:\"Tengo que ___ temprano.\", opts:[\"salir\",\"salgo\"], a:\"salir\", r:\"tener que + infinitive\"}\n      ],\n      can:[\n        \"I can talk about plans using 'ir a + infinitive'.\",\n        \"I can express obligation using 'tener que + infinitive'.\",\n        \"I can use basic object pronouns (me\/te\/lo\/la).\",\n        \"I can write a short plan\/obligation paragraph (A2).\",\n        \"I can pass the quiz with 80% or more.\"\n      ]\n    },\n\n    m5: {\n      title:\"Module 5 \u2013 Real-life Interaction & Review\",\n      time:\"Estimated: 70\u201390 min\",\n      desc:\"Requests, instructions, connectors, and course review (mixed A2).\",\n      learnRule: `\n        <div class=\"tiny\">\n          <b>Rule (English):<\/b><br\/>\n          \u2022 Polite requests: <b>\u00bfPuedes\u2026?<\/b> \/ <b>Por favor<\/b> \/ <b>Gracias<\/b>.<br\/>\n          \u2022 Imperative (affirmative, t\u00fa): <b>Habla<\/b>, <b>Compra<\/b>, <b>Ven<\/b> (irregular).<br\/>\n          \u2022 Connectors: <b>y, pero, porque, entonces<\/b> to link ideas.\n        <\/div>\n      `,\n      examplesListen:\"\u00bfPuedes ayudarme, por favor? Abre la puerta. Compra pan y leche. Estoy cansado, entonces voy a dormir.\",\n      visuals:[\n        {h:\"Requests\", t:\"\u00bfPuedes\u2026? \u00b7 por favor \u00b7 gracias\", ex:\"\u00bfPuedes repetir?\", ico:\"hand\"},\n        {h:\"Imperative\", t:\"Habla \/ Come \/ Vive \u00b7 Ven \/ Di \/ Haz\", ex:\"Ven aqu\u00ed.\", ico:\"bolt\"},\n        {h:\"Connectors\", t:\"y \u00b7 pero \u00b7 porque \u00b7 entonces\", ex:\"Me gusta, pero\u2026\", ico:\"link\"}\n      ],\n      phrases:[\n        {es:\"\u00bfPuedes ayudarme, por favor?\", en:\"Can you help me, please?\"},\n        {es:\"Abre la ventana, por favor.\", en:\"Open the window, please.\"},\n        {es:\"No puedo porque estoy ocupado.\", en:\"I can\u2019t because I\u2019m busy.\"},\n        {es:\"Entonces, voy a salir ahora.\", en:\"So, I\u2019m going to leave now.\"},\n        {es:\"Compra pan y leche.\", en:\"Buy bread and milk.\"}\n      ],\n      practice:{\n        A:{\n          type:\"choose\",\n          title:\"Activity A: Connectors (choose)\",\n          instr:\"Choose the correct connector (y \/ pero \/ porque \/ entonces).\",\n          items:[\n            {q:\"Quiero caf\u00e9 ___ t\u00e9.\", options:[\"y\",\"porque\"], a:\"y\"},\n            {q:\"Me gusta, ___ es caro.\", options:[\"pero\",\"y\"], a:\"pero\"},\n            {q:\"No voy ___ tengo trabajo.\", options:[\"porque\",\"entonces\"], a:\"porque\"},\n            {q:\"Estoy cansado; ___ voy a dormir.\", options:[\"entonces\",\"pero\"], a:\"entonces\"}\n          ],\n          pass:3\n        },\n        B:{\n          type:\"cloze\",\n          title:\"Activity B: Imperative (affirmative t\u00fa) \u2013 fill\",\n          instr:\"Type the correct imperative (abre \/ compra \/ habla \/ ven).\",\n          items:[\n            {q:\"___ la puerta, por favor. (abrir)\", a:\"abre\"},\n            {q:\"___ pan y leche. (comprar)\", a:\"compra\"},\n            {q:\"___ m\u00e1s despacio. (hablar)\", a:\"habla\"},\n            {q:\"___ aqu\u00ed, por favor. (venir)\", a:\"ven\"}\n          ],\n          pass:3\n        },\n        C:{\n          type:\"order\",\n          title:\"Activity C: Build a polite request (order)\",\n          instr:\"Order the chunks to make a polite request.\",\n          items:[\"\u00bfPuedes\",\"repetir\",\"por favor?\"],\n          pass:3\n        }\n      },\n      writing:{\n        prompt:\"Write 6\u20138 lines for a real-life situation (restaurant \/ hotel \/ shop). Use 2 polite requests + 2 connectors + 1 imperative.\",\n        help:\"Example: \u00bfPuedes\u2026? \/ por favor \/ porque \/ entonces \/ Abre\u2026 \/ Compra\u2026\",\n        checks:{minChars:120, needMarkers:[\"por favor\",\"gracias\",\"puedes\",\"porque\",\"pero\",\"entonces\",\"y\",\"abre\",\"compra\",\"habla\",\"ven\"], needPerfect:false, needPast:false, needConnector:true}\n      },\n      quizRule:\"Mix A2: connectors + polite requests + imperative. Focus on meaning and correct forms.\",\n      quizListen:\"\u00bfPuedes ayudarme, por favor? Abre la puerta. Compra pan y leche. Entonces voy a salir.\",\n      quizBank:[\n        {p:\"Estoy cansado, ___ voy a dormir.\", opts:[\"entonces\",\"porque\"], a:\"entonces\", r:\"connector\"},\n        {p:\"No voy ___ tengo trabajo.\", opts:[\"porque\",\"pero\"], a:\"porque\", r:\"connector\"},\n        {p:\"Me gusta, ___ es caro.\", opts:[\"pero\",\"y\"], a:\"pero\", r:\"connector\"},\n        {p:\"___ la ventana, por favor. (abrir)\", opts:[\"Abre\",\"Abres\"], a:\"Abre\", r:\"imperative t\u00fa\"},\n        {p:\"___ pan y leche. (comprar)\", opts:[\"Compra\",\"Compras\"], a:\"Compra\", r:\"imperative\"},\n        {p:\"___ aqu\u00ed, por favor. (venir)\", opts:[\"Ven\",\"Vienes\"], a:\"Ven\", r:\"irregular imperative\"},\n        {p:\"\u00bf___ ayudarme, por favor?\", opts:[\"Puedes\",\"Puedo\"], a:\"Puedes\", r:\"request\"},\n        {p:\"Quiero caf\u00e9 ___ t\u00e9.\", opts:[\"y\",\"pero\"], a:\"y\", r:\"connector\"},\n        {p:\"___ m\u00e1s despacio. (hablar)\", opts:[\"Habla\",\"Hablas\"], a:\"Habla\", r:\"imperative\"},\n        {p:\"Gracias ___ tu ayuda.\", opts:[\"por\",\"porque\"], a:\"por\", r:\"fixed expression\"}\n      ],\n      can:[\n        \"I can make polite requests (\u00bfPuedes\u2026?, por favor, gracias).\",\n        \"I can use basic affirmative imperatives (abre, compra, habla, ven).\",\n        \"I can connect ideas with y\/pero\/porque\/entonces.\",\n        \"I can write a short real-life dialogue\/scene (A2).\",\n        \"I can pass the quiz with 80% or more.\"\n      ]\n    }\n  };\n\n  \/\/ ==========================\n  \/\/ UI elements\n  \/\/ ==========================\n  const moduleSelect = document.getElementById(\"moduleSelect\");\n  const moduleTitle = document.getElementById(\"moduleTitle\");\n  const moduleDesc = document.getElementById(\"moduleDesc\");\n  const moduleTime = document.getElementById(\"moduleTime\");\n\n  const tabs = document.getElementById(\"tabs\");\n  const panels = {\n    learn: document.getElementById(\"panel-learn\"),\n    practice: document.getElementById(\"panel-practice\"),\n    assess: document.getElementById(\"panel-assess\"),\n    progress: document.getElementById(\"panel-progress\")\n  };\n\n  tabs.addEventListener(\"click\", (e) => {\n    const t = e.target.closest(\".tab\");\n    if(!t) return;\n    const key = t.getAttribute(\"data-tab\");\n    document.querySelectorAll(\".tab\").forEach(x => x.classList.remove(\"active\"));\n    t.classList.add(\"active\");\n    Object.keys(panels).forEach(k => panels[k].style.display = (k === key ? \"block\" : \"none\"));\n    window.scrollTo({top:0, behavior:\"smooth\"});\n  });\n\n  \/\/ Learn widgets\n  const btnShowRule = document.getElementById(\"btnShowRule\");\n  const learnRuleBox = document.getElementById(\"learnRuleBox\");\n  const btnListenExamples = document.getElementById(\"btnListenExamples\");\n  const learnVisuals = document.getElementById(\"learnVisuals\");\n  const phraseList = document.getElementById(\"phraseList\");\n  const btnListenPhrases = document.getElementById(\"btnListenPhrases\");\n\n  \/\/ Practice containers\n  const practiceA = document.getElementById(\"practiceA\");\n  const practiceB = document.getElementById(\"practiceB\");\n  const practiceC = document.getElementById(\"practiceC\");\n  const btnResetPractice = document.getElementById(\"btnResetPractice\");\n\n  \/\/ Assess widgets\n  const writingTask = document.getElementById(\"writingTask\");\n  const btnCheckAssess = document.getElementById(\"btnCheckAssess\");\n  const btnRetryIncorrect = document.getElementById(\"btnRetryIncorrect\");\n  const btnNewQuiz = document.getElementById(\"btnNewQuiz\");\n  const btnResetAssess = document.getElementById(\"btnResetAssess\");\n\n  const btnShowQuizRule = document.getElementById(\"btnShowQuizRule\");\n  const quizRuleBox = document.getElementById(\"quizRuleBox\");\n  const btnListenQuizHint = document.getElementById(\"btnListenQuizHint\");\n\n  const quizEl = document.getElementById(\"quiz\");\n  const aScoreEl = document.getElementById(\"aScore\");\n  const aMaxEl = document.getElementById(\"aMax\");\n  const aMsgEl = document.getElementById(\"aMsg\");\n  const streakEl = document.getElementById(\"streak\");\n  const bestStreakEl = document.getElementById(\"bestStreak\");\n  const avgEl = document.getElementById(\"avg\");\n  const attemptsEl = document.getElementById(\"attempts\");\n\n  \/\/ Progress widgets\n  const canList = document.getElementById(\"canList\");\n  const btnSaveChecklist = document.getElementById(\"btnSaveChecklist\");\n  const btnResetChecklist = document.getElementById(\"btnResetChecklist\");\n  const checkMsg = document.getElementById(\"checkMsg\");\n  const nextStep = document.getElementById(\"nextStep\");\n\n  \/\/ ==========================\n  \/\/ Icons (inline SVG)\n  \/\/ ==========================\n  function iconSvg(name){\n    const common = 'fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"';\n    if(name===\"clock\") return `<svg viewBox=\"0 0 24 24\" ${common}><path d=\"M12 7v6l4 2\"\/><path d=\"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"\/><\/svg>`;\n    if(name===\"calendar\") return `<svg viewBox=\"0 0 24 24\" ${common}><path d=\"M7 3v3M17 3v3\"\/><path d=\"M4 8h16\"\/><path d=\"M6 6h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z\"\/><\/svg>`;\n    if(name===\"home\") return `<svg viewBox=\"0 0 24 24\" ${common}><path d=\"M4 20V10l8-6 8 6v10\"\/><path d=\"M9 20v-6h6v6\"\/><\/svg>`;\n    if(name===\"repeat\") return `<svg viewBox=\"0 0 24 24\" ${common}><path d=\"M17 1l4 4-4 4\"\/><path d=\"M3 11V9a4 4 0 0 1 4-4h14\"\/><path d=\"M7 23l-4-4 4-4\"\/><path d=\"M21 13v2a4 4 0 0 1-4 4H3\"\/><\/svg>`;\n    if(name===\"person\") return `<svg viewBox=\"0 0 24 24\" ${common}><path d=\"M20 21a8 8 0 1 0-16 0\"\/><path d=\"M12 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4Z\"\/><\/svg>`;\n    if(name===\"chat\") return `<svg viewBox=\"0 0 24 24\" ${common}><path d=\"M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4Z\"\/><\/svg>`;\n    if(name===\"scale\") return `<svg viewBox=\"0 0 24 24\" ${common}><path d=\"M12 3v18\"\/><path d=\"M6 7h12\"\/><path d=\"M7 7l-3 6h6l-3-6Z\"\/><path d=\"M17 7l-3 6h6l-3-6Z\"\/><\/svg>`;\n    if(name===\"link\") return `<svg viewBox=\"0 0 24 24\" ${common}><path d=\"M10 13a5 5 0 0 1 0-7l1-1a5 5 0 0 1 7 7l-1 1\"\/><path d=\"M14 11a5 5 0 0 1 0 7l-1 1a5 5 0 0 1-7-7l1-1\"\/><\/svg>`;\n    if(name===\"plane\") return `<svg viewBox=\"0 0 24 24\" ${common}><path d=\"M2 16l20-8-20-8 6 8-6 8Z\"\/><path d=\"M8 8h6\"\/><\/svg>`;\n    if(name===\"check\") return `<svg viewBox=\"0 0 24 24\" ${common}><path d=\"M20 6 9 17l-5-5\"\/><path d=\"M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"\/><\/svg>`;\n    if(name===\"tag\") return `<svg viewBox=\"0 0 24 24\" ${common}><path d=\"M20 10V4H14L4 14l6 6 10-10Z\"\/><path d=\"M16 8h.01\"\/><\/svg>`;\n    if(name===\"hand\") return `<svg viewBox=\"0 0 24 24\" ${common}><path d=\"M7 11V5a2 2 0 0 1 4 0v6\"\/><path d=\"M11 11V4a2 2 0 0 1 4 0v8\"\/><path d=\"M15 12V6a2 2 0 0 1 4 0v8\"\/><path d=\"M7 11l-2 1a2 2 0 0 0-1 2v2a6 6 0 0 0 6 6h4a6 6 0 0 0 6-6v-2\"\/><\/svg>`;\n    if(name===\"bolt\") return `<svg viewBox=\"0 0 24 24\" ${common}><path d=\"M13 2 3 14h7l-1 8 10-12h-7l1-8Z\"\/><\/svg>`;\n    return `<svg viewBox=\"0 0 24 24\" ${common}><path d=\"M12 2v20\"\/><path d=\"M2 12h20\"\/><\/svg>`;\n  }\n\n  \/\/ ==========================\n  \/\/ State: module + done tracking\n  \/\/ ==========================\n  let currentKey = \"m1\";\n\n  function doneKey(){\n    return `pl_a2_${currentKey}_done`;\n  }\n  function checklistKey(){\n    return `pl_a2_${currentKey}_checklist`;\n  }\n  function statsKey(){\n    return `pl_a2_${currentKey}_stats`;\n  }\n  function loadDone(){\n    try{ return JSON.parse(localStorage.getItem(doneKey()) || \"{}\"); }\n    catch(e){ return {}; }\n  }\n  function saveDone(obj){\n    localStorage.setItem(doneKey(), JSON.stringify(obj));\n  }\n  function markDone(section, ok){\n    const d = loadDone();\n    d[section] = !!ok;\n    saveDone(d);\n  }\n  function completionSummary(){\n    const d = loadDone();\n    const keys = [\"practiceA\",\"practiceB\",\"practiceC\",\"writing\",\"quiz\"];\n    const done = keys.filter(k => d[k]).length;\n    return {done, total: keys.length, d};\n  }\n\n  \/\/ ==========================\n  \/\/ Assessment quiz runtime\n  \/\/ ==========================\n  let QUIZ_SIZE = 10;\n  let CURRENT_QUIZ = [];\n  let LAST = [];\n  let streak = 0, bestStreak = 0, attempts = 0, totalScore = 0;\n\n  function loadStats(){\n    try{\n      const s = JSON.parse(localStorage.getItem(statsKey()) || \"{}\");\n      streak = s.streak || 0;\n      bestStreak = s.bestStreak || 0;\n      attempts = s.attempts || 0;\n      totalScore = s.totalScore || 0;\n    }catch(e){}\n  }\n  function saveStats(){\n    localStorage.setItem(statsKey(), JSON.stringify({streak, bestStreak, attempts, totalScore}));\n  }\n  function updateStatsUI(){\n    streakEl.textContent = String(streak);\n    bestStreakEl.textContent = String(bestStreak);\n    attemptsEl.textContent = String(attempts);\n    avgEl.textContent = attempts ? (totalScore\/attempts).toFixed(1) + \"\/10\" : \"\u2014\";\n  }\n\n  function pickQuizSet(exclude = []){\n    const ex = new Set(exclude.map(q => q.p+\"|\"+q.a));\n    const pool = MODULES[currentKey].quizBank.filter(q => !ex.has(q.p+\"|\"+q.a));\n    return shuffle(pool).slice(0, QUIZ_SIZE);\n  }\n  function renderQuiz(){\n    quizEl.innerHTML = \"\";\n    LAST = new Array(CURRENT_QUIZ.length).fill(false);\n    aScoreEl.textContent = \"0\";\n    aMaxEl.textContent = String(CURRENT_QUIZ.length);\n    aMsgEl.className = \"feedback\";\n    aMsgEl.textContent = \"Complete the quiz and click Check.\";\n\n    CURRENT_QUIZ.forEach((q, i)=>{\n      const div = document.createElement(\"div\");\n      div.className = \"q\";\n      div.innerHTML = `\n        <div class=\"qhead\">\n          <div><b>${q.p}<\/b><\/div>\n          <div class=\"btns\">\n            <button class=\"ghost\" type=\"button\" data-rule=\"${i}\">Show rule<\/button>\n            <button type=\"button\" data-listen=\"${i}\">Listen<\/button>\n          <\/div>\n        <\/div>\n        <div class=\"rulebox\" id=\"qr-${i}\">\n          <div class=\"tiny\"><b>Rule (English):<\/b> ${q.r}<\/div>\n        <\/div>\n        <select data-answer=\"${q.a}\" data-idx=\"${i}\">\n          <option value=\"\">Choose\u2026<\/option>\n          ${q.opts.map(o=>`<option>${o}<\/option>`).join(\"\")}\n        <\/select>\n        <div class=\"feedback\" id=\"qfb-${i}\"><\/div>\n      `;\n      quizEl.appendChild(div);\n    });\n\n    document.querySelectorAll(\"[data-rule]\").forEach(btn=>{\n      btn.addEventListener(\"click\", ()=>{\n        const i = btn.getAttribute(\"data-rule\");\n        const box = document.getElementById(\"qr-\"+i);\n        const showing = box.classList.contains(\"show\");\n        box.classList.toggle(\"show\", !showing);\n        btn.textContent = showing ? \"Show rule\" : \"Hide rule\";\n      });\n    });\n    document.querySelectorAll(\"[data-listen]\").forEach(btn=>{\n      btn.addEventListener(\"click\", ()=>{\n        const i = parseInt(btn.getAttribute(\"data-listen\"),10);\n        speakES(CURRENT_QUIZ[i].p);\n      });\n    });\n  }\n  function newQuizSet(){\n    CURRENT_QUIZ = pickQuizSet();\n    renderQuiz();\n  }\n  function retryIncorrectOnly(){\n    if(!LAST.length){\n      aMsgEl.className = \"feedback warn\";\n      aMsgEl.textContent = \"Click Check first to identify incorrect items.\";\n      return;\n    }\n    const incorrect = CURRENT_QUIZ.filter((q,i)=> LAST[i] === false);\n    if(!incorrect.length){\n      aMsgEl.className = \"feedback ok\";\n      aMsgEl.textContent = \"All correct \u2705 Click New set for more practice.\";\n      return;\n    }\n    const fill = QUIZ_SIZE - incorrect.length;\n    const extra = pickQuizSet(incorrect).slice(0, Math.max(0, fill));\n    CURRENT_QUIZ = shuffle(incorrect.concat(extra)).slice(0, QUIZ_SIZE);\n    renderQuiz();\n    aMsgEl.className = \"feedback\";\n    aMsgEl.textContent = \"Retry mode: incorrect items kept + new items added to complete 10.\";\n  }\n\n  \/\/ ==========================\n  \/\/ Practice builders (3 types)\n  \/\/ ==========================\n  function buildChoose(container, cfg, doneId){\n    container.innerHTML = `\n      <div class=\"qhead\">\n        <div>\n          <b>${cfg.title}<\/b>\n          <div class=\"tiny\">Instruction (EN): ${cfg.instr}<\/div>\n        <\/div>\n        <div class=\"btns\">\n          <button type=\"button\" class=\"ghost\" data-showrule>Show rule<\/button>\n          <button type=\"button\" data-check>Check<\/button>\n          <button type=\"button\" class=\"ghost\" data-reset>Reset<\/button>\n        <\/div>\n      <\/div>\n      <div class=\"rulebox\" data-rulebox><div class=\"tiny\"><b>Rule (English):<\/b> Use the Learn rules as support.<\/div><\/div>\n      <div data-items><\/div>\n      <div class=\"feedback\" data-fb><\/div>\n    `;\n    const ruleBtn = container.querySelector(\"[data-showrule]\");\n    const ruleBox = container.querySelector(\"[data-rulebox]\");\n    ruleBtn.addEventListener(\"click\", ()=>{\n      const showing = ruleBox.classList.contains(\"show\");\n      ruleBox.classList.toggle(\"show\", !showing);\n      ruleBtn.textContent = showing ? \"Show rule\" : \"Hide rule\";\n    });\n\n    const itemsEl = container.querySelector(\"[data-items]\");\n    itemsEl.innerHTML = cfg.items.map((it, idx)=>`\n      <div style=\"margin-top:10px;\">\n        <div class=\"tiny\">${idx+1}) ${it.q}<\/div>\n        <select data-idx=\"${idx}\">\n          <option value=\"\">Choose\u2026<\/option>\n          ${it.options.map(o=>`<option>${o}<\/option>`).join(\"\")}\n        <\/select>\n        <div class=\"feedback\" id=\"${doneId}-fb-${idx}\"><\/div>\n      <\/div>\n    `).join(\"\");\n\n    const fb = container.querySelector(\"[data-fb]\");\n    container.querySelector(\"[data-check]\").addEventListener(\"click\", ()=>{\n      let score = 0;\n      cfg.items.forEach((it, idx)=>{\n        const sel = container.querySelector(`select[data-idx=\"${idx}\"]`);\n        const v = normalize(sel.value);\n        const a = normalize(it.a);\n        const f = document.getElementById(`${doneId}-fb-${idx}`);\n        if(!v){ f.className=\"feedback warn\"; f.textContent=\"Incomplete.\"; return; }\n        if(v===a){ f.className=\"feedback ok\"; f.textContent=\"Correct \u2705\"; score++; }\n        else { f.className=\"feedback bad\"; f.innerHTML=`Not correct \u274c Suggested: <b>${it.a}<\/b>`; }\n      });\n      const pass = score >= cfg.pass;\n      fb.className = pass ? \"feedback ok\" : \"feedback warn\";\n      fb.textContent = pass ? `Great \u2705 ${score}\/${cfg.items.length} correct.` : `You got ${score}\/${cfg.items.length}. Use Show rule and retry.`;\n      markDone(doneId, pass);\n      updateNextStep();\n    });\n\n    container.querySelector(\"[data-reset]\").addEventListener(\"click\", ()=>{\n      cfg.items.forEach((it, idx)=>{\n        const sel = container.querySelector(`select[data-idx=\"${idx}\"]`);\n        sel.value = \"\";\n        const f = document.getElementById(`${doneId}-fb-${idx}`);\n        f.textContent=\"\"; f.className=\"feedback\";\n      });\n      fb.textContent=\"\"; fb.className=\"feedback\";\n      markDone(doneId, false);\n      updateNextStep();\n    });\n  }\n\n  function buildCloze(container, cfg, doneId){\n    container.innerHTML = `\n      <div class=\"qhead\">\n        <div>\n          <b>${cfg.title}<\/b>\n          <div class=\"tiny\">Instruction (EN): ${cfg.instr}<\/div>\n        <\/div>\n        <div class=\"btns\">\n          <button type=\"button\" class=\"ghost\" data-showrule>Show rule<\/button>\n          <button type=\"button\" data-check>Check<\/button>\n          <button type=\"button\" class=\"ghost\" data-reset>Reset<\/button>\n        <\/div>\n      <\/div>\n      <div class=\"rulebox\" data-rulebox><div class=\"tiny\"><b>Rule (English):<\/b> Spelling accents are optional. Meaning matters.<\/div><\/div>\n      <div data-items><\/div>\n      <div class=\"feedback\" data-fb><\/div>\n    `;\n    const ruleBtn = container.querySelector(\"[data-showrule]\");\n    const ruleBox = container.querySelector(\"[data-rulebox]\");\n    ruleBtn.addEventListener(\"click\", ()=>{\n      const showing = ruleBox.classList.contains(\"show\");\n      ruleBox.classList.toggle(\"show\", !showing);\n      ruleBtn.textContent = showing ? \"Show rule\" : \"Hide rule\";\n    });\n\n    const itemsEl = container.querySelector(\"[data-items]\");\n    itemsEl.innerHTML = cfg.items.map((it, idx)=>`\n      <div style=\"margin-top:10px;\">\n        <div class=\"tiny\">${idx+1}) ${it.q}<\/div>\n        <input type=\"text\" data-idx=\"${idx}\" placeholder=\"Type your answer\u2026\">\n        <div class=\"feedback\" id=\"${doneId}-fb-${idx}\"><\/div>\n      <\/div>\n    `).join(\"\");\n\n    const fb = container.querySelector(\"[data-fb]\");\n    container.querySelector(\"[data-check]\").addEventListener(\"click\", ()=>{\n      let score = 0;\n      cfg.items.forEach((it, idx)=>{\n        const inp = container.querySelector(`input[data-idx=\"${idx}\"]`);\n        const v = normalize(inp.value);\n        const a = normalize(it.a);\n        const f = document.getElementById(`${doneId}-fb-${idx}`);\n        if(!v){ f.className=\"feedback warn\"; f.textContent=\"Incomplete.\"; return; }\n        if(v===a){ f.className=\"feedback ok\"; f.textContent=\"Correct \u2705\"; score++; }\n        else { f.className=\"feedback bad\"; f.innerHTML=`Not correct \u274c Suggested: <b>${it.a}<\/b>`; }\n      });\n      const pass = score >= cfg.pass;\n      fb.className = pass ? \"feedback ok\" : \"feedback warn\";\n      fb.textContent = pass ? `Great \u2705 ${score}\/${cfg.items.length} correct.` : `You got ${score}\/${cfg.items.length}. Review and retry.`;\n      markDone(doneId, pass);\n      updateNextStep();\n    });\n\n    container.querySelector(\"[data-reset]\").addEventListener(\"click\", ()=>{\n      cfg.items.forEach((it, idx)=>{\n        const inp = container.querySelector(`input[data-idx=\"${idx}\"]`);\n        inp.value = \"\";\n        const f = document.getElementById(`${doneId}-fb-${idx}`);\n        f.textContent=\"\"; f.className=\"feedback\";\n      });\n      fb.textContent=\"\"; fb.className=\"feedback\";\n      markDone(doneId, false);\n      updateNextStep();\n    });\n  }\n\n  function buildOrder(container, cfg, doneId){\n    \/\/ A simple numeric order checker (lightweight)\n    const target = cfg.items.slice();\n    container.innerHTML = `\n      <div class=\"qhead\">\n        <div>\n          <b>${cfg.title}<\/b>\n          <div class=\"tiny\">Instruction (EN): ${cfg.instr}<\/div>\n        <\/div>\n        <div class=\"btns\">\n          <button type=\"button\" data-check>Check<\/button>\n          <button type=\"button\" class=\"ghost\" data-reset>Reset<\/button>\n        <\/div>\n      <\/div>\n      <div class=\"tiny\" style=\"margin-top:10px;\">Type the order number (1,2,3\u2026) next to each item.<\/div>\n      <div data-items><\/div>\n      <div class=\"feedback\" data-fb><\/div>\n    `;\n    const itemsEl = container.querySelector(\"[data-items]\");\n    const shuffled = shuffle(target);\n    itemsEl.innerHTML = shuffled.map((txt, idx)=>`\n      <div style=\"display:flex; gap:10px; align-items:center; margin-top:10px;\">\n        <div style=\"flex:1;\" class=\"muted\">${txt}<\/div>\n        <input type=\"text\" inputmode=\"numeric\" pattern=\"[0-9]*\" data-idx=\"${idx}\" placeholder=\"1\" style=\"max-width:90px;\">\n      <\/div>\n      <div class=\"feedback\" id=\"${doneId}-fb-${idx}\"><\/div>\n    `).join(\"\");\n\n    const fb = container.querySelector(\"[data-fb]\");\n    container.querySelector(\"[data-check]\").addEventListener(\"click\", ()=>{\n      let score = 0;\n      shuffled.forEach((txt, idx)=>{\n        const inp = itemsEl.querySelector(`input[data-idx=\"${idx}\"]`);\n        const v = (inp.value || \"\").trim();\n        const correctPos = target.indexOf(txt) + 1;\n        const f = document.getElementById(`${doneId}-fb-${idx}`);\n        if(!v){ f.className=\"feedback warn\"; f.textContent=\"Incomplete.\"; return; }\n        if(Number(v) === correctPos){\n          f.className=\"feedback ok\"; f.textContent=\"Correct \u2705\"; score++;\n        }else{\n          f.className=\"feedback bad\"; f.innerHTML=`Not correct \u274c Suggested: <b>${correctPos}<\/b>`;\n        }\n      });\n      const pass = score >= cfg.pass;\n      fb.className = pass ? \"feedback ok\" : \"feedback warn\";\n      fb.textContent = pass ? `Great \u2705 ${score}\/${shuffled.length} correct.` : `You got ${score}\/${shuffled.length}. Retry.`;\n      markDone(doneId, pass);\n      updateNextStep();\n    });\n\n    container.querySelector(\"[data-reset]\").addEventListener(\"click\", ()=>{\n      shuffled.forEach((txt, idx)=>{\n        const inp = itemsEl.querySelector(`input[data-idx=\"${idx}\"]`);\n        inp.value = \"\";\n        const f = document.getElementById(`${doneId}-fb-${idx}`);\n        f.textContent=\"\"; f.className=\"feedback\";\n      });\n      fb.textContent=\"\"; fb.className=\"feedback\";\n      markDone(doneId, false);\n      updateNextStep();\n    });\n  }\n\n  function buildClassify(container, cfg, doneId){\n    \/\/ Lightweight classification: drag items into bins (shows last dropped sentence in each bin)\n    container.innerHTML = `\n      <div class=\"qhead\">\n        <div>\n          <b>${cfg.title}<\/b>\n          <div class=\"tiny\">Instruction (EN): ${cfg.instr}<\/div>\n        <\/div>\n        <div class=\"btns\">\n          <button type=\"button\" class=\"ghost\" data-showrule>Show rule<\/button>\n          <button type=\"button\" data-check>Check<\/button>\n          <button type=\"button\" class=\"ghost\" data-reset>Reset<\/button>\n        <\/div>\n      <\/div>\n      <div class=\"rulebox\" data-rulebox><div class=\"tiny\"><b>Tip (English):<\/b> ${cfg.rule}<\/div><\/div>\n\n      <div class=\"twoCol\">\n        <div class=\"listBox\">\n          <div class=\"badge\">Drag sentences<\/div>\n          <div data-drags><\/div>\n        <\/div>\n        <div class=\"listBox\">\n          <div class=\"badge\">Drop zones<\/div>\n          <div data-bins><\/div>\n        <\/div>\n      <\/div>\n\n      <div class=\"feedback\" data-fb><\/div>\n    `;\n\n    const ruleBtn = container.querySelector(\"[data-showrule]\");\n    const ruleBox = container.querySelector(\"[data-rulebox]\");\n    ruleBtn.addEventListener(\"click\", ()=>{\n      const showing = ruleBox.classList.contains(\"show\");\n      ruleBox.classList.toggle(\"show\", !showing);\n      ruleBtn.textContent = showing ? \"Show rule\" : \"Hide rule\";\n    });\n\n    const dragsEl = container.querySelector(\"[data-drags]\");\n    const binsEl = container.querySelector(\"[data-bins]\");\n    const fb = container.querySelector(\"[data-fb]\");\n    const placed = {}; \/\/ itemId -> binId\n\n    function render(){\n      fb.textContent=\"\"; fb.className=\"feedback\";\n      dragsEl.innerHTML = \"\";\n      binsEl.innerHTML = \"\";\n\n      shuffle(cfg.items).forEach(it=>{\n        const d = document.createElement(\"div\");\n        d.className = \"item\";\n        d.id = it.id;\n        d.draggable = true;\n        d.innerHTML = `<span>${it.text}<\/span><span class=\"badge\">Drag<\/span>`;\n        d.addEventListener(\"dragstart\", (e)=> e.dataTransfer.setData(\"text\/plain\", it.id));\n        dragsEl.appendChild(d);\n      });\n\n      cfg.bins.forEach(b=>{\n        const z = document.createElement(\"div\");\n        z.className = \"bin\";\n        z.setAttribute(\"data-bin\", b.id);\n        z.innerHTML = `<div class=\"binTitle\"><strong>${b.name}<\/strong><span class=\"slot\">Drop here<\/span><\/div>`;\n        z.addEventListener(\"dragover\", (e)=> e.preventDefault());\n        z.addEventListener(\"drop\", (e)=>{\n          e.preventDefault();\n          const id = e.dataTransfer.getData(\"text\/plain\");\n          if(!id) return;\n          placed[id] = b.id;\n          const it = cfg.items.find(x=>x.id===id);\n          z.querySelector(\".slot\").textContent = it ? it.text : \"\u2014\";\n        });\n        binsEl.appendChild(z);\n      });\n    }\n    render();\n\n    container.querySelector(\"[data-check]\").addEventListener(\"click\", ()=>{\n      let correct = 0;\n      cfg.items.forEach(it=>{\n        if(placed[it.id] === it.bin) correct++;\n      });\n      const pass = correct >= cfg.pass;\n      fb.className = pass ? \"feedback ok\" : \"feedback warn\";\n      fb.textContent = pass ? `Great \u2705 ${correct}\/${cfg.items.length} correct.` : `You got ${correct}\/${cfg.items.length}. Use Show rule and retry.`;\n      markDone(doneId, pass);\n      updateNextStep();\n    });\n\n    container.querySelector(\"[data-reset]\").addEventListener(\"click\", ()=>{\n      Object.keys(placed).forEach(k=> delete placed[k]);\n      render();\n      markDone(doneId, false);\n      updateNextStep();\n    });\n  }\n\n  function buildMeaning(container, cfg, doneId){\n    \/\/ meaning = choose style\n    buildChoose(container, { ...cfg, pass: cfg.pass }, doneId);\n  }\n\n  \/\/ ==========================\n  \/\/ Writing task builder + self-check\n  \/\/ ==========================\n  function buildWriting(container, cfg){\n    container.innerHTML = `\n      <div class=\"qhead\">\n        <div>\n          <b>Writing task (Spanish)<\/b>\n          <div class=\"tiny\">Instruction (EN): ${cfg.prompt}<\/div>\n        <\/div>\n        <div class=\"btns\">\n          <button class=\"ghost\" type=\"button\" data-help>Show help<\/button>\n          <button type=\"button\" data-check>Self-check writing<\/button>\n          <button class=\"ghost\" type=\"button\" data-clear>Clear<\/button>\n        <\/div>\n      <\/div>\n      <div class=\"rulebox\" data-helpbox><div class=\"tiny\"><b>Support (English):<\/b> ${cfg.help}<\/div><\/div>\n      <textarea data-area placeholder=\"Escribe aqu\u00ed... (6\u20138 l\u00edneas)\"><\/textarea>\n      <div class=\"tiny\" data-count>0 characters<\/div>\n      <div class=\"feedback\" data-fb><\/div>\n    `;\n\n    const helpBtn = container.querySelector(\"[data-help]\");\n    const helpBox = container.querySelector(\"[data-helpbox]\");\n    const area = container.querySelector(\"[data-area]\");\n    const count = container.querySelector(\"[data-count]\");\n    const fb = container.querySelector(\"[data-fb]\");\n\n    helpBtn.addEventListener(\"click\", ()=>{\n      const showing = helpBox.classList.contains(\"show\");\n      helpBox.classList.toggle(\"show\", !showing);\n      helpBtn.textContent = showing ? \"Show help\" : \"Hide help\";\n    });\n\n    area.addEventListener(\"input\", ()=> count.textContent = `${area.value.length} characters`);\n\n    container.querySelector(\"[data-clear]\").addEventListener(\"click\", ()=>{\n      area.value = \"\"; count.textContent = \"0 characters\";\n      fb.textContent=\"\"; fb.className=\"feedback\";\n      markDone(\"writing\", false);\n      updateNextStep();\n    });\n\n    container.querySelector(\"[data-check]\").addEventListener(\"click\", ()=>{\n      const t = area.value || \"\";\n      const n = normalize(t);\n\n      const checks = cfg.checks || {};\n      let score = 0;\n      const needs = [];\n\n      if(t.trim().length >= (checks.minChars || 120)) score++; else needs.push(\"Write a bit more (aim for 6\u20138 lines).\");\n\n      \/\/ markers\n      const markers = (checks.needMarkers || []);\n      const markerCount = markers.filter(m => n.includes(normalize(m))).length;\n      if(markerCount >= 2) score++; else needs.push(\"Use at least 2 target words\/markers from this module.\");\n\n      \/\/ perfect \/ past heuristic for M1 only; for others we accept if not required\n      if(checks.needPerfect){\n        const hasPerfect = [\"he \",\"has \",\"ha \",\"hemos \",\"han \"].some(a => n.includes(a));\n        if(hasPerfect) score++; else needs.push(\"Include at least one Pret\u00e9rito Perfecto form (he\/has\/ha + participle).\");\n      } else score++;\n\n      if(checks.needPast){\n        const pastHint = \/(ayer|anoche|el ano pasado|el a\u00f1o pasado|la semana pasada|fui|tuve|comi|comi\u00f3|viaje|viaj\u00f3|vi|viv\u00ed|trabaj\u00e9|estudi\u00e9)\/.test(n);\n        if(pastHint) score++; else needs.push(\"Include at least one finished past idea (ayer \/ el a\u00f1o pasado \/ past verb).\");\n      } else score++;\n\n      \/\/ connectors (basic)\n      if(checks.needConnector){\n        const hasConn = [\"porque\",\"pero\",\"entonces\",\"y\"].some(c => n.includes(\" \" + c + \" \"));\n        if(hasConn) score++; else needs.push(\"Add at least 1 connector (porque\/pero\/entonces\/y).\");\n      } else score++;\n\n      \/\/ total possible = 5 (chars + markers + perfect + past + connector)\n      const max = 5;\n      const pass = score >= 4;\n\n      if(pass){\n        fb.className = \"feedback ok\";\n        fb.innerHTML = `Great \u2705 Writing self-check: <b>${score}\/${max}<\/b>`;\n        markDone(\"writing\", true);\n      } else {\n        fb.className = \"feedback warn\";\n        fb.innerHTML = `Almost there \u26a0\ufe0f Writing self-check: <b>${score}\/${max}<\/b><ul>${needs.map(x=>`<li>${x}<\/li>`).join(\"\")}<\/ul>`;\n        markDone(\"writing\", false);\n      }\n      updateNextStep();\n    });\n  }\n\n  \/\/ ==========================\n  \/\/ Learn renderers\n  \/\/ ==========================\n  function renderLearn(m){\n    learnRuleBox.innerHTML = m.learnRule;\n\n    \/\/ Rule toggle\n    learnRuleBox.classList.remove(\"show\");\n    btnShowRule.textContent = \"Show rule\";\n\n    btnListenExamples.onclick = ()=> speakES(m.examplesListen);\n    btnListenPhrases.onclick = ()=> speakES(m.phrases.map(p=>p.es).join(\" \"));\n\n    phraseList.innerHTML = m.phrases.map(p => `<li><b>${p.es}<\/b> <span class=\"tiny\">(${p.en})<\/span><\/li>`).join(\"\");\n\n    learnVisuals.innerHTML = m.visuals.map(v=>`\n      <div class=\"visual\">\n        <div class=\"ico\" aria-hidden=\"true\">${iconSvg(v.ico)}<\/div>\n        <div>\n          <h4>${v.h}<\/h4>\n          <p class=\"tiny\">${v.t}<\/p>\n          <p class=\"tiny\"><b>${v.ex}<\/b><\/p>\n        <\/div>\n      <\/div>\n    `).join(\"\");\n  }\n\n  btnShowRule.addEventListener(\"click\", ()=>{\n    const showing = learnRuleBox.classList.contains(\"show\");\n    learnRuleBox.classList.toggle(\"show\", !showing);\n    btnShowRule.textContent = showing ? \"Show rule\" : \"Hide rule\";\n  });\n\n  \/\/ ==========================\n  \/\/ Practice renderers\n  \/\/ ==========================\n  function renderPractice(m){\n    const A = m.practice.A, B = m.practice.B, C = m.practice.C;\n\n    \/\/ Build A\n    if(A.type === \"classify\") buildClassify(practiceA, A, \"practiceA\");\n    else if(A.type === \"choose\") buildChoose(practiceA, A, \"practiceA\");\n    else if(A.type === \"cloze\") buildCloze(practiceA, A, \"practiceA\");\n    else if(A.type === \"order\") buildOrder(practiceA, A, \"practiceA\");\n    else buildChoose(practiceA, A, \"practiceA\");\n\n    \/\/ Build B\n    if(B.type === \"classify\") buildClassify(practiceB, B, \"practiceB\");\n    else if(B.type === \"choose\") buildChoose(practiceB, B, \"practiceB\");\n    else if(B.type === \"cloze\") buildCloze(practiceB, B, \"practiceB\");\n    else if(B.type === \"order\") buildOrder(practiceB, B, \"practiceB\");\n    else buildChoose(practiceB, B, \"practiceB\");\n\n    \/\/ Build C\n    if(C.type === \"classify\") buildClassify(practiceC, C, \"practiceC\");\n    else if(C.type === \"choose\") buildChoose(practiceC, C, \"practiceC\");\n    else if(C.type === \"cloze\") buildCloze(practiceC, C, \"practiceC\");\n    else if(C.type === \"order\") buildOrder(practiceC, C, \"practiceC\");\n    else if(C.type === \"meaning\") buildMeaning(practiceC, C, \"practiceC\");\n    else buildChoose(practiceC, C, \"practiceC\");\n  }\n\n  btnResetPractice.addEventListener(\"click\", ()=>{\n    \/\/ Reset done status for practice\n    const d = loadDone();\n    d.practiceA = false; d.practiceB = false; d.practiceC = false;\n    saveDone(d);\n    renderPractice(MODULES[currentKey]);\n    updateNextStep();\n    alert(\"Practice reset \u2705\");\n  });\n\n  \/\/ ==========================\n  \/\/ Assess renderers\n  \/\/ ==========================\n  function renderAssess(m){\n    \/\/ Reset rule boxes\n    quizRuleBox.classList.remove(\"show\");\n    btnShowQuizRule.textContent = \"Show rule\";\n    quizRuleBox.innerHTML = `<div class=\"tiny\"><b>Rule (English):<\/b> ${m.quizRule}<\/div>`;\n    btnListenQuizHint.onclick = ()=> speakES(m.quizListen);\n\n    \/\/ Writing\n    buildWriting(writingTask, m.writing);\n\n    \/\/ Stats\n    loadStats();\n    updateStatsUI();\n\n    \/\/ Quiz\n    newQuizSet();\n  }\n\n  btnShowQuizRule.addEventListener(\"click\", ()=>{\n    const showing = quizRuleBox.classList.contains(\"show\");\n    quizRuleBox.classList.toggle(\"show\", !showing);\n    btnShowQuizRule.textContent = showing ? \"Show rule\" : \"Hide rule\";\n  });\n\n  function checkAssessment(){\n    const selects = Array.from(quizEl.querySelectorAll(\"select[data-answer]\"));\n    let answered = 0, score = 0;\n    let localStreak = streak;\n\n    selects.forEach(sel=>{\n      const idx = parseInt(sel.getAttribute(\"data-idx\"),10);\n      const ans = sel.getAttribute(\"data-answer\");\n      const fb = document.getElementById(\"qfb-\"+idx);\n      const v = sel.value;\n      if(v) answered++;\n\n      if(!v){\n        fb.className = \"feedback warn\";\n        fb.textContent = \"Incomplete.\";\n        localStreak = 0;\n        LAST[idx] = false;\n        return;\n      }\n      const ok = normalize(v) === normalize(ans);\n      LAST[idx] = ok;\n      if(ok){\n        fb.className = \"feedback ok\";\n        fb.textContent = \"Correct \u2705\";\n        score++;\n        localStreak++;\n        if(localStreak > bestStreak) bestStreak = localStreak;\n      }else{\n        fb.className = \"feedback bad\";\n        fb.innerHTML = `Not correct \u274c Suggested: <b>${ans}<\/b>`;\n        localStreak = 0;\n      }\n    });\n\n    streak = localStreak;\n    aScoreEl.textContent = String(score);\n\n    if(answered === selects.length){\n      attempts++;\n      totalScore += score;\n      saveStats();\n      updateStatsUI();\n    }\n\n    const pct = selects.length ? (score \/ selects.length) : 0;\n\n    if(answered < selects.length){\n      aMsgEl.className = \"feedback warn\";\n      aMsgEl.textContent = `You answered ${answered}\/${selects.length}. Complete all items to register your attempt.`;\n      markDone(\"quiz\", false);\n    } else if(pct >= 0.8){\n      aMsgEl.className = \"feedback ok\";\n      aMsgEl.textContent = \"Pass \u2705 Great job. Go to Progress and tick your \u201cI can\u2026\u201d checklist.\";\n      markDone(\"quiz\", true);\n    } else if(pct >= 0.6){\n      aMsgEl.className = \"feedback warn\";\n      aMsgEl.textContent = \"Almost \ud83d\udc4d Click Retry incorrect only and use Show rule.\";\n      markDone(\"quiz\", false);\n    } else {\n      aMsgEl.className = \"feedback bad\";\n      aMsgEl.textContent = \"Keep practicing \ud83d\udd01 Return to Practice and try again.\";\n      markDone(\"quiz\", false);\n    }\n    updateNextStep();\n  }\n\n  btnCheckAssess.addEventListener(\"click\", checkAssessment);\n  btnRetryIncorrect.addEventListener(\"click\", retryIncorrectOnly);\n  btnNewQuiz.addEventListener(\"click\", newQuizSet);\n  btnResetAssess.addEventListener(\"click\", ()=>{\n    \/\/ Reset writing + quiz selections\n    markDone(\"writing\", false);\n    markDone(\"quiz\", false);\n    renderAssess(MODULES[currentKey]);\n    updateNextStep();\n  });\n\n  \/\/ ==========================\n  \/\/ Progress renderers\n  \/\/ ==========================\n  function renderProgress(m){\n    \/\/ checklist\n    canList.innerHTML = m.can.map((txt, i)=>`\n      <label style=\"display:flex; gap:10px; align-items:flex-start;\">\n        <input type=\"checkbox\" class=\"can\" data-idx=\"${i}\" \/>\n        <span>${txt}<\/span>\n      <\/label>\n    `).join(\"\");\n\n    \/\/ load saved checklist\n    const raw = localStorage.getItem(checklistKey());\n    if(raw){\n      try{\n        const vals = JSON.parse(raw);\n        document.querySelectorAll(\".can\").forEach((c,i)=> c.checked = !!vals[i]);\n      }catch(e){}\n    }\n    checkMsg.textContent = \"\"; checkMsg.className = \"feedback\";\n    updateNextStep();\n  }\n\n  btnSaveChecklist.addEventListener(\"click\", ()=>{\n    const vals = Array.from(document.querySelectorAll(\".can\")).map(x=>x.checked);\n    localStorage.setItem(checklistKey(), JSON.stringify(vals));\n    checkMsg.className = \"feedback ok\";\n    checkMsg.textContent = `Saved \u2705 (${vals.filter(Boolean).length}\/${vals.length} statements checked)`;\n    updateNextStep();\n  });\n\n  btnResetChecklist.addEventListener(\"click\", ()=>{\n    document.querySelectorAll(\".can\").forEach(x=> x.checked=false);\n    localStorage.removeItem(checklistKey());\n    checkMsg.className = \"feedback\";\n    checkMsg.textContent = \"Reset done.\";\n    updateNextStep();\n  });\n\n  \/\/ ==========================\n  \/\/ Guidance\n  \/\/ ==========================\n  function updateNextStep(){\n    const c = completionSummary();\n    const checklistCount = Array.from(document.querySelectorAll(\".can\")).filter(x=>x.checked).length || 0;\n    const checklistTotal = Array.from(document.querySelectorAll(\".can\")).length || 5;\n\n    let msg = \"\";\n    if(c.done < 2){\n      msg = \"Start with <b>Practice<\/b>: complete Activity A and B. Use Show rule if needed.\";\n    } else if(c.done < 3){\n      msg = \"Next: complete <b>Practice C<\/b> to consolidate the module focus.\";\n    } else if(!c.d[\"writing\"]){\n      msg = \"Now go to <b>Assess<\/b>: complete the <b>Writing<\/b> self-check (6\u20138 lines).\";\n    } else if(!c.d[\"quiz\"]){\n      msg = \"Then pass the <b>Quiz<\/b> with <b>80%<\/b>. Use Retry incorrect only.\";\n    } else if(checklistCount < checklistTotal){\n      msg = \"Assessment complete \u2705 Go to <b>Progress<\/b> and tick your \u201cI can\u2026\u201d checklist, then Save.\";\n    } else {\n      msg = \"Module completed \u2705 Select the next module from the dropdown.\";\n    }\n\n    nextStep.innerHTML = `\n      <div class=\"muted\">\n        <b>Completion:<\/b> ${c.done}\/${c.total} sections completed \u00b7\n        <b>Checklist:<\/b> ${checklistCount}\/${checklistTotal}<br\/>\n        ${msg}\n      <\/div>\n    `;\n  }\n\n  \/\/ ==========================\n  \/\/ Module loader\n  \/\/ ==========================\n  function loadModule(key){\n    currentKey = key;\n    const m = MODULES[currentKey];\n\n    moduleTitle.textContent = m.title;\n    moduleDesc.innerHTML = `Instructions in English. Activities in Spanish. <span class=\"tiny\">${m.desc}<\/span>`;\n    moduleTime.textContent = m.time;\n\n    \/\/ reset to Learn tab\n    document.querySelectorAll(\".tab\").forEach(x => x.classList.remove(\"active\"));\n    document.querySelector('.tab[data-tab=\"learn\"]').classList.add(\"active\");\n    Object.keys(panels).forEach(k => panels[k].style.display = (k === \"learn\" ? \"block\" : \"none\"));\n\n    \/\/ render sections\n    renderLearn(m);\n    renderPractice(m);\n    renderAssess(m);\n    renderProgress(m);\n\n    updateNextStep();\n  }\n\n  moduleSelect.addEventListener(\"change\", ()=> loadModule(moduleSelect.value));\n\n  \/\/ ==========================\n  \/\/ INIT\n  \/\/ ==========================\n  loadModule(\"m1\");\n<\/script>\n<\/body>\n<\/html>\n\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"630\" height=\"315\" src=\"https:\/\/plentylearning.com\/espanol\/wp-content\/uploads\/2026\/01\/es-t2-l-014-greetings-flashcards-spanish_ver_1.jpg\" alt=\"\" class=\"wp-image-354\" srcset=\"https:\/\/plentylearning.com\/espanol\/wp-content\/uploads\/2026\/01\/es-t2-l-014-greetings-flashcards-spanish_ver_1.jpg 630w, https:\/\/plentylearning.com\/espanol\/wp-content\/uploads\/2026\/01\/es-t2-l-014-greetings-flashcards-spanish_ver_1-300x150.jpg 300w\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Spanish A2 \u2013 Everyday Interaction (CEFR) | Plenty Learning PL Spanish A2 \u2013 Everyday Interaction (CEFR) Self-learning for English speakers \u00b7 Interactive modules \u00b7 By TeacherJM UK-aligned ESOL \u00b7 Communicative [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"class_list":["post-348","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/plentylearning.com\/espanol\/wp-json\/wp\/v2\/pages\/348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/plentylearning.com\/espanol\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/plentylearning.com\/espanol\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/plentylearning.com\/espanol\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/plentylearning.com\/espanol\/wp-json\/wp\/v2\/comments?post=348"}],"version-history":[{"count":4,"href":"https:\/\/plentylearning.com\/espanol\/wp-json\/wp\/v2\/pages\/348\/revisions"}],"predecessor-version":[{"id":356,"href":"https:\/\/plentylearning.com\/espanol\/wp-json\/wp\/v2\/pages\/348\/revisions\/356"}],"wp:attachment":[{"href":"https:\/\/plentylearning.com\/espanol\/wp-json\/wp\/v2\/media?parent=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}