/* ── Paco Notario Test Platform · Gaman Academia Theme ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
  --pnt-bg: #f5f5f3;
  --pnt-white: #ffffff;
  --pnt-surface: #ffffff;
  --pnt-surface2: #f0f0ee;
  --pnt-border: #e4e4e0;
  --pnt-text: #1a1a18;
  --pnt-muted: #6b6b67;
  --pnt-accent: #e8354a;
  --pnt-accent2: #1a1a18;
  --pnt-yellow: #f5e642;
  --pnt-correct: #2db87a;
  --pnt-wrong: #e8354a;
  --pnt-radius: 16px;
  --pnt-shadow: 0 2px 16px rgba(0,0,0,0.07);
  --pnt-shadow-hover: 0 6px 28px rgba(0,0,0,0.12);
}

#pnt-root * { box-sizing: border-box; }

#pnt-root {
  font-family: 'DM Sans', sans-serif;
  background: var(--pnt-bg);
  color: var(--pnt-text);
  min-height: 60vh;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.pnt-screen { display: none; padding: 32px 24px 60px; }
.pnt-screen.active { display: block; }

/* ── HOME ── */
.pnt-hero {
  background: var(--pnt-white);
  border-radius: 24px;
  padding: 44px 40px;
  margin-bottom: 18px;
  border: 1.5px solid var(--pnt-border);
  display: flex;
  align-items: center;
  gap: 32px;
  box-shadow: var(--pnt-shadow);
  position: relative;
  overflow: hidden;
}
.pnt-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 220px; height: 220px;
  background: var(--pnt-yellow);
  border-radius: 50%;
  opacity: 0.3;
  pointer-events: none;
}
.pnt-hero-text { flex: 1; position: relative; z-index: 1; }
.pnt-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  background: var(--pnt-accent);
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 16px;
}
.pnt-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  margin: 0 0 8px;
  line-height: 1.2;
  color: var(--pnt-text);
}
.pnt-subtitle {
  color: var(--pnt-muted);
  font-size: 0.82rem;
  margin: 0 0 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.pnt-desc { color: var(--pnt-muted); font-size: 0.88rem; margin: 10px 0 0; }

.pnt-hero-badge {
  background: var(--pnt-yellow);
  color: var(--pnt-text);
  border-radius: 20px;
  padding: 18px 24px;
  text-align: center;
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.pnt-hero-badge .big { font-size: 2.4rem; font-weight: 700; display: block; line-height: 1; }
.pnt-hero-badge small { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }

.pnt-mode-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.pnt-card {
  background: var(--pnt-white);
  border: 1.5px solid var(--pnt-border);
  border-radius: var(--pnt-radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--pnt-shadow);
}
.pnt-card:hover {
  border-color: var(--pnt-accent);
  box-shadow: var(--pnt-shadow-hover);
  transform: translateY(-3px);
}
.pnt-card-icon { font-size: 1.8rem; display: block; }
.pnt-card-body h3 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; }
.pnt-card-body p { margin: 0; font-size: 0.8rem; color: var(--pnt-muted); line-height: 1.4; }
.pnt-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  background: var(--pnt-text);
  color: white;
  border-radius: 50%;
  font-size: 0.85rem;
  align-self: flex-end;
  margin-top: 6px;
  transition: background 0.2s;
}
.pnt-card:hover .pnt-card-arrow { background: var(--pnt-accent); }

/* ── TEMA SELECTOR ── */
.pnt-top-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.pnt-top-bar h2 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
}
.pnt-btn-back {
  background: var(--pnt-white);
  border: 1.5px solid var(--pnt-border);
  color: var(--pnt-text);
  padding: 8px 18px;
  border-radius: 99px;
  cursor: pointer;
  font-size: 0.87rem;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.pnt-btn-back:hover { border-color: var(--pnt-accent); color: var(--pnt-accent); }

.pnt-tema-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 12px; }
.pnt-tema-item {
  background: var(--pnt-white);
  border: 1.5px solid var(--pnt-border);
  border-radius: var(--pnt-radius);
  padding: 18px 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--pnt-shadow);
}
.pnt-tema-item:hover { border-color: var(--pnt-accent); box-shadow: var(--pnt-shadow-hover); transform: translateY(-2px); }
.pnt-tema-num { font-family: 'DM Serif Display', serif; font-size: 1.6rem; color: var(--pnt-accent); display: block; }
.pnt-tema-name { font-size: 0.77rem; color: var(--pnt-muted); margin-top: 5px; line-height: 1.35; display: block; font-weight: 500; }
.pnt-tema-count {
  font-size: 0.73rem;
  color: var(--pnt-text);
  margin-top: 10px;
  display: inline-block;
  background: var(--pnt-yellow);
  padding: 2px 9px;
  border-radius: 99px;
  font-weight: 700;
}

/* ── TEST SCREEN ── */
.pnt-test-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--pnt-border);
  margin-bottom: 24px;
}
.pnt-progress-wrap { flex: 1; display: flex; align-items: center; gap: 12px; }
.pnt-progress-bar { flex: 1; height: 6px; background: var(--pnt-border); border-radius: 99px; overflow: hidden; }
#pnt-progress-fill { height: 100%; background: var(--pnt-accent); border-radius: 99px; transition: width 0.4s ease; width: 0%; }
#pnt-progress-text { font-size: 0.82rem; color: var(--pnt-muted); font-weight: 600; white-space: nowrap; }
.pnt-timer { font-size: 0.88rem; color: var(--pnt-muted); font-weight: 700; }
.pnt-timer.urgent { color: var(--pnt-wrong); }
.hidden { display: none !important; }

