/* Planes y precios (includes/planes.php): página pública precios.php y portal de entidades.
   Paleta del sitio: azul #0DA9F4, amarillo #FFCC31, oscuro #2C3E50. Tarjetas con la forma de
   .loan-card del home (radio 20px, borde 2px #f0f0f0). */

/* Selector mensual / anual */
.planes-selector {
    display: inline-flex;
    background: #fff;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.planes-selector button {
    border: 0;
    background: transparent;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
    color: #2C3E50;
    transition: background 0.2s ease;
}

.planes-selector button.activo {
    background: #FFCC31;
}

.planes-selector button:focus-visible {
    outline: 2px solid #0DA9F4;
    outline-offset: 2px;
}

/* Tarjeta de plan */
.plan-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 30px 26px;
    border: 2px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #0DA9F4;
}

.plan-card-actual {
    border-color: #0DA9F4;
    box-shadow: 0 10px 30px rgba(13, 169, 244, 0.15);
}

.plan-contratado {
    position: absolute;
    top: -13px;
    left: 26px;
    background: #0DA9F4;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 50px;
    padding: 4px 12px;
}

.plan-nombre {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0DA9F4;
    margin-bottom: 2px;
}

.plan-subtitulo {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 18px;
}

.plan-precio {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.plan-monto {
    font-size: clamp(1.6rem, 2.1vw, 2.3rem);   /* "USD 2.900" entra en una línea en tarjetas angostas */
    white-space: nowrap;
    font-weight: 700;
    color: #2C3E50;
    line-height: 1.1;
}

.plan-periodo {
    color: #6c757d;
}

.plan-ahorro {
    min-height: 1.4em;
    font-size: 0.82rem;
    font-weight: 600;
    color: #198754;
    margin: 4px 0 14px;
}

.plan-comision {
    align-self: flex-start;
    background: #e8f6fe;
    color: #0b6ea3;
    border-radius: 50px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.plan-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex-grow: 1;
    font-size: 0.9rem;
}

.plan-lista li {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    color: #2C3E50;
}

.plan-lista i {
    color: #0DA9F4;
    width: 18px;
    text-align: center;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Botón: el amarillo del sitio (.btn-custom-filled); secundario con borde azul */
.plan-cta {
    display: block;
    text-align: center;
    background: #FFCC31;
    color: #2C3E50;
    border: 2px solid #FFCC31;
    border-radius: 50px;
    padding: 11px 20px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.plan-cta:hover,
.plan-cta:focus-visible {
    background: #e6b82d;
    border-color: #e6b82d;
    color: #2C3E50;
}

.plan-cta-secundario {
    background: #fff;
    color: #0DA9F4;
    border-color: #0DA9F4;
}

.plan-cta-secundario:hover,
.plan-cta-secundario:focus-visible {
    background: #0DA9F4;
    border-color: #0DA9F4;
    color: #fff;
}

.plan-cta-deshabilitado,
.plan-cta-deshabilitado:hover {
    background: #f1f3f5;
    border-color: #f1f3f5;
    color: #6c757d;
    cursor: default;
}

/* Comparación */
.planes-tabla-scroll {
    position: relative;   /* recorta los .visually-hidden de las celdas en celular */
}

.planes-tabla th,
.planes-tabla td {
    text-align: center;
    vertical-align: middle;
    min-width: 120px;
    font-size: 0.88rem;
}

.planes-tabla thead th {
    font-size: 1rem;
    font-weight: 700;
    color: #2C3E50;
    border-bottom: 2px solid #e9ecef;
    position: relative;
    padding-top: 22px;
}

.planes-tabla tbody th[scope="row"],
.planes-tabla thead th:first-child {
    text-align: left;
    font-weight: 500;
    min-width: 230px;
}

.planes-tabla-precio {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
}

.planes-tabla-seccion th {
    background: #F8F9FA;
    text-align: left !important;
    font-size: 0.75rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #52514e;
}

.planes-tabla .plan-col-actual {
    background: #eef7fe;
}

.plan-contratado-tabla {
    position: static;
    display: inline-block;
    margin-top: 4px;
    font-size: 0.7rem;
    padding: 2px 10px;
}

@media (prefers-reduced-motion: reduce) {
    .plan-card,
    .plan-cta {
        transition: none;
    }

    .plan-card:hover {
        transform: none;
    }
}

/* "Qué incluye tu plan" (portal, Mi plan): característica | valor del plan */
.planes-tabla-incluye td {
    text-align: right;
    min-width: 0;
}

.planes-tabla-incluye tbody th[scope="row"] {
    min-width: 0;
}
