/* ═══════════════════════════════════════════════════════════════
   BEENI APP CSS — Design System v1.0
   Rewritten from design_system.html — DO NOT improvise
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

/* ─── CSS VARIABLES (exact from DS) ─── */
:root {
  --verde: #2D6A4F;
  --verde-light: #40916C;
  --verde-dark: #1B4332;
  --verde-pale: #D8F3DC;
  --gold: #F4A261;
  --gold-light: #FFF3E0;
  --gold-dark: #E76F51;
  --dark: #1B1B2F;
  --dark-soft: #2D2D44;
  --cream: #FDFAF5;
  --white: #FFFFFF;
  --gray-100: #F7F7F5;
  --gray-200: #EEEDE8;
  --gray-300: #D5D4CF;
  --gray-400: #9E9D97;
  --gray-500: #6B6A65;
  --coral: #E76F51;
  --blue: #264653;
  --blue-light: #2A9D8F;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --shadow-sm: 0 2px 8px rgba(27,27,47,0.06);
  --shadow-md: 0 4px 20px rgba(27,27,47,0.08);
  --shadow-lg: 0 8px 40px rgba(27,27,47,0.12);
  --shadow-glow: 0 0 0 4px rgba(244,162,97,0.25);
  --nav-height: 60px;
}

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

/* ─── BODY ─── */
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: var(--nav-height);
}

/* ─── APP MAIN ─── */
.app-main {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-height) + 16px);
}

/* ═══════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════ */
.alert {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  z-index: 1000;
  animation: slideDown 0.3s ease;
}
.alert-error {
  background: #FFF0ED;
  color: var(--coral);
  border: 1.5px solid var(--coral);
}
.alert-success {
  background: var(--verde-pale);
  color: var(--verde);
  border: 1.5px solid var(--verde);
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ═══════════════════════════════════════════
   BUTTONS (exact from DS)
   ═══════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--verde);
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--verde-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--verde);
  background: transparent;
  color: var(--verde);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--verde-pale);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--dark);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-decoration: none;
}
.btn-google:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--gray-400);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: not-allowed;
  width: 100%;
}

/* Generic btn helpers */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  width: 100%;
  text-align: center;
}
.btn-green { background: var(--verde); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-green:hover { background: var(--verde-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--verde); color: var(--verde); }
.btn-outline-white { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 18px; }
.btn:disabled { background: var(--gray-100); color: var(--gray-400); cursor: not-allowed; border: 1.5px solid var(--gray-200); }

/* ═══════════════════════════════════════════
   CARDS (exact from DS)
   ═══════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-elevated {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-md);
}

/* ═══════════════════════════════════════════
   SECTION BUTTONS (exact from DS)
   ═══════════════════════════════════════════ */
.section-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
  color: var(--white);
  text-decoration: none;
}
.section-btn:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}
.section-btn.ruta { background: linear-gradient(135deg, var(--verde) 0%, var(--verde-light) 100%); }
.section-btn.libros { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%); }
.section-btn.devo { background: linear-gradient(135deg, var(--gold) 0%, var(--coral) 100%); }
.section-btn.repaso { background: linear-gradient(135deg, #6C63FF 0%, #4834D4 100%); }

.section-icon {
  font-size: 22px;
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-title {
  font-weight: 800;
  font-size: 15px;
}
.section-sub {
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   STAT PILLS (exact from DS)
   ═══════════════════════════════════════════ */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  font-size: 15px;
  color: var(--dark);
}
.stat-pill .emoji { font-size: 16px; }

/* ═══════════════════════════════════════════
   NODES — La Ruta (exact from DS)
   ═══════════════════════════════════════════ */
.node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  color: var(--white);
  transition: all 0.2s;
  position: relative;
  text-decoration: none;
}
.node.completed { background: var(--verde); box-shadow: var(--shadow-sm); }
.node.current { background: var(--gold); box-shadow: var(--shadow-glow); animation: pulse 2s infinite; }
.node.locked { background: var(--gray-200); color: var(--gray-400); }
.node.coming { background: var(--gray-200); color: var(--gray-400); border: 2px dashed var(--gray-300); }

@keyframes pulse {
  0%, 100% { box-shadow: var(--shadow-glow); }
  50% { box-shadow: 0 0 0 8px rgba(244,162,97,0.12); }
}

.stars {
  display: flex;
  gap: 2px;
  font-size: 10px;
  margin-top: 4px;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   INPUT FIELDS (exact from DS)
   ═══════════════════════════════════════════ */
.input-field {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: var(--dark);
  transition: border-color 0.2s;
  outline: none;
}
.input-field:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}
.input-field::placeholder { color: var(--gray-400); }

/* ═══════════════════════════════════════════
   NAV BAR (exact from DS)
   ═══════════════════════════════════════════ */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 8px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px 12px;
  text-decoration: none;
  flex: 1;
}
.nav-item.active { color: var(--verde); }
.nav-icon {
  font-size: 20px;
  margin-bottom: 2px;
  display: block;
  line-height: 1;
}

/* ═══════════════════════════════════════════
   BUBBLE (exact from DS)
   ═══════════════════════════════════════════ */
.bubble {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--dark);
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  line-height: 1.5;
}
.bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════
   BADGE PILLS (exact from DS)
   ═══════════════════════════════════════════ */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}
