
/* =========================================
   CURSO DE ESPAÑOL — FREE COURSE
   LIGHT + DARK THEME
   ========================================= */

.fc-wrap {
    --fc-text: var(--text, #28242a);
    --fc-muted: #756a70;
    --fc-accent: #99546d;
    --fc-surface: #f8f0f2;
    --fc-surface-alt: #f4e4e9;
    --fc-border: #e6d6dc;
    --fc-link: #78354d;
    --fc-input: var(--card, #fff);
    --fc-selected: #f9edf1;
    --fc-success: #26714c;
    --fc-error: #a13e52;

    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 22px 75px;
    color: var(--fc-text);
}

.fc-wrap * {
    box-sizing: border-box;
}

.fc-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--fc-accent);
}

/* =========================================
   HERO
   ========================================= */

.fc-hero {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    background: #64283f;
    color: #fff;
    min-height: 390px;
    overflow: hidden;
    border-radius: 7px;
}

.fc-hero-copy {
    padding: 57px 54px;
}

.fc-hero .fc-eyebrow,
.fc-day-hero .fc-eyebrow {
    color: #f0c8d4;
}

.fc-hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(56px, 7vw, 94px);
    line-height: .93;
    letter-spacing: -.05em;
    margin: 28px 0 24px;
    color: #fff;
}

.fc-hero h1 em {
    color: #f2c3d2;
    font-weight: 400;
}

.fc-hero p {
    max-width: 490px;
    color: #f7e9ed;
    line-height: 1.65;
}

.fc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 27px;
}

.fc-tags span {
    border: 1px solid #bd8399;
    border-radius: 30px;
    padding: 7px 12px;
    font-size: 12px;
}

/* =========================================
   BUTTONS
   ========================================= */

.fc-btn {
    display: inline-block;
    background: #682d43;
    color: #fff !important;
    border: 1px solid #682d43;
    padding: 13px 20px;
    text-decoration: none;
    border-radius: 4px;
    font: 700 14px Onest, sans-serif;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.fc-btn:hover {
    background: #85425b;
    border-color: #85425b;
}

.fc-btn-light {
    background: #f7e9ed;
    border-color: #f7e9ed;
    color: #62283f !important;
}

.fc-btn-outline {
    background: transparent;
    color: var(--fc-link) !important;
    border-color: var(--fc-link);
}

/* =========================================
   HERO ART
   ========================================= */

.fc-hero-art {
    position: relative;
    background: #d8a6b7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fc-art-sun {
    width: 255px;
    height: 255px;
    border: 25px solid #f8e6e7;
    border-radius: 50%;
    position: absolute;
    transform: translate(22px, -22px);
}

.fc-art-word {
    font: italic 86px Georgia, serif;
    color: #632b43;
    z-index: 1;
    transform: rotate(-10deg);
}

.fc-art-caption {
    position: absolute;
    bottom: 28px;
    right: 30px;
    font-size: 11px;
    letter-spacing: .18em;
    color: #632b43;
}

/* =========================================
   INTRO AND PROGRESS
   ========================================= */

.fc-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    padding: 62px 0 35px;
    align-items: center;
}

.fc-wrap h2 {
    font-family: Georgia, serif;
    font-size: clamp(28px, 3vw, 41px);
    line-height: 1.13;
    margin: 12px 0 20px;
    color: var(--fc-text);
}

.fc-progress-box,
.fc-aside-card {
    padding: 26px;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: 5px;
    color: var(--fc-text);
}

.fc-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.fc-progress-track {
    height: 9px;
    background: #e6cbd5;
    border-radius: 20px;
    overflow: hidden;
    margin: 16px 0;
}

.fc-progress-track > div {
    height: 100%;
    background: #77344c;
    transition: width .3s;
}

.fc-progress-box p,
.fc-aside-card p {
    font-size: 13px;
    color: var(--fc-muted);
    line-height: 1.6;
}

/* =========================================
   LESSON CARDS
   ========================================= */

