/* ==================== */
/* COMPARISON TABLE */
/* ==================== */

.comparison-section {
    padding: 100px 0;
    background: var(--color-bg);
    position: relative;
}

.comparison-header {
    text-align: center;
    margin-bottom: 60px;
}

.comparison-toggle {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.toggle-btn {
    padding: 12px 28px;
    background: var(--color-surface-2);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.4);
}

.toggle-btn:hover:not(.active) {
    border-color: rgba(220, 20, 60, 0.3);
    background: rgba(220, 20, 60, 0.05);
}

/* Comparison Container */
.comparison-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-surface-1);
    min-width: 800px;
}

/* Table Header */
.comparison-table thead tr {
    background: var(--color-surface-2);
}

.comparison-table th {
    padding: 24px 20px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.comparison-table th:first-child {
    width: 40%;
}

.comparison-table th.highlight-column {
    background: linear-gradient(135deg, 
        rgba(220, 20, 60, 0.1) 0%, 
        rgba(220, 20, 60, 0.05) 100%);
    color: var(--color-primary);
    position: relative;
}

.comparison-table th.highlight-column::before {
    content: '⭐ RECOMENDADO';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

/* Table Body */
.comparison-table tbody tr {
    transition: background 0.2s;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Feature Column */
.feature-cell {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-info {
    flex: 1;
}

.feature-name {
    display: block;
    margin-bottom: 4px;
}

.feature-description {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Value Cells */
.value-cell {
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-primary);
}

.value-cell.highlight-column {
    background: rgba(220, 20, 60, 0.03);
    font-weight: 600;
}

/* Check/Cross Icons */
.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    font-size: 1.2rem;
    font-weight: 700;
}

.cross-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    font-size: 1.2rem;
    font-weight: 700;
}

.partial-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Badge Values */
.value-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--color-surface-2);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.value-badge.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.value-badge.warning {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.value-badge.danger {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.value-badge.primary {
    background: rgba(220, 20, 60, 0.2);
    color: var(--color-primary);
}

/* Comparison Footer */
.comparison-footer {
    margin-top: 48px;
    text-align: center;
}

.comparison-footer-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.comparison-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, 
        var(--color-primary) 0%, 
        #ff4d4d 100%);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.3);
    transition: all 0.3s;
}

.comparison-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(220, 20, 60, 0.4);
}

.comparison-cta-icon {
    font-size: 1.3rem;
}

/* Category Sections */
.comparison-category {
    display: none;
}

.comparison-category.active {
    display: table-row-group;
    animation: fadeIn 0.5s ease-out;
}

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

.category-header td {
    padding: 16px 20px;
    background: var(--color-surface-2);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 2px solid rgba(220, 20, 60, 0.2);
    border-bottom: 2px solid rgba(220, 20, 60, 0.2);
}

/* Responsive */
@media (max-width: 968px) {
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 16px 12px;
    }
    
    .feature-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .comparison-section {
        padding: 60px 0;
    }
    
    .comparison-toggle {
        flex-wrap: wrap;
    }
    
    .toggle-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .comparison-table-wrapper {
        border-radius: 12px;
    }
    
    .feature-icon {
        font-size: 1.2rem;
    }
    
    .check-icon,
    .cross-icon,
    .partial-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}
