:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --orange-color: #fd7e14;
    --danger-color: #dc3545;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.eval-container {
    width: 100%;
    max-width: 650px;
    margin: 20px auto;
}

.eval-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.eval-header {
    background: var(--primary-color);
    color: white;
    padding: 24px;
    text-align: center;
}

.eval-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 1.4rem;
}

.eval-header p {
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.eval-body {
    padding: 28px;
}

/* Wizard Progress */
.wizard-progress {
    position: relative;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.wizard-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.wizard-step.active {
    background: var(--primary-color);
    color: white;
}

.wizard-step.completed {
    background: var(--success-color);
    color: white;
}

/* Sections */
.wizard-section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.wizard-section.active {
    display: block;
}

.section-title {
    color: #374151;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

/* Form Controls */
.form-label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-control, .form-select {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.required-mark {
    color: #ef4444;
}

.error-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

/* Navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

.wizard-nav .btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
}

/* Result Section */
.badge-evaluacion {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
}

#resultadoSection {
    animation: fadeIn 0.5s ease-out;
}

/* Band Colors */
.banda-fuerte { color: var(--success-color); }
.banda-moderado { color: var(--warning-color); }
.banda-debil { color: var(--orange-color); }
.banda-alto_riesgo { color: var(--danger-color); }

.bg-banda-fuerte { background-color: var(--success-color) !important; }
.bg-banda-moderado { background-color: var(--warning-color) !important; }
.bg-banda-debil { background-color: var(--orange-color) !important; }
.bg-banda-alto_riesgo { background-color: var(--danger-color) !important; }

.badge-banda-fuerte { background-color: #d4edda; color: #155724; }
.badge-banda-moderado { background-color: #fff3cd; color: #856404; }
.badge-banda-debil { background-color: #ffe5d0; color: #7c3a0a; }
.badge-banda-alto_riesgo { background-color: #f8d7da; color: #721c24; }

/* Factor Lists */
.factor-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.factor-list li {
    padding: 6px 0;
    font-size: 0.9rem;
}

.factor-list li i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* Category Progress Bars */
.categoria-row {
    margin-bottom: 12px;
}

.categoria-row .progress {
    height: 8px;
    border-radius: 4px;
}

/* Analysis Text */
.analisis-text {
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
}

/* Responsive */
@media (max-width: 576px) {
    .eval-container {
        margin: 10px;
    }

    .eval-body {
        padding: 20px;
    }

    .eval-header h4 {
        font-size: 1.2rem;
    }

    .wizard-nav {
        flex-direction: column;
    }

    .wizard-nav .btn {
        width: 100%;
    }
}
