/* =========================================================
   MOTIVACIÓN SALSERA
   lessons.css
   Matches the current lessons.html structure
========================================================= */


/* =========================================================
   1. PAGE HERO
========================================================= */

.lessons-hero {
    position: relative;
    overflow: hidden;

    padding: 95px 20px 90px;

    background:
        linear-gradient(
            135deg,
            #fffaf5 0%,
            #fff7f0 52%,
            #f8e9df 100%
        );

    text-align: center;
}

.lessons-hero::before,
.lessons-hero::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(169, 0, 32, 0.08);

    border-radius: 50%;

    pointer-events: none;
}

.lessons-hero::before {
    width: 430px;
    height: 430px;

    top: -250px;
    left: -210px;
}

.lessons-hero::after {
    width: 380px;
    height: 380px;

    right: -190px;
    bottom: -250px;
}

.lessons-hero-content {
    position: relative;
    z-index: 2;

    width: min(760px, 100%);

    margin: 0 auto;
}

.lessons-hero .eyebrow {
    margin-bottom: 16px;
}

.lessons-hero h1 {
    margin: 0 0 24px;

    color: var(--black);

    font-size: clamp(3rem, 7vw, 5.2rem);

    line-height: 0.98;

    letter-spacing: -2.5px;
}

.lessons-hero h1 .accent {
    color: var(--orange);
}

.lessons-intro {
    width: min(620px, 100%);

    margin: 0 auto;

    color: var(--muted);

    font-size: 0.95rem;

    line-height: 1.8;
}


/* =========================================================
   2. LESSONS SECTION
========================================================= */

.lessons-section {
    padding: 90px 20px 100px;

    background: var(--cream);
}

.lessons-container {
    width: min(1050px, 100%);

    margin: 0 auto;
}


/* =========================================================
   3. SECTION HEADING
========================================================= */

.section-heading {
    width: min(700px, 100%);

    margin: 0 auto 50px;

    text-align: center;
}

.section-heading .eyebrow {
    margin-bottom: 13px;
}

.section-heading h2 {
    margin: 0 0 16px;

    color: var(--black);

    font-size: clamp(2.3rem, 5vw, 3.7rem);

    line-height: 1;

    letter-spacing: -1.5px;
}

.section-heading h2 .accent {
    color: var(--orange);
}

.section-heading p:last-child {
    margin: 0 auto;

    color: var(--muted);

    font-size: 0.86rem;

    line-height: 1.7;
}


/* =========================================================
   4. ACCORDION
========================================================= */

