/* ========================= */
/* Results */
/* ========================= */

.result-section {
    padding-top: 24px;
}

.result-card {
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.82);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow);
}

.result-error {
    border-color: rgba(239, 68, 68, 0.42);
}

.result-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}

.result-header h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.025em;
}

.badge {
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 900;
    display: inline-block;
}

.badge-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--muted);
}

.badge-success {
    color: #052e16;
    background: var(--success);
}

.badge-error {
    color: #450a0a;
    background: #fca5a5;
}

/* Clases de utilidad para puntuaciones */
.score-high { color: #22c55e !important; }
.score-medium { color: #f59e0b !important; }
.score-low { color: #ef4444 !important; }

pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(2, 6, 23, 0.75);
    color: #e2e8f0;
    line-height: 1.7;
    overflow-x: auto;
}

