/* ===== PRICING SECTION ===== */

.pricing {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f4ff 100%);
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.pricing-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===== SWITCHER ===== */

.pricing-switcher {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.switch-btn {
    padding: 14px 40px;
    border: 2px solid var(--border);
    background: var(--white);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-light);
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.switch-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.switch-btn.active {
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue) 100%);
    color: var(--white);
    border-color: var(--blue);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.save-badge {
    background: var(--gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

/* ===== PRICING MODES ===== */

.pricing-mode {
    display: none;
    animation: fadeInPricing 0.5s ease-out;
}

.pricing-mode.active {
    display: block;
}

@keyframes fadeInPricing {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MODO MENSAL ===== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.pricing-card:hover {
    border-color: var(--blue);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    transform: translateY(-8px);
}

.pricing-card.featured {
    border-color: var(--blue);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(245, 158, 11, 0.02) 100%);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.12);
    transform: scale(1.04);
}

.pricing-card.featured:hover {
    box-shadow: 0 25px 70px rgba(37, 99, 235, 0.18);
    transform: scale(1.04) translateY(-8px);
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--blue) 0%, var(--gold) 100%);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.badge-trial {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--green) 0%, #059669 100%);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.trial-card {
    border-color: var(--green);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(5, 150, 105, 0.03) 100%);
}

.trial-card:hover {
    border-color: var(--green);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.15);
}

.trial-card .btn-select {
    background: linear-gradient(135deg, var(--green) 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.trial-card .btn-select:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* ===== PRICE SECTION ===== */

.price-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.price-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.8rem;
}

.price-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-right: 2px;
}

.amount {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}

.price-display.highlight .amount {
    color: var(--green);
}

.price-display.custom {
    justify-content: center;
}

.price-display.custom .amount {
    font-size: 1.5rem;
    color: var(--blue);
}

.unit {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
}

/* ===== FEATURES LIST ===== */

.features-list {
    flex: 1;
    list-style: none;
    margin-bottom: 1.5rem;
    padding: 0;
}

.features-list li {
    padding: 0.7rem 0;
    color: var(--text);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.features-list li:before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.features-list li:last-child {
    border-bottom: none;
}

/* ===== BUTTONS ===== */

.btn-select {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue) 60%, var(--gold) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-select:hover::before {
    left: 100%;
}

.btn-select:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-select:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.btn-select.secondary {
    background: var(--white);
    color: var(--blue);
    border: 2px solid var(--blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.btn-select.secondary::before {
    background: rgba(37, 99, 235, 0.08);
}

.btn-select.secondary:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-select.secondary:active {
    transform: translateY(-1px);
}

/* ===== DISCOUNT BOX (ANUAL) ===== */

.discount-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.6rem;
    border-radius: 6px;
    margin-top: 0.8rem;
}

.discount-box.invisible {
    background: transparent;
    border: none;
    padding: 0;
}

.discount-row {
    font-size: 0.8rem;
    color: var(--green);
    font-weight: 700;
}

.price-was {
    font-size: 0.75rem;
    color: var(--text-light);
    text-decoration: line-through;
}

/* ===== PRICING FOOTER ===== */

.pricing-footer {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .pricing {
        padding: 60px 0;
    }

    .pricing-header h2 {
        font-size: 2rem;
    }

    .pricing-switcher {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .switch-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: scale(1) translateY(-8px);
    }

    .amount {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .pricing {
        padding: 40px 0;
    }

    .pricing-header h2 {
        font-size: 1.5rem;
    }

    .pricing-header p {
        font-size: 1rem;
    }

    .pricing-switcher {
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .switch-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .pricing-grid {
        gap: 1.2rem;
    }

    .pricing-card {
        padding: 1.3rem 1rem;
    }

    .amount {
        font-size: 2rem;
    }

    .features-list li {
        padding: 0.5rem 0;
        font-size: 0.85rem;
    }

    .btn-select {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}
