/* =====================================================================
   Chanak Life Skills & Leadership Studio — Unified Design System
   Dual Diploma & Portal Chanak Aesthetics (Fraunces + Inter)
   ===================================================================== */

:root {
  --navy: #193D6D;         /* Chanak SIS Navy */
  --navy-light: #25528C;
  --navy-dark: #0F284E;
  --sky: #0284C7;
  --sky-light: #EFF6FF;
  --sky-border: #BAE6FD;
  --green: #059669;        /* Emerald / Teal */
  --green-light: #ECFDF5;
  --green-border: #A7F3D0;
  --gold: #D97706;         /* ChanakCoins Amber */
  --gold-light: #FEF3C7;
  --gold-border: #FDE68A;
  --paper: #F8FAFC;        /* Slate 50 from SIS */
  --ink: #0F172A;          /* Slate 900 */
  --ink-muted: #64748B;    /* Slate 500 */
  --line: #E2E8F0;         /* Slate 200 */
  --card-bg: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* `display` de los componentes gana sobre el atributo hidden si no se fuerza.
   La navegacion se oculta por audiencia con el.hidden = true. */
[hidden] {
  display: none !important;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* ---------------- Top App Header ---------------- */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.02);
}

.brand-crest {
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gold-border);
}

.brand-text h1 {
  font-size: 16px;
  color: var(--navy);
  font-weight: 700;
}

.brand-text p {
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Badges & Action Buttons */
.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.badge-gold {
  background: var(--gold-light);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.badge-green {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.btn-interactive {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-interactive:hover {
  border-color: var(--navy);
  background: var(--paper);
  transform: translateY(-1px);
}

.btn-interactive b {
  color: var(--gold);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.lang-toggle button {
  border: none;
  background: none;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-toggle button.active {
  background: var(--navy);
  color: #fff;
}

/* Context Badge (Dual Diploma vs Portal) */
.context-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  background: #f0f4f9;
  color: var(--navy-light);
  border: 1px solid #c9d8eb;
}

/* ---------------- Layout & Views ---------------- */
.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.hero-banner {
  text-align: center;
  padding: 24px 0 32px;
}

.eyebrow-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  display: block;
}

.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  color: var(--navy);
  margin-bottom: 14px;
}

.hero-lead {
  max-width: 780px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* SIS Integration Banner */
.sis-banner {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 22px 28px;
  margin: 28px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-md);
}

.sis-banner-info h4 {
  font-size: 17px;
  color: #fff;
  margin-bottom: 4px;
}

.sis-banner-info p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 680px;
}

.btn-sis {
  background: #fff;
  color: var(--navy);
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-sis:hover {
  background: var(--gold-light);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ---------------- Stage Navigation Tabs ---------------- */
.stage-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  overflow-x: auto;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.stage-tab-btn {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-muted);
  padding: 12px 22px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.stage-tab-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.stage-tab-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* ---------------- Devotional / Bible Scripture Card ---------------- */
.devotional-card {
  background: #ffffff;
  border: 1px solid var(--gold-border);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.devotional-ref {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.devotional-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 10px;
}

.devotional-applied {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ---------------- Reading Cards ---------------- */
.readings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.reading-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.reading-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-light);
  background: #eef4fb;
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 8px;
}

.reading-card h4 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 4px;
}

.reading-card .author {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.reading-card .key-point {
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.5;
}

.reading-card .quote-box {
  background: var(--paper);
  border-left: 3px solid var(--green);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-style: italic;
  color: var(--green);
}

/* ---------------- Quarter Projects & Deliverables ---------------- */
.quarters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.quarter-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.quarter-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c9d8eb;
}

.quarter-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  padding: 3px 8px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 10px;
}

.quarter-card h4 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}

.quarter-card p {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.deliverable-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 16px;
}

.deliverable-box b {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  display: block;
  margin-bottom: 6px;
}

.deliverable-files {
  list-style: none;
  font-size: 12px;
  color: var(--ink);
}

.deliverable-files li {
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.deliverable-files code {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green);
}

.drive-folder-note {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------------- Juniors Challenge Grid & Track Filters ---------------- */
.junior-track-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.track-filter-btn {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.track-filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.track-filter-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.retos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.reto-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.reto-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-border);
}

.reto-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.reto-icon {
  font-size: 28px;
}

.reto-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-light);
  border: 1px solid var(--green-border);
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
}

.reto-card h4 {
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 8px;
}

.reto-card p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 14px;
}

.reto-materials {
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.reto-scripture-chip {
  font-size: 11px;
  font-style: italic;
  color: var(--gold);
  background: var(--gold-light);
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: block;
}

.reto-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.btn-submit-reto {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-submit-reto:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}

/* ---------------- Rubric & Grade Calculator ---------------- */
.rubric-container {
  background: #ffffff;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}

.rubric-header {
  margin-bottom: 16px;
}

.rubric-header h3 {
  font-size: 20px;
  color: var(--navy);
}

.rubric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.rubric-item {
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 14px;
  border-left: 3px solid var(--gold);
}

.rubric-item b {
  color: var(--gold);
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}

.rubric-item p {
  font-size: 12px;
  color: var(--ink-muted);
}

/* Calculator Form */
.calculator-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: 16px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.calc-input-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-input-group input {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

.calc-result-box {
  background: #fff;
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.calc-total-score {
  font-size: 24px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--green);
}

/* ---------------- Interactive Capsule Viewer ---------------- */
.capsule-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 34, 64, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}

.capsule-modal-overlay.open {
  display: flex;
}

.capsule-window {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalFade 0.3s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--ink-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--navy);
}

/* Step content styling */
.step-container {
  display: none;
}

.step-container.active {
  display: block;
  animation: modalFade 0.3s ease;
}

.step-scenario-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
  margin: 18px 0;
}

