/* =============================================================================
   Pricing V2 — preview rediseño
   - Grid de 4 columnas en >= 1280px (en lugar de 3).
   - Cards mas compactas: precio + BCs + usuarios + expedientes + boton.
   - Tabla comparativa abajo con TODOS los features.
   ============================================================================ */

/* ---------- Grid 4 columnas en pantallas grandes ---------- */
.pricing-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-block: 1rem 2rem;
    align-items: stretch;
}
@media (min-width: 1280px) {
    .pricing-grid-v2 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---------- Card compacta ---------- */
.card.card-v2 {
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
}
.card.card-v2 .card-header {
    flex: 0 0 auto;
}
.card.card-v2 .card-title {
    font-size: 1.35rem;
    margin: 0 0 0.25rem 0;
}
.card.card-v2 small {
    font-size: 0.8rem;
    line-height: 1.3;
}
.card.card-v2 .card-price {
    font-size: clamp(1.4rem, 2vw + 0.5rem, 1.85rem);
    margin: 0.5rem 0 0.25rem;
}
.card.card-v2 .card-price .card-price-period {
    font-size: 0.85rem;
    margin-top: 0.1rem;
}
.card.card-v2 .anual-note {
    font-size: 0.78rem;
    margin: 0 0 0.4rem 0;
}
.card.card-v2 .bc-volume {
    font-size: 0.8rem;
    margin-block: 0.5rem 0.75rem;
}
.card.card-v2 .features-compact {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem 0;
    flex: 1 0 auto;
}
.card.card-v2 .features-compact li {
    padding: 0.4rem 0;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(43, 50, 66, 0.08);
    position: relative;
    padding-left: 1.25rem;
}
.card.card-v2 .features-compact li:last-child {
    border-bottom: none;
}
.card.card-v2 .features-compact li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* El tag destacado ("NUEVO" / "MÁS ELEGIDO") en una sola línea: en las cards
   compactas y angostas, si envuelve a dos renglones se monta sobre el título. */
.card.card-v2 .featured-tag {
    white-space: nowrap;
}

/* ---------- Nota "Todos los planes incluyen..." ---------- */
.planes-incluyen-note {
    background: var(--blue-light, #e6f0ff);
    color: var(--blue-deep, #001432);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin-block: 0.5rem 2.5rem;
    font-size: 0.92rem;
    line-height: 1.55;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-left: 4px solid var(--blue-primary, #0046f5);
}
.planes-incluyen-note i {
    color: var(--blue-primary, #0046f5);
    font-size: 1.1rem;
}

/* ---------- Tabla comparativa ---------- */
.comparativa {
    margin-block: 3rem 2rem;
}
.comparativa-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.comparativa-scroll {
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 17, 21, 0.06), 0 4px 16px rgba(15, 17, 21, 0.04);
    background: #fff;
}
.comparativa-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    min-width: 720px;
}
.comparativa-table thead th {
    background: var(--blue-deep, #001432);
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 0.85rem 0.75rem;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}
.comparativa-table thead th.feature-col {
    text-align: left;
    background: #0a1530;
}
.comparativa-table tbody td {
    padding: 0.75rem 0.75rem;
    border-top: 1px solid rgba(43, 50, 66, 0.08);
    text-align: center;
    vertical-align: middle;
}
.comparativa-table tbody td.feature-col {
    text-align: left;
    font-weight: 600;
    color: var(--blue-deep, #001432);
    background: #f7f9fc;
    position: sticky;
    left: 0;
    z-index: 1;
}
.comparativa-table tbody tr:nth-child(even) td {
    background: #fafbfd;
}
.comparativa-table tbody tr:nth-child(even) td.feature-col {
    background: #f0f3f8;
}
.comparativa-table tbody tr:hover td {
    background: #eef4fb;
}
.comparativa-table tbody tr:hover td.feature-col {
    background: #e5ecf5;
}
.comparativa-table i.fa-check {
    color: #45c486;
    font-size: 1rem;
}

/* Botón primario de la card a altura fija (2 líneas), centrado vertical: así
   "Cotizá tu plan" (1 línea) queda igual de alto que "Quiero más información"
   (2 líneas) y la fila de botones queda pareja entre todas las cards. */
.card.card-v2 .btn.btn-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
    min-height: calc(2 * 1.3em + 2rem);
}

/* ---------- Botón "Ver rendimiento estimado" en cada card ---------- */
.card.card-v2 .btn-rendimiento {
    margin-top: 0.6rem;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--blue-primary, #0046f5);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.35rem 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
}
.card.card-v2 .btn-rendimiento:hover {
    background: var(--blue-light, #e6f0ff);
    text-decoration: underline;
}
.card.card-v2 .btn-rendimiento i {
    font-size: 0.85rem;
}
/* Reserva el espacio del link en cards que no lo tienen (Enterprise, o un plan
   sin datos en BD), para que los botones primarios alineen entre todas las cards. */
.card.card-v2 .btn-rendimiento--placeholder {
    visibility: hidden;
    pointer-events: none;
}

/* =============================================================================
   ¿Cuánto rinde cada plan? — sección de rendimiento estimado
   ============================================================================ */
.rendimiento {
    background: var(--blue-light, #e6f0ff);
    border-top: 1px solid #d7e3f7;
    border-bottom: 1px solid #d7e3f7;
    padding-block: 3.5rem;
    margin-top: 1rem;
}
.rendimiento-wrap {
    background: #fff;
    border: 1px solid #dbe6f5;
    border-radius: 22px;
    padding: 2.25rem;
    box-shadow: 0 8px 23px rgba(0, 20, 50, 0.05);
}
.rendimiento-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.75rem;
}
.rendimiento-header h2 {
    color: var(--blue-deep, #001432);
    margin: 0 0 0.5rem;
    font-size: clamp(1.5rem, 1rem + 2vw, 1.9rem);
}
.rendimiento-header > div:first-child p {
    margin: 0;
    max-width: 640px;
    color: #5b6b7e;
}
.rendimiento-datanote {
    flex-shrink: 0;
    background: #f6fafc;
    border: 1px solid #dbe6f5;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: #5b6b7e;
    font-size: 0.78rem;
    line-height: 1.5;
    max-width: 260px;
}
.rendimiento-datanote strong {
    display: block;
    color: var(--blue-deep, #001432);
    margin-bottom: 0.25rem;
}

/* ---------- Workflows (costo promedio por trabajo) ---------- */
.rendimiento-workflows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
    margin-bottom: 2rem;
}
.rendimiento-workflow {
    border: 1px solid #dbe6f5;
    border-radius: 14px;
    padding: 1.1rem 1rem;
    background: #fff;
}
.rendimiento-workflow .rw-type {
    color: var(--blue-deep, #001432);
    font-weight: 700;
    font-size: 0.98rem;
}
.rendimiento-workflow .rw-formula {
    color: #5b6b7e;
    font-size: 0.78rem;
    margin: 0.5rem 0;
    min-height: 2.4em;
}
.rendimiento-workflow .rw-total {
    color: var(--blue-primary, #0046f5);
    font-size: 1.45rem;
    font-weight: 750;
}
.rendimiento-workflow .rw-total span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #5b6b7e;
}

/* ---------- Calculadora por plan ---------- */
.rendimiento-calculator {
    border-top: 1px solid #dbe6f5;
    padding-top: 1.6rem;
}
.rendimiento-calc-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}
.rendimiento-calc-head h3 {
    color: var(--blue-deep, #001432);
    margin: 0 0 0.25rem;
    font-size: 1.25rem;
}
.rendimiento-calc-head p {
    color: #5b6b7e;
    font-size: 0.85rem;
    margin: 0;
}
.rendimiento-tabs {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.rendimiento-tab {
    background: #fff;
    border: 1px solid #dbe6f5;
    color: #5b6b7e;
    border-radius: 9px;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 650;
    cursor: pointer;
    transition: 0.15s ease;
}
.rendimiento-tab:hover {
    border-color: var(--blue-primary, #0046f5);
    color: var(--blue-primary, #0046f5);
}
.rendimiento-tab.active {
    background: var(--blue-primary, #0046f5);
    border-color: var(--blue-primary, #0046f5);
    color: #fff;
}
.rendimiento-result {
    background: #f8fbfd;
    border: 1px solid #e5eff4;
    border-radius: 15px;
    padding: 1.35rem;
}
.rendimiento-selected {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.rendimiento-selected strong {
    font-size: 1.25rem;
    color: var(--blue-deep, #001432);
}
.rendimiento-selected span {
    color: #5b6b7e;
    font-size: 0.85rem;
}
.rendimiento-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}
.rendimiento-metric {
    background: #fff;
    border: 1px solid #dbe6f5;
    border-radius: 12px;
    padding: 1rem;
}
.rendimiento-metric small {
    color: #5b6b7e;
    display: block;
    font-size: 0.78rem;
    min-height: 2.4em;
}
.rendimiento-metric b {
    display: block;
    color: var(--blue-deep, #001432);
    font-size: 1.9rem;
    line-height: 1.1;
    margin-top: 0.3rem;
}
.rendimiento-metric em {
    color: #5b6b7e;
    font-size: 0.75rem;
    font-style: normal;
}
.rendimiento-disclaimer {
    color: #5b6b7e;
    font-size: 0.76rem;
    margin: 1rem 0 0;
}

@media (max-width: 860px) {
    .rendimiento-header { flex-direction: column; }
    .rendimiento-datanote { max-width: none; }
}
