/* CSS Escopado - Seção de Planos Premium */

/* Seção Principal */
.section-planos {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.section-planos::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

/* Header da Seção */
.section-planos .plans-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease;
}

.section-planos .section-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-planos .section-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 40px;
}

/* Toggle Switch */
.section-planos .pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 8px;
    background: var(--white);
    border-radius: 100px;
    box-shadow: var(--shadow-md);
}

.section-planos .toggle-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.section-planos .toggle-badge {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.section-planos .toggle-switch {
    width: 60px;
    height: 32px;
    background: var(--gray-300);
    border: none;
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.section-planos .toggle-switch:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.section-planos .toggle-switch[aria-checked="true"] {
    background: var(--gradient-primary);
}

.section-planos .toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-md);
}

.section-planos .toggle-switch[aria-checked="true"] .toggle-slider {
    transform: translateX(28px);
}

/* Grid de Planos */
.section-planos .plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
}

/* Card de Plano */
.section-planos .plan-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px 20px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.8s ease backwards;
}

.section-planos .plan-card:nth-child(1) {
    animation-delay: 0.1s;
}

.section-planos .plan-card:nth-child(2) {
    animation-delay: 0.2s;
}

.section-planos .plan-card:nth-child(3) {
    animation-delay: 0.3s;
}

.section-planos .plan-card:nth-child(4) {
    animation-delay: 0.4s;
}

.section-planos .plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), 0 20px 40px rgba(0, 102, 255, 0.1);
    border-color: var(--primary-blue);
}

/* Card Recomendado */
.section-planos .plan-recommended {
    border-color: var(--primary-blue);
    background: linear-gradient(180deg, var(--white) 0%, rgba(0, 102, 255, 0.02) 100%);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(0, 102, 255, 0.1);
}

.section-planos .plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 24px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

/* Header do Plano */
.section-planos .plan-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.section-planos .plan-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.section-planos .plan-price-wrapper {
    position: relative;
    min-height: 60px;
}

.section-planos .price-old {
    font-size: 14px;
    color: var(--gray-600);
    text-decoration: line-through;
    margin-bottom: 4px;
    height: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-planos .price-old.show {
    opacity: 1;
}

.section-planos .plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.section-planos .currency {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
}

.section-planos .amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
    transition: opacity 0.3s ease;
}

.section-planos .contact-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
}

.section-planos .period {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
}

.section-planos .economy-text {
    margin-top: 4px;
    font-size: 12px;
    color: var(--primary-blue);
    font-weight: 600;
    height: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-planos .economy-text.show {
    opacity: 1;
}

/* Features do Plano */
.section-planos .plan-features {
    list-style: none;
    flex: 1;
    margin-bottom: 20px;
}

.section-planos .plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.section-planos .plan-features i {
    color: var(--primary-blue);
    font-size: 12px;
    margin-top: 2px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.section-planos .plan-card:hover .plan-features i {
    transform: scale(1.2);
}

.section-planos .plan-features .fa-star {
    color: #fbbf24;
}

/* Botão do Plano */
.section-planos .plan-btn {
    width: 100%;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
}

.section-planos .plan-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.section-planos .plan-btn:hover::before {
    width: 300px;
    height: 300px;
}

.section-planos .plan-btn i {
    transition: transform 0.3s ease;
}

.section-planos .plan-btn:hover i {
    transform: translateX(4px);
}

/* Responsividade */
@media (max-width: 1200px) {
    .section-planos .plans-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .section-planos {
        padding: 80px 0;
    }

    .section-planos .section-title {
        font-size: 36px;
    }

    .section-planos .section-subtitle {
        font-size: 16px;
    }

    .section-planos .plans-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 400px;
        margin: 40px auto 0;
    }

    .section-planos .pricing-toggle {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .section-planos .toggle-label {
        font-size: 14px;
    }

    .section-planos .plan-card {
        padding: 24px 20px;
    }

    .section-planos .amount {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .section-planos .section-title {
        font-size: 28px;
    }

    .section-planos .amount {
        font-size: 24px;
    }

    .section-planos .plan-features li {
        font-size: 12px;
    }
}