.step-diagram-box {
  background: var(--green-light);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 18px 0;
  font-size: 15px;
  color: var(--navy);
}

.step-quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.step-quiz-opt:hover {
  border-color: var(--green);
}

.step-quiz-opt.correct {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green);
  font-weight: 700;
}

.step-quiz-opt.wrong {
  border-color: #d9534f;
  background: #fdf2f2;
  color: #c9302c;
}

.step-feedback-msg {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  display: none;
}

.step-feedback-msg.show {
  display: block;
}

.step-feedback-msg.ok {
  background: var(--green-light);
  color: var(--green);
}

.step-feedback-msg.no {
  background: #fdf2f2;
  color: #c9302c;
}

.step-textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  font-family: inherit;
  font-size: 14px;
  min-height: 120px;
  resize: vertical;
}

.step-navigation-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary:hover {
  background: var(--navy-light);
}

.btn-secondary {
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-muted);
  border-radius: 12px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* ---------------- ChanakCoins Wallet Modal ---------------- */
.wallet-bill-card {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  color: #fff;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.wallet-coins-amount {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.wallet-trust-bar {
  height: 8px;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 12px 0;
}

.wallet-trust-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 8px;
  transition: width 0.5s ease;
}

/* ---------------- Embed Mode Specifics ---------------- */
body.embed-mode .top-header {
  position: relative;
  background: transparent;
  border-bottom: none;
}

body.embed-mode .main-wrap {
  padding-top: 8px;
}

/* ---------------- Curriculum Sessions & Student Notebook ---------------- */
.view-mode-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  flex-wrap: wrap;
}

.mode-toggle-group {
  display: inline-flex;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px;
}

.mode-toggle-btn {
  background: none;
  border: none;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}

.mode-toggle-btn.active {
  background: var(--navy);
  color: #fff;
}

.teacher-guide-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--navy);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

.teacher-guide-box h4 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.teacher-guide-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.teacher-guide-verse {
  font-style: italic;
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #334155;
  margin-top: 8px;
}

.session-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 2px 14px 2px;
  margin-bottom: 12px;
}

.session-tab {
  flex-shrink: 0;
  padding: 8px 14px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.session-tab:hover {
  border-color: var(--navy);
}

.session-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.session-tab.done {
  border-color: var(--green);
  color: var(--green);
}

.session-tab.active.done {
  background: var(--green);
  color: #fff;
}

.mentor-callout {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.6;
}

.mentor-callout.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.mentor-callout.checkpoint {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.notebook-section {
  margin-top: 24px;
  border-top: 2px dashed var(--line);
  padding-top: 20px;
}

.notebook-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 16px;
}

.notebook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
  flex-wrap: wrap;
}

.rubric-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.notebook-prompt {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.5;
}

.notebook-textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  box-sizing: border-box;
}

.notebook-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(15,34,64,.1);
}

.coin-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  transform: translateY(100px);
  opacity: 0;
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}

.coin-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.coin-toast-icon {
  font-size: 24px;
  line-height: 1;
}

/* ---------------- Responsive Rules ---------------- */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .sis-banner {
    flex-direction: column;
    text-align: center;
  }
  .stage-tabs {
    justify-content: flex-start;
  }
}


/* ============================================================
   NUEVOS ESTILOS: REDISEÑO VISUAL, MODO MENTOR Y TEST VOCACIONAL
   ============================================================ */

.role-toggle-bar {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.role-btn {
  border: none;
  background: none;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.role-btn.active {
  background: var(--navy);
  color: #fff;
}

.role-btn.mentor-active {
  background: var(--green);
  color: #fff;
}

.mentor-alert-banner {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.08);
}

.mentor-pin-field {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 16px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-align: center;
  box-sizing: border-box;
}

.mentor-pin-field:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 34, 64, 0.1);
}

/* RIASEC Test Styles */
.riasec-test-container {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.riasec-q-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  transition: border-color 0.2s ease;
}

.riasec-q-card:hover {
  border-color: #cbd5e1;
}

.riasec-options-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.riasec-opt-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.riasec-opt-btn:hover {
  background: #f1f5f9;
  border-color: var(--navy);
}

