/* Tarifas - BuenaCarta */

/* --- Subtítulo --- */
.tarifas-subtitulo {
    font-size: 1.15rem;
    color: #555;
    max-width: 650px;
    margin: 0 auto;
}

/* --- Tarjetas de planes --- */
.tarjetas-row {
    margin-top: 10px;
}

.tarjeta-plan {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tarjeta-plan:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

/* Popular card */
.tarjeta-popular {
    border: 2px solid #44B002;
    transform: scale(1.04);
    z-index: 2;
}
.tarjeta-popular:hover {
    transform: scale(1.04) translateY(-6px);
}

.badge-popular {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: #44B002;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 18px;
    border-radius: 0 0 8px 8px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(68,176,2,0.3);
    white-space: nowrap;
}

/* Header */
.tarjeta-header {
    padding: 28px 24px 18px;
    text-align: center;
}
.tarjeta-icono {
    font-size: 2.2rem;
    margin-bottom: 10px;
}
.tarjeta-nombre {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #222;
}
.tarjeta-descripcion {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0;
    min-height: 42px;
}

/* Precio */
.tarjeta-precio {
    text-align: center;
    padding: 20px 24px 10px;
}
.precio-valor {
    font-size: 3rem;
    font-weight: 700;
    color: #222;
    line-height: 1;
}
.precio-periodo {
    font-size: 1rem;
    color: #999;
    margin-left: 4px;
}

/* Features */
.tarjeta-features {
    list-style: none;
    padding: 10px 28px 0;
    margin: 0;
    flex-grow: 1;
}
.tarjeta-features li {
    padding: 7px 0;
    font-size: 0.95rem;
    color: #444;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tarjeta-features li:last-child {
    border-bottom: none;
}
.tarjeta-features li i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* CTA button */
.tarjeta-cta {
    padding: 20px 28px 28px;
    text-align: center;
}
.btn-plan {
    display: inline-block;
    width: 100%;
    padding: 13px 24px;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: none;
}
.btn-plan:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    text-decoration: none;
    color: #fff;
}

/* --- Ahorro anual --- */
.ahorro-anual {
    background: linear-gradient(135deg, #E8FFE2 0%, #f0fff0 100%);
    border: 1px solid #c5e8b7;
    border-radius: 14px;
    padding: 28px 32px;
    margin-top: 40px;
}
.ahorro-anual h4 {
    font-weight: 600;
    color: #2d7a00;
    margin-bottom: 8px;
}
.ahorro-anual h4 i {
    margin-right: 8px;
}
.ahorro-anual p {
    color: #444;
    font-size: 1rem;
}
.ahorro-badge {
    display: inline-block;
    background: #44B002;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 12px;
}

/* --- Inserción manual --- */
.insercion-manual {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 28px 32px;
}
.insercion-icono {
    font-size: 2.8rem;
    color: #CC0000;
}
.insercion-manual h4 {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.insercion-manual p {
    color: #555;
    font-size: 1rem;
}

/* --- Garantías --- */
.garantias {
    margin-top: 30px;
}
.garantia-item {
    background: #fff;
    border-radius: 14px;
    padding: 30px 20px;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.garantia-item:hover {
    transform: translateY(-4px);
}
.garantia-item i {
    font-size: 2rem;
    color: #44B002;
    margin-bottom: 12px;
}
.garantia-item h5 {
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}
.garantia-item p {
    font-size: 0.92rem;
    color: #666;
    margin-bottom: 0;
}

/* --- FAQ --- */
.tarifas-faq {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.tarifas-faq .accordion-item {
    border: none;
    border-bottom: 1px solid #eee;
    background: transparent;
}
.tarifas-faq .accordion-button {
    font-weight: 500;
    font-size: 1.05rem;
    color: #333;
    padding: 18px 8px;
    background: transparent;
    box-shadow: none;
}
.tarifas-faq .accordion-button:not(.collapsed) {
    color: #2d7a00;
    background: transparent;
    font-weight: 600;
}
.tarifas-faq .accordion-button::after {
    filter: brightness(0.4);
}
.tarifas-faq .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}
.tarifas-faq .accordion-body {
    color: #555;
    font-size: 0.98rem;
    padding: 4px 8px 18px;
}

/* --- CTA Final --- */
.cta-final {
    background: linear-gradient(135deg, #44B002 0%, #2d7a00 100%);
    border-radius: 18px;
    padding: 50px 30px;
    color: #fff;
    margin-top: 50px;
}
.cta-final h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}
.cta-final p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
    text-align: center;
    color: #fff;
}
.btn-cta-final {
    display: inline-block;
    background: #fff;
    color: #2d7a00;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 15px 40px;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta-final:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    text-decoration: none;
    color: #2d7a00;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .tarjeta-popular {
        transform: scale(1);
    }
    .tarjeta-popular:hover {
        transform: translateY(-6px);
    }
}
@media (max-width: 767px) {
    .tarjeta-plan {
        margin-bottom: 20px;
    }
    .ahorro-anual {
        text-align: center;
    }
    .ahorro-badge {
        margin-top: 16px;
    }
    .insercion-manual .insercion-icono {
        margin-bottom: 16px;
    }
    .cta-final {
        padding: 36px 20px;
    }
    .cta-final h2 {
        font-size: 1.6rem;
    }
}