.pnt-question-wrap {
  background: var(--pnt-white);
  border-radius: 20px;
  padding: 28px 28px 22px;
  border: 1.5px solid var(--pnt-border);
  box-shadow: var(--pnt-shadow);
}
.pnt-q-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pnt-badge {
  background: var(--pnt-yellow);
  color: var(--pnt-text);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pnt-ley-label { font-size: 0.77rem; color: var(--pnt-muted); font-style: italic; }
.pnt-question {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.55;
  margin: 0 0 22px;
}

.pnt-options { display: flex; flex-direction: column; gap: 10px; }
.pnt-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--pnt-bg);
  border: 1.5px solid var(--pnt-border);
  border-radius: 12px;
  padding: 13px 15px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pnt-option:hover:not(.disabled) { border-color: var(--pnt-accent); background: #fff8f8; }
.pnt-option.disabled { cursor: default; }
.pnt-option-letter {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--pnt-border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.83rem;
  flex-shrink: 0;
  color: var(--pnt-muted);
  background: white;
  transition: all 0.15s;
}
.pnt-option-text { flex: 1; font-size: 0.93rem; line-height: 1.5; padding-top: 4px; }

.pnt-option.selected:not(.correct):not(.wrong) { border-color: var(--pnt-text); background: white; }
.pnt-option.selected:not(.correct):not(.wrong) .pnt-option-letter { background: var(--pnt-text); border-color: var(--pnt-text); color: white; }
.pnt-option.correct { border-color: var(--pnt-correct); background: #f2fbf7; }
.pnt-option.correct .pnt-option-letter { background: var(--pnt-correct); border-color: var(--pnt-correct); color: white; }
.pnt-option.wrong { border-color: var(--pnt-wrong); background: #fff5f6; }
.pnt-option.wrong .pnt-option-letter { background: var(--pnt-wrong); border-color: var(--pnt-wrong); color: white; }

.pnt-explanation {
  margin-top: 18px;
  background: var(--pnt-bg);
  border-left: 4px solid var(--pnt-accent);
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  font-size: 0.875rem;
  line-height: 1.65;
  animation: slideIn 0.25s ease;
}
.pnt-explanation strong { color: var(--pnt-accent); }
.pnt-explanation .art-text {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--pnt-muted);
  font-style: italic;
  border-top: 1px solid var(--pnt-border);
  padding-top: 10px;
  white-space: pre-line;
}
@keyframes slideIn { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }

.pnt-test-footer { margin-top: 18px; display: flex; justify-content: flex-end; }
.pnt-btn-next {
  background: var(--pnt-accent);
  color: white;
  border: none;
  padding: 13px 30px;
  border-radius: 99px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.18s;
}
.pnt-btn-next:hover { background: #c9273b; transform: translateY(-2px); }

/* ── RESULTS ── */
.pnt-results-inner { text-align: center; padding-top: 28px; }
.pnt-result-emoji { font-size: 60px; margin-bottom: 12px; }
.pnt-results-title { font-family: 'DM Serif Display', serif; font-size: 1.8rem; font-weight: 400; margin: 0 0 4px; }
.pnt-score-display {
  font-family: 'DM Serif Display', serif;
  font-size: 5rem;
  font-weight: 400;
  color: var(--pnt-accent);
  line-height: 1;
  margin: 16px 0 28px;
}
.pnt-score-detail { display: flex; justify-content: center; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.pnt-score-item {
  background: var(--pnt-white);
  border: 1.5px solid var(--pnt-border);
  border-radius: 16px;
  padding: 18px 26px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 100px;
  box-shadow: var(--pnt-shadow);
}
.pnt-score-item span { font-size: 2rem; font-weight: 700; }
.pnt-score-item small { font-size: 0.73rem; color: var(--pnt-muted); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.pnt-score-item.correct span { color: var(--pnt-correct); }
.pnt-score-item.wrong span { color: var(--pnt-wrong); }
.pnt-score-item.blank span { color: var(--pnt-muted); }

.pnt-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.pnt-btn-primary {
  background: var(--pnt-accent); color: white; border: none;
  padding: 13px 28px; border-radius: 99px; font-size: 0.95rem; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: all 0.18s;
}
.pnt-btn-primary:hover { background: #c9273b; transform: translateY(-2px); }
.pnt-btn-secondary {
  background: white; color: var(--pnt-text);
  border: 1.5px solid var(--pnt-border);
  padding: 13px 28px; border-radius: 99px; font-size: 0.95rem; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: all 0.18s;
}
.pnt-btn-secondary:hover { border-color: var(--pnt-text); }

/* ── Responsive ── */
@media (max-width: 620px) {
  .pnt-mode-cards { grid-template-columns: 1fr; }
  .pnt-hero { flex-direction: column; padding: 28px 20px; }
  .pnt-hero-badge { width: 100%; }
}
@media (max-width: 480px) {
  .pnt-screen { padding: 18px 12px 48px; }
  .pnt-title { font-size: 1.6rem; }
  .pnt-question { font-size: 1.05rem; }
  .pnt-question-wrap { padding: 20px 16px; }
  .pnt-tema-grid { grid-template-columns: repeat(2, 1fr); }
  .pnt-score-display { font-size: 3.5rem; }
}

/* ── BuddyBoss / LearnDash overrides ── */
#pnt-root a { text-decoration: none; }
#pnt-root button { box-shadow: none !important; text-transform: none !important; }
#pnt-root h2, #pnt-root h3 { letter-spacing: normal; text-transform: none; }
#pnt-root input, #pnt-root select { all: unset; }