.riasec-opt-btn.active-1 { background: #fee2e2; border-color: #ef4444; color: #991b1b; }
.riasec-opt-btn.active-2 { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.riasec-opt-btn.active-3 { background: #e0f2fe; border-color: #0284c7; color: #075985; }
.riasec-opt-btn.active-4 { background: #dcfce7; border-color: #22c55e; color: #166534; }

.radar-chart-svg {
  max-width: 380px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.vocation-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.vocation-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.career-chip {
  display: inline-block;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin: 3px;
}

.service-callout-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
  color: #14532d;
}

.quarter-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 16px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
}

.quarter-row-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-display);
}


/* Enlace a recurso externo dentro de una tarjeta de trimestre (Khan Academy). */
.resource-link {
  display: block;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.resource-link:hover,
.resource-link:focus-visible {
  background: var(--navy);
  color: #fff;
}

/* Aviso de contenido bloqueado: nunca un enlace muerto ni un error. */
.locked-notice {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 40px 28px;
  text-align: center;
  opacity: 0.92;
}

/* =====================================================================
   Tarjeta de módulo — estado y progreso visibles de un vistazo.
   El alumno debe saber sin leer: dónde estoy, qué sigue, cuánto falta.
   ===================================================================== */
.module-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.module-card.is-pendiente { border-top-color: var(--gold); }
.module-card.is-en-curso  { border-top-color: var(--green); }
.module-card.is-completado {
  border-top-color: var(--navy);
  background: linear-gradient(180deg, #f7fbf8 0%, var(--card-bg) 55%);
}

.module-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.module-card__id {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.module-card__state {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.is-pendiente  .module-card__state { background: var(--gold-light);  color: var(--gold); }
.is-en-curso   .module-card__state { background: var(--green-light); color: var(--green); }
.is-completado .module-card__state { background: var(--navy);        color: #fff; }

.module-card__title {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 8px;
}

.module-card__eq {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.module-card__eq span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--navy);
  margin-bottom: 3px;
}

/* ---- Progreso ---- */
.module-card__progress { margin-top: auto; }

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  transition: width 0.4s ease;
}

.is-completado .progress-fill { background: var(--navy); }

.session-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin-bottom: 16px;
}

.session-dots li {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--paper);
  border: 1px solid var(--line);
}

.session-dots li.is-done {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.is-completado .session-dots li.is-done {
  background: var(--navy);
  border-color: var(--navy);
}

/* La siguiente sesión late suavemente: señala dónde retomar. */
.session-dots li.is-next {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(179, 130, 26, 0.13);
}

.module-card__mentor {
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #166534;
}

.module-card__cta {
  width: 100%;
  justify-content: center;
}

.is-completado .module-card__cta {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

@media (prefers-reduced-motion: reduce) {
  .module-card,
  .progress-fill { transition: none; }
  .module-card:hover { transform: none; }
}

/* ---------------- Expediente · tarjetas de dossier ---------------- */
.dossier-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.dossier-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.dossier-card__icon {
  font-size: 24px;
  line-height: 1;
}

.dossier-card__title {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 2px;
}

.dossier-card__count {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 600;
}

.dossier-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dossier-items li {
  border-left: 3px solid var(--line);
  padding: 8px 0 8px 12px;
}

/* Lo que le toca al alumno en su nivel se destaca; el resto da contexto. */
.dossier-items li.is-mine {
  border-left-color: var(--gold);
  background: var(--gold-light);
  border-radius: 0 8px 8px 0;
  padding-right: 10px;
}

.dossier-items__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.dossier-items__level {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.dossier-items__you {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.dossier-items b {
  font-size: 13.5px;
  color: var(--navy);
  display: block;
}

.dossier-items p {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 3px 0 5px;
}

.dossier-items code {
  font-size: 11px;
  color: var(--green);
  background: var(--green-light);
  padding: 2px 7px;
  border-radius: 5px;
  word-break: break-all;
}

/* =====================================================================
   Puerta de entrada por audiencia — se elige el itinerario antes de ver
   nada, en lugar de mostrar todo a todos.
   ===================================================================== */
.audience-gate {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 24px;
  text-align: center;
}

.audience-gate h2 {
  font-size: clamp(26px, 4vw, 36px);
  color: var(--navy);
  margin: 8px 0 10px;
}

.audience-gate__lead {
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.audience-gate__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.audience-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  text-align: left;
  padding: 24px 22px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.audience-option:hover,
.audience-option:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green);
}

.audience-option:last-child { border-top-color: var(--navy); }
.audience-option:last-child:hover { border-color: var(--navy); }

.audience-option__icon { font-size: 30px; line-height: 1; }

.audience-option b {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 20px;
  color: var(--navy);
}

.audience-option__age {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.audience-option__desc {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-top: 4px;
}

.audience-gate__note {
  font-size: 12px;
  color: var(--ink-muted);
  font-style: italic;
}

/* Cápsula anunciada por un nivel pero aún sin contenido. */
.module-card.is-preparacion {
  border-top-color: var(--line);
  opacity: 0.75;
}

.is-preparacion .module-card__state {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  .audience-option { transition: none; }
  .audience-option:hover { transform: none; }
}

/* =====================================================================
   UNIFIED DUAL DIPLOMA LIFE SKILLS COMPONENTS
   Meet Banner, Daily Goals, Master Class Books, Tracks & Inline Sessions
   ===================================================================== */

/* 1. Google Meet & Weekly Schedule Banner */
.meet-schedule-banner {
  background: linear-gradient(135deg, #0f2240 0%, #1a365d 100%);
  border: 1px solid #2d4a77;
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 24px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(15, 34, 64, 0.16);
  position: relative;
  overflow: hidden;
}

.meet-schedule-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.meet-schedule-left {
  flex: 1;
  min-width: 290px;
}

.meet-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.meet-title {
  font-size: 20px;
  font-family: 'Fraunces', serif;
  color: #ffffff;
  margin: 0 0 4px;
}

.meet-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 14px;
  line-height: 1.45;
}

.meet-schedule-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.schedule-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
}

.chip-day {
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.chip-time {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: #cbd5e1;
}

.chip-subject {
  color: #f1f5f9;
  font-weight: 500;
}

.meet-schedule-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.btn-meet-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
  transition: all 0.18s ease;
  cursor: pointer;
}

.btn-meet-join:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.5);
  color: #ffffff;
}

.meet-link-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'JetBrains Mono', monospace;
}

/* 2. Daily Goals Card (Off-Campus Style) */
.daily-goals-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.daily-goals-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.daily-goals-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
}

.daily-days-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.daily-day-btn {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.daily-day-btn:hover {
  border-color: var(--green);
  background: var(--green-light);
}

.daily-day-btn.is-checked {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green);
}

.daily-day-btn.is-today {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(179, 130, 26, 0.2);
}

.day-btn-lbl {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}

.day-btn-status {
  font-size: 13px;
  font-weight: 600;
}

.daily-goals-info {
  background: var(--paper);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 13px;
  color: #533800;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* 3. Master Class Section (Books) */
.masterclass-section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.masterclass-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.masterclass-head h3 {
  font-size: 20px;
  color: var(--navy);
  margin: 0;
}

.masterclass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.masterclass-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.masterclass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #cbd5e1;
}

.mc-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: var(--gold-light);
  padding: 3px 8px;
  border-radius: 10px;
  align-self: flex-start;
  margin-bottom: 8px;
}