.fc-lesson-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fc-lesson-card {
    position: relative;
    display: flex;
    gap: 18px;
    min-height: 155px;
    padding: 22px;
    border: 1px solid var(--fc-border);
    border-radius: 5px;
    text-decoration: none !important;
    color: var(--fc-text) !important;
    background: var(--card, #fff);
    transition: transform .15s, border-color .15s;
}

.fc-lesson-card:hover {
    transform: translateY(-2px);
    border-color: #a76981;
}

.fc-number {
    font: italic 44px Georgia, serif;
    color: var(--fc-accent);
}

.fc-lesson-info {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 6px;
}

.fc-lesson-info small {
    font-size: 10px;
    letter-spacing: .09em;
    color: var(--fc-accent);
    text-transform: uppercase;
}

.fc-lesson-info strong {
    font-size: 18px;
    color: var(--fc-text);
}

.fc-lesson-info > span {
    font-size: 13px;
    line-height: 1.5;
    color: var(--fc-muted);
}

.fc-card-arrow {
    margin-left: auto;
    color: var(--fc-accent);
}

.fc-done {
    position: absolute;
    bottom: 10px;
    right: 17px;
    font-size: 11px;
    color: var(--fc-success);
}

/* =========================================
   CTA
   ========================================= */

.fc-soft-cta {
    margin-top: 55px;
    background: var(--fc-surface-alt);
    padding: 37px 42px;
    border-radius: 5px;
    color: var(--fc-text);
}

.fc-soft-cta p {
    max-width: 650px;
    line-height: 1.7;
    color: var(--fc-text);
}

/* =========================================
   LESSON PAGE
   ========================================= */

.fc-back {
    display: flex;
    justify-content: space-between;
    padding: 8px 0 25px;
    font-size: 13px;
    letter-spacing: .06em;
}

.fc-back a {
    color: var(--fc-link);
}

.fc-day-hero {
    background: #64283f;
    color: #fff;
    padding: 48px 50px;
    border-radius: 5px;
}

.fc-day-hero h1 {
    font: normal clamp(36px, 5vw, 60px) Georgia, serif;
    margin: 15px 0 5px;
    color: #fff;
}

.fc-day-hero .fc-spanish {
    font: italic 27px Georgia, serif;
    color: #e9b9c9;
}

.fc-day-hero > p:last-child {
    max-width: 650px;
    line-height: 1.6;
    color: #f5e5eb;
}

.fc-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 42px;
    margin-top: 44px;
}

.fc-main {
    min-width: 0;
    color: var(--fc-text);
}

.fc-main h2 {
    margin: 12px 0 25px;
}

.fc-topic {
    margin-bottom: 24px;
}

.fc-topic h3 {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--fc-text);
}

.fc-topic p {
    white-space: pre-line;
    line-height: 1.85;
    margin: 0;
    font-size: 15px;
    color: var(--fc-text);
}

/* =========================================
   VOCABULARY
   ========================================= */

.fc-vocab,
.fc-task,
.fc-quiz {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--fc-border);
}

.fc-vocab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fc-vocab-item {
    background: var(--fc-surface);
    border-radius: 4px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fc-vocab-item strong {
    color: var(--fc-link);
}

.fc-vocab-item span {
    font-size: 13px;
    color: var(--fc-muted);
}

/* =========================================
   WRITING TASKS
   ========================================= */

.fc-task p,
.fc-quiz > p {
    line-height: 1.75;
    color: var(--fc-text);
}

.fc-task textarea {
    display: block;
    width: 100%;
    margin: 15px 0 7px;
    padding: 15px;
    border: 1px solid var(--fc-border);
    border-radius: 4px;
    background: var(--fc-input);
    color: var(--fc-text);
    font: inherit;
    resize: vertical;
}

.fc-task textarea::placeholder {
    color: var(--fc-muted);
}

.fc-task small {
    color: var(--fc-muted);
}

/* =========================================
   QUIZZES
   ========================================= */

.fc-question {
    border: 0;
    border-bottom: 1px solid var(--fc-border);
    padding: 18px 0;
    margin: 0;
}

.fc-question legend {
    font-weight: 700;
    float: left;
    width: 100%;
    margin-bottom: 12px;
    color: var(--fc-text);
}

.fc-question label {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    margin: 6px 0;
    border: 1px solid var(--fc-border);
    border-radius: 4px;
    cursor: pointer;
    color: var(--fc-text);
}

.fc-question label:has(input:checked) {
    border-color: var(--fc-accent);
    background: var(--fc-selected);
}

.fc-question input {
    accent-color: #a65b78;
}

.fc-feedback {
    font-size: 13px;
    margin: 8px 0 0;
}

.fc-feedback.correct {
    color: var(--fc-success);
}

.fc-feedback.incorrect {
    color: var(--fc-error);
}

.fc-quiz .fc-btn {
    margin: 20px 10px 0 0;
}

/* =========================================
   SIDEBAR
   ========================================= */

.fc-aside-card {
    margin-bottom: 18px;
}

.fc-aside-card strong {
    display: block;
    margin-top: 12px;
    color: var(--fc-text);
}

.fc-aside-pink {
    background: var(--fc-surface-alt);
}

.fc-aside-card a {
    font-size: 13px;
    color: var(--fc-link);
    font-weight: 700;
}

/* =========================================
   NAVIGATION
   ========================================= */

.fc-day-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid var(--fc-border);
}

