/* ==========================================================================
   Comparison Page Styles
   Shared styles for all comparison pages (/comparativas/:slug/)
   ========================================================================== */

/* Container */
.compare-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* ---------- Hero ---------- */
.compare-hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.compare-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.compare-hero__subtitle {
    font-size: 1.25rem;
    color: #4a4a68;
    max-width: 600px;
    margin: 0 auto 1rem;
    line-height: 1.5;
}

.compare-hero__verified {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* ---------- Comparison Table ---------- */
.compare-table {
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.compare-table h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.compare-table__wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.compare-table thead tr {
    background: #1a1a2e;
    color: #fff;
}

.compare-table th {
    padding: 0.875rem 1rem;
    font-weight: 600;
    text-align: left;
    font-size: 0.9375rem;
}

.compare-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.9375rem;
    color: #333;
}

.compare-table tbody tr:nth-child(even) {
    background: #f9fafb;
}

.compare-table tbody tr:hover {
    background: #f0f4ff;
}

/* Green/red tints for yes/no cells */
.compare-yes,
.compare-table td:contains("yes") {
    color: #059669;
    font-weight: 600;
}

.compare-no,
.compare-table td:contains("no") {
    color: #dc2626;
}

/* ---------- Key Differences ---------- */
.compare-differences {
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.compare-differences h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.compare-differences__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.compare-difference {
    padding: 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.compare-difference h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.5rem;
}

.compare-difference p {
    color: #4a4a68;
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 640px) {
    .compare-differences__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Verdict ---------- */
.compare-verdict {
    padding: 2rem;
    margin: 2rem 0;
    background: #f0f4ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
}

.compare-verdict h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}

.compare-verdict p {
    color: #333;
    line-height: 1.7;
    margin: 0;
}

/* ---------- FAQ ---------- */
.compare-faq {
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.compare-faq h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.compare-faq__item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.compare-faq__item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1a1a2e;
    transition: background-color 0.15s ease;
}

.compare-faq__item summary:hover {
    background: #f9fafb;
}

.compare-faq__item summary::after {
    content: "+";
    font-size: 1.25rem;
    font-weight: 300;
    color: #6b7280;
    flex-shrink: 0;
    margin-left: 1rem;
}

.compare-faq__item[open] summary::after {
    content: "\2212";
}

.compare-faq__item p {
    padding: 0 1.25rem 1rem;
    color: #4a4a68;
    line-height: 1.6;
}

/* ---------- CTA ---------- */
.compare-cta {
    text-align: center;
    padding: 3rem 0 2rem;
    border-top: 1px solid #e5e7eb;
}

.compare-cta .btn--primary {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.compare-cta .btn--primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.compare-cta__secondary {
    display: inline-block;
    margin-top: 1rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.compare-cta__secondary:hover {
    text-decoration: underline;
}

.compare-cta__back {
    margin-top: 1.5rem;
    font-size: 0.9375rem;
}

.compare-cta__back a {
    color: #6b7280;
    text-decoration: none;
}

.compare-cta__back a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ---------- Related Pages ---------- */
.compare-related {
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
}

.compare-related h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.5rem;
}

.compare-related__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .compare-related__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
    .compare-hero h1 {
        font-size: 2.75rem;
    }

    .compare-hero__subtitle {
        font-size: 1.375rem;
    }

    .compare-page {
        padding: 0 2rem 4rem;
    }
}