.course-accordion {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


/* =========================================================
   5. LESSON CARD
========================================================= */

.lesson-card {
    position: relative;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow: var(--shadow-sm);

    transition:
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.lesson-card:hover {
    box-shadow: var(--shadow-md);

    border-color: rgba(169, 0, 32, 0.14);
}

.lesson-card.is-open {
    border-color: rgba(169, 0, 32, 0.2);

    box-shadow: var(--shadow-md);
}


/* =========================================================
   6. LESSON HEADER
========================================================= */

.lesson-header {
    width: 100%;

    display: grid;

    grid-template-columns: 58px 1fr 40px;

    align-items: center;

    gap: 20px;

    padding: 22px 25px;

    border: 0;

    background: transparent;

    color: inherit;

    text-align: left;

    cursor: pointer;

    font-family: inherit;

    transition: background 0.25s ease;
}

.lesson-header:hover {
    background: #fffaf7;
}

.lesson-card.is-open .lesson-header {
    background: #fffaf7;
}


/* =========================================================
   7. LESSON NUMBER
========================================================= */

.lesson-number {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff0e6;

    color: var(--red);

    font-family: Georgia, serif;

    font-size: 0.82rem;

    font-weight: 700;
}


/* =========================================================
   8. LESSON TITLE
========================================================= */

.lesson-title {
    min-width: 0;
}

.lesson-level {
    display: block;

    margin-bottom: 5px;

    color: var(--orange);

    font-size: 0.62rem;

    font-weight: 800;

    letter-spacing: 1.5px;
}

.lesson-title h3 {
    margin: 0;

    color: var(--black);

    font-size: 1.15rem;

    line-height: 1.3;

    font-weight: 700;
}


/* =========================================================
   9. ACCORDION ARROW
========================================================= */

.lesson-arrow {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fff0e6;

    color: var(--red);

    font-size: 1.25rem;

    line-height: 1;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.lesson-card.is-open .lesson-arrow {
    transform: rotate(45deg);

    background: var(--red);

    color: white;
}


/* =========================================================
   10. LESSON CONTENT
========================================================= */

.lesson-content {
    border-top: 1px solid var(--border);

    background: #fffdfa;

    animation: lessonOpen 0.3s ease;
}

.lesson-content[hidden] {
    display: none;
}

@keyframes lessonOpen {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

.lesson-content-inner {
    width: min(820px, 100%);

    margin: 0 auto;

    padding: 30px 35px 35px;
}


/* =========================================================
   11. LESSON TEXT
========================================================= */

.lesson-content-inner > p {
    margin: 0 0 20px;

    color: #514844;

    font-size: 0.84rem;

    line-height: 1.8;
}

.lesson-content-inner h4 {
    margin: 28px 0 15px;

    color: var(--black);

    font-size: 0.9rem;

    font-weight: 800;
}


/* =========================================================
   12. LESSON LIST
========================================================= */

.lesson-content-inner ul {
    display: flex;

    flex-direction: column;

    gap: 11px;

    margin: 0 0 24px;

    padding: 0;

    list-style: none;
}

.lesson-content-inner li {
    position: relative;

    padding-left: 27px;

    color: #514844;

    font-size: 0.8rem;

    line-height: 1.65;
}

.lesson-content-inner li::before {
    content: "✓";

    position: absolute;

    left: 0;
    top: 2px;

    width: 18px;
    height: 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #fbe8df;

    color: var(--red);

    font-size: 0.62rem;

    font-weight: 800;
}


/* =========================================================
   13. LESSON GOAL
========================================================= */

.lesson-goal {
    margin-top: 25px !important;

    padding: 17px 20px;

    border-left: 3px solid var(--orange);

    background: #fff4ed;

    color: #514844 !important;

    font-size: 0.8rem !important;

    line-height: 1.7 !important;
}


/* =========================================================
   14. PHILOSOPHY / SLOGANS
========================================================= */

.lesson-content-inner .philosophy {
    padding: 18px 20px;

    background: #fff4ed;

    border-radius: 10px;

    color: #514844;

    font-style: italic;
}

.course-slogan {
    margin-top: 28px !important;

    color: var(--red) !important;

    font-family: Georgia, serif;

    font-size: 1rem !important;

    font-style: italic;

    text-align: center;
}


/* =========================================================
   15. FINAL CTA
========================================================= */

.lessons-cta {
    position: relative;

    overflow: hidden;

    padding: 90px 20px;

    background:
        linear-gradient(
            135deg,
            var(--red-dark),
            var(--red)
        );

    color: white;

    text-align: center;
}

.lessons-cta::before,
.lessons-cta::after {
    content: "";

    position: absolute;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 50%;

    pointer-events: none;
}

.lessons-cta::before {
    width: 460px;
    height: 460px;

    top: -280px;
    left: -230px;
}

.lessons-cta::after {
    width: 420px;
    height: 420px;

    right: -220px;
    bottom: -280px;
}

.lessons-cta-content {
    position: relative;
    z-index: 2;

    width: min(650px, 100%);

    margin: 0 auto;
}

.lessons-cta .eyebrow {
    margin-bottom: 14px;

    color: rgba(255, 255, 255, 0.72);
}

.lessons-cta h2 {
    margin: 0 0 18px;

    color: white;

    font-size: clamp(2.5rem, 5vw, 4rem);

    line-height: 1;

    letter-spacing: -1.5px;
}

.lessons-cta h2 .accent {
    color: var(--orange-light);
}

.lessons-cta p {
    width: min(530px, 100%);

    margin: 0 auto 28px;

    color: rgba(255, 255, 255, 0.84);

    font-size: 0.86rem;

    line-height: 1.75;
}


/* =========================================================
   16. CTA BUTTON
========================================================= */

.lessons-cta .btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 48px;

    padding: 0 24px;

    border-radius: 25px;

    background: white;

    color: var(--red);

    font-size: 0.76rem;

    font-weight: 700;

    text-decoration: none;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);

    transition: var(--transition);
}

.lessons-cta .btn:hover {
    background: var(--orange-light);

    color: white;

    transform: translateY(-2px);

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.lessons-cta .btn span {
    transition: transform 0.25s ease;
}

.lessons-cta .btn:hover span {
    transform: translateX(3px);
}


/* =========================================================
   17. FOOTER
========================================================= */

footer {
    position: relative;

    z-index: 2;
}


/* =========================================================
   18. TABLET
========================================================= */

@media (max-width: 850px) {

    .lessons-hero {
        padding: 75px 20px 70px;
    }

    .lessons-section {
        padding: 70px 20px 80px;
    }

    .section-heading {
        margin-bottom: 38px;
    }

    .lesson-header {
        grid-template-columns: 50px 1fr 36px;

        gap: 15px;

        padding: 20px;
    }

    .lesson-number {
        width: 42px;
        height: 42px;
    }

    .lesson-content-inner {
        padding: 28px 25px 32px;
    }

    .lessons-cta {
        padding: 75px 20px;
    }
}


/* =========================================================
   19. MOBILE
========================================================= */

@media (max-width: 600px) {

    .lessons-hero {
        padding: 60px 18px 58px;
    }

    .lessons-hero h1 {
        font-size: clamp(2.7rem, 13vw, 3.6rem);

        letter-spacing: -1.5px;
    }

    .lessons-intro {
        font-size: 0.84rem;

        line-height: 1.7;
    }

    .lessons-section {
        padding: 55px 15px 65px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2 {
        font-size: 2.35rem;
    }

    .section-heading p:last-child {
        font-size: 0.8rem;
    }

    .course-accordion {
        gap: 9px;
    }

    .lesson-header {
        grid-template-columns: 42px 1fr 32px;

        gap: 11px;

        padding: 17px 15px;
    }

    .lesson-number {
        width: 38px;
        height: 38px;

        font-size: 0.72rem;
    }

    .lesson-level {
        margin-bottom: 4px;

        font-size: 0.55rem;

        letter-spacing: 1.2px;
    }

    .lesson-title h3 {
        font-size: 0.94rem;

        line-height: 1.3;
    }

    .lesson-arrow {
        width: 31px;
        height: 31px;

        font-size: 1.05rem;
    }

    .lesson-content-inner {
        padding: 23px 18px 27px;
    }

    .lesson-content-inner > p {
        font-size: 0.78rem;

        line-height: 1.75;
    }

    .lesson-content-inner h4 {
        margin-top: 24px;

        font-size: 0.84rem;
    }

    .lesson-content-inner li {
        padding-left: 25px;

        font-size: 0.75rem;

        line-height: 1.6;
    }

    .lesson-goal {
        padding: 15px 16px;

        font-size: 0.75rem !important;
    }

    .lessons-cta {
        padding: 65px 18px;
    }

    .lessons-cta h2 {
        font-size: 2.6rem;
    }

    .lessons-cta p {
        font-size: 0.8rem;
    }

    .lessons-cta .btn {
        width: 100%;

        max-width: 280px;
    }
}


/* =========================================================
   20. VERY SMALL SCREENS
========================================================= */

@media (max-width: 380px) {

    .lesson-header {
        grid-template-columns: 38px 1fr 30px;

        gap: 9px;

        padding: 15px 12px;
    }

    .lesson-number {
        width: 35px;
        height: 35px;
    }

    .lesson-title h3 {
        font-size: 0.88rem;
    }

    .lesson-arrow {
        width: 29px;
        height: 29px;
    }

    .lesson-content-inner {
        padding: 20px 15px 24px;
    }
}