.fc-day-nav a {
    color: var(--fc-link);
    font-weight: 700;
}

#fc-score {
    margin-top: 15px;
    font-weight: 700;
    color: var(--fc-text);
}

/* =========================================
   DARK THEME
   ========================================= */

html[data-theme="dark"] .fc-wrap,
body[data-theme="dark"] .fc-wrap {
    --fc-text: #f5edf1;
    --fc-muted: #cbbbc3;
    --fc-accent: #e5a5bc;
    --fc-surface: #30242d;
    --fc-surface-alt: #3a2935;
    --fc-border: #624554;
    --fc-link: #f0b8cb;
    --fc-input: #30242d;
    --fc-selected: #563447;
    --fc-success: #8fe0ae;
    --fc-error: #ff9aab;
}

html[data-theme="dark"] .fc-lesson-card,
body[data-theme="dark"] .fc-lesson-card {
    background: var(--fc-surface);
    color: var(--fc-text) !important;
}

html[data-theme="dark"] .fc-wrap h2,
html[data-theme="dark"] .fc-wrap h3,
html[data-theme="dark"] .fc-topic p,
html[data-theme="dark"] .fc-main,
body[data-theme="dark"] .fc-wrap h2,
body[data-theme="dark"] .fc-wrap h3,
body[data-theme="dark"] .fc-topic p,
body[data-theme="dark"] .fc-main {
    color: var(--fc-text);
}

html[data-theme="dark"] .fc-hero h1,
html[data-theme="dark"] .fc-day-hero h1,
body[data-theme="dark"] .fc-hero h1,
body[data-theme="dark"] .fc-day-hero h1 {
    color: #fff;
}

html[data-theme="dark"] .fc-hero p,
html[data-theme="dark"] .fc-day-hero > p:last-child,
body[data-theme="dark"] .fc-hero p,
body[data-theme="dark"] .fc-day-hero > p:last-child {
    color: #f7e9ed;
}

html[data-theme="dark"] .fc-btn,
body[data-theme="dark"] .fc-btn {
    background: #a75b78;
    border-color: #a75b78;
    color: #fff !important;
}

html[data-theme="dark"] .fc-btn:hover,
body[data-theme="dark"] .fc-btn:hover {
    background: #bb718d;
    border-color: #bb718d;
}

html[data-theme="dark"] .fc-btn-outline,
body[data-theme="dark"] .fc-btn-outline {
    background: transparent;
    border-color: #c58aa0;
    color: #f0b8cb !important;
}

html[data-theme="dark"] .fc-btn-light,
body[data-theme="dark"] .fc-btn-light {
    background: #f7e9ed;
    border-color: #f7e9ed;
    color: #62283f !important;
}

html[data-theme="dark"] .fc-progress-track,
body[data-theme="dark"] .fc-progress-track {
    background: #624554;
}

html[data-theme="dark"] .fc-progress-track > div,
body[data-theme="dark"] .fc-progress-track > div {
    background: #d99bb2;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 760px) {
    .fc-wrap {
        padding: 18px 14px 45px;
    }

    .fc-hero {
        grid-template-columns: 1fr;
    }

    .fc-hero-copy {
        padding: 38px 26px;
    }

    .fc-hero-art {
        height: 165px;
    }

    .fc-art-word {
        font-size: 62px;
    }

    .fc-art-sun {
        width: 170px;
        height: 170px;
    }

    .fc-intro,
    .fc-lesson-grid,
    .fc-content {
        grid-template-columns: 1fr;
    }

    .fc-intro {
        gap: 12px;
        padding: 42px 0 25px;
    }

    .fc-lesson-card {
        min-height: 135px;
    }

    .fc-day-hero {
        padding: 35px 25px;
    }

    .fc-content {
        gap: 25px;
        margin-top: 30px;
    }

    .fc-aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .fc-aside-card {
        margin: 0;
        padding: 18px;
    }

    .fc-soft-cta {
        padding: 27px;
    }

    .fc-vocab-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .fc-aside {
        grid-template-columns: 1fr;
    }

    .fc-vocab-grid {
        grid-template-columns: 1fr;
    }

    .fc-day-nav {
        font-size: 13px;
    }
}
