:root {
    --bg-dark: #05070A;
    --card-glass: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --gold: #FACC15;
    --gold-glow: rgba(250, 204, 21, 0.2);
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 20% 20%, rgba(234, 179, 8, 0.05) 0%, transparent 40%), radial-gradient(circle at 80% 80%, rgba(30, 64, 175, 0.05) 0%, transparent 40%);
}

.step {
    display: none;
    width: 95%;
    max-width: 1000px;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    background: var(--card-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
    width: 100%;
    margin: 0 auto;
}

.glass-card.centered {
    text-align: center;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.subtitle {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.welcome-message {
    margin-bottom: 50px;
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.6;
}

#step-welcome .btn-primary {
    margin-top: 40px !important;
    display: inline-flex !important;
    width: auto !important;
    padding: 22px 50px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: var(--gold);
    color: black;
    border: none;
    padding: 20px 40px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--gold-glow);
}

.quiz-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 40px;
    width: 100%;
}

.btn-quiz-nav {
    background: none !important;
    border: none !important;
    color: var(--gold) !important;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    padding: 10px 20px;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none;
}

.btn-quiz-nav:hover:not(:disabled) {
    color: white !important;
    text-decoration: underline;
    transform: translateY(-2px);
}

.btn-prev {
    color: #64748b !important;
}

.btn-quiz-nav:disabled {
    opacity: 0.2;
    cursor: not-allowed !important;
    filter: grayscale(1);
}

.full-width {
    width: 100% !important;
}

.registration-header {
    margin-bottom: 60px;
}

.registration-subtitle {
    color: #94A3B8;
    margin-top: 18px;
    font-size: 1.15rem;
    line-height: 1.5;
}

.input-group {
    margin-bottom: 30px;
    text-align: left;
}

label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 24px;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    outline: none;
}

.quiz-header {
    margin-bottom: 50px;
}

.quiz-header-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.question-count-top {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.3rem;
}

.progress-container {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gold);
    transition: width 0.3s ease;
}

.options-grid {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 24px 32px;
    border-radius: 15px;
    color: white;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.2s ease;
}

.option-btn .opt-text {
    flex: 1;
}

.opt-letter {
    flex-shrink: 0;
    font-weight: 700;
    opacity: 0.7;
}

.opt-check {
    flex-shrink: 0;
    color: #22c55e;
    width: 32px;
    height: 32px;
    stroke: #22c55e;
}

.option-btn.selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.score-display {
    font-size: 6rem;
    font-weight: 800;
    color: var(--gold);
    margin: 30px 0;
}

.hits-text {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.result-message-text {
    white-space: pre-line;
    margin-bottom: 32px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.mistakes-container {
    text-align: left;
    margin-bottom: 40px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    max-height: none;
    overflow-y: visible;
}

.mistake-item {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 16px;
}

.mistake-question {
    font-weight: 800;
    color: white;
    margin-bottom: 18px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.mistake-wrong {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 1rem;
    border-left: 4px solid #ff4d4d;
}

.mistake-correct {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 1rem;
    border-left: 4px solid #22c55e;
}

.mistake-explanation {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hidden {
    display: none;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
        padding: 20px 0;
        overflow-x: hidden;
    }
    h1 {
        font-size: 2.5rem;
        word-break: break-word;
    }
    .glass-card {
        padding: 40px 20px;
        border-radius: 16px;
    }
    .subtitle {
        font-size: 1.1rem;
    }
    .welcome-message {
        font-size: 1rem;
        margin-bottom: 30px;
        word-wrap: break-word;
    }
    .option-btn {
        padding: 16px 20px;
        font-size: 0.95rem;
        gap: 10px;
    }
    .quiz-nav-buttons {
        gap: 15px;
        flex-direction: column;
    }
    .btn-quiz-nav {
        width: 100%;
        font-size: 1rem;
    }
    .score-display {
        font-size: 4rem;
    }
    .input-group label {
        font-size: 0.9rem;
    }
    input {
        padding: 18px;
    }
    .mistake-item {
        padding: 16px;
    }
    .mistake-question {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    .score-display {
        font-size: 3rem;
    }
    .glass-card {
        padding: 30px 15px;
    }
    .option-btn {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}