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

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

:root {
  --ink: #FFFFFF;
  --ink-soft: #C9C9CE;
  --ink-faint: #86868F;
  --bg: #030303;
  --bg-raised: #121214;
  --bg-raised-2: #1A1A1E;
  --line: #2A2A30;
  --brass: #9B7BF2;
  --brass-soft: #B39EF6;
  --danger: #D9695F;
  --ok: #6FBF73;
  --transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #0C0C14;
    --ink-soft: #3E3E48;
    --ink-faint: #82828C;
    --bg: #F7F7FA;
    --bg-raised: #FFFFFF;
    --bg-raised-2: #EDEDF3;
    --line: #E0E0E8;
    --brass: #6D3FD6;
    --brass-soft: #5B32B8;
    --danger: #C4453A;
    --ok: #29915F;
  }
}
:root[data-theme="light"] {
  --ink: #0C0C14;
  --ink-soft: #3E3E48;
  --ink-faint: #82828C;
  --bg: #F7F7FA;
  --bg-raised: #FFFFFF;
  --bg-raised-2: #EDEDF3;
  --line: #E0E0E8;
  --brass: #6D3FD6;
  --brass-soft: #5B32B8;
  --danger: #C4453A;
  --ok: #29915F;
}

html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  transition: var(--transition);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 20;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

/* ── SCREENS ─────────────────────────────────────────────────────── */
.screen { display: none; min-height: 100vh; }
.screen.active { display: block; }

/* ── INTRO ───────────────────────────────────────────────────────── */
.intro-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}
.brand-logo {
  width: min(200px, 55vw);
  height: auto;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 20px;
}
.intro-title {
  font-size: clamp(34px, 5.5vw, 52px);
  line-height: 1.1;
  margin-bottom: 24px;
}
.intro-sub {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 54ch;
}
.intro-meta {
  font-size: 14px;
  color: var(--ink-faint);
  margin-top: 40px;
  margin-bottom: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brass);
  color: #17140C;
  border: none;
  border-radius: 4px;
  padding: 16px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition), transform 0.15s ease;
}
.btn:hover { background: var(--brass-soft); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--ink-faint); color: var(--ink); }

/* ── QUESTION SCREEN ─────────────────────────────────────────────── */
.q-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 120px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.q-progress {
  margin-bottom: 56px;
}
.q-progress-track {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}
.q-progress-fill {
  height: 100%;
  background: var(--brass);
  transition: width 0.35s ease;
}
.q-progress-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  font-weight: 600;
}
.q-body { flex: 1; }
.q-text {
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.3;
  margin-bottom: 40px;
}
.q-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.q-option {
  text-align: left;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 20px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition), border-color 0.15s ease;
}
.q-option:hover { border-color: var(--brass); }
.q-option.selected { border-color: var(--brass); background: var(--bg-raised-2); }
.q-option-other {
  border-style: dashed;
  color: var(--ink-faint);
  background: transparent;
}
.q-option-other:hover { color: var(--ink); }
.q-scale {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.q-scale-btn {
  flex: 1;
  aspect-ratio: 1;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition), border-color 0.15s ease;
}
.q-scale-btn:hover { border-color: var(--brass); }
.q-scale-btn.selected { border-color: var(--brass); background: var(--brass); color: #17140C; }
.q-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 10px;
}
.q-text-input {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}
.q-text-input:focus { outline: none; border-color: var(--brass); }
.q-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
}
.q-skip {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── CALCULATING ─────────────────────────────────────────────────── */
.calc-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.calc-mark {
  width: 44px; height: 1px;
  background: var(--brass);
  animation: calcPulse 1.6s ease-in-out infinite;
}
@keyframes calcPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }
.calc-text {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  color: var(--ink-soft);
}
@media (prefers-reduced-motion: reduce) { .calc-mark { animation: none; } }

/* ── RESULT / PRIORITY BRIEF ─────────────────────────────────────── */
.brief {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 24px 120px;
}
.brief-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 16px;
}

.urgent-box {
  border: 1px solid var(--danger);
  border-radius: 6px;
  padding: 22px 24px;
  margin-bottom: 48px;
  background: color-mix(in srgb, var(--danger) 8%, var(--bg-raised));
}
.urgent-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--danger);
  font-weight: 700;
  margin-bottom: 12px;
}
.urgent-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.urgent-list li { font-size: 15px; color: var(--ink-soft); line-height: 1.55; padding-left: 18px; position: relative; }
.urgent-list li::before { content: '⚠'; position: absolute; left: 0; color: var(--danger); }

/* Prioridad #1 — domina la pantalla */
.primary-block { margin-bottom: 72px; }
.primary-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass);
  font-weight: 700;
  margin-bottom: 18px;
}
.primary-headline {
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.06;
  margin-bottom: 22px;
}
.primary-tagline {
  font-size: 19px;
  font-style: italic;
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
  margin-bottom: 40px;
  padding-left: 20px;
  border-left: 2px solid var(--brass);
}
.brief-section { margin-top: 40px; }
.brief-section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 14px;
}
.brief-section p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 62ch;
}
.brief-list { list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 62ch; }
.brief-list li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
}
.brief-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--brass);
}
.brief-list.numbered { counter-reset: item; }
.brief-list.numbered li { counter-increment: item; }
.brief-list.numbered li::before { content: counter(item) '.'; font-weight: 600; color: var(--brass); }

.unlocks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.unlocks-chip {
  font-size: 13.5px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}
.unlocks-chip::before { content: '→ '; color: var(--brass); }

.caveat-note {
  margin-top: 32px;
  font-size: 14.5px;
  color: var(--ink-faint);
  font-style: italic;
  max-width: 62ch;
}

/* Cola de prioridades #2-#5, secuencia visual */
.queue-heading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  font-weight: 700;
  margin-bottom: 28px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.queue-list { display: flex; flex-direction: column; }
.queue-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding-bottom: 28px;
  position: relative;
}
.queue-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 34px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.queue-num {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink-soft);
  background: var(--bg);
  flex-shrink: 0;
}
.queue-title {
  font-size: 19px;
  margin-bottom: 6px;
}
.queue-brief {
  font-size: 15px;
  color: var(--ink-faint);
  line-height: 1.55;
  max-width: 56ch;
}

/* Ahora no */
.notyet-heading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  font-weight: 700;
  margin: 56px 0 24px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.notyet-list { display: flex; flex-direction: column; gap: 18px; }
.notyet-item { padding: 4px 0; }
.notyet-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.notyet-reason { font-size: 14.5px; color: var(--ink-faint); line-height: 1.55; }
.notyet-reason::before { content: 'Ahora no. '; color: var(--brass); font-weight: 600; }

/* Orden de foco */
.focusmap-heading {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  font-weight: 700;
  margin: 56px 0 20px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.focusmap-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-soft);
}
.focusmap-row .sep { color: var(--brass); }
.focusmap-row .current { color: var(--brass); font-weight: 700; }

/* CTA */
.cta-block {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.cta-heading { font-size: 22px; margin-bottom: 14px; }
.cta-text { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; max-width: 56ch; margin-bottom: 24px; }

.replay-note {
  margin-top: 48px;
  font-size: 13.5px;
  color: var(--ink-faint);
  font-style: italic;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.brief-actions { margin-top: 28px; display: flex; gap: 12px; }

@media (max-width: 640px) {
  .intro-wrap, .q-wrap, .brief { padding-left: 20px; padding-right: 20px; }
  .queue-item { grid-template-columns: 32px 1fr; gap: 14px; }
  .queue-num { width: 32px; height: 32px; font-size: 14px; }
}
