
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

/* ── Design tokens — editorial palette: warm paper, ink, vermilion ──
   Variable names kept from the previous system; values are the new language. */
:root {
  --purple: #D81B8C;        /* primary accent — fucsia (del logo) */
  --purple-light: #FBE3F2;  /* light fuchsia tint */
  --purple-mid: #F178BD;    /* light fuchsia on dark surfaces */
  --teal: #2C8A58;          /* secondary — vibrant green */
  --teal-light: #DBEEE2;
  --coral: #BE3B2A;         /* brick red */
  --coral-light: #F4DED9;
  --amber: #C2891D;         /* ochre */
  --amber-light: #F3E8CD;
  --ink: #211F1B;           /* warm near-black */
  --ink-soft: #45413A;
  --muted: #6B665C;         /* legible warm gray */
  --surface: #F4F0E7;       /* paper */
  --surface2: #E8E2D5;
  --white: #FCFAF4;         /* warm card white */
  --border: rgba(33,31,27,0.16);
  --radius: 4px;
  --radius-sm: 3px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(33,31,27,0.05), 0 10px 30px -22px rgba(33,31,27,0.45);
  --shadow-lg: 0 2px 4px rgba(33,31,27,0.06), 0 24px 48px -30px rgba(33,31,27,0.5);
  --dark-grad: linear-gradient(157deg, #3C2459 0%, #1F1339 100%); /* deep purple */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── UTILITY ── */
.sr-only { position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0); }
.hidden { display: none !important; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 3px; }

/* ── NAV SIDEBAR ── */
#app { display: flex; min-height: 100vh; }

nav#sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--dark-grad);
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

.nav-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--purple);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 10px;
}
.nav-logo h1 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: white;
}
.nav-logo p { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px; }

.nav-section { padding: 16px 12px 8px; }
.nav-section-label {
  font-size: 9px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); padding: 0 8px; margin-bottom: 6px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  border: none; background: none;
  text-align: left; width: 100%; color: rgba(255,255,255,0.6);
  font-family: var(--font-body); font-size: 13px;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: white; }
.nav-item.active { background: var(--purple); color: white; }
.nav-item.active .nav-badge { background: rgba(255,255,255,0.25); }

.nav-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.nav-item.active .nav-num { background: rgba(255,255,255,0.2); }
.nav-item.complete .nav-num { background: var(--teal); color: var(--ink); }

.nav-badge {
  margin-left: auto;
  font-size: 9px;
  background: rgba(255,255,255,0.1);
  padding: 2px 7px; border-radius: 20px;
  font-weight: 600; flex-shrink: 0;
}

.nav-progress {
  margin: 12px 16px 14px;
  padding: 15px 15px 16px;
  background: rgba(255,255,255,0.09);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.14);
}
.np-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.92); margin-bottom: 9px; }
.np-bar-bg { height: 8px; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden; }
.np-bar { height: 100%; background: var(--teal); border-radius: 4px; transition: width 0.5s ease; }
.np-count { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.8); margin-top: 8px; text-align: right; }

.nav-badges-link {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin: 0 16px 16px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff; font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: var(--font-body);
  transition: background 0.15s, border-color 0.15s;
}
.nav-badges-link:hover { background: var(--purple); border-color: var(--purple); }

/* Pestaña VOLVER al escritorio (en el menú, bajo "Ver mis insignias") */
.nav-back-tab {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0 16px 16px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: #1F6FD6; color: #fff; text-decoration: none;
  font-family: var(--font-body); font-weight: 700; font-size: 13.5px;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}
.nav-back-tab:hover { background: #1659B0; }

/* ── MAIN CONTENT ── */
main#content {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
}