.mc-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
  font-family: 'Fraunces', serif;
}

.mc-author {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 10px;
  font-style: italic;
}

.mc-key {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 10px;
}

.mc-quote {
  font-size: 12px;
  font-style: italic;
  color: #7a5a1e;
  background: var(--gold-light);
  padding: 8px 10px;
  border-radius: 6px;
  margin-top: auto;
  line-height: 1.4;
}

/* 4. Vocational Tracks Picker (Integrated) */
.tracks-picker-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.tracks-picker-head {
  margin-bottom: 14px;
}

.tracks-picker-head h4 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 4px;
}

.tracks-picker-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.track-pill-btn {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.track-pill-btn:hover {
  border-color: var(--navy);
}

.track-pill-btn.is-active {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.track-detail-card {
  background: var(--green-light);
  border: 1px solid var(--green-border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--navy);
  line-height: 1.55;
}

/* 5. Units & Inline Sessions (English I style) */
.quarter-section-wrap {
  margin-bottom: 32px;
}

.quarter-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--line);
}

.quarter-section-head h3 {
  font-size: 18px;
  color: var(--navy);
  margin: 0;
}

.module-unit-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.module-unit-box:hover {
  box-shadow: var(--shadow-md);
}

.module-unit-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  transition: background 0.15s ease;
}

.module-unit-header:hover {
  background: var(--paper);
}

.unit-head-info {
  flex: 1;
}

.unit-head-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 4px;
}

.unit-head-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  font-family: 'Fraunces', serif;
}

.unit-head-eq {
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0;
}

.unit-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.unit-status-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.unit-status-chip.completado {
  background: var(--green-light);
  color: var(--green);
}

.unit-status-chip.en-curso {
  background: var(--gold-light);
  color: var(--gold);
}

