:root {
    --bg: #050505;
    --txt: #FFFFFF;
    --line: rgba(255,255,255,0.08);
    --line-strong: rgba(255,255,255,0.18);
    --gold: #F97316;
    --gold-light: rgba(249,115,22,0.15);
    --gold-border: rgba(249,115,22,0.3);
  }
  html, body {
    background: var(--bg); color: var(--txt);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
  }
  body {
    background-color: var(--bg);
    background-image: url('./assets/labyrinth.svg');
    background-size: 200px 200px;
    background-repeat: repeat;
    background-attachment: fixed;
    padding-bottom: 40px;
  }
  .font-display { font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; text-shadow: 0 0 40px rgba(255,255,255,0.07); }
  ::selection { background: #F97316; color: #000; }

  /* Glow utilities */
  .glow-orange {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(249,115,22,0.7), 0 0 60px rgba(249,115,22,0.3);
  }

  /* Hero ambient */
  .quiz-hero-glow {
    position: fixed; top: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 300px;
    background: radial-gradient(ellipse at top, rgba(249,115,22,0.1) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
  }

  /* Eyebrow */
  .eyebrow { color: #FFFFFF; opacity: 0.6; font-weight: 700; text-transform: uppercase; letter-spacing: 0.22em; font-size: 11px; }
  .eyebrow-line { display: inline-flex; align-items: center; gap: 12px; }
  .eyebrow-line::before { content: ''; width: 24px; height: 1px; background: rgba(255,255,255,0.4); }

  /* Card principal */
  .quiz-card {
    background: linear-gradient(180deg, #0F0F0F 0%, #0A0A0A 100%);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
  }
  .quiz-body {
    padding: 32px 28px;
    min-height: 360px;
  }
  @media (min-width: 640px) { .quiz-body { padding: 48px 44px; min-height: 400px; } }

  /* Inputs */
  .input, .textarea {
    background: #0F0F0F;
    border: 1px solid #1F1F1F;
    color: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    width: 100%;
    font-size: 16px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    font-family: inherit;
  }
  .textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
  .input:focus, .textarea:focus {
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
  }
  .input::placeholder, .textarea::placeholder { color: #5C5C5C; }

  /* Radio cards */
  .radio-card {
    display: block;
    background: #0F0F0F;
    border: 1px solid #1F1F1F;
    border-radius: 12px;
    padding: 15px 18px 15px 50px;
    cursor: pointer;
    transition: all .15s ease;
    position: relative;
    user-select: none;
  }
  .radio-card:hover { border-color: rgba(255,255,255,0.28); background: #131313; }
  .radio-card input { position: absolute; opacity: 0; pointer-events: none; }
  .radio-card .dot {
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; border-radius: 999px;
    border: 2px solid #444;
    transition: all .15s ease;
    flex-shrink: 0;
  }
  .radio-card.selected {
    border-color: rgba(249,115,22,0.7);
    background: linear-gradient(180deg, rgba(249,115,22,0.08) 0%, #0A0A0A 100%);
    box-shadow: 0 0 0 1px rgba(249,115,22,0.15), 0 0 20px rgba(249,115,22,0.08);
  }
  .radio-card.selected .dot {
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: inset 0 0 0 4px #0A0A0A, 0 0 10px rgba(249,115,22,0.5);
  }
  .radio-card.selected .radio-label { color: #fff; }
  .radio-card .sublabel {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
    font-weight: 500;
  }

  /* Bottom bar */
  .bottom-bar {
    background: linear-gradient(110deg, #F97316 0%, #FBBF24 55%, #F97316 100%);
    background-size: 200% 100%;
    color: #000;
    border-radius: 0 0 20px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    transition: background-position .25s ease;
    box-shadow: 0 6px 32px rgba(249,115,22,0.35);
  }
  .bottom-bar:hover { background-position: right center; box-shadow: 0 8px 40px rgba(249,115,22,0.5); }
  .bottom-btn {
    padding: 18px 24px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 14px;
    background: transparent;
    border: 0;
    color: #000;
    cursor: pointer;
    transition: background .15s ease;
    font-family: inherit;
  }
  .bottom-btn:hover { background: rgba(0,0,0,0.06); }
  .bottom-btn:disabled { opacity: 0.3; cursor: not-allowed; }
  .bottom-btn.prev { text-align: left; border-right: 1px solid rgba(0,0,0,0.12); }
  .bottom-btn.next { text-align: right; }
  .bottom-btn.full { grid-column: 1 / -1; text-align: center; padding: 22px 24px; font-size: 16px; font-weight: 900; }

  /* Progress */
  .progress { height: 3px; background: #1A1A1A; border-radius: 999px; overflow: hidden; }
  .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #F97316, #FBBF24);
    width: 0%; transition: width .35s ease;
    box-shadow: 0 0 8px rgba(249,115,22,0.6);
  }

  /* Steps */
  .step { display: none; }
  .step.active { display: block; animation: fadeIn .22s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

  /* Error */
  .err { color: rgba(255,255,255,0.8); font-size: 13px; margin-top: 10px; }

  /* Select dropdown */
  .select-input {
    background: #0F0F0F;
    border: 1px solid #1F1F1F;
    color: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    width: 100%;
    font-size: 16px;
    outline: none;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color .15s ease;
  }
  .select-input:focus { border-color: rgba(255,255,255,0.5); }
  .select-input option { background: #111; color: #fff; }

  html { scroll-behavior: smooth; }

  /* ── Gate modal (captura de datos antes del quiz) ── */
  .gate-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
  }
  .gate-box {
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 22px;
    padding: 40px 32px;
    width: 100%; max-width: 420px;
    text-align: center;
  }
  .gate-input {
    width: 100%; background: #0a0a0a; border: 1px solid #1f1f1f;
    color: #fff; border-radius: 12px; padding: 14px 16px;
    font-size: 16px; font-family: inherit; outline: none;
    transition: border-color .15s ease; margin-bottom: 10px;
  }
  .gate-input:focus { border-color: rgba(255,255,255,0.4); }
  .gate-input::placeholder { color: #444; }
  .gate-btn {
    display: flex; align-items: center; justify-content: center;
    width: 100%; background: linear-gradient(110deg,#F97316 0%,#FBBF24 55%,#F97316 100%);
    background-size: 200% 100%;
    color: #000; font-weight: 900; font-size: 16px; letter-spacing: -0.01em;
    padding: 16px 24px; border-radius: 14px; border: none; cursor: pointer;
    margin-top: 6px; font-family: inherit;
    box-shadow: 0 4px 24px rgba(249,115,22,0.35);
    transition: all .2s ease;
  }
  .gate-btn:hover { background-position: right center; box-shadow: 0 8px 40px rgba(249,115,22,0.5); }
  .gate-err { color: #f87171; font-size: 13px; margin-top: 6px; display: none; text-align: left; }
