/* API Comparison Table Styles - Integrated */
.api-comparison-section {
    display: none;
    /* Hidden by default */
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    padding: 60px 0;
    overflow-x: auto;
}

.api-comparison-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

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

.page-compare {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.compare-header {
    margin-bottom: 40px;
}

.compare-header-label {
    font-family: 'Inter', sans-serif;
    font-size: 10.5px;
    color: var(--brand);
    /* Cambiado a Cian */
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.compare-header-label::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--brand);
}

.compare-header h2 {
    font-size: 42px;
    font-weight: 900;
    color: var(--text) !important;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.compare-header h2 em {
    color: var(--brand);
    /* Cambiado a Cian */
    font-style: normal;
}

.compare-header p {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.03em;
}

/* Note banner */
.note-banner {
    background: var(--brand-surface);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 4px;
    padding: 10px 18px;
    margin-bottom: 28px;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-banner span {
    color: var(--brand);
    font-weight: 700;
}

/* Comparison table */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 800px;
}

.compare-table thead tr th {
    padding: 18px 20px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.compare-table thead tr th:first-child {
    text-align: left;
    color: rgba(230, 238, 248, 0.3);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-left: 4px;
}

.col-competitor {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px 8px 0 0;
    color: rgba(230, 238, 248, 0.6);
}

.col-us {
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 212, 255, 0.08) 100%);
    border-radius: 8px 8px 0 0;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-bottom: none;
    color: var(--text) !important;
}

.col-us-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.best-badge {
    background: var(--brand);
    color: #041018;
    /* Texto oscuro para contraste sobre cian */
    font-size: 8.5px;
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.col-name {
    font-size: 14px;
    font-weight: 800;
}

.php-tag {
    font-size: 9px;
    color: var(--brand);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 1px 6px;
    border-radius: 2px;
    margin-left: 6px;
}

/* Table rows */
.compare-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.compare-table tbody tr td {
    padding: 14px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.compare-table tbody tr td:first-child {
    text-align: left;
    font-weight: 600;
    padding-left: 4px;
}

.cat-row td {
    background: rgba(255, 255, 255, 0.015) !important;
    padding: 8px 4px 6px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    color: rgba(230, 238, 248, 0.25) !important;
    text-transform: uppercase;
}

.us-cell {
    background: var(--brand-surface);
    border-left: 1px solid rgba(0, 212, 255, 0.15);
    border-right: 1px solid rgba(0, 212, 255, 0.15);
    color: var(--text) !important;
}

.us-cell.good {
    color: var(--brand) !important;
    font-weight: 700 !important;
}

.us-cell-last {
    border-bottom: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-radius: 0 0 8px 8px;
}

.yes {
    color: #4caf50;
    font-size: 16px;
}

.no {
    color: rgba(230, 238, 248, 0.2);
    font-size: 16px;
}

.partial {
    color: #ff9800;
    font-size: 13px;
}

.price-main {
    font-size: 22px;
    font-weight: 900;
}

.price-main .currency {
    font-size: 13px;
    color: rgba(230, 238, 248, 0.5);
}

.price-main .per {
    font-size: 11px;
    color: rgba(230, 238, 248, 0.35);
}

.price-note {
    font-size: 9px;
    color: rgba(230, 238, 248, 0.25);
    margin-top: 3px;
}

.price-brand {
    color: var(--brand) !important;
}

/* Insights */
.section-compare-title {
    font-size: 11px;
    color: rgba(230, 238, 248, 0.2);
    text-transform: uppercase;
    margin-top: 36px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-compare-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.insight-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 18px 20px;
    position: relative;
    backdrop-filter: blur(4px);
}

.insight-card.hot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--brand-700));
}

.insight-title {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.insight-body {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.7;
}

/* CTA */
.cta-compare {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-surface);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    padding: 20px 28px;
    flex-wrap: wrap;
    gap: 20px;
}

.model-tag {
    display: inline-flex;
    padding: 2px 7px;
    border-radius: 2px;
    font-size: 9px;
    text-transform: uppercase;
    margin-top: 4px;
}

.model-tag.sub {
    background: rgba(100, 181, 246, 0.08);
    border: 1px solid rgba(100, 181, 246, 0.2);
    color: #64b5f6;
}

.model-tag.api {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--brand-600);
}

.model-tag.free {
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.2);
    color: #81c784;
}

/* Media query for comparison section */
@media (max-width: 768px) {
    .compare-header h2 {
        font-size: 32px;
    }

    .cta-compare {
        flex-direction: column;
        text-align: center;
    }
}