/* ========================================
   CLEAN COMPARISON TABLE STYLES
   ======================================== */

.comparison-table-clean {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #E2E8F0;
}

.comparison-table-clean thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid #00A3E0;
}

.comparison-table-clean th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    color: #003D5C;
    border-bottom: 2px solid #00A3E0;
}

.comparison-table-clean th.dimension-header {
    text-align: left;
    color: #003D5C;
    font-weight: 700;
}

.comparison-table-clean th.pm-header {
    text-align: center;
    color: #003D5C;
}

.comparison-table-clean tbody tr {
    border-bottom: 1px solid #E2E8F0;
    transition: background-color 0.2s ease;
}

.comparison-table-clean tbody tr:hover {
    background-color: #F8FAFC;
}

.comparison-table-clean tbody tr:last-child {
    border-bottom: none;
}

.comparison-table-clean td {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
}

.comparison-table-clean td.dimension-label {
    font-weight: 500;
    color: #1E293B;
    text-align: left;
}

.comparison-table-clean td.score-cell {
    text-align: center;
}

/* Score badges for "Promedio General" row */
.score-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    min-width: 50px;
    text-align: center;
}

.score-badge.excellent {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.score-badge.good {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.score-badge.average {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.score-badge.below {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* Score text for category rows (no badge, just colored text) */
.score-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.score-text.excellent {
    color: #10b981;
}

.score-text.good {
    color: #f59e0b;
}

.score-text.average {
    color: #f59e0b;
}

.score-text.below {
    color: #ef4444;
}

.score-text.na {
    color: #94A3B8;
    font-style: italic;
}

/* Response count styling */
.response-count {
    font-weight: 600;
    font-size: 1rem;
    color: #475569;
}

/* Response row styling */
.comparison-table-clean tr.response-row td.dimension-label {
    font-style: italic;
    color: #64748B;
}

.comparison-table-clean tr.response-row td.dimension-label em {
    font-style: italic;
    margin-right: 0.5rem;
}

/* Overall row emphasis */
.comparison-table-clean tr.overall-row {
    background-color: rgba(0, 163, 224, 0.02);
}

.comparison-table-clean tr.overall-row td.dimension-label {
    font-weight: 700;
    color: #003D5C;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .comparison-table-clean {
        font-size: 0.85rem;
    }

    .comparison-table-clean th,
    .comparison-table-clean td {
        padding: 0.75rem 1rem;
    }

    .score-badge {
        padding: 0.3rem 0.7rem;
        font-size: 0.85rem;
    }
}