.unit-status-chip.pendiente {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

.unit-expand-arrow {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  transition: transform 0.2s ease;
}

.unit-expand-arrow.open {
  transform: rotate(90deg);
}

/* Sessions dropdown container (below each module) */
.module-sessions-container {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 16px 20px;
}

.sessions-subheading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.session-row-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.session-row-item:hover {
  border-color: var(--navy);
}

.session-row-item.is-done {
  border-left: 3px solid var(--green);
}

.session-num-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.session-row-item.is-done .session-num-badge {
  background: var(--green);
}

.session-meta-text {
  flex: 1;
  min-width: 200px;
}

.session-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.session-row-obj {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.4;
}

.btn-open-session {
  background: var(--navy);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.btn-open-session:hover {
  background: var(--navy-light);
}

.btn-open-session.btn-review {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-open-session.btn-review:hover {
  border-color: var(--navy);
  background: var(--paper);
}

@media (max-width: 600px) {
  .meet-schedule-banner {
    padding: 18px 16px;
  }
  .meet-schedule-right {
    align-items: flex-start;
    width: 100%;
  }
  .btn-meet-join {
    width: 100%;
    justify-content: center;
  }
  .daily-days-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
  .session-row-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-open-session {
    width: 100%;
    text-align: center;
  }
}


/* ---------------- AI Mentor Floating Button & Modal ---------------- */
.ai-mentor-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(15, 40, 78, 0.35);
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-mentor-fab:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(15, 40, 78, 0.45);
  background: linear-gradient(135deg, #204C84 0%, var(--navy) 100%);
}

.ai-mentor-fab-icon {
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
}

.ai-mentor-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.ai-mentor-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ai-mentor-modal-card {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 600px;
  height: 640px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
  border: 1px solid var(--line);
  transform: translateY(12px) scale(0.98);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-mentor-modal-overlay.is-open .ai-mentor-modal-card {
  transform: translateY(0) scale(1);
}

.ai-mentor-modal-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-mentor-head-title {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-mentor-head-sub {
  font-size: 11.5px;
  opacity: 0.85;
  margin-top: 1px;
}

.ai-mentor-btn-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
}

.ai-mentor-btn-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ai-mentor-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #F8FAFC;
}

.ai-mentor-notice-box {
  background: #EFF6FF;
  border-bottom: 1px solid #BFDBFE;
  padding: 10px 16px;
  font-size: 11.5px;
  color: #1E3A8A;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ai-mentor-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-msg {
  max-width: 84%;
  padding: 11px 15px;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: 14px;
  word-break: break-word;
}

.ai-msg-assistant {
  align-self: flex-start;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 3px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ai-msg-user {
  align-self: flex-end;
  background: var(--navy);
  color: #ffffff;
  border-bottom-right-radius: 3px;
}

.ai-typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
}

.ai-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.4;
  animation: aiDotPulse 1.2s infinite ease-in-out;
}

.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes aiDotPulse {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.35; }
  40% { transform: scale(1.15); opacity: 1; }
}

.ai-mentor-chips-bar {
  padding: 8px 16px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
}

.ai-mentor-chip {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.ai-mentor-chip:hover {
  background: #E2E8F0;
  color: var(--navy);
  border-color: #CBD5E1;
}

.ai-mentor-input-bar {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: center;
}

.ai-mentor-input-field {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  background: #F8FAFC;
  transition: border-color 0.2s, background 0.2s;
}

.ai-mentor-input-field:focus {
  border-color: var(--navy);
  background: #ffffff;
}

.ai-mentor-btn-send {
  background: var(--navy);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-mentor-btn-send:hover:not(:disabled) {
  background: var(--navy-dark);
}

.ai-mentor-btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-mentor-disclaimer {
  padding: 6px 16px;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
  font-size: 10.5px;
  color: var(--ink-muted);
  text-align: center;
}

/* ============ Carácter: semana, radar y restauración ============ */
.char-view { display: grid; gap: 16px; }
.char-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(15,23,42,.06); }
.char-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #d97706; margin: 0 0 4px; }
.char-trait { margin: 0 0 6px; font-size: 22px; color: #0f172a; }
.char-def, .char-passage, .char-verse, .char-cluster { margin: 4px 0; font-size: 14px; color: #1e293b; }
.char-verse { color: #475569; font-size: 13px; }
.char-link { display: inline-block; margin-top: 10px; text-decoration: none; }
.char-h3 { margin: 0 0 10px; font-size: 16px; color: #0f172a; }
.char-radar-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.char-radar { width: 260px; max-width: 100%; height: auto; }
.char-radar-list { list-style: none; margin: 0; padding: 0; font-size: 14px; color: #1e293b; display: grid; gap: 6px; }
.char-radar-list .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: #94a3b8; }
.char-radar-list .c1 { background: #0f172a; } .char-radar-list .c2 { background: #1e293b; box-shadow: 0 0 0 2px #cbd5e1 inset; } .char-radar-list .c3 { background: #f59e0b; } .char-radar-list .c4 { background: #d97706; }
.char-total { border-top: 1px solid #e2e8f0; padding-top: 6px; }
.char-restore { border: 2px solid #d97706; background: #fffbeb; color: #7c2d12; }
.char-restore p, .char-restore li { color: #7c2d12; font-size: 14px; }
.char-good { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; font-size: 14px; }
.char-demo { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; }
.char-actions { display: flex; justify-content: flex-end; }
.char-loading { color: #64748b; }

/* ============ Ficha imprimible A4 ============ */
.print-only { display: none; }
@media print {
  @page { size: A4 portrait; margin: 16mm; }
  body.printing-sheet > *:not(#print-sheet):not(script) { display: none !important; }
  body.printing-sheet #print-sheet { display: block !important; color: #000; background: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: 12pt; }
  .no-print, nav, button, select, .stage-tabs, .ai-mentor-fab, #coin-toast { display: none !important; }
  .ps-head { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid #0f172a; padding-bottom: 8px; margin-bottom: 14px; }
  .ps-head span { font-size: 10pt; color: #334155; }
  #print-sheet h2 { font-size: 15pt; margin: 6px 0 12px; }
  #print-sheet h3 { font-size: 11pt; margin: 14px 0 6px; }
  .ps-table { width: 100%; border-collapse: collapse; font-size: 11pt; }
  .ps-table th, .ps-table td { border: 1px solid #94a3b8; padding: 6px 8px; text-align: left; vertical-align: top; }
  .ps-table th { background: #f1f5f9; width: 22%; }
  .ps-lines span { display: block; border-bottom: 1px solid #64748b; height: 24px; }
  .ps-sign { display: flex; gap: 28px; margin-top: 56px; }
  .ps-sign div { flex: 1; text-align: center; font-size: 10pt; }
  .ps-sign span { display: block; border-top: 1px solid #000; margin-bottom: 4px; }
}

.char-today { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: #475569; text-transform: capitalize; }

/* ============ Juniors: 80 misiones · piel aventura (≤ 11 años) y piel sobria ============ */
.jk-root { display: grid; gap: 18px; }
.jk-hud { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid #e2e8f0; background: #fff; }
.jk-avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid #f59e0b; background: #fffbeb; font-size: 34px; cursor: pointer; line-height: 1; }
.jk-hud__main { flex: 1; min-width: 200px; }
.jk-hud__name { margin: 0 0 6px; font-size: 15px; color: #0f172a; }
.jk-xp { height: 14px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.jk-xp i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #f59e0b, #d97706); transition: width .6s ease; }
.jk-hud__sub { margin: 6px 0 0; font-size: 12px; color: #64748b; }
.jk-hud__stats { display: flex; gap: 14px; font-size: 16px; color: #0f172a; }
.jk-skin-btn { border: 1px solid #cbd5e1; background: #f8fafc; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; color: #334155; }
.jk-h3 { margin: 4px 0 0; font-size: 17px; color: #0f172a; }
.jk-daily { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 18px; border: 2px dashed var(--jk, #d97706); background: #fffbeb; }
.jk-daily h3 { margin: 4px 0; font-size: 18px; color: #0f172a; } .jk-daily p { margin: 0; font-size: 13px; color: #475569; }
.jk-daily__tag { font-size: 11px !important; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--jk, #d97706) !important; }
.jk-islands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.jk-island { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 12px 8px; border-radius: 16px; border: 2px solid #e2e8f0; background: #fff; cursor: pointer; font: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.jk-island:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(15,23,42,.1); }
.jk-island.is-active { border-color: var(--jk); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jk) 25%, transparent); }
.jk-island__icon { font-size: 30px; line-height: 1; } .jk-island__name { font-size: 12px; font-weight: 800; color: #0f172a; min-height: 30px; display: flex; align-items: center; }
.jk-island__prog { width: 100%; height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; } .jk-island__prog i { display: block; height: 100%; background: var(--jk); }
.jk-island__count { font-size: 11px; color: #64748b; font-weight: 700; }
.jk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.jk-mission { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; border: 1px solid #e2e8f0; background: #fff; border-top: 5px solid var(--jk); }
.jk-mission__top { display: flex; align-items: center; gap: 8px; } .jk-mission__icon { font-size: 22px; }
.jk-mission__num { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #64748b; flex: 1; }
.jk-mission__coins { font-size: 12px; font-weight: 800; color: #b45309; background: #fef3c7; padding: 2px 8px; border-radius: 99px; }
.jk-mission__title { margin: 0; font-size: 16px; color: #0f172a; } .jk-mission__desc, .jk-mission__deliv, .jk-mission__verse { margin: 0; font-size: 13px; color: #475569; line-height: 1.5; }
.jk-mission__verse { font-style: italic; color: #0f766e; } .jk-mission__cta { margin-top: auto; }
.jk-mission.is-done { background: #f0fdf4; border-color: #bbf7d0; } .jk-mission.is-done .jk-mission__coins { background: #dcfce7; color: #166534; }

/* Piel aventura: colorida, redondeada, con movimiento */
.jk-skin-kids { font-family: 'Trebuchet MS', 'Comic Sans MS', system-ui, sans-serif; }
.jk-skin-kids .jk-hud { background: linear-gradient(135deg, #1e1b4b, #4338ca 55%, #7c3aed); border: 0; color: #fff; box-shadow: 0 8px 22px rgba(67,56,202,.35); }
.jk-skin-kids .jk-hud__name, .jk-skin-kids .jk-hud__stats { color: #fff; } .jk-skin-kids .jk-hud__sub { color: #c7d2fe; }
.jk-skin-kids .jk-xp { height: 18px; background: rgba(255,255,255,.2); } .jk-skin-kids .jk-xp i { background: linear-gradient(90deg, #fde047, #f59e0b); box-shadow: 0 0 10px #fde047; }
.jk-skin-kids .jk-avatar { width: 76px; height: 76px; font-size: 44px; border-color: #fde047; animation: jk-bounce 2.2s ease-in-out infinite; }
.jk-skin-kids .jk-skin-btn { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); }
.jk-skin-kids .jk-daily { border-style: solid; border-radius: 22px; background: linear-gradient(135deg, #fff7ed, #fef3c7); animation: jk-glow 2.5s ease-in-out infinite; }
.jk-skin-kids .jk-daily h3 { font-size: 21px; } .jk-skin-kids .jk-h3 { font-size: 21px; }
.jk-skin-kids .jk-island { border-radius: 22px; border-width: 3px; border-color: var(--jk); background: color-mix(in srgb, var(--jk) 10%, #fff); }
.jk-skin-kids .jk-island__icon { font-size: 40px; animation: jk-bounce 3s ease-in-out infinite; } .jk-skin-kids .jk-island:nth-child(2n) .jk-island__icon { animation-delay: .4s; }
.jk-skin-kids .jk-island__name { font-size: 13px; } .jk-skin-kids .jk-island__prog { height: 12px; }
.jk-skin-kids .jk-mission { border-radius: 22px; border: 3px solid var(--jk); border-top-width: 3px; box-shadow: 0 5px 0 var(--jk); transition: transform .15s ease; }
.jk-skin-kids .jk-mission:hover { transform: translateY(-3px); }
.jk-skin-kids .jk-mission__title { font-size: 18px; } .jk-skin-kids .jk-mission__desc, .jk-skin-kids .jk-mission__deliv { font-size: 14px; }
.jk-skin-kids .jk-mission__cta { border-radius: 99px; font-size: 15px; padding: 12px 16px; }
.jk-skin-kids .jk-mission.is-done { border-color: #22c55e; box-shadow: 0 5px 0 #22c55e; }
@keyframes jk-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes jk-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,.0); } 50% { box-shadow: 0 0 0 6px rgba(245,158,11,.25); } }
@media (prefers-reduced-motion: reduce) { .jk-skin-kids .jk-avatar, .jk-skin-kids .jk-island__icon, .jk-skin-kids .jk-daily { animation: none; } .jk-confetti { display: none; } }

/* Confeti al completar */
.jk-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.jk-confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: jk-fall 2.2s ease-in forwards; }
@keyframes jk-fall { to { top: 105%; transform: translateX(40px) rotate(720deg); opacity: .9; } }

/* ============ Carácter interactivo: semana elegible, pestañas, ficha bíblica ============ */
.cv-strip { display: flex; align-items: center; gap: 6px; }
.cv-arrow { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #cbd5e1; background: #fff; font-size: 20px; cursor: pointer; color: #0f172a; }
.cv-chips { display: flex; gap: 6px; overflow-x: auto; scroll-behavior: smooth; padding: 4px 2px; scrollbar-width: thin; flex: 1; }
.cv-chip { position: relative; flex: none; min-width: 78px; display: grid; justify-items: center; gap: 1px; padding: 6px 8px; border-radius: 12px; border: 2px solid #e2e8f0; background: #fff; cursor: pointer; font: inherit; }
.cv-chip b { font-size: 11px; color: #64748b; } .cv-chip span { font-size: 11px; font-weight: 700; color: #0f172a; white-space: nowrap; }
.cv-chip.c1 { border-top-color: #0f172a; } .cv-chip.c2 { border-top-color: #475569; } .cv-chip.c3 { border-top-color: #f59e0b; } .cv-chip.c4 { border-top-color: #d97706; }
.cv-chip.is-now { background: #fffbeb; } .cv-chip.is-sel { border-color: #d97706; box-shadow: 0 0 0 3px rgba(245,158,11,.3); }
.cv-chip.is-done i { position: absolute; top: -6px; right: -4px; font-style: normal; font-size: 11px; background: #22c55e; color: #fff; border-radius: 50%; width: 16px; height: 16px; line-height: 16px; text-align: center; }
.cv-now { background: #d97706; color: #fff; padding: 1px 7px; border-radius: 99px; font-size: 10px; }
.cv-cl { border: 0; background: #fef3c7; color: #92400e; font: inherit; font-weight: 800; border-radius: 99px; padding: 3px 10px; cursor: pointer; }
.cv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.cv-tab { border: 1px solid #cbd5e1; background: #f8fafc; border-radius: 99px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 700; color: #334155; cursor: pointer; }
.cv-tab.is-active { background: #0f172a; border-color: #0f172a; color: #fff; }
.cv-panel { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.cv-text { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: #1e293b; } .cv-sub { margin: 8px 0 6px; font-size: 12px; color: #64748b; font-weight: 700; }
.cv-read, .cv-verse { margin: 8px 0; font-size: 14px; color: #0f172a; } .cv-link { color: #b45309; font-weight: 800; text-decoration: none; margin-left: 6px; } .cv-link:hover { text-decoration: underline; }
.cv-days { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.cv-day { display: grid; justify-items: center; gap: 2px; min-width: 56px; padding: 8px; border-radius: 12px; border: 2px solid #e2e8f0; background: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.cv-day.on { border-color: #22c55e; background: #f0fdf4; } .cv-day span { font-size: 20px; }
.cv-bar { height: 10px; border-radius: 99px; background: #e2e8f0; overflow: hidden; margin: 6px 0; } .cv-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #22c55e); transition: width .4s ease; }
.cv-ta { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; margin-bottom: 8px; box-sizing: border-box; }
.cv-save { margin-top: 4px; }
.cv-prayer { margin: 0 0 12px; padding: 12px 16px; border-left: 4px solid #d97706; background: #fffbeb; border-radius: 0 12px 12px 0; font-size: 16px; line-height: 1.6; color: #78350f; font-style: italic; }
.cv-steps { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.cv-step { width: 100%; text-align: left; border: 2px solid #e2e8f0; background: #fff; border-radius: 12px; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; display: flex; gap: 8px; align-items: center; } .cv-step.on { border-color: #22c55e; background: #f0fdf4; }
.cv-q label { display: block; font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.cv-ficha { padding: 0; overflow: hidden; }
.cv-ficha__head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border: 0; background: #fff; font: inherit; text-align: left; cursor: pointer; }
.cv-ficha__head span:first-child { display: grid; gap: 2px; font-size: 15px; color: #0f172a; } .cv-ficha__head em { font-size: 13px; color: #64748b; font-style: normal; }
.cv-caret { font-size: 20px; color: #d97706; }
.cv-ficha__body { padding: 0 18px 16px; border-top: 1px solid #e2e8f0; }
.cv-fdl { margin: 8px 0; display: grid; gap: 6px; } .cv-frow { display: grid; grid-template-columns: 170px 1fr; gap: 8px; font-size: 14px; } .cv-frow dt { font-weight: 800; color: #475569; } .cv-frow dd { margin: 0; color: #1e293b; }
@media (max-width: 560px) { .cv-frow { grid-template-columns: 1fr; } }
.cv-kw { display: flex; flex-wrap: wrap; gap: 6px; } .cv-kw span, .cv-pill { background: #fef3c7; color: #92400e; border-radius: 99px; padding: 4px 12px; font-size: 12px; font-weight: 800; border: 0; font-family: inherit; }
.cv-pill { cursor: pointer; } .cv-pill.on { background: #dcfce7; color: #166534; }
.cv-h4 { margin: 12px 0 4px; font-size: 14px; color: #0f172a; } .cv-ul { margin: 0; padding-left: 20px; font-size: 14px; color: #1e293b; line-height: 1.6; }
.cv-clpanel__head { display: flex; justify-content: space-between; align-items: center; } .cv-x { border: 0; background: transparent; font-size: 18px; cursor: pointer; color: #64748b; }
.char-view, .cv-strip { min-width: 0; max-width: 100%; }
.cv-chips { min-width: 0; }
.cv-hero, .cv-panel { min-width: 0; overflow-wrap: anywhere; }

/* Devocional diario */
.cv-daily { background: linear-gradient(135deg, #fffbeb, #fff); border: 2px solid #fcd34d; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.cv-daily__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cv-daily__tag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #b45309; }
.cv-dpills { display: flex; gap: 6px; } .cv-dpill { border: 2px solid #e2e8f0; background: #fff; border-radius: 99px; padding: 5px 11px; font: inherit; font-size: 12px; font-weight: 800; color: #334155; cursor: pointer; }
.cv-dpill.is-sel { background: #0f172a; border-color: #0f172a; color: #fff; } .cv-dpill.is-read:not(.is-sel) { background: #dcfce7; border-color: #86efac; color: #166534; } .cv-dpill.is-today:not(.is-sel) { border-color: #d97706; }
.cv-daily__kind { margin: 8px 0 2px; font-size: 12px; font-weight: 700; color: #92400e; } .cv-daily__title { margin: 0 0 6px; font-size: 19px; color: #0f172a; }
.cv-daily__practice { margin: 8px 0; padding: 8px 12px; background: #f0fdf4; border-radius: 10px; font-size: 14px; color: #166534; }
.cv-daily__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .cv-readbtn { border: 2px solid #cbd5e1; background: #fff; border-radius: 99px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; } .cv-readbtn.on { border-color: #22c55e; background: #f0fdf4; color: #166534; }
.cv-h5 { margin: 12px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }

/* Cápsulas por tema (Juniors 4.º–7.º) y guía PDF del nivel */
.jk-tramos{display:flex;gap:8px;margin:0 0 10px}.jk-skin-btn.is-on{background:#0f172a;color:#fff;border-color:#0f172a}
.jk-capmodal{position:fixed;inset:0;background:rgba(15,23,42,.55);display:none;align-items:center;justify-content:center;z-index:300;padding:16px}.jk-capmodal.open{display:flex}
.jk-capmodal__box{position:relative;background:#fff;border-radius:22px;max-width:640px;width:100%;max-height:90vh;overflow:auto;padding:22px 22px 18px;box-shadow:0 20px 50px rgba(15,23,42,.35)}
.jk-capmodal__x{position:absolute;top:10px;right:12px;border:0;background:#f1f5f9;border-radius:50%;width:34px;height:34px;font-size:16px;cursor:pointer}
.jk-capmodal h3{font-size:22px;color:#0f172a;margin:4px 0 6px}.jk-capmodal h4{margin:14px 0 6px;color:#0f172a;font-size:14px}
.jk-capmodal__hook{font-size:14px;color:#334155}.jk-capmodal__steps{margin:0 0 4px 20px;font-size:14px;color:#334155;display:grid;gap:4px}
.jk-capmodal__opts{display:grid;gap:8px}.jk-capopt{text-align:left;padding:11px 14px;border-radius:14px;border:2px solid #e2e8f0;background:#fff;font:600 14px Inter,sans-serif;cursor:pointer}
.jk-capopt:hover:not(:disabled){border-color:#f59e0b}.jk-capopt.on{border-color:#7c3aed;background:#f5f3ff}.jk-capopt.ok{border-color:#16a34a;background:#dcfce7}.jk-capopt.bad{border-color:#dc2626;background:#fee2e2}
.jk-capmodal__why{font-size:13px;color:#475569;background:#f8fafc;border-radius:10px;padding:8px 10px;margin-top:8px}
.jk-capmodal__hint{font-size:12px;color:#64748b;margin:10px 0 0}.jk-capmodal__foot{margin-top:14px;display:flex;justify-content:flex-end}
.jk-capmodal__done{font-weight:800;color:#166534}
.guide-pdf-link{margin-left:auto;align-self:center;font-size:12px;font-weight:700;color:#0f172a;background:#fffbeb;border:1px solid #fcd34d;border-radius:999px;padding:6px 12px;text-decoration:none;white-space:nowrap}
.guide-pdf-link:hover{background:#fef3c7}

/* Rasgo de la semana y tira de cápsulas (Juniors) */
.jk-trait{padding:16px 18px;border-radius:18px;border:2px solid #f59e0b;background:linear-gradient(180deg,#fffbeb,#fff);display:grid;gap:8px}
.jk-trait h3{margin:0;font-size:22px;color:#0f172a}.jk-trait__def{margin:0;font-size:14px;color:#334155}
.jk-trait__lbl{font-size:13px;font-weight:700;color:#0f172a}.jk-trait__ta{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:12px;font:14px/1.5 Inter,sans-serif}
.jk-trait__saved{margin:0;font-size:13px;color:#475569;font-style:italic}
.jk-capsstrip{display:grid;gap:10px}.jk-capsstrip__h{display:flex;align-items:center;justify-content:space-between;gap:10px}.jk-capsstrip__h small{font-size:12px;color:#64748b;font-weight:700}

/* Clústeres, pasos de la cápsula y evidencia */
.cl-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}.cl-chip{font-size:11px;font-weight:700;border-radius:999px;padding:3px 9px;background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe}
.cl-chip.c1{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}.cl-chip.c2{background:#eff6ff;color:#1e40af;border-color:#bfdbfe}.cl-chip.c3{background:#fdf2f8;color:#9d174d;border-color:#fbcfe8}.cl-chip.c4{background:#fffbeb;color:#92400e;border-color:#fde68a}
.jk-step-h{display:flex;align-items:center;gap:8px}.jk-step-h span{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#0f172a;color:#fff;font-size:12px}
.jk-capmodal__case{font-size:14px;line-height:1.6;color:#334155;background:#f8fafc;border-left:4px solid #7c3aed;border-radius:8px;padding:10px 12px;margin:0}
.jk-capmodal__evid{font-size:14px;color:#0f172a;background:#fffbeb;border:1px dashed #f59e0b;border-radius:10px;padding:10px 12px;margin:0}