.badge-pill.free { background: var(--gray-200); color: var(--gray-500); }
.badge-pill.premium { background: var(--gold-light); color: var(--gold-dark); }
.badge-pill.iglesia { background: var(--verde-pale); color: var(--verde); }
.badge-pill.pronto { background: var(--gray-100); color: var(--gray-400); font-size: 10px; }

/* ═══════════════════════════════════════════
   PROGRESS BAR (exact from DS)
   ═══════════════════════════════════════════ */
.progress-bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}
.progress-fill.verde { background: linear-gradient(90deg, var(--verde), var(--verde-light)); }
.progress-fill.gold { background: linear-gradient(90deg, var(--gold), var(--gold-dark)); }

/* ═══════════════════════════════════════════
   HEART BAR (exact from DS)
   ═══════════════════════════════════════════ */
.heart-bar {
  position: relative;
  height: 40px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  padding: 0 16px;
  justify-content: space-between;
}
.heart-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(244,162,97,0.1), rgba(244,162,97,0.35));
  border-radius: 20px;
  transition: width 0.3s;
}
.heart-thumb {
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(244,162,97,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 3;
}

/* ═══════════════════════════════════════════
   VERSE CARD (exact from DS)
   ═══════════════════════════════════════════ */
.verse-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.verse-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.6;
  font-style: italic;
}
.verse-ref {
  font-size: 12px;
  color: var(--gold);
  font-weight: 800;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════
   FLASHCARD (exact from DS)
   ═══════════════════════════════════════════ */
.flashcard {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  perspective: 1000px;
}
.flashcard.front { background: var(--verde); color: var(--white); box-shadow: var(--shadow-md); }
.flashcard.back { background: var(--white); color: var(--dark); border: 2px solid var(--verde); box-shadow: var(--shadow-md); }

/* ═══════════════════════════════════════════
   OPTION BUTTONS (exact from DS)
   ═══════════════════════════════════════════ */
.option-btn {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-200);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
  width: 100%;
}
.option-btn:hover { border-color: var(--verde); background: var(--verde-pale); }
.option-btn.selected { border-color: var(--verde); background: var(--verde); color: var(--white); }
.option-btn.correct { border-color: var(--verde); background: var(--verde-pale); color: var(--verde-dark); }
.option-btn.wrong { border-color: var(--coral); background: #FFF0ED; color: var(--coral); }
.option-btn:disabled { cursor: default; }
/* Backward compat alias */
.option-btn.incorrect { border-color: var(--coral); background: #FFF0ED; color: var(--coral); }

/* ═══════════════════════════════════════════
   WORLD CARDS (exact from DS)
   ═══════════════════════════════════════════ */
.world-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--dark);
}
.world-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.world-card.locked { opacity: 0.5; cursor: default; }
.world-card.locked:hover { box-shadow: var(--shadow-sm); transform: none; }

