/* ============================================
   Pricing Component Styles
   ============================================ */

.plans-grid,
.planos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.plan-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    margin-top: 0.4rem;
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.plan-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.plan-ramais {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.plan-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin-bottom: 1rem;
}

.plan-price .price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.plan-price .price-period {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.plan-total {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.50rem 0;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.plan-features i {
    color: var(--primary-color);
    flex-shrink: 0;
}

.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.btn-block {
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .plan-card.popular {
        transform: scale(1);
    }

    .planos-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

.plan-licenses {
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    padding-top: 0.85rem;
    border-top: 1px solid #ece7f2;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.plan-licenses-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9b59b6;
}

.plan-licenses-value {
    font-size: 1.12rem;
    font-weight: 700;
    color: #2c2f4a;
    line-height: 1.3;
}

.plan-features-more {
    color: #8a4bb3;
    font-weight: 600;
}

.plan-description {
    color: var(--gray-500);
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
    font-weight: 400;
    min-height: 2.4em;
}

.produto-section {
    margin-bottom: 5rem;
}

/* Carousel section */
.plans-carousel-wrapper {
    width: 100%;
    overflow: hidden;
}

.plans-carousel {
    overflow: hidden;
    width: 100%;
    padding: 2rem 0 1rem;
}


.plans-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.35s ease;
    will-change: transform;
    align-items: stretch;
}

.plan-slide {
    flex: 0 0 calc((100% - 4rem) / 3);
    min-width: 0;
    display: flex;
}

.plan-slide .plan-card {
    width: 100%;
}

.plans-carousel-controls {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.plans-nav {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gray-300);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: none;
    flex-shrink: 0;
}

.plans-nav:hover {
    background: #faf7fd;
    border-color: #d9c2ea;
}

.plans-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.plans-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 48px;
}

.plans-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    background: #d8c5e6;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.plans-dot.active {
    background: var(--primary-color);
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .plan-slide {
        flex: 0 0 calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 640px) {
    .plan-slide {
        flex: 0 0 100%;
    }

    .plans-nav {
        width: 34px;
        height: 34px;
    }
}

/* Ajuste para a pagina detalhes das solucao */
.solution-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-top: 32px;
}

.solution-plans-grid .plan-slide {
    min-width: 0;
}

.solution-plans-grid .plan-card {
    height: 100%;
}

@media (max-width: 1200px) {
    .solution-plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .solution-plans-grid {
        grid-template-columns: 1fr;
    }
}