/* Mi Camino a Jesús — UI cálida estilo Duolingo / TDAH-friendly */
:root {
  --cj-bg: #fff8eb;
  --cj-bg-2: #fff1d6;
  --cj-ink: #3b2f1a;
  --cj-muted: #7a6548;
  --cj-gold: #f59e0b;
  --cj-sky: #38bdf8;
  --cj-ok: #34d399;
  --cj-soft: #fb7185;
  --cj-card: #ffffff;
  --cj-border: #f3e2c2;
  --cj-font: "Fredoka", "Plus Jakarta Sans", system-ui, sans-serif;
  --cj-radius: 22px;
  --cj-shadow: 0 12px 28px rgba(180, 120, 40, 0.12);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--cj-font);
  color: var(--cj-ink);
  background:
    radial-gradient(circle at 12% 0%, #ffe8a3 0%, transparent 40%),
    radial-gradient(circle at 90% 10%, #c7eefe 0%, transparent 36%),
    linear-gradient(180deg, var(--cj-bg) 0%, var(--cj-bg-2) 100%);
}
button, input { font: inherit; }
h1, h2 { margin: 0 0 10px; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(1.55rem, 5vw, 2rem); font-weight: 700; }
.cj-h2 { font-size: 1.15rem; margin: 22px 0 10px; }

#app { min-height: 100vh; }
.cj-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px 40px;
}
.cj-shell--lesson { padding-top: 8px; }

.cj-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.cj-screen {
  background: var(--cj-card);
  border: 2px solid var(--cj-border);
  border-radius: 28px;
  padding: 22px 18px 24px;
  box-shadow: var(--cj-shadow);
}
.cj-screen--center { text-align: center; }

.cj-mascot {
  width: 88px; height: 88px;
  margin: 0 auto 12px;
  border-radius: 28px;
  display: grid; place-items: center;
  font-size: 2.6rem;
  background: linear-gradient(145deg, #fff7d1, #ffe08a);
  box-shadow: 0 8px 0 #f0c14b;
}
.cj-mascot--sm {
  width: 64px; height: 64px;
  font-size: 1.9rem;
  border-radius: 20px;
  margin-bottom: 8px;
}
.cj-burst {
  font-size: 3.4rem;
  margin-bottom: 8px;
  animation: cjPop 0.6s ease;
}
@keyframes cjPop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

.cj-lead {
  margin: 0 0 18px;
  color: var(--cj-muted);
  font-size: 1.05rem;
  line-height: 1.4;
  font-weight: 500;
}
.cj-guide-name {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--cj-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}
.cj-hint {
  margin: 0 0 12px;
  color: var(--cj-muted);
  font-weight: 600;
}

.cj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #3b2f1a;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 6px 0 #d97706;
  cursor: pointer;
  text-decoration: none;
}
.cj-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #d97706; }
.cj-btn--ghost {
  background: #fff;
  color: var(--cj-ink);
  border: 2px solid var(--cj-border);
  box-shadow: none;
}
.cj-btn--ghost:active { box-shadow: none; transform: none; }

.cj-input {
  width: 100%;
  min-height: 54px;
  margin: 0 0 14px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px solid var(--cj-border);
  background: #fffdf8;
  font-size: 1.1rem;
  text-align: center;
}

.cj-avatars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 18px;
}
.cj-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 18px;
  border: 2px solid var(--cj-border);
  background: #fffdf8;
  cursor: pointer;
}
.cj-avatar span { font-size: 1.8rem; }
.cj-avatar em { font-style: normal; font-size: 0.72rem; font-weight: 700; color: var(--cj-muted); }
.cj-avatar.is-on {
  border-color: var(--cj-gold);
  background: #fff4d0;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.cj-goals { display: grid; gap: 10px; margin: 14px 0 18px; }
.cj-goal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid var(--cj-border);
  background: #fffdf8;
  cursor: pointer;
  text-align: left;
}
.cj-goal strong { font-size: 1.1rem; }
.cj-goal span { color: var(--cj-muted); font-weight: 600; }
.cj-goal.is-on {
  border-color: var(--cj-sky);
  background: #e0f5ff;
}

.cj-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cj-back, .cj-linkish, .cj-exit {
  background: #fff;
  border: 2px solid var(--cj-border);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--cj-ink);
  text-decoration: none;
  cursor: pointer;
  min-height: 44px;
}
.cj-exit {
  width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
}

.cj-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.cj-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--cj-border);
  border-radius: 16px;
  padding: 10px;
}
.cj-stat span { font-size: 1.2rem; }
.cj-stat strong { display: block; font-size: 0.95rem; line-height: 1.1; }
.cj-stat small { color: var(--cj-muted); font-weight: 600; font-size: 0.7rem; }
.cj-stat--hearts { justify-content: center; gap: 2px; flex-wrap: wrap; }
.cj-heart { font-size: 0.95rem; filter: none; }
.cj-heart.is-empty { filter: grayscale(1); opacity: 0.35; }

.cj-streak-copy {
  margin: 0 0 14px;
  text-align: center;
  font-weight: 700;
  color: #c2410c;
  font-size: 0.92rem;
}
.cj-map-title { text-align: center; margin-bottom: 4px; }
.cj-map-sub {
  text-align: center;
  margin: 0 0 16px;
  color: var(--cj-muted);
  font-weight: 600;
}