.world-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--white);
  flex-shrink: 0;
}
.world-num.active { background: var(--verde); }
.world-num.locked { background: var(--gray-300); }

/* ═══════════════════════════════════════════
   PHONE DEMO (exact from DS)
   ═══════════════════════════════════════════ */
.phone-demo {
  width: 320px;
  height: 640px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(27,27,47,0.08);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: var(--dark);
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

/* ═══════════════════════════════════════════
   DIVIDER & TAGS (exact from DS)
   ═══════════════════════════════════════════ */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 2rem 0;
}

.tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}
.tag.new { background: var(--gold-light); color: var(--gold-dark); }
.tag.lock { background: var(--gray-100); color: var(--gray-400); }

/* ═══════════════════════════════════════════
   HOME SCREEN
   ═══════════════════════════════════════════ */
.home-header {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-light) 100%);
  padding: 32px 24px 48px;
  text-align: center;
  color: var(--white);
  position: relative;
  border-radius: 0 0 32px 32px;
}
.home-greeting {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 2px;
}
.home-name {
  font-size: 20px;
  font-weight: 800;
}
.home-avatar {
  width: 72px;
  height: 72px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -36px auto 0;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-md);
  font-size: 36px;
}
.home-body {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 24px;
}

/* ═══════════════════════════════════════════
   RUTA MAP
   ═══════════════════════════════════════════ */
.ruta-header {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-light) 100%);
  padding: 24px 24px 28px;
  text-align: center;
  color: var(--white);
  border-radius: 0 0 32px 32px;
}
.ruta-header h1 {
  font-size: 20px;
  font-weight: 800;
}
.ruta-header p {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 2px;
}

.world-selector {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.world-selector::-webkit-scrollbar { display: none; }

.ruta-map {
  padding: 24px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ruta-node-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.ruta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.ruta-row--right { margin-left: 60px; }
.ruta-row--left { margin-right: 60px; }

.ruta-node-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Connectors */
.ruta-connector {
  width: 3px;
  height: 28px;
  margin: 0 auto;
}
.ruta-connector--done { background: var(--verde); }
.ruta-connector--pending { background: var(--gray-200); }

.ruta-sub-connector {
  width: 3px;
  height: 16px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   SESSION LAYOUT
   ═══════════════════════════════════════════ */
.session-body {
  background: var(--cream);
  color: var(--dark);
  padding-bottom: 0;
  min-height: 100vh;
}

.session-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--verde);
  position: sticky;
  top: 0;
  z-index: 100;
}
.session-back {
  color: var(--white);
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  width: 32px;
  text-align: center;
  font-weight: 700;
}

.session-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  overflow: hidden;
}
.session-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 4px;
  transition: width 0.4s ease;
}

.session-lambs {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
}
.lamb-emoji { font-size: 18px; }

