@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

.pp-wrapper { font-family: 'Nunito', sans-serif; text-align: center; padding: 10px 0 40px; }

/* Toggle */
.pp-toggle-container {
    display: inline-flex;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 42px;
    gap: 10px;
}
.pp-toggle-btn {
    padding: 10px 28px;
    border: none;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: #666;
}
.pp-toggle-btn.active {
    background: #3a7bd5;
    color: #fff;
    box-shadow: 0 4px 12px rgba(58,123,213,0.4);
}
.pp-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Grid */
.pp-grid {
    display: grid;
    gap: 20px;
    align-items: stretch;
}
.pp-count-4 { grid-template-columns: repeat(4, 1fr); }
.pp-count-3 { grid-template-columns: repeat(3, 1fr); }
.pp-count-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) {
    .pp-count-4 { grid-template-columns: repeat(2, 1fr); }
    .pp-count-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .pp-count-4, .pp-count-3, .pp-count-2 { grid-template-columns: 1fr; }
}

/* ── MOBILE CAROUSEL ─────────────────────────────────────── */
@media (max-width: 640px) {
    .pp-mobile-carousel .pp-carousel-outer {
        position: relative;
        overflow: hidden;
        width: 100%;
    }

    .pp-mobile-carousel .pp-grid {
        display: flex !important;
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: transform;
        gap: 0;
    }

    .pp-mobile-carousel .pp-card {
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin-top: 0 !important;
        box-sizing: border-box;
        padding: 0 4px;
    }

    /* Dots */
    .pp-carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    .pp-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 2px solid #3a7bd5;
        background: transparent;
        cursor: pointer;
        padding: 0;
        transition: all 0.2s;
    }
    .pp-dot.active {
        background: #3a7bd5;
        transform: scale(1.3);
    }

    /* Nav bar */
    .pp-carousel-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin-top: 14px;
    }
    .pp-nav-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid #3a7bd5;
        background: #fff;
        color: #3a7bd5;
        font-size: 1.1rem;
        font-weight: 900;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        box-shadow: 0 2px 8px rgba(58,123,213,0.15);
    }
    .pp-nav-btn:hover { background: #3a7bd5; color: #fff; }
    .pp-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
    .pp-carousel-label {
        font-family: 'Nunito', sans-serif;
        font-weight: 800;
        font-size: 0.95rem;
        color: #1a1a2e;
        min-width: 90px;
        text-align: center;
    }
}

/* Hide carousel nav on desktop */
@media (min-width: 641px) {
    .pp-carousel-dots,
    .pp-carousel-nav { display: none; }
}

/* Card */
.pp-card {
    background: #fff;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.pp-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.pp-card.popular { border: 3px solid #2ecc71; margin-top: 10px; }
.pp-card.corporativo { background: #dde8f8; }

.pp-popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 5px 22px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(46,204,113,0.4);
}

.pp-card-header {
    background: #3a7bd5;
    padding: 18px 16px;
    border-radius: 12px 12px 0 0;
}
.pp-card-header h2 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
}

/* Price */
.pp-card-price { padding: 22px 16px 10px; }
.pp-price-value {
    font-size: 2rem;
    font-weight: 900;
    color: #1a1a2e;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.pp-currency { font-size: 1.1rem; font-weight: 700; vertical-align: top; margin-top: 4px; display: inline-block; }
.pp-period   { font-size: 0.9rem; font-weight: 600; color: #888; }
.pp-price-original { font-size: 0.82rem; color: #aaa; text-decoration: line-through; min-height: 18px; margin-top: 4px; }
.pp-sob-consulta { font-size: 1.4rem; font-weight: 900; color: #3a7bd5; padding: 10px 0 4px; }

.pp-price-fade { opacity: 0; transform: translateY(-6px); }

/* Limit */
.pp-card-limit {
    background: #dde8f8;
    margin: 6px 12px 4px;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #3a7bd5;
}
.pp-card.corporativo .pp-card-limit { background: #c8d9f0; }

/* Features */
.pp-card-features { padding: 14px 16px 18px; text-align: left; flex: 1; }
.pp-card-features ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pp-card-features li { font-size: 0.88rem; font-weight: 600; color: #444; display: flex; align-items: center; gap: 8px; }
.pp-check {
    width: 18px; height: 18px;
    background: #3a7bd5;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pp-check svg { width: 10px; height: 10px; }

/* Button */
.pp-btn {
    display: block;
    margin: 0 16px 20px;
    background: #3a7bd5;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    width: calc(100% - 32px);
    transition: background 0.2s ease, transform 0.1s;
    text-decoration: none;
    text-align: center;
}
.pp-btn:hover { background: #2d63b8; transform: scale(1.02); color: #fff; }