.cj-path {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.cj-node {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  text-align: left;
  padding: 12px;
  border-radius: 20px;
  border: 3px solid color-mix(in srgb, var(--node) 55%, #fff);
  background: #fff;
  box-shadow: var(--cj-shadow);
  cursor: pointer;
  color: inherit;
}
.cj-node__emoji {
  grid-row: 1 / span 2;
  width: 56px; height: 56px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: color-mix(in srgb, var(--node) 28%, #fff);
}
.cj-node__num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cj-muted);
}
.cj-node strong { font-size: 1.05rem; }
.cj-node em {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-style: normal;
  font-weight: 800;
  color: var(--cj-muted);
}
.cj-node--locked { opacity: 0.55; cursor: not-allowed; filter: grayscale(0.3); }
.cj-node--done { border-color: var(--cj-ok); }
.cj-node--open { transform: translateY(0); }
.cj-node--open:hover { transform: translateY(-2px); }

.cj-fab-row {
  display: grid;
  gap: 10px;
}

.cj-path-label {
  margin: 8px 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cj-muted);
}

.cj-gift {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 0 0 18px;
  padding: 18px 16px;
  text-align: left;
  border-radius: 24px;
  border: 3px solid #fbbf24;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.55), transparent 40%),
    linear-gradient(135deg, #fff7d1 0%, #ffe08a 55%, #fde68a 100%);
  box-shadow: 0 10px 0 #f0c14b, var(--cj-shadow);
  cursor: pointer;
  color: inherit;
}
.cj-gift:active { transform: translateY(2px); box-shadow: 0 8px 0 #f0c14b, var(--cj-shadow); }
.cj-gift__badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #f0c14b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #92400e;
}
.cj-gift__emoji { font-size: 1.6rem; }
.cj-gift strong { font-size: 1.25rem; }
.cj-gift__text {
  color: var(--cj-muted);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}
.cj-gift__meta {
  margin-top: 4px;
  font-weight: 800;
  color: #b45309;
  font-size: 0.88rem;
}

.cj-prayer-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.cj-prayer-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border-radius: 18px;
  border: 2px solid var(--cj-border);
  background: #fffdf8;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.cj-prayer-card.is-done {
  border-color: #6ee7b7;
  background: #ecfdf5;
}
.cj-prayer-card__emoji {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: #fff4d0;
}
.cj-prayer-card__body { display: grid; gap: 2px; }
.cj-prayer-card__body strong { font-size: 1rem; }
.cj-prayer-card__body em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--cj-muted);
  font-weight: 600;
  line-height: 1.3;
}
.cj-prayer-card__go {
  font-weight: 800;
  color: #b45309;
  font-size: 0.9rem;
}

.cj-prayer-full {
  margin: 8px 0 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fffdf8;
  border: 2px solid var(--cj-border);
  max-height: 50vh;
  overflow: auto;
}
.cj-prayer-full p {
  margin: 0 0 6px;
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 600;
}
.cj-prayer-full p:last-child { margin-bottom: 0; }

.cj-prayer-cert-list {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}
.cj-prayer-cert-list li {
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7d1;
  border: 1px solid #f0c14b;
  font-weight: 700;
}

.cj-lesson-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cj-progress {
  flex: 1;
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: #f3e2c2;
  overflow: hidden;
}
.cj-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #34d399);
  transition: width 0.25s ease;
}
.cj-progress span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--cj-ink);
}

.cj-explain p {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 600;
}
.cj-options {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.cj-options--2 { grid-template-columns: 1fr 1fr; }
.cj-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid var(--cj-border);
  background: #fffdf8;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  text-align: left;
  color: inherit;
}
.cj-option:active { transform: scale(0.98); }
.cj-option span { font-size: 1.35rem; }

.cj-order-out {
  min-height: 52px;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 14px;
  background: #fff4d0;
  border: 2px dashed #f0c14b;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.cj-chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--cj-border);
  font-weight: 700;
  font-size: 0.9rem;
}
.cj-blank-line {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 8px 0 16px;
  line-height: 1.5;
}
.cj-blank {
  display: inline-block;
  min-width: 4ch;
  border-bottom: 3px solid var(--cj-gold);
  margin: 0 4px;
}

.cj-prayer {
  margin: 12px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #e0f5ff;
  border: 2px solid #7dd3fc;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.4;
}

.cj-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
}
.cj-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff4d0;
  border: 1px solid #f0c14b;
  font-size: 0.8rem;
  font-weight: 700;
}

.cj-diploma {
  background: #fff;
  border: 3px solid var(--cj-gold);
  border-radius: 28px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--cj-shadow);
}
.cj-diploma__label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--cj-gold);
  font-size: 0.75rem;
}
.cj-diploma__name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #b45309;
  margin: 8px 0 14px;
}
.cj-diploma__date { color: var(--cj-muted); font-weight: 600; }

.cj-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 50;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.cj-toast.is-ok { background: #d1fae5; color: #065f46; border: 2px solid #6ee7b7; }
.cj-toast.is-soft { background: #ffe4e6; color: #9f1239; border: 2px solid #fda4af; }

@media print {
  .cj-topbar, .cj-btn, .cj-toast { display: none !important; }
  body { background: #fff; }
  .cj-diploma { box-shadow: none; }
}

@media (max-width: 420px) {
  .cj-options--2 { grid-template-columns: 1fr; }
  .cj-stats { grid-template-columns: 1fr; }
}