/* ── TOP BAR ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,240,231,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 8px 32px;
  display: flex; align-items: center; gap: 16px;
}
.topbar-breadcrumb { font-size: 20px; color: var(--ink); flex: 1; letter-spacing: -0.01em; }
.topbar-breadcrumb strong { color: var(--ink); font-weight: 700; }

.btn-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--ink); font-size: 22px;
}

/* ── PAGE ── */
.page { display: none; padding: 40px 56px 80px; max-width: 1240px; margin: 0 auto; animation: fadeIn 0.35s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── HERO ── */
.hero {
  background: var(--dark-grad);
  border-radius: 24px;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}
.hero-dots {
  position: absolute;
  top: 0; right: 0; width: 320px; height: 320px;
  opacity: 0.07;
  background-image: radial-gradient(circle, white 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}
.hero-blob {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.18;
  top: -80px; right: -80px;
  filter: blur(60px);
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(194,69,30,0.3);
  border: 1px solid rgba(194,69,30,0.5);
  color: var(--purple-mid);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 20px;
}
.hero h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; color: white;
  line-height: 1.1; margin-bottom: 16px;
  position: relative;
}
.hero h2 .accent { color: var(--purple-mid); }
.hero p { color: rgba(255,255,255,0.65); font-size: 16px; max-width: 520px; line-height: 1.7; margin-bottom: 28px; }
.hero-stats {
  display: flex; gap: 24px; flex-wrap: wrap;
  position: relative;
}
.hstat { text-align: center; }
.hstat-n { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: white; }
.hstat-l { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }

/* ── SECTION HEADING ── */
.section-heading {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.section-heading .sh-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.section-heading h2 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
}
.section-heading p { font-size: 14px; color: var(--muted); margin-top: 1px; }

/* ── CARDS GRID ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 14px; margin-bottom: 28px; }

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon { font-size: 28px; margin-bottom: 10px; }
.card-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.card-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── MODULE HEADER ── */
.module-hero {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  display: flex; gap: 24px; align-items: flex-start;
}
.module-number {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  flex-shrink: 0;
}
.module-meta { flex: 1; }
.module-meta h2 { font-family: var(--font-display); font-size: 24px; font-weight: 800; line-height: 1.2; margin-bottom: 6px; }
.module-meta p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.module-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.mtag {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
}

/* ── SNIPPET ── */
.snippet-block {
  background: var(--purple-light);
  border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px; margin-bottom: 18px;
}
.snippet-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--purple);
  margin-bottom: 8px;
}
.snippet-block h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.snippet-block p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.snippet-block ul { font-size: 14px; color: var(--ink-soft); line-height: 1.7; padding-left: 18px; margin-top: 6px; }
.snippet-block li { margin-bottom: 4px; }

/* ── TIP BOX ── */
.tip-box {
  background: var(--amber-light);
  border: 1px solid rgba(255,179,71,0.35);
  border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 16px;
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--ink-soft); line-height: 1.6;
}
.tip-box .tip-icon { font-size: 18px; flex-shrink: 0; }

/* ── TEAM ACTIVITY ── */
.activity-block {
  background: var(--teal-light);
  border: 1px solid rgba(0,201,167,0.3);
  border-radius: var(--radius);
  padding: 20px; margin-bottom: 18px;
}
.activity-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #3B5742;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.activity-block h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.activity-block p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.activity-steps { list-style: none; margin-top: 10px; }
.activity-steps li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--ink-soft); padding: 5px 0;
}
.step-n {
  width: 22px; height: 22px;
  background: var(--teal); color: var(--ink);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* ── INTERACTIVE QUIZ ── */
.quiz-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; margin-bottom: 18px;
}
.quiz-header {
  background: var(--dark-grad);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 10px;
}
.quiz-header h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: white; flex: 1; }
.quiz-progress-text { font-size: 12px; color: rgba(255,255,255,0.5); }
.quiz-body { padding: 20px; }
.quiz-question { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 14px; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 14px; color: var(--ink-soft);
  transition: all 0.2s; background: white;
  text-align: left; width: 100%; font-family: var(--font-body);
}
.quiz-opt:hover { border-color: var(--purple); background: var(--purple-light); color: var(--ink); }
.quiz-opt.correct { border-color: var(--teal); background: var(--teal-light); color: #005A4D; font-weight: 500; }
.quiz-opt.wrong { border-color: var(--coral); background: var(--coral-light); color: #8B0000; }
.quiz-opt:disabled { cursor: default; }
.quiz-feedback {
  margin-top: 14px; padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.6;
}
.quiz-feedback.correct-fb { background: var(--teal-light); color: #005A4D; }
.quiz-feedback.wrong-fb { background: var(--coral-light); color: #8B0000; }
.quiz-nav { display: flex; justify-content: flex-end; margin-top: 16px; gap: 8px; }
.quiz-result {
  padding: 24px; text-align: center;
}
.quiz-result .result-score {
  font-family: var(--font-display); font-size: 48px; font-weight: 800; color: var(--purple);
}
.quiz-result .result-label { font-size: 14px; color: var(--muted); margin-top: 4px; }
.quiz-result .result-msg { font-size: 15px; color: var(--ink-soft); margin: 16px 0; line-height: 1.7; }

/* ── CHALLENGE / RETO ── */
.reto-block {
  background: linear-gradient(135deg, var(--coral-light) 0%, #FFE0E0 100%);
  border: 1px solid rgba(255,107,107,0.3);
  border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px;
}
.reto-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--coral);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.reto-block h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.reto-block p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.reto-timer { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--coral); font-weight: 600; margin-top: 10px; }

/* ── BADGE UNLOCK ── */
.badge-unlock {
  background: var(--dark-grad);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 18px; margin-top: 28px;
}
.badge-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}
.badge-info h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: white; }
.badge-info p { font-size: 14.5px; color: rgba(255,255,255,0.8); margin-top: 3px; }
.badge-unlock-label {
  margin-left: auto;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--purple); color: white;
  padding: 4px 12px; border-radius: 20px; flex-shrink: 0;
}

