/* Estilos exclusivos de /precios. Las tres tarjetas de plan no están acá: su estilo vive en
 * `landing.css`, que lo comparten doce páginas. */

/* ---------------------------------------------------------------- hero */

/* ---------------------------------------------------------------- planes */

.price-plans {
    padding: 3.5rem 0;
}

/* ---------------------------------------------------------------- comparativa */

.price-compare {
    background: var(--tb-tint);
    padding: 4.375rem 0;
    /* La navbar es fija: sin esto el encabezado queda tapado al llegar por el link de la card. */
    scroll-margin-top: 90px;
}

/* Tabla de verdad y no un grid de divs: así un lector de pantalla anuncia "Premium ·
   Recordatorios por WhatsApp · incluido" al recorrerla. */
.price-table-wrap {
    max-width: 62.5rem;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--tb-line);
    border-radius: var(--tb-radius-card);
    /* La tabla desborda a lo ancho antes que la página: scroll propio, no scroll del body. */
    overflow-x: auto;
    /* `overflow-y` no puede quedar en `visible` con el otro eje en `auto` —el navegador lo
       computa a `auto`— y un píxel de redondeo alcanzaba para dibujar una barra vertical. */
    overflow-y: hidden;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

/* El encabezado NO va sticky, aunque una tabla de 21 filas lo pida: se anclaría a
 * `.price-table-wrap`, que no scrollea en vertical, así que nunca se quedaba pegado. Y con
 * `border-collapse: collapse` los bordes son de la TABLA, así que la celda sticky se despegaba
 * de su `border-bottom` y la línea del encabezado no se pintaba. Tenerlo exige caja de alto
 * fijo con scroll propio. */
.price-table thead th {
    background: #fff;
    border-bottom: 1px solid var(--tb-line);
    padding: 1rem 0.875rem;
    text-align: center;
    font-family: var(--tb-font-display);
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--tb-ink);
    white-space: nowrap;
}

.price-table thead th:first-child {
    text-align: left;
}

.price-table .is-featured {
    background: var(--tb-tint);
}

.price-table thead .is-featured {
    background: var(--tb-violet-soft);
    color: var(--tb-violet-deep);
}

.price-table tbody th {
    text-align: left;
    font-weight: 600;
    color: var(--tb-ink);
    padding: 0.8125rem 0.875rem;
    border-bottom: 1px solid var(--tb-line);
    white-space: normal;
    min-width: 15rem;
}

.price-table tbody td {
    padding: 0.8125rem 0.875rem;
    border-bottom: 1px solid var(--tb-line);
    text-align: center;
    color: var(--tb-text);
    vertical-align: middle;
    min-width: 8.75rem;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
    border-bottom: 0;
}

.price-table__note {
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--tb-gray);
    margin-top: 0.1875rem;
}

/* El ✓ y el — son decorativos: el dato accesible lo da el texto oculto de al lado, porque "—"
   leído en voz alta no dice nada. No borrar esos spans. */
.price-yes {
    color: var(--tb-violet-deep);
}

.price-no {
    color: var(--tb-gray);
}

.price-table__foot {
    max-width: 62.5rem;
    margin: 1.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.price-table__foot p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--tb-text);
}

.price-table__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------------- preguntas y cierre */

.price-faq {
    padding: 4.375rem 0;
    scroll-margin-top: 90px;
}

.price-close {
    padding: 0 0 4.375rem;
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 991.98px) {
    .price-table__foot {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .price-plans {
        padding: 2.25rem 0;
    }

    .price-compare,
    .price-faq {
        padding: 3rem 0;
    }

    /* Exclusive se oculta: en 390px tres columnas no entran, y el plan que se cierra en una
       llamada no es el que alguien compara en el celular. */
    .price-table .is-custom {
        display: none;
    }

    .price-table {
        font-size: 0.8125rem;
    }

    .price-table thead th,
    .price-table tbody th,
    .price-table tbody td {
        padding: 0.625rem 0.5rem;
    }

    .price-table tbody th {
        min-width: 9.5rem;
    }

    .price-table tbody td {
        min-width: 5rem;
    }
}