.session-main {
  padding: 16px;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════
   EXERCISE COMMON
   ═══════════════════════════════════════════ */
.exercise-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

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

.exercise-avatar {
  width: 48px;
  height: 48px;
  background: var(--verde-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}

.exercise-question {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: center;
  color: var(--dark);
}

.exercise-reference {
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 800;
  text-align: center;
}

/* ─── OPTIONS LIST ─── */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

/* ─── TRUE/FALSE ─── */
.tf-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.tf-btn {
  padding: 24px 16px;
  border-radius: var(--radius-lg);
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.tf-btn-true { background: var(--verde-pale); color: var(--verde); border-color: var(--verde-light); }
.tf-btn-false { background: #FFF0ED; color: var(--coral); border-color: var(--coral); }
.tf-btn.selected-correct { background: var(--verde); color: var(--white); border-color: var(--verde); }
.tf-btn.selected-incorrect { background: var(--coral); color: var(--white); border-color: var(--coral); }

/* ─── FILL VERSE ─── */
.verse-display {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.verse-blank {
  display: inline-block;
  min-width: 80px;
  border-bottom: 2px dashed var(--gold);
  padding: 2px 8px;
  margin: 0 4px;
  color: var(--gold);
  font-weight: 700;
}
.word-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.word-chip {
  padding: 10px 16px;
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--gray-200);
  border-radius: 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.word-chip:hover { border-color: var(--verde); }
.word-chip.selected { background: var(--verde); color: var(--white); border-color: var(--verde); }
.word-chip.correct { background: var(--verde); color: var(--white); border-color: var(--verde); }
.word-chip.incorrect { background: var(--coral); color: var(--white); border-color: var(--coral); }

/* ─── CHRONOLOGY ─── */
.chrono-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.chrono-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: grab;
  user-select: none;
  transition: all 0.2s;
}
.chrono-item:active { cursor: grabbing; transform: scale(1.02); box-shadow: var(--shadow-lg); }
.chrono-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.chrono-text { font-weight: 600; font-size: 14px; }
.chrono-item.correct-pos { border-color: var(--verde); background: var(--verde-pale); }
.chrono-item.incorrect-pos { border-color: var(--coral); background: #FFF0ED; }
.chrono-arrows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: auto;
  flex-shrink: 0;
}
.chrono-arrow {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  line-height: 1;
}
.chrono-arrow:hover { color: var(--verde); }

/* ─── MATCH ─── */
.match-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.match-column { display: flex; flex-direction: column; gap: 8px; }
.match-item {
  padding: 12px 14px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.match-item.highlight { border-color: var(--verde); background: var(--verde-pale); }
.match-item.matched { border-color: var(--verde); background: var(--verde-pale); opacity: 0.7; cursor: default; }
.match-item.error { border-color: var(--coral); animation: shake 0.4s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ─── MULTI SELECT ─── */
.multi-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.multi-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.multi-option.checked { border-color: var(--verde); background: var(--verde-pale); }
.multi-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-400);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.multi-option.checked .multi-checkbox { background: var(--verde); border-color: var(--verde); }
.multi-option.checked .multi-checkbox::after { content: "\2713"; color: var(--white); font-weight: 800; font-size: 13px; }
.multi-option.correct-result { border-color: var(--verde); }
.multi-option.incorrect-result { border-color: var(--coral); }
.multi-text { font-weight: 600; font-size: 14px; }

/* ─── WHO AM I ─── */
.clue-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 12px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.clue-text { font-size: 15px; font-weight: 600; font-style: italic; }
.clue-number { font-size: 12px; color: var(--gold); font-weight: 700; margin-bottom: 4px; }

.guess-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.guess-input:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(45,106,79,0.1); }

/* ─── FEEDBACK ─── */
.feedback {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
}
.feedback-correct { background: var(--verde-pale); color: var(--verde); }
.feedback-incorrect { background: #FFF0ED; color: var(--coral); }
.feedback-explanation { font-weight: 600; font-size: 13px; margin-top: 6px; opacity: 0.9; }

/* ═══════════════════════════════════════════
   INTRO / NARRATIVE SCREENS
   ═══════════════════════════════════════════ */
.intro-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 40px 24px;
  background: var(--cream);
  border-radius: var(--radius-xl);
  margin: -16px;
  min-height: calc(100vh - 56px);
}
.intro-badge {
  display: inline-block;
  background: var(--verde-pale);
  color: var(--verde);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}
.intro-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.intro-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  font-weight: 600;
}
.intro-avatar {
  width: 80px;
  height: 80px;
  background: var(--verde-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 24px;
}
.intro-character {
  font-size: 48px;
  margin-bottom: 16px;
}
.intro-text-card {
  background: var(--white);
  border-left: 4px solid var(--gold);
  -webkit-border-left: 4px solid var(--gold);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  margin-bottom: 24px;
  max-width: 340px;
  width: 100%;
}
.intro-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--dark);
}
.intro-scripture {
  font-size: 14px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 16px;
  max-width: 300px;
}

/* Narrative screen */
.narrative-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 40px 24px;
  background: var(--cream);
  border-radius: var(--radius-xl);
  margin: -16px;
  min-height: calc(100vh - 56px);
}
.narrative-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 24px;
  color: var(--dark);
}
.narrative-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.narrative-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: all 0.3s;
}
.narrative-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 12px;
}

