* {
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fa;
    padding: 40px 20px;
}

.top-bar {
    display: flex;
    background: #374C80;
    margin-top: -40px;
    padding: 15px 10px;
    text-align: left;
    margin-left: -20px;
    margin-right: -20px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
}

.title h1 {
    text-align: center;
    margin-top: 15px;
}

#tituloCurso {
    font-size: 36px;
    color: #2d4a7c;
    margin-bottom: 20px;
}

.pagamento h2 {
    text-align: center;
    color: #555;
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pagamento-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 2px solid #ccc;
    background: white;
}

.pagamento-box {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    background: white;
    border-right: 2px solid #ccc;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px;
}

.pagamento-box:last-child {
    border-right: none;
}

.pagamento-box.destaque {
    background: #3d5a8c;
    color: white;
}

.pagamento-box.destaque h3,
.pagamento-box.destaque p,
.pagamento-box.destaque .preco-antigo {
    color: white;
}

/* Badge de desconto */
.desconto {
    position: absolute;
    top: 25px;
    left: 31.5%;
    background: #d32f2f;
    color: white;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 14px;
}

.pagamento-box.destaque .desconto {
    background: #c62828;
}


/* Opção mais escolhida */
.pagamento-box.destaque > span:first-child {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #d32f2f;
    padding: 12px 25px;
    font-weight: bold;
    font-size: 13px;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
    width: 80%;
    max-width: 250px;
}

/* Preço antigo (riscado) */
.preco-antigo {
    font-size: 16px;
    color: #666;
    text-decoration: line-through;
    margin-top: 60px;
    margin-bottom: 5px;
}

.pagamento-box.destaque .preco-antigo {
    color: rgba(255, 255, 255, 0.8);
}

/* Preço principal */
.pagamento-box h3 {
    font-size: 42px;
    color: #2d4a7c;
    margin: 10px 0 20px;
    font-weight: bold;
}

.pagamento-box.destaque h3 {
    color: #f5e663;
}

/* Texto descritivo */
.pagamento-box > p {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.pagamento-box.destaque > p {
    color: white;
}

/* Tag de economia */
.economia-tag {
    background: #d32f2f;
    color: white;
    padding: 6px 15px;
    display: inline-block;
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 10px;
}

/* Total */
.total-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.pagamento-box.destaque .total-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Botão */
.btn-pagamento {
    display: block;
    background: #3d5a8c;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 15px;
    transition: 0.3s;
    margin-top: auto;
    border: 2px solid #3d5a8c;
}

.btn-pagamento:hover {
    background: #2d4a7c;
    border-color: #2d4a7c;
}

.pagamento-box.destaque .btn-pagamento {
    background: white;
    color: #3d5a8c;
    border: 2px solid white;
}

.pagamento-box.destaque .btn-pagamento:hover {
    background: #b5abab;
    border-color: #b5abab;
}

/* Responsivo */
@media screen and (max-width: 968px) {

    .top-bar {
        padding: 5px 12px;
        margin-top: -30px;
    }

    .pagamento-container {
        grid-template-columns: 1fr;
    }

    .pagamento-box {
        border-right: none;
        border-bottom: 2px solid #ccc;
        min-height: auto;
    }

    .pagamento-box:last-child {
        border-bottom: none;
    }

    #tituloCurso {
        font-size: 28px;
    }

    .pagamento h2 {
        font-size: 18px;
    }

    .pagamento-box h3 {
        font-size: 36px;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 20px 10px;
    }

    #tituloCurso {
        font-size: 24px;
    }

    .pagamento h2 {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .pagamento-box {
        padding: 30px 20px;
    }

    .pagamento-box h3 {
        font-size: 32px;
    }

    .btn-pagamento {
        padding: 12px 25px;
        font-size: 14px;
    }
}