/* ── MURAL CALLOUT ── */
.mural-callout {
  background: var(--amber-light);
  border: 1.5px dashed rgba(255,179,71,0.6);
  border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 18px;
  display: flex; gap: 12px; align-items: flex-start;
}
.mural-icon { font-size: 22px; flex-shrink: 0; }
.mural-callout h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.mural-callout p { font-size: 12px; color: var(--ink-soft); line-height: 1.6; }

/* ── BRAINSTORM INTERACTIVE ── */
.brainstorm-board {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; margin-bottom: 18px;
}
.bb-header { background: var(--purple); padding: 14px 20px; display: flex; align-items: center; gap: 10px; }
.bb-header h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: white; flex: 1; }
.bb-counter { font-size: 12px; color: rgba(255,255,255,0.7); }
.bb-body { padding: 20px; }
.bb-input-row { display: flex; gap: 8px; margin-bottom: 16px; }
.bb-input {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  background: var(--surface);
  outline: none;
}
.bb-input:focus { border-color: var(--purple); background: white; }
.bb-grid { display: flex; flex-wrap: wrap; gap: 8px; min-height: 60px; }
.bb-sticky {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px; color: var(--ink); line-height: 1.4;
  max-width: 180px; word-break: break-word;
  animation: popIn 0.25s ease;
  position: relative;
}
@keyframes popIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.bb-sticky .del-btn {
  position: absolute; top: 4px; right: 6px;
  font-size: 14px; cursor: pointer; color: rgba(0,0,0,0.3); background: none; border: none;
}
.bb-sticky .del-btn:hover { color: var(--coral); }

/* ── PROFILE QUIZ ── */
.profile-quiz { margin-bottom: 18px; }
.pq-question { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.pq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pq-opt {
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; text-align: center;
  transition: all 0.2s; background: white;
  font-size: 13px; color: var(--ink-soft);
  font-family: var(--font-body);
}
.pq-opt:hover { border-color: var(--purple); background: var(--purple-light); }
.pq-opt.selected { border-color: var(--purple); background: var(--purple); color: white; }
.pq-opt .pq-emoji { font-size: 22px; display: block; margin-bottom: 6px; }
.profile-result {
  background: var(--dark-grad); color: white;
  border-radius: var(--radius); padding: 24px; text-align: center;
  animation: fadeIn 0.4s ease;
}
.pr-emoji { font-size: 40px; margin-bottom: 10px; }
.pr-name { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: white; margin-bottom: 6px; }
.pr-desc { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.7; }
.pr-superpoder { margin-top: 14px; background: rgba(194,69,30,0.3); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; color: var(--purple-mid); }

/* ── EMPATHY MAP ── */
.empathy-map {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 18px;
}
.em-grid { display: grid; grid-template-columns: 1fr 1fr; }
.em-cell {
  padding: 16px; border: 0.5px solid var(--border);
  min-height: 100px;
}
.em-cell h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.em-textarea {
  width: 100%; min-height: 72px;
  border: 1px dashed rgba(194,69,30,0.25);
  border-radius: 8px; padding: 8px;
  font-family: var(--font-body); font-size: 13px; color: var(--ink);
  background: var(--surface); resize: vertical; line-height: 1.5;
  outline: none;
}
.em-textarea:focus { border-color: var(--purple); background: white; }
.em-center {
  grid-column: 1 / -1;
  background: var(--purple);
  padding: 14px; text-align: center;
}
.em-center h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: white; margin-bottom: 5px; }
.em-center p { font-size: 14.5px; color: rgba(255,255,255,0.88); }

/* ── HOW MIGHT WE ── */
.hmw-builder {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
}
.hmw-display {
  background: var(--purple-light);
  border-radius: var(--radius-sm); padding: 16px;
  font-family: var(--font-display); font-size: 16px;
  font-weight: 700; color: var(--purple); line-height: 1.5;
  margin-bottom: 14px; min-height: 56px;
  display: flex; align-items: center;
}
.hmw-inputs { display: flex; flex-direction: column; gap: 8px; }
.hmw-row { display: flex; align-items: center; gap: 8px; }
.hmw-label { font-size: 12px; font-weight: 600; color: var(--muted); min-width: 100px; }
.hmw-field {
  flex: 1; padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  outline: none; background: var(--surface);
}
.hmw-field:focus { border-color: var(--purple); background: white; }