/* ═══════════════════════════════════════════
   RESULT SCREEN
   ═══════════════════════════════════════════ */
.result-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 24px;
  background: var(--cream);
  border-radius: var(--radius-xl);
  margin: -16px;
}
.result-sheep {
  font-size: 72px;
  margin-bottom: 16px;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.result-stars {
  font-size: 48px;
  margin-bottom: 12px;
  letter-spacing: 4px;
}
.result-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--verde);
  margin-bottom: 6px;
}
.result-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
  font-weight: 600;
}
.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 300px;
  margin-bottom: 20px;
}
.result-stat {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.result-stat-value { font-size: 22px; font-weight: 800; color: var(--verde); }
.result-stat-label {
  font-size: 10px;
  color: var(--gray-400);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.result-sinapis {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-light);
  color: var(--gold-dark);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 24px;
}
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}
.result-streak {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
  margin-top: 12px;
}

/* ═══════════════════════════════════════════
   BIBLE STYLES
   ═══════════════════════════════════════════ */
.bible-header {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-light) 100%);
  padding: 24px 24px 28px;
  text-align: center;
  color: var(--white);
  border-radius: 0 0 32px 32px;
}
.bible-header h1 {
  font-size: 20px;
  font-weight: 800;
}
.bible-header p {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}

.bible-verse-num {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold);
  vertical-align: super;
  margin-right: 2px;
}

/* ═══════════════════════════════════════════
   KEY CONCEPTS
   ═══════════════════════════════════════════ */
.concepts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.concept-item {
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.concept-item p { font-size: 14px; font-weight: 600; line-height: 1.5; }

/* ═══════════════════════════════════════════
   LIBROS
   ═══════════════════════════════════════════ */
.books-grid { display: flex; flex-direction: column; gap: 12px; }

.book-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--dark);
  transition: all 0.2s;
}
.book-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.book-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--verde);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}
.book-info { flex: 1; }
.book-name { font-size: 15px; font-weight: 700; }
.book-progress { font-size: 12px; color: var(--gray-500); font-weight: 600; }

.book-progress-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.book-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--verde), var(--verde-light));
  border-radius: 2px;
  transition: width 0.3s;
}

/* ─── LESSONS LIST ─── */
.lessons-list { display: flex; flex-direction: column; gap: 8px; }

.lesson-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--dark);
  transition: all 0.2s;
}
.lesson-item:hover { box-shadow: var(--shadow-md); }

.lesson-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.lesson-number.intro { background: var(--gold); color: var(--dark); }
.lesson-title { flex: 1; font-weight: 600; font-size: 14px; }
.lesson-stars { font-size: 12px; letter-spacing: 1px; color: var(--gold); }

/* ─── SECTION HEADERS ─── */
.section-header { margin-bottom: 20px; padding: 16px 20px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--verde);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

/* ─── AUDIO PLAYER ─── */
.audio-player { display: inline-flex; align-items: center; gap: 8px; }
.audio-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}
.audio-btn:hover { background: rgba(244,162,97,0.2); }
.audio-btn.loading { opacity: 0.6; animation: audioPulse 1s infinite; }

