:root {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --border: #1f1f1f;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.6);
  --accent-yellow: #ffc107;
  --accent-teal: #008080;
  --accent-teal-strong: #00a3a3;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --shadow-glow: 0 0 0 4px rgba(0, 128, 128, 0.18);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 128, 128, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 193, 7, 0.10), transparent 60%),
    var(--bg);
}

main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 24px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Header / Logo ---------- */
.site-header {
  padding: 24px 24px 0;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-size: clamp(20px, 4vw, 26px);
  text-transform: lowercase;
}

.logo-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo .club { color: var(--text); }
.logo .di { color: var(--accent-yellow); }
.logo .tella { color: var(--accent-teal-strong); }
.logo .emprende { color: var(--text); }
.logo .rocket { font-size: 0.9em; transform: rotate(-15deg); display: inline-block; }

/* ---------- Screens ---------- */
.screen {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

[hidden] { display: none !important; }

/* ---------- Hero ---------- */
#hero {
  text-align: center;
  align-items: center;
  padding-top: 24px;
}

.hero-rocket {
  font-size: clamp(72px, 14vw, 120px);
  filter: drop-shadow(0 18px 40px rgba(0, 128, 128, 0.4));
  animation: float 4s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 8px 0 4px;
}

.accent-yellow { color: var(--accent-yellow); }
.accent-teal { color: var(--accent-teal-strong); }

.hero-sub {
  font-size: clamp(16px, 2.4vw, 20px);
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 12px;
  line-height: 1.5;
}

.hero-meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  font: inherit;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 16px 28px;
  cursor: pointer;
  transition: transform 120ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
  letter-spacing: -0.01em;
}

.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-glow); }

.btn-primary {
  background: var(--accent-yellow);
  color: #000;
  font-size: 18px;
  padding: 18px 36px;
}
.btn-primary:hover {
  background: #ffd54a;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 22px;
  font-size: 15px;
}
.btn-ghost:hover:not(:disabled) {
  border-color: var(--accent-teal-strong);
  color: var(--accent-teal-strong);
}
.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Quiz ---------- */
.quiz-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.progress {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-teal) 0%, var(--accent-teal-strong) 100%);
  border-radius: 999px;
  transition: width 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.counter {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--text);
  min-width: 56px;
  text-align: right;
}
.counter .dim { color: var(--text-dim); font-weight: 500; }

.question-text {
  font-size: clamp(24px, 4.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 12px 0 8px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  text-align: left;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 180ms ease;
  line-height: 1.4;
}

.option-btn:hover,
.option-btn:focus-visible {
  border-color: var(--accent-teal-strong);
  background: var(--accent-teal);
  color: #000;
  transform: translateY(-1px);
  outline: none;
}

.option-btn.selected {
  border-color: var(--accent-yellow);
  background: var(--accent-yellow);
  color: #000;
}

.quiz-nav {
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
}

/* ---------- Result ---------- */
#result {
  text-align: center;
  align-items: center;
}

.result-rocket {
  font-size: clamp(56px, 10vw, 88px);
  animation: lift-off 1200ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.result-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent-teal-strong);
  font-weight: 700;
}

.result-headline {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 4px 0 8px;
}

.result-headline .hl-yellow { color: var(--accent-yellow); }
.result-headline .hl-teal { color: var(--accent-teal-strong); }

.result-body {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent-teal-strong);
  color: #000;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 128, 128, 0.35);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 50;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}
.site-footer p { margin: 0; }

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-10px) rotate(-12deg); }
}

@keyframes lift-off {
  0% { transform: translateY(40px) rotate(-25deg); opacity: 0; }
  60% { transform: translateY(-6px) rotate(-15deg); opacity: 1; }
  100% { transform: translateY(0) rotate(-15deg); opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fade-in 280ms ease both; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  main { padding: 16px 16px 48px; }
  .site-header { padding: 16px 16px 0; }
  .btn-primary { padding: 16px 28px; font-size: 17px; }
  .option-btn { padding: 16px 18px; font-size: 15px; }
  .quiz-top { gap: 12px; }
  .result-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
