/* ============================================================
   ONE Eneagrama — Test / style.css
   Diseño full-page inmersivo. Fondo fiel a la imagen original.
   Preguntas con superficie clara para máxima legibilidad.
   ============================================================ */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { background: #0c0718; color: #fff; }

.hidden { display: none !important; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(160,120,220,0.25); border-radius: 4px; }

/* ══════════════════════════════════════════════════════════
   FONDO — fiel a la imagen: sutil, cósmico, no saturado
   ══════════════════════════════════════════════════════════ */
.bg-base {
    position: fixed; inset: 0; z-index: -3; pointer-events: none;
    /* Colores extraídos de la imagen: verde-oscuro teal, magenta-lila, dorado-oliva */
    background:
        radial-gradient(ellipse 65% 50% at 10% 8%,   rgba(22,68,55,0.60)  0%, transparent 60%),
        radial-gradient(ellipse 55% 45% at 82% 18%,  rgba(110,40,110,0.48) 0%, transparent 58%),
        radial-gradient(ellipse 50% 42% at 88% 68%,  rgba(25,85,100,0.38) 0%, transparent 55%),
        radial-gradient(ellipse 45% 38% at 28% 82%,  rgba(75,62,18,0.45)  0%, transparent 50%),
        #0c0718;
}

.hex-overlay {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    opacity: 0.13;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='116' viewBox='0 0 200 116'%3E%3Cg fill='none' stroke='%23b0b8cc' stroke-opacity='0.3' stroke-width='0.8'%3E%3Cpath d='M38 15l15-9 15 9v18l-15 9-15-9z'/%3E%3Cpath d='M92 15l15-9 15 9v18l-15 9-15-9z'/%3E%3Cpath d='M146 15l15-9 15 9v18l-15 9-15-9z'/%3E%3Cpath d='M65 42l15-9 15 9v18l-15 9-15-9z'/%3E%3Cpath d='M119 42l15-9 15 9v18l-15 9-15-9z'/%3E%3Cpath d='M38 69l15-9 15 9v18l-15 9-15-9z'/%3E%3Cpath d='M92 69l15-9 15 9v18l-15 9-15-9z'/%3E%3Cpath d='M146 69l15-9 15 9v18l-15 9-15-9z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 200px 116px;
    background-repeat: repeat;
}

.stars-canvas {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
}

/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
.header-bar {
    background: rgba(12,7,24,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo-img { filter: drop-shadow(0 0 8px rgba(140,80,200,0.35)); }

/* Header progress bar */
.progress-track {
    width: 120px; height: 3px;
    background: rgba(255,255,255,0.10);
    border-radius: 4px; overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #22d3ee, #e2b808);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}

/* ══════════════════════════════════════════════════════════
   SCREENS — full-page, no container flotante
   ══════════════════════════════════════════════════════════ */
.screen-wrap {
    min-height: 100vh;
    padding: 96px 20px 60px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.screen-inner { width: 100%; }

/* ── Animación de entrada ──────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.55s ease both; }

/* ══════════════════════════════════════════════════════════
   EYEBROW / BADGES
   ══════════════════════════════════════════════════════════ */
@keyframes dotPulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:0.4; transform:scale(0.65); }
}
.eyebrow-tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px; border-radius: 999px;
    border: 1px solid rgba(226,184,8,0.28);
    background: rgba(226,184,8,0.07);
    font-family: 'Exo 2', sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: #e8c840;
}
.eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #e2b808;
    box-shadow: 0 0 8px rgba(226,184,8,0.8);
    flex-shrink: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

/* ── Gradiente de texto ─────────────────────────────────── */
.text-grad {
    background: linear-gradient(135deg, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ══════════════════════════════════════════════════════════
   ESCALA
   ══════════════════════════════════════════════════════════ */
.scale-box {
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 18px 20px;
}
.scale-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(200,170,255,0.55);
    text-align: center; margin-bottom: 12px;
}
.scale-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.scale-item {
    display: flex; flex-direction: column;
    align-items: center; gap: 3px;
    padding: 10px 4px;
    border: 1px solid rgba(140,100,210,0.18);
    background: rgba(140,100,210,0.06);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
}
.scale-item strong {
    font-family: 'Exo 2', sans-serif;
    font-size: 17px; font-weight: 800;
    color: #c4a0f8;
}
.scale-item span {
    font-size: 10px; color: rgba(255,255,255,0.45);
    text-align: center; line-height: 1.3;
}

/* ══════════════════════════════════════════════════════════
   FORMULARIO DE REGISTRO
   ══════════════════════════════════════════════════════════ */
.field-group { display: flex; flex-direction: column; gap: 7px; }

.field-label {
    font-size: 13px; font-weight: 600;
    color: rgba(255,255,255,0.60);
    text-align: center;
    letter-spacing: 0.01em;
}

.field-input {
    width: 100%; padding: 13px 18px;
    border: 1px solid rgba(140,100,210,0.25);
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    color: #fff; font-size: 15px; text-align: center;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.field-input:focus {
    border-color: rgba(140,100,210,0.60);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.field-input::placeholder { color: rgba(255,255,255,0.22); }

/* ══════════════════════════════════════════════════════════
   BOTONES
   ══════════════════════════════════════════════════════════ */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 32px; border: none; border-radius: 50px;
    font-family: 'Exo 2', sans-serif;
    font-size: 14px; font-weight: 700; letter-spacing: 0.03em;
    cursor: pointer; transition: all 0.22s ease;
    background: linear-gradient(135deg, rgba(124,58,237,0.55), rgba(71,39,140,0.45));
    border: 1px solid rgba(124,58,237,0.50);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124,58,237,0.20);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124,58,237,0.38);
    border-color: rgba(167,139,250,0.65);
    background: linear-gradient(135deg, rgba(124,58,237,0.70), rgba(71,39,140,0.60));
}
.btn-primary:disabled {
    opacity: 0.35; cursor: not-allowed; transform: none !important;
    box-shadow: none;
}

.btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 28px; border-radius: 50px;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s ease;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.55);
}
.btn-ghost:hover {
    border-color: rgba(255,255,255,0.28);
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.04);
}