@keyframes audioPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ─── DEVOCIONAL ─── */
.devo-wrapper {
  min-height: 100vh;
  background: linear-gradient(180deg, #FFF8F0 0%, #FFF3E0 50%, #FDEBD0 100%);
  padding: 24px 20px;
}
.devo-day {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 16px;
  text-align: center;
}
.devo-verse-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--gold);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.devo-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 24px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Nunito', sans-serif;
}
.devo-audio-btn:hover { background: var(--gold-light); }
.devo-sinapis {
  font-size: 14px;
  font-weight: 800;
  color: var(--verde);
  text-align: center;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-green { color: var(--verde); }
.text-gray { color: var(--gray-500); }
.text-sm { font-size: 12px; }
.text-lg { font-size: 18px; }
.fw-800 { font-weight: 800; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* Desktop: center content, use phone-like max-width */
@media (min-width: 768px) {
  body {
    background: var(--gray-200);
  }

  .app-main {
    max-width: 480px;
    margin: 0 auto;
    background: var(--cream);
    min-height: 100vh;
    box-shadow: var(--shadow-lg);
    position: relative;
  }

  .nav-bar {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }

  .session-body {
    max-width: 480px;
    margin: 0 auto;
  }

  .session-header {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    right: auto;
  }

  .home-header {
    border-radius: 0 0 32px 32px;
  }

  .ruta-header,
  .bible-header {
    border-radius: 0 0 32px 32px;
  }

  /* Pastor dashboard: full width on desktop */
  .pastor-dashboard {
    max-width: 1200px !important;
    margin: 0 auto;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .section-btn { padding: 14px 14px; }
  .section-title { font-size: 14px; }
  .home-name { font-size: 18px; }
  .stat-pill { padding: 6px 12px; font-size: 13px; }
}

/* ═══════════════════════════════════════════
   DESIGN SPRINT 2: Session DS Components
   ═══════════════════════════════════════════ */

/* Narrative avatar (smaller 48px) */
.narrative-avatar {
  width: 48px;
  height: 48px;
  background: var(--verde-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

/* Audio play button for narrative (gold circle) */
.session-audio-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  border: none;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  font-family: Nunito, sans-serif;
}
.session-audio-play:hover {
  background: var(--gold-dark);
  transform: scale(1.05);
}

/* Exercise feedback (DS version with icons) */
.exercise-feedback {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-top: 12px;
  animation: fadeIn 0.3s ease;
  font-size: 14px;
}
.exercise-feedback-correct {
  background: var(--verde-pale);
  color: var(--verde);
}
.exercise-feedback-wrong {
  background: #FFF0ED;
  color: var(--coral);
}

/* Loading screen */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 60px 24px;
  background: var(--cream);
  min-height: auto;
}

/* Exercise avatar (40px for exercise phase) */
.exercise-avatar {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

/* ═══════════════════════════════════════════
   ANIMATIONS (Design Sprint 2)
   ═══════════════════════════════════════════ */
@keyframes shake2 { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-8px)} 40%,80%{transform:translateX(8px)} }
@keyframes bounce2 { 0%{transform:scale(1)} 50%{transform:scale(1.1)} 100%{transform:scale(1)} }
@keyframes starPop { 0%{transform:scale(0);opacity:0} 50%{transform:scale(1.3)} 100%{transform:scale(1);opacity:1} }
.shake { animation: shake2 0.4s ease; }
.bounce { animation: bounce2 0.3s ease; }
.fade-in { animation: fadeIn 0.3s ease; }
.star-pop { animation: starPop 0.5s ease forwards; display: inline-block; }
.star-pop:nth-child(2) { animation-delay: 0.2s; }
.star-pop:nth-child(3) { animation-delay: 0.4s; }

/* Fix: Headers span full content width on desktop */
@media (min-width: 768px) {
    .home-header,
    .ruta-header {
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }
}
