/**
 * Tabla comparativa de planes — reutilizable en /pricing y /caracteristicas
 * Responsive: en móvil el scroll horizontal mantiene legibilidad
 */

.pricing-compare-section {
    background: #fff;
    padding: 3rem 1rem 6rem;
}
.pricing-compare__inner {
    max-width: 64rem;
    margin: 0 auto;
}

.pricing-compare__title {
    font-family: var(--smd-font-serif, 'Fraunces', Georgia, serif);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 500;
    font-style: italic;
    color: var(--smd-ink, #1B1B1F);
    margin: 0 0 0.5rem;
    text-align: center;
}
.pricing-compare__sub {
    text-align: center;
    color: var(--smd-ink-soft, #5A5560);
    font-family: var(--smd-font-sans, sans-serif);
    font-size: 0.95rem;
    margin: 0 auto 2rem;
    max-width: 56ch;
}

.cmp {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid #f0e9eb;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    background: #fff;
}

.cmp-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--smd-font-sans, sans-serif);
    font-size: 0.92rem;
    min-width: 640px;
}

.cmp-table thead th {
    padding: 2.4rem 1rem 1.25rem;
    text-align: center;
    vertical-align: bottom;
    background: #fff;
    border-bottom: 2px solid #f0e9eb;
    position: sticky;
    top: 0;
    z-index: 1;
}
.cmp-table__feature-h {
    text-align: left !important;
    font-weight: 600;
    color: var(--smd-ink-soft, #5A5560);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.cmp-table__plan-h { font-weight: 600; }
.cmp-table__plan-name {
    display: block;
    font-family: var(--smd-font-serif, 'Fraunces', Georgia, serif);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--smd-ink, #1B1B1F);
    margin-bottom: 0.25rem;
}
.cmp-table__plan-price {
    display: block;
    font-size: 0.82rem;
    color: var(--smd-coral-deep, #C8466A);
    font-weight: 600;
}
.cmp-table__plan-h--premium {
    background: linear-gradient(180deg, #fff7f8 0%, #fff 100%);
    position: relative;
}
.cmp-table__plan-h--premium::before {
    content: 'Recomendado';
    position: absolute;
    top: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--smd-coral, #E85A7A);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    line-height: 1;
}

.cmp-table__group td {
    padding: 0.8rem 1rem;
    background: #faf6f7;
    color: var(--smd-coral-deep, #C8466A);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-top: 1px solid #f0e9eb;
}

.cmp-table tbody tr:not(.cmp-table__group):hover {
    background: #fdfbfc;
}

.cmp-table tbody th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 500;
    color: var(--smd-ink, #1B1B1F);
    border-top: 1px solid #f5f0f1;
    width: 35%;
}
.cmp-table tbody td {
    padding: 0.85rem 0.6rem;
    text-align: center;
    color: var(--smd-ink, #1B1B1F);
    border-top: 1px solid #f5f0f1;
    font-size: 0.92rem;
}

/* check / dash visuals */
.cmp-table tbody td:first-of-type ~ td {
    color: var(--smd-ink, #1B1B1F);
}

@media (max-width: 720px) {
    .cmp { box-shadow: none; border: none; }
    .cmp-table { font-size: 0.88rem; min-width: 540px; }
    .cmp-table__plan-name { font-size: 0.95rem; }
    .cmp-table__plan-price { font-size: 0.74rem; }
    .cmp-table thead th { padding: 0.9rem 0.5rem; }
    .cmp-table tbody th { font-size: 0.85rem; padding: 0.7rem 0.6rem; }
    .cmp-table tbody td { padding: 0.7rem 0.4rem; font-size: 0.85rem; }
    .cmp-table__plan-h--premium::before { font-size: 0.55rem; }
}
