  :root {
    --deep: #665a9c;
    --mid: #928ac2;
    --pink: #f7c4e9;
    --blush: #fbdad2;
    --dark: #2d2d2d;
    --white: #ffffff;
    --off: #faf8fc;
    --muted: #7a7490;
    --border: rgba(102,90,156,0.15);
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Source Serif 4', Georgia, serif;
    background: var(--off);
    color: var(--dark);
    min-height: 100vh;
    line-height: 1.7;
    /* DESHABILITAR SELECCION */
        -webkit-user-select: none; /* Safari */
        -ms-user-select: none;     /* IE 10 y IE 11 */
        user-select: none;         /* Estándar */
  }

  /* ── HEADER ── */
  header {
    background: linear-gradient(135deg, #665a9c 0%, #928ac2 45%, #f7c4e9 80%, #fbdad2 100%);
    padding: 3rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 60px;
    background: var(--off);
    clip-path: ellipse(55% 100% at 50% 100%);
  }

  .logo-text {
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 300;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 20px rgba(45,45,45,0.18);
  }
  .logo-text em {
    font-style: italic;
    font-weight: 400;
    color: var(--pink);
  }
  .logo-stars {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    opacity: 0.9;
  }
  .header-ep {
    display: inline-block;
    background: rgba(255,255,255,0.22);
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.35);
    margin-bottom: 1.5rem;
  }

  /* ── MAIN CONTAINER ── */
  .container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.25rem;
  }

  /* ── SCREENS ── */
  .screen { display: none; }
  .screen.active { display: block; }

  /* ── INTRO ── */
  .intro-wrap {
    padding: 3rem 0 4rem;
    text-align: center;
  }
  .intro-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 400;
    color: var(--deep);
    line-height: 1.3;
    margin-bottom: 1.25rem;
  }
  .intro-title em { font-style: italic; color: var(--mid); }
  .intro-desc {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.85;
    max-width: 520px;
    margin: 0 auto 2rem;
    font-weight: 300;
  }
  .intro-desc strong { color: var(--deep); font-weight: 600; }

  .profile-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 2rem 0 2.5rem;
    text-align: left;
  }
  .profile-chip {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
  }
  .chip-icon { font-size: 1.4rem; margin-bottom: 0.4rem; }
  .chip-name {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--deep);
    margin-bottom: 0.2rem;
  }
  .chip-hint { font-size: 0.82rem; color: var(--muted); font-weight: 300; line-height: 1.5; }

  .start-btn {
    background: linear-gradient(135deg, var(--deep) 0%, var(--mid) 100%);
    color: var(--white);
    border: none;
    border-radius: 100px;
    padding: 16px 40px;
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 4px 20px rgba(102,90,156,0.3);
  }
  .start-btn:hover { opacity: 0.9; transform: translateY(-1px); }
  .start-btn:active { transform: translateY(0); }
  .meta-note {
    font-size: 0.8rem; color: var(--muted); margin-top: 1rem; font-weight: 300;
  }

  /* ── QUIZ ── */
  .quiz-wrap { padding: 2.5rem 0 4rem; }

  .progress-area { margin-bottom: 2.5rem; }
  .progress-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
  }
  .progress-num {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--mid); font-weight: 600;
  }
  .progress-pct { font-size: 0.75rem; color: var(--muted); font-weight: 300; }
  .progress-track {
    height: 3px;
    background: rgba(102,90,156,0.15);
    border-radius: 3px; overflow: hidden;
  }
  .progress-fill {
    height: 3px; background: linear-gradient(90deg, var(--deep), var(--mid));
    border-radius: 3px; transition: width 0.4s ease;
  }

  .question-label {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--mid); font-weight: 600; margin-bottom: 0.75rem;
  }
  .question-text {
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    font-weight: 400; color: var(--dark);
    line-height: 1.45; margin-bottom: 2rem;
  }

  .options { display: flex; flex-direction: column; gap: 10px; }
  .opt {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex; align-items: flex-start; gap: 14px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    text-align: left;
    font-family: 'Source Serif 4', serif;
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.55;
  }
  .opt:hover { border-color: var(--mid); background: #faf8ff; }
  .opt.selected {
    border-color: var(--deep);
    background: rgba(102,90,156,0.07);
  }
  .opt-letter {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--off); border: 1px solid var(--border);
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    color: var(--muted); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
  }
  .opt.selected .opt-letter {
    background: var(--deep); color: var(--white); border-color: var(--deep);
  }
  .opt-text { flex: 1; }

  .nav-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 2rem;
  }
  .nav-back {
    background: transparent; border: 1px solid var(--border);
    border-radius: 100px; padding: 10px 22px;
    font-family: 'Source Serif 4', serif;
    font-size: 0.88rem; color: var(--muted); cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
  }
  .nav-back:hover { background: var(--white); border-color: var(--mid); }
  .nav-back:disabled { opacity: 0.3; cursor: default; }
  .nav-next {
    background: linear-gradient(135deg, var(--deep), var(--mid));
    color: var(--white); border: none; border-radius: 100px;
    padding: 12px 30px;
    font-family: 'Source Serif 4', serif;
    font-size: 0.95rem; font-weight: 400; cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    box-shadow: 0 4px 16px rgba(102,90,156,0.25);
  }
  .nav-next:hover { opacity: 0.9; transform: translateY(-1px); }
  .nav-next:disabled { opacity: 0.35; cursor: default; transform: none; box-shadow: none; }

  /* ── RESULTS ── */
  .result-wrap { padding: 2.5rem 0 5rem; }

  .result-header { text-align: center; margin-bottom: 3rem; }
  .result-eyebrow {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--mid); font-weight: 600; margin-bottom: 0.6rem;
  }
  .result-profile-name {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 400; color: var(--deep);
    line-height: 1.25; margin-bottom: 1.25rem;
  }
  .result-profile-name em { font-style: italic; }
  .result-icon-badge {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--blush));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin: 0 auto 1.25rem;
    border: 2px solid rgba(102,90,156,0.15);
  }

  .result-desc {
    font-size: 1.05rem; color: var(--dark);
    line-height: 1.85; font-weight: 300;
    max-width: 560px; margin: 0 auto;
  }

  .result-divider {
    width: 60px; height: 2px;
    background: linear-gradient(90deg, var(--deep), var(--pink));
    margin: 2.5rem auto;
    border-radius: 2px;
  }

  .result-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
  }
  .section-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
    font-weight: 600; color: var(--mid); margin-bottom: 0.6rem;
    display: flex; align-items: center; gap: 7px;
  }
  .section-label::before {
    content: ''; width: 14px; height: 2px;
    background: var(--mid); display: inline-block; border-radius: 2px;
  }
  .section-text { font-size: 0.95rem; color: var(--dark); line-height: 1.75; font-weight: 300; }

  .mantra-block {
    background: linear-gradient(135deg, rgba(102,90,156,0.07), rgba(247,196,233,0.2));
    border: 1px solid rgba(102,90,156,0.2);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    margin: 1.5rem 0;
    text-align: center;
  }
  .mantra-text {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    font-style: italic; font-weight: 300;
    color: var(--deep); line-height: 1.6;
  }

  .primer-paso {
    background: linear-gradient(135deg, var(--deep) 0%, var(--mid) 100%);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--white);
  }
  .primer-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em;
    font-weight: 600; opacity: 0.75; margin-bottom: 0.6rem;
  }
  .primer-text { font-size: 0.95rem; line-height: 1.75; font-weight: 300; opacity: 0.92; }

  .result-footer { text-align: center; padding-top: 1rem; }
  .cta-text {
    font-size: 1rem; color: var(--muted); line-height: 1.75;
    font-weight: 300; max-width: 480px; margin: 0 auto 1.5rem;
  }
  .cta-text strong { color: var(--deep); }
  .restart-btn {
    background: transparent; border: 1.5px solid var(--mid);
    border-radius: 100px; padding: 12px 28px;
    font-family: 'Source Serif 4', serif;
    font-size: 0.9rem; color: var(--mid); cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .restart-btn:hover { background: var(--mid); color: var(--white); }

  /* ── MIXED RESULT ── */
  .mixed-profiles {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin: 1.5rem 0;
  }
  .mixed-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.25rem;
  }
  .mixed-card-label {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
    font-weight: 600; color: var(--mid); margin-bottom: 0.4rem;
  }
  .mixed-card-name { font-size: 0.9rem; font-weight: 400; color: var(--deep); margin-bottom: 0.4rem; }
  .mixed-card-text { font-size: 0.82rem; color: var(--muted); line-height: 1.55; font-weight: 300; }

  /* -- SOCIAL MEDIA BTN -- */
    .social-btn {
    background: transparent; border: 1.5px solid var(--mid);
    border-radius: 100px; padding: 12px 28px;
    font-family: 'Source Serif 4', serif;
    font-size: 0.9rem; color: var(--mid); cursor: pointer;
    transition: background 0.15s, color 0.15s;
  }
  .social-btn:hover { background: var(--mid); color: var(--white); }
  /* ── FOOTER ── */
  footer {
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 300;
    border-top: 1px solid var(--border);
  }
  footer span { color: var(--mid); }

  /* ── RESPONSIVE ── */
  @media (max-width: 480px) {
    .profile-preview { grid-template-columns: 1fr; }
    .mixed-profiles { grid-template-columns: 1fr; }
    header { padding: 2.5rem 1.25rem 3.5rem; }
  }