/* ── SCAMPER ── */
.scamper-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 10px; margin-bottom: 18px; }
.scamper-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
  cursor: pointer; transition: all 0.2s; text-align: center;
}
.scamper-card:hover, .scamper-card.active { border-color: var(--purple); background: var(--purple-light); }
.sc-letter { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--purple); }
.sc-word { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.scamper-detail {
  background: var(--purple-light); border: 1px solid rgba(194,69,30,0.2);
  border-radius: var(--radius); padding: 18px; margin-bottom: 18px;
}
.scamper-detail h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--purple); margin-bottom: 6px; }
.scamper-detail p { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.scamper-detail .sc-example { margin-top: 10px; font-size: 13px; font-style: italic; color: var(--muted); }

/* ── PITCH BUILDER ── */
.pitch-builder {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 18px;
}
.pb-tabs { display: flex; background: var(--surface); border-bottom: 1px solid var(--border); }
.pb-tab {
  padding: 10px 16px; font-size: 13px; font-weight: 500;
  cursor: pointer; border: none; background: none;
  color: var(--muted); font-family: var(--font-body);
  border-bottom: 2px solid transparent; transition: all 0.2s;
}
.pb-tab.active { color: var(--purple); border-bottom-color: var(--purple); background: white; }
.pb-panel { padding: 20px; display: none; }
.pb-panel.active { display: block; }
.pb-panel label { font-size: 12px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 5px; margin-top: 12px; }
.pb-panel label:first-child { margin-top: 0; }
.pb-textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 13px; color: var(--ink);
  background: var(--surface); resize: vertical; min-height: 70px; outline: none;
}
.pb-textarea:focus { border-color: var(--purple); background: white; }
.pb-preview {
  background: var(--dark-grad); color: white;
  border-radius: var(--radius); padding: 24px;
  font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.85);
}
.pb-preview strong { color: white; font-family: var(--font-display); }
.pb-preview .pb-empty { color: rgba(255,255,255,0.3); font-style: italic; font-size: 13px; }

/* ── DIARY ── */
.diary-block {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
}
.diary-block h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.diary-item { margin-bottom: 14px; }
.diary-item label { font-size: 12px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 5px; }
.diary-textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 13px; color: var(--ink);
  background: var(--surface); resize: vertical; min-height: 65px; outline: none;
  line-height: 1.6;
}
.diary-textarea:focus { border-color: var(--purple); background: white; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: 40px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; border: none;
}
.btn-primary { background: var(--purple); color: white; }
.btn-primary:hover { background: #5535E8; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(194,69,30,0.35); }
.btn-secondary { background: white; color: var(--ink); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--purple); color: var(--purple); background: var(--purple-light); }
.btn-teal { background: var(--teal); color: var(--ink); font-weight: 600; }
.btn-teal:hover { background: #35513F; transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* ── NAV BUTTONS ── */
.page-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }

/* ── PROGRESS TRACKER ── */
.module-progress {
  display: flex; gap: 6px; margin-bottom: 28px; flex-wrap: wrap;
}
.mp-step {
  height: 5px; flex: 1; min-width: 24px;
  background: var(--surface2); border-radius: 3px;
  transition: background 0.4s;
}
.mp-step.done { background: var(--teal); }
.mp-step.active { background: var(--purple); }

/* ── BADGE WALL ── */
.badge-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 12px; margin-bottom: 18px; }
.bwall-item {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; text-align: center;
  transition: all 0.3s;
}
.bwall-item.locked { opacity: 0.45; filter: grayscale(1); }
.bwall-item.unlocked { border-color: rgba(0,201,167,0.5); box-shadow: 0 0 0 1px rgba(0,201,167,0.25); }
.bwall-icon { font-size: 32px; margin-bottom: 8px; }
.bwall-name { font-family: var(--font-display); font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.bwall-mod { font-size: 10px; color: var(--muted); }

/* ── MURAL WALL ── */
.mural-board {
  background: #FEFCE8; border: 2px dashed #E5D68A;
  border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
  min-height: 200px;
}
.mural-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mural-zone { }
.mz-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; margin-bottom: 8px; display: flex; align-items: center; gap: 5px;
}
.mz-stickies { display: flex; flex-wrap: wrap; gap: 6px; min-height: 60px; }
.mz-sticky {
  padding: 8px 12px; border-radius: 8px;
  font-size: 12px; color: var(--ink); line-height: 1.4; max-width: 160px;
  word-break: break-word;
}
.mz-add {
  width: 100%; margin-top: 8px;
  padding: 6px 10px; font-size: 12px;
  border: 1.5px dashed rgba(194,69,30,0.3); border-radius: 8px;
  background: transparent; color: var(--purple); cursor: pointer;
  font-family: var(--font-body);
}
.mz-add:hover { background: var(--purple-light); }

