/* =====================================================
   JUDO360 - Pagina de Planos e Precos
   Design Neo-Futurista
   ===================================================== */

/* ===== VARIAVEIS ===== */
.planos-hero,
.planos-grid-section,
.planos-garantias,
.planos-comparativo,
.planos-faq,
.planos-cta {
    --plano-gratuito: #6B7280;
    --plano-basico: #3B82F6;
    --plano-premium: #00D9A3;
    --plano-familia: #FF9800;
}

/* ===== CONTAINER ===== */
.planos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HERO ===== */
.planos-hero {
    position: relative;
    padding: 140px 20px 60px;
    background: linear-gradient(165deg, #0a1628 0%, #1A2332 50%, #1e2d42 100%);
    text-align: center;
    overflow: hidden;
}

.planos-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 217, 163, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 163, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-glow.g1 {
    width: 400px;
    height: 400px;
    top: -150px;
    left: -100px;
    background: rgba(0, 217, 163, 0.12);
}

.hero-glow.g2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -50px;
    background: rgba(59, 130, 246, 0.1);
}

.planos-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 217, 163, 0.1);
    border: 1px solid rgba(0, 217, 163, 0.3);
    border-radius: 50px;
    color: var(--color-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.planos-title {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}

.planos-title .highlight {
    background: linear-gradient(90deg, var(--color-accent), #00FFB8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.planos-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ===== TOGGLE MENSAL/ANUAL ===== */
.periodo-toggle {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 20px;
}

.periodo-label {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}

.periodo-label.active {
    color: #fff;
}

.periodo-desconto {
    display: inline-block;
    padding: 3px 10px;
    background: linear-gradient(135deg, rgba(0, 217, 163, 0.2), rgba(0, 217, 163, 0.1));
    border: 1px solid rgba(0, 217, 163, 0.3);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-left: 6px;
    white-space: nowrap;
}

.periodo-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.periodo-switch.active {
    background: var(--color-accent);
}

.periodo-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.periodo-switch.active .periodo-switch-thumb {
    transform: translateX(22px);
}

/* ===== GRID DE PLANOS ===== */
.planos-grid-section {
    position: relative;
    padding: 20px 20px 80px;
    background: linear-gradient(180deg, #1e2d42 0%, #1A2332 5%, #0a1628 100%);
    margin-top: -30px;
    overflow: visible;
}

.planos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

/* ===== CARD DO PLANO ===== */
.plano-card {
    position: relative;
    background: linear-gradient(165deg,
        rgba(30, 42, 60, 0.8) 0%,
        rgba(20, 30, 45, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 35px 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.plano-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.plano-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--plano-color-rgb, 0, 217, 163), 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Card Destaque (Premium) */
.plano-card.destaque {
    border-color: rgba(0, 217, 163, 0.3);
    background: linear-gradient(165deg,
        rgba(0, 217, 163, 0.08) 0%,
        rgba(20, 30, 45, 0.95) 30%,
        rgba(15, 25, 40, 0.98) 100%);
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(0, 217, 163, 0.1);
}

.plano-card.destaque.visible {
    transform: translateY(-10px) scale(1.03);
}

.plano-card.destaque:hover {
    transform: translateY(-18px) scale(1.03);
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 217, 163, 0.15);
}

/* Badge Mais Popular */
.plano-badge-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #00B88A 100%);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0a1628;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 217, 163, 0.4);
}

/* Badge Plano Atual */
.plano-badge-atual {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Header do Card */
.plano-header {
    text-align: center;
    margin-bottom: 25px;
}

.plano-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--plano-color);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.5rem;
    color: var(--plano-color);
    transition: all 0.3s ease;
}

.plano-card:hover .plano-icon {
    background: var(--plano-color);
    color: #0a1628;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
}

.plano-nome {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.plano-descricao {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.4;
}

/* Pricing */
.plano-pricing {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.plano-preco {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
}

.preco-moeda {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.preco-valor {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.preco-periodo {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.preco-periodo small {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 3px;
}

.preco-economia {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 4px 12px;
    background: rgba(0, 217, 163, 0.1);
    border: 1px solid rgba(0, 217, 163, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* Features */
.plano-features {
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.feature-item i {
    width: 20px;
    color: var(--plano-color);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Botao de Acao */
.plano-action {
    margin-top: auto;
}

.plano-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn-gratuito {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-gratuito:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.btn-assinar {
    background: linear-gradient(135deg, var(--plano-color), var(--plano-color));
    color: #0a1628;
}

.plano-card.destaque .btn-assinar {
    background: linear-gradient(135deg, var(--color-accent) 0%, #00B88A 100%);
    box-shadow: 0 4px 20px rgba(0, 217, 163, 0.4);
}

.btn-assinar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-atual {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3B82F6;
    cursor: default;
}

.btn-shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.plano-btn:hover .btn-shine-effect {
    left: 100%;
}

/* ===== GARANTIAS ===== */
.planos-garantias {
    padding: 80px 20px;
    background: #0a1628;
}

.garantias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.garantia-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.garantia-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.garantia-item:hover {
    background: rgba(0, 217, 163, 0.05);
    border-color: rgba(0, 217, 163, 0.15);
}

.garantia-icon {
    width: 55px;
    height: 55px;
    background: rgba(0, 217, 163, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.3rem;
    color: var(--color-accent);
}

.garantia-item h4 {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px;
}

.garantia-item p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.5;
}

/* ===== COMPARATIVO ===== */
.planos-comparativo {
    padding: 80px 20px;
    background: linear-gradient(180deg, #0a1628 0%, #0f1e30 100%);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}

.title-line {
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.comparativo-table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.comparativo-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparativo-table thead th {
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 600;
    color: var(--plano-color, #fff);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparativo-table thead th.feature-col {
    text-align: left;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.comparativo-table tbody td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.comparativo-table tbody td.feature-col {
    text-align: left;
    font-weight: 500;
}

.comparativo-table tbody tr:hover {
    background: rgba(0, 217, 163, 0.03);
}

.compare-yes {
    color: var(--color-accent);
    font-size: 1.1rem;
}

.compare-no {
    color: rgba(255, 255, 255, 0.2);
    font-size: 1.1rem;
}

.compare-number {
    font-weight: 600;
    color: #fff;
}

/* ===== FAQ ===== */
.planos-faq {
    padding: 80px 20px;
    background: #0f1e30;
}

.faq-list {
    max-width: 750px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    opacity: 0;
    transform: translateY(15px);
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:hover {
    border-color: rgba(0, 217, 163, 0.2);
}

.faq-item.open {
    border-color: rgba(0, 217, 163, 0.3);
    background: rgba(0, 217, 163, 0.03);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.faq-question span {
    flex: 1;
}

.faq-question i {
    color: var(--color-accent);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 25px 20px;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== CTA FINAL ===== */
.planos-cta {
    padding: 80px 20px;
    background: linear-gradient(180deg, #0f1e30 0%, #0a1628 100%);
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 60px;
    background: linear-gradient(135deg,
        rgba(0, 217, 163, 0.1) 0%,
        rgba(0, 217, 163, 0.03) 100%);
    border: 1px solid rgba(0, 217, 163, 0.2);
    border-radius: 30px;
    overflow: hidden;
}

.cta-content h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    margin: 0 0 25px;
}

.cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 35px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #00B88A 100%);
    border-radius: 14px;
    color: #0a1628;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 217, 163, 0.4);
}

.cta-visual {
    flex-shrink: 0;
}

.cta-belt-icon {
    width: 100px;
    height: 100px;
    background: rgba(0, 217, 163, 0.1);
    border: 2px solid rgba(0, 217, 163, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--color-accent);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 1100px) {
    .planos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .plano-card.destaque {
        transform: none;
    }

    .plano-card.destaque.visible {
        transform: none;
    }

    .plano-card.destaque:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 900px) {
    .garantias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .planos-hero {
        padding: 120px 20px 40px;
    }

    .planos-title {
        font-size: 2rem;
    }

    .planos-subtitle {
        font-size: 1rem;
    }

    .planos-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .garantias-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 30px;
    }

    .cta-content p {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .titulo-line {
        width: 30px;
    }

    .periodo-toggle {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .planos-title {
        font-size: 1.7rem;
    }

    .plano-card {
        padding: 30px 22px;
    }

    .garantias-grid {
        grid-template-columns: 1fr;
    }

    .comparativo-table-wrapper {
        margin: 0 -10px;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
}