/* ══════════════════════════════════════════════════════════
   BARRA DE PROGRESO FULL
   ══════════════════════════════════════════════════════════ */
.progress-track-full {
    width: 100%; height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px; overflow: hidden;
}
.progress-fill-full {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #22d3ee, #e2b808);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}

/* ══════════════════════════════════════════════════════════
   CARDS DE PREGUNTAS
   Superficie clara-translúcida: máxima legibilidad
   ══════════════════════════════════════════════════════════ */
.question-card {
    /* Fondo claro semi-opaco = legibilidad sin romper la atmósfera */
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    padding: 18px 22px;
    display: flex; justify-content: space-between;
    align-items: center; gap: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.question-card:hover {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    transform: translateY(-1px);
}
.question-card.answered {
    border-color: rgba(124,58,237,0.30);
    box-shadow: 0 2px 12px rgba(124,58,237,0.08);
}

.question-text {
    font-size: 14px;
    color: #1e1433;   /* oscuro sobre claro = máxima legibilidad */
    font-weight: 400;
    flex: 1; line-height: 1.65;
    font-family: 'DM Sans', sans-serif;
}

/* Opciones de escala */
.scale-options { display: flex; gap: 7px; flex-shrink: 0; }

.scale-option { position: relative; }
.scale-option input[type="radio"] { display: none; }
.scale-option label {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: #f1f0f7;
    border: 1.5px solid #d4cce8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    font-size: 14px; font-weight: 700;
    color: #7c6fa0;
    font-family: 'Exo 2', sans-serif;
    user-select: none;
}
.scale-option label:hover {
    border-color: #7c3aed;
    background: #ede9fb;
    color: #5b21b6;
    transform: scale(1.06);
}
.scale-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    border-color: transparent;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(124,58,237,0.40);
}

/* ══════════════════════════════════════════════════════════
   PANTALLA DE RESULTADO
   ══════════════════════════════════════════════════════════ */
.screen-wrap.result-screen {
    align-items: center;
    padding-top: 80px;
}

.confirm-icon-wrap {
    display: flex; justify-content: center;
    margin-bottom: 4px;
}
.confirm-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(80,250,123,0.22), rgba(34,211,238,0.14));
    border: 1px solid rgba(80,250,123,0.30);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 32px rgba(80,250,123,0.14);
}

.result-info-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 20px 24px;
    text-align: left;
    font-size: 14px; line-height: 1.75;
    position: relative; overflow: hidden;
}
.result-info-card::before {
    content: '';
    position: absolute; top:0; left:0; right:0; height:1.5px;
    background: linear-gradient(90deg, #7c3aed, #22d3ee, transparent);
    opacity: 0.6;
}

.success-badge {
    display: inline-block;
    padding: 10px 20px; border-radius: 50px;
    background: rgba(80,250,123,0.12);
    border: 1px solid rgba(80,250,123,0.24);
    color: #86efac; font-size: 13px; font-weight: 600;
    font-family: 'Exo 2', sans-serif;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .screen-wrap { padding: 80px 16px 48px; }
    .question-card { flex-direction: column; align-items: flex-start; }
    .scale-options { width: 100%; justify-content: space-between; }
    .scale-option label { width: 44px; height: 44px; font-size: 15px; }
    .scale-grid { grid-template-columns: repeat(2, 1fr); }
    .scale-item:last-child { grid-column: 1 / -1; }
}