/* ── PAGINA ERROR 404 ── */
.page-404 {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(190, 160, 255, 0.16), transparent 35%),
    linear-gradient(180deg, #15131d 0%, #09080d 100%);
  color: #f7f1e8;
}

.page-404 header {
  border-bottom: 1px solid rgba(247, 241, 232, 0.12);
}

.page-404 header::after {
  background: #2d2d2d;
}

.page-404 .logo-stars {
  color: #d8c4ff;
  opacity: 0.9;
}

.page-404 .logo-text {
  color: #f7f1e8;
}

.page-404 .logo-text em {
  color: #d8c4ff;
}

.page-404 .header-ep {
  background: rgba(216, 196, 255, 0.1);
  color: #d8c4ff;
  border: 1px solid rgba(216, 196, 255, 0.22);
}

.page-404 .container {
  position: relative;
}

.page-404 .intro-wrap {
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(247, 241, 232, 0.12);
  border-radius: 28px;
  padding: 3rem 2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.page-404 .intro-wrap::before {
  content: "404";
  position: absolute;
  inset: auto 0 50%;
  transform: translateY(50%);
  font-size: clamp(7rem, 24vw, 18rem);
  font-weight: 600;
  line-height: 1;
  color: rgba(216, 196, 255, 0.055);
  pointer-events: none;
  z-index: 0;
}

.page-404 .intro-title,
.page-404 .intro-desc,
.page-404 .profile-preview,
.page-404 .start-btn {
  position: relative;
  z-index: 1;
}

.page-404 .intro-title {
  color: #f7f1e8;
}

.page-404 .intro-title em {
  color: #d8c4ff;
}

.page-404 .intro-desc {
  color: rgba(247, 241, 232, 0.76);
}

.page-404 .profile-chip {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(216, 196, 255, 0.22);
  box-shadow: inset 0 0 30px rgba(216, 196, 255, 0.04);
}

.page-404 .chip-icon {
  background: rgba(216, 196, 255, 0.12);
}

.page-404 .chip-name {
  color: #f7f1e8;
}

.page-404 .chip-hint {
  color: rgba(247, 241, 232, 0.58);
}

.page-404 .start-btn {
  background: #f7f1e8;
  color: #15131d;
  border: 1px solid rgba(247, 241, 232, 0.2);
}

.page-404 .start-btn:hover {
  background: #d8c4ff;
  color: #09080d;
  transform: translateY(-2px);
}

.page-404 footer {
  color: rgba(247, 241, 232, 0.55);
}

.page-404 footer span,
.page-404 footer em {
  color: #d8c4ff;
}