/* ── CAPSULE ── */
.capsule-form {
  background: var(--dark-grad); border-radius: var(--radius);
  padding: 28px; margin-bottom: 18px; color: white;
}
.capsule-form h3 { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: white; margin-bottom: 6px; }
.capsule-form p { font-size: 14.5px; color: rgba(255,255,255,0.8); margin-bottom: 20px; line-height: 1.6; }
.capsule-form label { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,0.88); display: block; margin-bottom: 6px; margin-top: 14px; }
.capsule-textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07); color: white;
  font-family: var(--font-body); font-size: 13px; min-height: 65px;
  resize: vertical; outline: none;
}
.capsule-textarea:focus { border-color: var(--purple-mid); }
.capsule-textarea::placeholder { color: rgba(255,255,255,0.45); }

/* ── DEMO DAY ── */
.demo-day {
  background: var(--dark-grad); border-radius: var(--radius);
  padding: 28px; margin-bottom: 18px; position: relative; overflow: hidden;
}
.dd-dots {
  position: absolute; top:0; right:0; width:200px; height:200px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
}
.demo-day h3 { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: white; margin-bottom: 8px; position: relative; }
.demo-day p { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 20px; position: relative; }
.dd-rubric { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.dd-criterion {
  background: rgba(255,255,255,0.08); border-radius: var(--radius-sm);
  padding: 12px; display: flex; gap: 10px; align-items: flex-start;
}
.dd-stars { display: flex; gap: 3px; margin-top: 5px; }
.dd-star {
  font-size: 20px; cursor: pointer; color: rgba(255,255,255,0.2);
  transition: color 0.15s; background: none; border: none;
}
.dd-star.lit { color: var(--amber); }
.dd-crit-name { font-size: 12px; font-weight: 600; color: white; margin-bottom: 3px; }
.dd-crit-desc { font-size: 11px; color: rgba(255,255,255,0.45); }

/* ── ILLUSTRATIONS ── */
.illus-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  line-height: 0;
}
.illus-wrap svg { width: 100%; height: auto; display: block; }
.illus-caption {
  font-size: 11px; color: var(--muted);
  text-align: center; margin-top: -4px; margin-bottom: 20px;
  font-style: italic;
}
.infographic-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 24px;
  line-height: 0;
}
.infographic-wrap svg { width: 100%; height: auto; display: block; }

/* ── ALEX PRESENTER ── */
.alex-card {
  display: flex;
  gap: 0;
  background: var(--card-bg, var(--ink));
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
}
.alex-card.variant-light {
  background: white;
  border-color: var(--border);
}
.alex-card.variant-purple {
  background: var(--purple);
}
.alex-card.variant-teal {
  background: #3B5742;
  border-color: rgba(0,201,167,0.4);
}

.alex-img-wrap {
  flex-shrink: 0;
  width: 168px;
  position: relative;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.alex-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}
@media (max-width: 768px) {
  .alex-img-wrap { width: 120px; }
  .alex-img-wrap img { max-height: 180px; }
}
.alex-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 32px;
  background: linear-gradient(transparent, var(--card-bg, var(--ink)));
  pointer-events: none;
}
.alex-card.variant-light .alex-img-wrap::after { background: linear-gradient(transparent, white); }

