/* HEADER */
.page-header {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 60%, var(--teal-dark) 100%);
    padding: 52px 24px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    background: rgba(218, 75, 149, 0.15);
    border-radius: 50%;
}

.page-header h1 {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 2;
}

/* NAV BACK EXTENSION */
.nav-back {
    font-size: 13px;
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-back:hover {
    color: var(--purple);
}

/* CONTENT */
.content {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.intro-box {
    background: var(--white);
    border: 2px solid #e8e0f8;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 40px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.intro-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.intro-box h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 6px;
}

.intro-box p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.6;
}

/* MÓDULO CARD ACCORDION */
.modulo {
    background: var(--white);
    border-radius: 16px;
    border: 2px solid #ece6f8;
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color .2s;
}

.modulo:hover {
    border-color: var(--purple-light);
}

.modulo-header {
    padding: 22px 24px 18px;
    border-left: 5px solid var(--purple);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

/* Alternating accent colors */
.modulo:nth-child(2) .modulo-header {
    border-left-color: var(--teal);
}

.modulo:nth-child(3) .modulo-header {
    border-left-color: var(--pink);
}

.modulo:nth-child(4) .modulo-header {
    border-left-color: var(--yellow);
}

.modulo:nth-child(5) .modulo-header {
    border-left-color: var(--purple);
}

.modulo:nth-child(6) .modulo-header {
    border-left-color: var(--teal);
}

.modulo:nth-child(7) .modulo-header {
    border-left-color: var(--pink);
}

.modulo:nth-child(8) .modulo-header {
    border-left-color: var(--yellow);
}

.modulo:nth-child(9) .modulo-header {
    border-left-color: var(--purple);
}

.modulo:nth-child(10) .modulo-header {
    border-left-color: var(--teal);
}

.modulo:nth-child(11) .modulo-header {
    border-left-color: var(--pink);
}

.modulo:nth-child(12) .modulo-header {
    border-left-color: var(--yellow);
}

.modulo-num {
    font-size: 10px;
    font-weight: 800;
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
}

.modulo-title {
    font-family: 'Nunito', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 8px;
}

.modulo-desc {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.6;
}

.modulo-toggle {
    font-size: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform .25s;
    user-select: none;
}

.modulo.open .modulo-toggle {
    transform: rotate(180deg);
}

/* Aprenda section */
.modulo-aprenda {
    display: none;
    padding: 0 24px 24px;
    border-top: 1px solid #f0ebff;
    animation: fadeIn .2s ease;
}

.modulo.open .modulo-aprenda {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aprenda-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 18px 0 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--teal);
}

.aprenda-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aprenda-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.5;
}

.check {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--teal), var(--purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    flex-shrink: 0;
    margin-top: 1px;
    font-weight: 700;
}

/* Módulo 12 destaque */
.modulo-destaque {
    background: linear-gradient(135deg, var(--purple-dark), var(--teal-dark));
    border-color: transparent;
}

.modulo-destaque .modulo-header {
    border-left-color: var(--yellow);
}

.modulo-destaque .modulo-title {
    color: #fff;
}

.modulo-destaque .modulo-desc {
    color: rgba(255, 255, 255, 0.75);
}

.modulo-destaque .modulo-num {
    color: var(--yellow);
}

.modulo-destaque .modulo-toggle {
    color: rgba(255, 255, 255, 0.5);
}

.modulo-destaque .modulo-aprenda {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.modulo-destaque .aprenda-label {
    color: var(--yellow);
}

.modulo-destaque .aprenda-list li {
    color: rgba(255, 255, 255, 0.8);
}

.modulo-destaque:hover {
    border-color: var(--yellow);
}

/* CTA */
.cta-box {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    border-radius: 16px;
    padding: 32px 28px;
    text-align: center;
    margin-top: 40px;
}

.cta-box h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}

.cta-box p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--yellow);
    color: var(--purple-dark);
    padding: 14px 32px;
    border-radius: 40px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* RESPONSIVO */
@media (max-width: 500px) {
    .intro-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 16px;
    }

    .modulo-header {
        padding: 18px 16px 14px;
        gap: 8px;
    }

    .modulo-title {
        font-size: 15px;
    }

    .modulo-desc {
        font-size: 13px;
    }

    .page-header {
        padding: 40px 16px 36px;
    }

    .cta-box {
        padding: 24px 20px;
    }

    .btn-cta {
        width: 100%;
        justify-content: center;
    }
}