.alex-bubble {
  flex: 1;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.alex-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.alex-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.alex-card:not(.variant-light) .alex-name { color: rgba(255,255,255,0.5); }
.alex-card.variant-light .alex-name { color: var(--muted); }

.alex-badge-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.alex-card:not(.variant-light) .alex-badge-pill {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
}
.alex-card.variant-light .alex-badge-pill {
  background: var(--purple-light);
  color: var(--purple);
}

.alex-text {
  font-size: 14px;
  line-height: 1.7;
}
.alex-card:not(.variant-light) .alex-text { color: rgba(255,255,255,0.88); }
.alex-card.variant-light .alex-text { color: var(--ink-soft); }

.alex-text strong {
  font-weight: 600;
}
.alex-card:not(.variant-light) .alex-text strong { color: white; }
.alex-card.variant-light .alex-text strong { color: var(--ink); }

.alex-funfact {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.6;
  font-style: italic;
}
.alex-card:not(.variant-light) .alex-funfact {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
}
.alex-card.variant-light .alex-funfact {
  background: var(--surface);
  color: var(--muted);
}

/* Floating Alex — appears bottom-right on badge unlock */
.alex-float {
  display: none;
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 200;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  animation: alexPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.alex-float.visible { display: flex; }
@keyframes alexPop {
  from { transform: translateY(60px) scale(0.8); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}
.alex-float-bubble {
  background: var(--dark-grad);
  border: 1px solid rgba(216,27,140,0.5);
  border-radius: 16px 16px 4px 16px;
  padding: 15px 18px;
  max-width: 290px;
  font-size: 15px;
  color: white;
  line-height: 1.55;
  position: relative;
}
.alex-float-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px; right: 20px;
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--ink);
}
.alex-float-img {
  width: auto;
  height: 230px;
  object-fit: contain;
  object-position: center bottom;
  margin-right: 4px;
}
@media (max-width: 768px) {
  .alex-float-img { height: 170px; }
  .alex-float-bubble { max-width: 230px; font-size: 14px; }
}
.alex-float-close {
  position: absolute;
  top: 6px; right: 8px;
  background: none; border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer; font-size: 14px;
}
.alex-float-close:hover { color: white; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav#sidebar { transform: translateX(-100%); }
  nav#sidebar.open { transform: translateX(0); }
  main#content { margin-left: 0; }
  .btn-hamburger { display: flex; }
  .page { padding: 20px 20px 60px; }
  .hero { flex-direction: column !important; }
  .hero > div:last-child { width: 100% !important; height: 240px; }
  .module-hero { flex-direction: column; }
  .pq-options { grid-template-columns: 1fr; }
  .dd-rubric { grid-template-columns: 1fr; }
  .em-grid { grid-template-columns: 1fr; }
  .mural-zones { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   EDITORIAL OVERRIDES
   Reworks the visual language toward a print/editorial feel:
   serif display + mono labels, paper/ink/vermilion, hairline rules,
   square corners, no decorative blobs or glows.
   ════════════════════════════════════════════════════════════════ */

/* — Display headings: Fraunces, tighter tracking, real weights — */
.hero h2, .module-meta h2, .section-heading h2, .nav-logo h1,
.snippet-block h3, .activity-block h3, .reto-block h3, .quiz-header h3,
.bb-header h3, .em-center h3, .diary-block h3, .capsule-form h3,
.demo-day h3, .scamper-detail h4, .badge-info h4,
.pr-name, .card-title, .hmw-display, .result-score, .sc-letter,
.hstat-n, .module-number, .bwall-name, .alex-name {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero h2, .module-meta h2 { font-weight: 600; letter-spacing: -0.02em; }

/* — Eyebrow / label type → mono, the editorial tell — */
.nav-section-label, .hero-tag, .snippet-label, .activity-label,
.reto-label, .badge-unlock-label, .mtag, .mz-label, .em-cell h4,
.quiz-progress-text, .bb-counter, .alex-name, .alex-badge-pill,
.dd-crit-name, .sc-word, .hstat-l, .np-label, .np-count {
  font-family: var(--font-mono);
  font-weight: 500;
}
.hstat-n, .result-score, .nav-num, .module-number { font-family: var(--font-mono); }

/* — Kill the AI decorations — */
.hero-dots, .hero-blob, .dd-dots { display: none !important; }

/* — Hero: flat ink block, vermilion accent, mono eyebrow (no pill) — */
.hero { border-radius: var(--radius); }
.hero h2 .accent { color: var(--purple-mid); font-style: italic; }
.hero-tag {
  background: none; border: none; border-radius: 0;
  padding: 0 0 0 22px; position: relative;
  color: var(--purple-mid); letter-spacing: 0.14em; font-size: 11px;
}
.hero-tag::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 14px; height: 1px; background: var(--purple-mid);
}

/* — Section headings: drop the colored emoji chip, add a hairline kicker — */
.section-heading { border-top: 1px solid var(--border); padding-top: 16px; }
.section-heading .sh-icon { display: none !important; }

/* — Cards: hairline, square, restrained emoji — */
.card { border-radius: var(--radius); }
.card:hover { box-shadow: var(--shadow); transform: none; border-color: var(--ink); }
.card-icon { font-size: 18px; margin-bottom: 12px; opacity: 0.85; }

/* — Buttons: squared, no pill, no glow — */
.btn { border-radius: var(--radius); letter-spacing: 0.01em; font-weight: 500; }
.btn-primary:hover { background: #B0166F; transform: none; box-shadow: none; }
.btn-secondary:hover { background: var(--purple-light); }
.btn-teal:hover { transform: none; }

/* — Sidebar logo: typographic monogram instead of rocket emoji — */
.nav-logo .logo-icon {
  background: var(--purple); border-radius: 2px;
  font-family: var(--font-mono); font-weight: 600; font-size: 15px;
  color: #fff; letter-spacing: -0.02em;
}
.nav-item { border-radius: 2px; }
.nav-num { border-radius: 2px; font-size: 11px; }

/* — Flatten gradient panels — */
.reto-block { background: var(--coral-light); }

/* — Snippet/quote block reads like a pull-quote — */
.snippet-block { border-radius: 0; }
.snippet-block h3 { font-style: italic; }

/* — Inputs: square, ink focus (not purple glow) — */
.quiz-opt, .pq-opt, .bb-input, .hmw-field, .em-textarea,
.pb-textarea, .diary-textarea, .scamper-card { border-radius: var(--radius-sm); }
.quiz-opt:hover, .pq-opt:hover { border-color: var(--ink); }

/* — Subtle paper scrollbar — */
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 0; }

/* — Module number tile: outline, not filled blob — */
.module-number { border-radius: var(--radius); }

/* — Module banner image (header for each module) — */
.module-banner {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  line-height: 0;
  position: relative;
}
.module-banner img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* "full" variant shows the whole image (no crop) — used for the portada */
.module-banner.full img {
  height: auto;
  object-fit: contain;
}
@media (max-width: 768px) {
  .module-banner img { height: 280px; }
  .module-banner.full img { height: auto; }
}

/* — Module title: big and bold — */
.module-meta h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
@media (max-width: 768px) {
  .module-meta h2 { font-size: 28px; }
}

/* ════════════════════════════════════════════════════════════════
   READABILITY PASS — larger content type + higher contrast
   ════════════════════════════════════════════════════════════════ */

/* Base content a touch larger; plain text inherits this */
body { font-size: 16px; line-height: 1.65; }

/* Reading text inside components — bumped up */
.hero p { font-size: 18px; line-height: 1.65; color: rgba(255,255,255,0.82); }
.section-heading p { font-size: 15px; }
.module-meta p { font-size: 16px; }
.card-desc { font-size: 14px; line-height: 1.55; }
.card-title { font-size: 15px; }
.snippet-block p, .snippet-block ul, .snippet-block li { font-size: 16px; }
.activity-block p, .activity-steps li { font-size: 15.5px; }
.reto-block p { font-size: 15.5px; }
.scamper-detail p { font-size: 16px; }
.scamper-detail .sc-example { font-size: 14px; }
.tip-box { font-size: 14.5px; }
.mural-callout p { font-size: 13.5px; }
.alex-text { font-size: 15.5px; }
.alex-funfact { font-size: 13px; }
.quiz-question, .pq-question { font-size: 17px; line-height: 1.5; }
.quiz-opt, .pq-opt { font-size: 15.5px; }
.quiz-feedback { font-size: 14.5px; }
.pb-preview { font-size: 16px; }
.diary-block h3, .capsule-form h3, .reto-block h3, .activity-block h3,
.snippet-block h3, .scamper-detail h4 { font-size: 17px; }
/* Form fields readable */
.bb-input, .hmw-field, .em-textarea, .pb-textarea,
.diary-textarea, .capsule-textarea { font-size: 15px; }

/* ── Contrast fixes: white text on the vibrant green ── */
.btn-teal { color: #fff; font-weight: 600; }
.btn-teal:hover { background: #24784A; color: #fff; }
.step-n { color: #fff; }
.nav-item.complete .nav-num { color: #fff; }
.mz-sticky, .bb-sticky { color: var(--ink); }
/* Forest "done" states stay green but legible */
.quiz-opt.correct { color: #1C5E3A; border-color: var(--teal); }
.quiz-feedback.correct-fb { color: #1C5E3A; }

/* Eyebrow/labels: a bit more presence (were very pale) */
.snippet-label, .activity-label, .reto-label { font-size: 11px; }
.section-heading p { color: var(--muted); }

/* ── Bullets: keep the icon, drop the duplicated native dot ── */
.page ul:not(.activity-steps) { list-style: none; padding-left: 2px; }
.page ul:not(.activity-steps) li { padding-left: 0; }

/* ════════════════════════════════════════════════════════════════
   CONCEPT CARDS — click to reveal a fuller description + example
   ════════════════════════════════════════════════════════════════ */
.cards-grid.concepts { align-items: start; }
.card.concept { cursor: pointer; user-select: none; }
.card.concept:hover { border-color: var(--ink); }
.card.concept:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.card.concept .concept-more {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.card.concept.open .concept-more { display: block; animation: fadeIn 0.25s ease; }
.card.concept .concept-more p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.concept-example {
  margin-top: 10px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  border-left: 3px solid var(--teal);
  padding: 2px 0 2px 10px;
}
.concept-toggle {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--purple);
}
.card.concept:not(.open) .concept-toggle::after { content: '  +'; }
.card.concept.open .concept-toggle::after { content: '  −'; }
.card.concept.open .concept-toggle { color: var(--muted); }

/* ════════════════════════════════════════════════════════════════
   FUN FACT + MURAL CALLOUT — bigger & more eye-catching
   ════════════════════════════════════════════════════════════════ */
.alex-funfact {
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
  padding: 13px 16px;
  margin-top: 14px;
  border-radius: var(--radius);
  border-left: 3px solid var(--purple-mid);
}
.alex-card:not(.variant-light) .alex-funfact {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.9);
}
.alex-card.variant-light .alex-funfact {
  background: var(--purple-light);
  color: var(--ink-soft);
}
.alex-card:not(.variant-light) .alex-funfact strong { color: var(--purple-mid); }
.alex-card.variant-light .alex-funfact strong { color: var(--purple); }

.mural-callout {
  padding: 18px 22px;
  border: 2px dashed rgba(194,137,29,0.7);
  background: #F3E7C9;
}
.mural-callout .mural-icon { font-size: 30px; }
.mural-callout h4 { font-size: 16px; margin-bottom: 5px; }
.mural-callout p { font-size: 14px; line-height: 1.6; }

/* ════════════════════════════════════════════════════════════════
   BOLDER & BIGGER PASS — buttons + general weight/scale
   ════════════════════════════════════════════════════════════════ */

/* Buttons: much larger and bold */
.btn { padding: 14px 28px; font-size: 16px; font-weight: 700; gap: 9px; }
.btn-sm { padding: 11px 22px; font-size: 14.5px; font-weight: 700; }
.page-nav { margin-top: 44px; }

/* Headings: heavier weight across the board */
.hero h2, .module-meta h2, .section-heading h2, .nav-logo h1,
.snippet-block h3, .activity-block h3, .reto-block h3, .quiz-header h3,
.bb-header h3, .em-center h3, .diary-block h3, .capsule-form h3,
.demo-day h3, .scamper-detail h4, .badge-info h4,
.pr-name, .card-title, .result-score, .sc-letter, .bwall-name {
  font-weight: 700;
}

/* Section + component headings bigger */
.section-heading h2 { font-size: 26px; }
.section-heading p { font-size: 15.5px; }
.snippet-block h3, .activity-block h3, .reto-block h3,
.scamper-detail h4, .diary-block h3, .capsule-form h3, .demo-day h3 { font-size: 19px; }
.card-title { font-size: 17px; }
.quiz-header h3, .bb-header h3 { font-size: 17px; }
.quiz-question, .pq-question { font-size: 18px; }

/* Hero eyebrow, stats, highlighted phrase */
.hero-tag { font-size: 12px; }
.hstat-n { font-size: 32px; font-weight: 700; }
.hero p strong { color: var(--purple-mid); font-weight: 700; }

/* Sidebar: bigger, bolder */
.nav-item { font-size: 14.5px; font-weight: 600; padding: 11px 12px; }
.nav-num { font-size: 13px; font-weight: 700; width: 24px; height: 24px; }
.nav-section-label { font-size: 10px; }
.nav-logo h1 { font-size: 16px; }
.nav-badge { font-size: 10px; }

/* Tags / labels a touch bigger */
.mtag { font-size: 12px; }
.snippet-label, .activity-label, .reto-label, .quiz-progress-text { font-size: 11.5px; }

/* Top breadcrumb a hair bigger */
.topbar-breadcrumb { font-size: 22px; }

/* Illustration captions: larger / more legible */
.illus-caption { font-size: 14px; line-height: 1.5; }

/* Mapa de empatía: textos más grandes */
.em-textarea { font-size: 16px; line-height: 1.55; min-height: 84px; padding: 10px 12px; }
.em-textarea::placeholder { color: var(--muted); }

/* ── Ordenar las fases (pregunta 6 del cierre) ── */
.phase-order { margin-top: 4px; }
.po-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.po-chip {
  padding: 9px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--border); background: var(--surface);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  color: var(--ink); cursor: pointer; transition: all 0.15s;
}
.po-chip:hover:not(:disabled) { border-color: var(--purple); color: var(--purple); }
.po-chip.used { opacity: 0.35; cursor: default; }
.po-answer {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  min-height: 44px; padding: 10px 12px;
  border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
}
.po-chip.filled { background: var(--purple); color: #fff; border-color: var(--purple); cursor: default; }
.po-empty { color: var(--muted); font-size: 13px; font-style: italic; }
.po-feedback { margin-top: 12px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.5; }
.po-feedback.correct-fb { background: var(--teal-light); color: #1C5E3A; }
.po-feedback.wrong-fb { background: var(--coral-light); color: #8B0000; }

/* ════════════════════════════════════════════════════════════════
   BRANDING — project logo (sidebar + hero) and client logo (footer)
   ════════════════════════════════════════════════════════════════ */
.nav-logo-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
}
.hero-logo {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 6px 0 2px;
}

/* Client logo in the top bar (right side, all pages) */
.topbar-logo {
  height: 68px;
  width: auto;
  display: block;
  margin-left: 16px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .topbar-logo { height: 40px; }
}

/* Client logo at the bottom of the sidebar — small white plate hugging the logo */
.nav-client {
  margin: 6px 18px 22px;
  display: flex;
  justify-content: center;
}
.nav-client img {
  width: 120px;
  height: auto;
  display: block;
  background: #fff;
  border-radius: 5px;
  padding: 7px 9px;
}
