:root {
    --thl-bg: #f3f0ea;
    --thl-card: #fff;
    --thl-text: #111;
    --thl-muted: #776f69;
    --thl-border: #e9e1d8;
    --thl-shadow: 0 18px 45px rgba(20, 20, 20, .08)
}

.thl-campus {
    min-height: 100vh;
    background: var(--thl-bg);
    color: var(--thl-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding: 24px 12px 110px;
    box-sizing: border-box
}

.thl-campus * {
    box-sizing: border-box
}

.thl-app {
    width: 100%;
    max-width: 390px;
    margin: 0 auto
}

.thl-header {
    margin-bottom: 24px
}

.thl-logo {
    display: inline-flex;
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    margin-bottom: 14px
}

.thl-back {
    display: block;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 22px
}

.thl-hello {
    color: var(--thl-muted);
    margin: 0 0 4px
}

.thl-header h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.04em
}

.thl-duration {
    color: var(--thl-muted);
    margin: 8px 0 0
}

.thl-section-label {
    color: var(--thl-main);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    margin: 0 0 12px
}

.thl-card,
.thl-progress-card,
.thl-month.active,
.thl-month.locked,
.thl-next-notice {
    background: var(--thl-card);
    border-radius: 22px;
    box-shadow: var(--thl-shadow)
}

.thl-dashboard-grid,
.thl-dashboard-left,
.thl-dashboard-right {
    display: block
}

.thl-accordion {
    overflow: hidden;
    margin-bottom: 16px
}

.thl-accordion-title {
    padding: 18px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    justify-content: space-between
}

.thl-accordion-content {
    padding: 0 16px 16px
}

.thl-resource {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    border-top: 1px solid var(--thl-border);
    padding: 14px 0
}

.thl-resource strong {
    display: block;
    font-size: 14px
}

.thl-resource p {
    margin: 4px 0 0;
    color: var(--thl-muted);
    font-size: 13px
}

.thl-resource small {
    font-size: 12px;
    color: var(--thl-muted)
}

.thl-play,
.thl-pdf {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--thl-main);
    color: #fff;
    font-weight: 900;
    font-size: 11px
}

.thl-resource-embed,
.thl-resource-link {
    grid-column: 1/-1;
    margin-top: 12px
}

.thl-video-embed {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #111
}

.thl-video-embed iframe,
.thl-video-embed video,
video.thl-video-embed {
    width: 100%;
    aspect-ratio: 16/9;
    display: block
}

.thl-resource-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    border-radius: 999px;
    background: var(--thl-main);
    color: #fff;
    text-decoration: none;
    font-weight: 800
}

.thl-continue {
    padding: 22px 18px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #141414, #282624);
    color: #fff;
    border-radius: 24px
}

.thl-continue small {
    color: var(--thl-main);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em
}

.thl-continue h2 {
    margin: 12px 0 6px;
    font-size: 25px;
    line-height: 1.08
}

.thl-continue p {
    margin: 0 0 18px;
    color: #ddd
}

.thl-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px
}

.thl-pills span {
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 12px;
    font-weight: 700
}

.thl-button {
    display: block;
    text-align: center;
    background: var(--thl-main);
    color: #fff;
    padding: 15px 18px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 900;
    border: 0
}

.thl-progress-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
    margin-bottom: 18px
}

.thl-progress-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center
}

.thl-progress-circle span {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 13px
}

.thl-progress-card small {
    color: var(--thl-main);
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .06em
}

.thl-progress-card strong {
    display: block;
    font-size: 17px;
    margin-top: 3px
}

.thl-progress-card p {
    margin: 4px 0 0;
    color: var(--thl-muted);
    font-size: 13px
}

.thl-program-head {
    display: flex;
    justify-content: space-between;
    margin: 20px 0 12px
}

.thl-month.active {
    overflow: hidden;
    margin-bottom: 16px
}

.thl-month-title,
.thl-week-title,
.thl-session-row,
.thl-month.locked {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 112px;
    gap: 12px;
    align-items: center;
    padding: 16px
}

.thl-month-title>span,
.thl-week-title>span,
.thl-session-row>span,
.thl-month.locked>span {
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900
}

.thl-month-title>span,
.thl-week-title>span,
.thl-month.locked>span {
    width: 42px;
    height: 42px;
    background: var(--thl-main);
    color: #fff
}

.thl-session-row>span {
    width: 34px;
    height: 34px;
    justify-self: center;
    background: #fff;
    color: #555;
    border: 1px solid #ded9d1;
    font-size: 13px
}

.thl-session-row.completed>span {
    background: #f8f8f7;
    color: #565656;
    border-color: #d8d8d5
}

.thl-month-title p,
.thl-week-title p,
.thl-session-row p,
.thl-month.locked p {
    margin: 3px 0 0;
    color: var(--thl-muted);
    font-size: 13px
}

.thl-session-row strong {
    font-weight: 750
}

.thl-status {
    justify-self: end;
    min-width: 94px;
    text-align: center;
    border-radius: 999px;
    padding: 5px 10px 4px;
    font-size: 9px;
    line-height: 1;
    letter-spacing: .03em;
    font-weight: 900;
    white-space: nowrap
}

.thl-status--completed,
.thl-status--active {
    color: #2f8e4f;
    background: #e8f5ec
}

.thl-status--in-progress {
    color: #e9472b;
    background: #fff0e9
}

.thl-status--pending {
    color: #777;
    background: #ededeb
}

.thl-week {
    background: #fbf7f1;
    margin: 0 12px 14px;
    border-radius: 20px;
    overflow: hidden
}

.thl-week.completed {
    background: #eff9f2
}

.thl-week.current {
    background: #fff8f1
}

.thl-session-row {
    background: #fff;
    margin: 0 10px 10px;
    border-radius: 18px;
    color: #111;
    text-decoration: none
}

.thl-next-title {
    font-size: 13px;
    letter-spacing: .08em;
    color: #111;
    margin: 24px 0 10px
}

.thl-next-notice {
    padding: 15px 16px;
    color: #8b4a2d;
    background: #fff1e8;
    border: 1px solid #ffd4be;
    margin-bottom: 12px;
    font-size: 14px
}

.thl-month.locked {
    margin-bottom: 10px;
    opacity: .65
}

.thl-month.locked>span {
    background: #e9e4dd;
    color: #777
}

@media (max-width: 640px) {
    .thl-month-title,
    .thl-week-title,
    .thl-session-row,
    .thl-month.locked {
        grid-template-columns: 40px minmax(0, 1fr) 82px;
        gap: 10px;
        padding: 14px
    }

    .thl-month-title>span,
    .thl-week-title>span,
    .thl-month.locked>span {
        width: 38px;
        height: 38px
    }

    .thl-session-row>span {
        width: 30px;
        height: 30px;
        font-size: 12px
    }

    .thl-status {
        min-width: 74px;
        padding: 5px 7px 4px;
        font-size: 8px
    }
}


.thl-session-page .thl-app {
    max-width: 390px
}

.thl-session-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    margin-bottom: 22px
}

.thl-session-back,
.thl-session-more {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08)
}

.thl-session-heading {
    text-align: center;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase
}

.thl-session-context {
    color: var(--thl-main);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    margin-bottom: 12px
}

.thl-session-intro h1 {
    font-size: 30px;
    line-height: 1.08;
    margin: 0 0 10px
}

.thl-session-intro p {
    color: var(--thl-muted);
    line-height: 1.5;
    margin: 0 0 18px
}

.thl-session-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 22px
}

.thl-session-stat {
    background: #fff;
    border: 1px solid var(--thl-border);
    border-radius: 16px;
    min-height: 86px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.thl-session-stat span {
    color: var(--thl-main);
    font-size: 18px
}

.thl-session-stat strong {
    display: block;
    font-size: 13px;
    margin-top: 8px
}

.thl-session-stat small {
    color: #867e76;
    font-size: 11px
}

.thl-workout-list {
    display: grid;
    gap: 22px
}

.thl-workout-card.green {
    --block-color: #4a8f35;
    --block-soft: #edf7e9
}

.thl-workout-card.orange {
    --block-color: var(--thl-main);
    --block-soft: #fff0e9
}

.thl-workout-card-head {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px
}

.thl-workout-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--block-color);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900
}

.thl-workout-card-head h2 {
    margin: 0;
    font-size: 15px;
    letter-spacing: .04em
}

.thl-workout-card-head p {
    margin: 2px 0 0;
    color: #777;
    font-size: 12px
}

.thl-workout-card-head b {
    background: var(--block-soft);
    color: var(--block-color);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 9px;
    letter-spacing: .08em
}

.thl-workout-table {
    background: #fff;
    border: 1px solid var(--thl-border);
    border-radius: 18px;
    overflow: hidden
}

.thl-workout-table-head,
.thl-workout-exercise summary {
    display: grid;
    grid-template-columns: 1fr 58px 44px 38px;
    gap: 6px;
    align-items: center
}

.thl-workout-table-head {
    padding: 12px 14px;
    color: #9a9189;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 1px solid var(--thl-border)
}

.thl-workout-exercise summary {
    list-style: none;
    cursor: pointer;
    padding: 14px;
    border-bottom: 1px solid #f0e9e2;
    background: #fff
}

.thl-workout-exercise summary::-webkit-details-marker {
    display: none
}

.thl-exercise-title {
    display: flex;
    align-items: center;
    gap: 9px
}

.thl-exercise-title span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--block-soft);
    color: var(--block-color);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900
}

.thl-workout-exercise summary strong {
    font-size: 14px
}

.thl-workout-exercise summary b {
    font-size: 12px;
    text-align: center
}

.thl-workout-exercise-body {
    padding: 14px;
    background: #fff
}

.thl-video-placeholder {
    aspect-ratio: 16/9;
    background: #333;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 24px
}

.thl-workout-exercise-body h4 {
    color: var(--block-color);
    font-size: 12px;
    letter-spacing: .08em;
    margin: 14px 0 8px
}

.thl-workout-exercise-body p {
    color: #5f5750;
    font-size: 14px;
    line-height: 1.6;
    margin: 0
}

.thl-workout-help {
    margin: 10px 0 0;
    color: #6b625b;
    font-size: 13px;
    line-height: 1.4
}

.thl-complete-form {
    margin: 24px 0 100px
}

.thl-complete-form button {
    width: 100%;
    border: 0;
    border-radius: 16px;
    background: var(--thl-main);
    color: #fff;
    min-height: 58px;
    font-size: 16px;
    font-weight: 900
}

.thl-completed-box {
    margin: 24px 0 14px;
    background: #eaf7ed;
    color: #2c8a45;
    padding: 16px;
    border-radius: 18px;
    font-weight: 900;
    text-align: center
}

.thl-button-light {
    background: #111;
    margin-bottom: 100px
}

.thl-simple-header small {
    display: block;
    color: #9b9188;
    font-weight: 900;
    letter-spacing: .18em;
    font-size: 11px;
    margin-bottom: 10px
}

.thl-simple-header h1 {
    font-size: 34px;
    margin: 0 0 8px
}

.thl-simple-header p {
    color: var(--thl-muted);
    line-height: 1.5
}

.thl-community-card,
.thl-benefit-card,
.thl-benefit-small {
    background: #fff;
    border-radius: 24px;
    box-shadow: var(--thl-shadow);
    padding: 22px
}

.thl-community-card {
    text-align: center
}

.thl-community-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #111;
    color: #fff;
    display: grid;
    place-items: center;
    margin: 0 auto 16px
}

.thl-benefits-grid {
    display: grid;
    gap: 14px
}

.thl-benefit-dark {
    background: #111;
    color: #fff
}

.thl-benefit-card a {
    display: inline-flex;
    margin-top: 14px;
    background: var(--thl-main);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900
}

.thl-benefit-small strong,
.thl-benefit-card strong {
    color: var(--thl-main)
}

@media (min-width:1100px) {
    .thl-campus {
        padding: 56px 48px 140px
    }

    .thl-app {
        max-width: 1180px
    }

    .thl-header {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas: "brand user" "title back" "duration back";
        gap: 8px 40px;
        margin-bottom: 34px
    }

    .thl-logo {
        grid-area: brand;
        background: transparent;
        color: #9b9188;
        padding: 0;
        border-radius: 0;
        font-size: 12px;
        letter-spacing: .18em;
        text-transform: uppercase;
        margin: 0
    }

    .thl-hello {
        grid-area: user;
        margin: 0;
        text-align: right
    }

    .thl-header h1 {
        grid-area: title;
        font-size: 72px;
        line-height: .9;
        margin-top: 18px
    }

    .thl-duration {
        grid-area: duration;
        font-size: 16px
    }

    .thl-back {
        grid-area: back;
        justify-self: end;
        align-self: center;
        margin: 0;
        background: #fff;
        border-radius: 999px;
        padding: 12px 18px;
        box-shadow: 0 12px 28px rgba(20, 20, 20, .06);
        font-weight: 700
    }

    .thl-section-label {
        margin-bottom: 16px
    }

    .thl-dashboard-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.55fr) minmax(340px, .9fr);
        gap: 32px;
        align-items: start
    }

    .thl-dashboard-left,
    .thl-dashboard-right {
        display: flex;
        flex-direction: column;
        gap: 28px;
        min-width: 0
    }

    .thl-dashboard-right {
        position: sticky;
        top: 32px
    }

    .thl-continue {
        min-height: 300px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 36px;
        margin: 0
    }

    .thl-continue h2 {
        font-size: 40px
    }

    .thl-button {
        max-width: 360px
    }

    .thl-progress-card {
        min-height: 260px;
        padding: 36px;
        margin: 0;
        grid-template-columns: 140px 1fr
    }

    .thl-progress-circle {
        width: 116px;
        height: 116px
    }

    .thl-progress-circle span {
        width: 86px;
        height: 86px;
        font-size: 20px
    }

    .thl-progress-card strong {
        font-size: 30px;
        letter-spacing: -.03em
    }

    .thl-accordion {
        margin: 0
    }

    .thl-accordion-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px
    }

    .thl-resource {
        border: 1px solid var(--thl-border);
        border-radius: 18px;
        padding: 14px
    }

    .thl-program-head {
        margin-top: 0
    }

    

    .thl-session-page .thl-app {
        max-width: 1000px
    }

    .thl-session-intro h1 {
        font-size: 48px
    }

    .thl-session-stats {
        max-width: 760px
    }

    .thl-workout-table-head,
    .thl-workout-exercise summary {
        grid-template-columns: 1fr 90px 70px 60px
    }

    .thl-benefits-grid {
        grid-template-columns: 1fr 1fr
    }

    .thl-benefit-dark {
        grid-column: 1/-1
    }
}

/* ======================================================
   RC3 · Dashboard mobile + desktop separated layouts
   Añadir al final de campus.css
====================================================== */

.thl-dashboard-mobile {
    display: block;
}

.thl-dashboard-desktop {
    display: none;
}

@media (min-width: 1100px) {
    .thl-dashboard-mobile {
        display: none;
    }

    .thl-dashboard-desktop {
        display: grid;
        grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
        gap: 28px;
        align-items: start;
    }

    .thl-dashboard-left,
    .thl-dashboard-right {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .thl-dashboard-right {
        position: sticky;
        top: 32px;
    }

    .thl-dashboard-desktop .thl-continue,
    .thl-dashboard-desktop .thl-progress-card,
    .thl-dashboard-desktop .thl-accordion {
        margin: 0;
    }

    .thl-dashboard-desktop .thl-program-head {
        margin-top: 0;
    }

    .thl-dashboard-desktop .thl-progress-card {
        grid-template-columns: 120px 1fr;
        padding: 30px;
    }

    .thl-dashboard-desktop .thl-progress-circle {
        width: 98px;
        height: 98px;
    }

    .thl-dashboard-desktop .thl-progress-circle span {
        width: 74px;
        height: 74px;
        font-size: 18px;
    }

    .thl-dashboard-desktop .thl-continue {
        min-height: 260px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 34px;
    }

    .thl-dashboard-desktop .thl-continue h2 {
        font-size: 36px;
        max-width: 560px;
    }

    .thl-dashboard-desktop .thl-button {
        max-width: 360px;
    }

    .thl-dashboard-desktop .thl-accordion-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .thl-dashboard-desktop .thl-resource {
        border: 1px solid var(--thl-border);
        border-radius: 18px;
        padding: 14px;
    }
}

/* ======================================================
   RC4 · Session premium redesign
   Añadir al final de campus.css
====================================================== */

.thl-session-page {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, .85), transparent 34%),
        linear-gradient(180deg, #f7f3ed 0%, var(--thl-bg) 100%);
}

.thl-session-page .thl-app,
.thl-session-page .thl-session-shell {
    max-width: 430px;
}

.thl-session-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.thl-session-header {
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    align-items: center;
    gap: 10px;
    margin-bottom: 2px;
}

.thl-session-back,
.thl-session-more {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #111;
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(20, 20, 20, .08);
    border: 1px solid rgba(255, 255, 255, .7);
}

.thl-session-heading {
    text-align: center;
    display: grid;
    gap: 3px;
    min-width: 0;
}

.thl-session-heading span {
    color: var(--thl-main);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.thl-session-heading strong {
    color: #111;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thl-session-hero {
    background: #111;
    color: #fff;
    border-radius: 30px;
    padding: 24px;
    box-shadow: 0 22px 55px rgba(20, 20, 20, .18);
    position: relative;
    overflow: hidden;
}

.thl-session-hero:before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--thl-main) 52%, transparent);
    filter: blur(8px);
    opacity: .72;
}

.thl-session-hero-copy,
.thl-session-stats {
    position: relative;
    z-index: 1;
}

.thl-session-eyebrow {
    margin: 0 0 12px;
    color: var(--thl-main);
    font-size: 11px;
    line-height: 1.3;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.thl-session-hero h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: .96;
    letter-spacing: -.045em;
    font-weight: 950;
}

.thl-session-hero-copy > p:not(.thl-session-eyebrow) {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 15px;
    line-height: 1.55;
}

.thl-session-hero .thl-session-stats {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 22px 0 0;
}

.thl-session-hero .thl-session-stat {
    min-height: 74px;
    padding: 13px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-areas: "icon value" "icon label";
    column-gap: 12px;
    align-items: center;
    justify-content: center;
}

.thl-session-hero .thl-session-stat span {
    grid-area: icon;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--thl-main);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 17px;
}

.thl-session-hero .thl-session-stat strong {
    grid-area: value;
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
}

.thl-session-hero .thl-session-stat small {
    grid-area: label;
    color: rgba(255, 255, 255, .6);
    font-size: 11px;
}

.thl-workout-list {
    display: grid;
    gap: 18px;
}

.thl-workout-card {
    background: #fff;
    border: 1px solid rgba(233, 225, 216, .85);
    border-radius: 28px;
    padding: 18px;
    box-shadow: var(--thl-shadow);
    overflow: hidden;
}

.thl-workout-card.green {
    --block-color: #3f8f50;
    --block-soft: #ecf8ef;
}

.thl-workout-card.orange {
    --block-color: var(--thl-main);
    --block-soft: #fff0e9;
}

.thl-workout-card-head {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

.thl-workout-number {
    width: 38px;
    height: 38px;
    border-radius: 15px;
    background: var(--block-color);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 950;
    box-shadow: 0 12px 26px color-mix(in srgb, var(--block-color) 28%, transparent);
}

.thl-workout-card-head h2 {
    margin: 3px 0 0;
    font-size: 18px;
    letter-spacing: -.02em;
    line-height: 1.08;
}

.thl-workout-card-head p {
    margin: 0;
    color: #857b72;
    font-size: 12px;
    font-weight: 800;
}

.thl-workout-card-head b {
    grid-column: 1 / -1;
    justify-self: start;
    background: var(--block-soft);
    color: var(--block-color);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.thl-workout-help {
    margin: 0 0 12px;
    color: #6b625b;
    background: #f8f4ef;
    border: 1px solid var(--thl-border);
    border-radius: 16px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.thl-workout-table {
    background: #fff;
    border: 1px solid var(--thl-border);
    border-radius: 20px;
    overflow: hidden;
}

.thl-workout-table-head,
.thl-workout-exercise summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px 42px 38px;
    gap: 6px;
    align-items: center;
}

.thl-workout-table-head {
    padding: 11px 12px;
    color: #a0968d;
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
    border-bottom: 1px solid var(--thl-border);
    background: #fbf8f4;
}

.thl-workout-exercise summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 12px;
    border-bottom: 1px solid #f0e9e2;
    background: #fff;
}

.thl-workout-exercise:last-child summary {
    border-bottom: 0;
}

.thl-workout-exercise[open] summary {
    background: linear-gradient(180deg, #fff, #fbf8f4);
    border-bottom: 1px solid var(--thl-border);
}

.thl-workout-exercise summary::-webkit-details-marker {
    display: none;
}

.thl-exercise-title {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.thl-exercise-title span {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 10px;
    background: var(--block-soft);
    color: var(--block-color);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 950;
}

.thl-workout-exercise summary strong {
    font-size: 13px;
    line-height: 1.2;
    min-width: 0;
}

.thl-workout-exercise summary b {
    font-size: 12px;
    text-align: center;
    color: #3a352f;
}

.thl-workout-exercise-body {
    padding: 14px;
    background: #fbf8f4;
}

.thl-workout-exercise-body .thl-video-embed,
.thl-video-placeholder {
    aspect-ratio: 16/9;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(20, 20, 20, .1);
}

.thl-video-placeholder {
    background: linear-gradient(135deg, #191919, #34302b);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 28px;
}

.thl-technique-box {
    margin-top: 12px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--thl-border);
    padding: 14px;
}

.thl-workout-exercise-body h4 {
    color: var(--block-color);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.thl-workout-exercise-body p {
    color: #5f5750;
    font-size: 14px;
    line-height: 1.62;
    margin: 0;
}

.thl-session-completion {
    margin-bottom: 100px;
}

.thl-complete-form {
    margin: 6px 0 0;
}

.thl-complete-form button {
    width: 100%;
    border: 0;
    border-radius: 20px;
    background: var(--thl-main);
    color: #fff;
    min-height: 62px;
    font-size: 16px;
    font-weight: 950;
    box-shadow: 0 18px 34px color-mix(in srgb, var(--thl-main) 32%, transparent);
}

.thl-completed-box {
    margin: 6px 0 14px;
    background: #eaf7ed;
    color: #2c8a45;
    padding: 16px;
    border-radius: 18px;
    font-weight: 950;
    text-align: center;
}

.thl-session-not-found {
    padding: 24px;
}

.thl-session-not-found p {
    color: var(--thl-muted);
}

@media (min-width: 720px) {
    .thl-session-page .thl-app,
    .thl-session-page .thl-session-shell {
        max-width: 760px;
    }

    .thl-session-hero .thl-session-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .thl-session-hero .thl-session-stat {
        grid-template-columns: 1fr;
        grid-template-areas: "icon" "value" "label";
        justify-items: start;
        min-height: 104px;
    }

    .thl-workout-card-head {
        grid-template-columns: 44px 1fr auto;
        align-items: center;
    }

    .thl-workout-card-head b {
        grid-column: auto;
        justify-self: end;
    }
}

@media (min-width: 1100px) {
    .thl-session-page {
        padding: 56px 48px 140px;
    }

    .thl-session-page .thl-app,
    .thl-session-page .thl-session-shell {
        max-width: 1080px;
    }

    .thl-session-shell {
        display: grid;
        grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
        gap: 28px;
        align-items: start;
    }

    .thl-session-header {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .thl-session-hero {
        position: sticky;
        top: 32px;
        min-height: 560px;
        padding: 36px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .thl-session-hero h1 {
        font-size: 56px;
        max-width: 460px;
    }

    .thl-session-hero-copy > p:not(.thl-session-eyebrow) {
        font-size: 16px;
    }

    .thl-session-hero .thl-session-stats {
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .thl-session-hero .thl-session-stat {
        grid-template-columns: 42px 1fr;
        grid-template-areas: "icon value" "icon label";
        min-height: 82px;
    }

    .thl-workout-list,
    .thl-session-completion {
        grid-column: 2;
    }

    .thl-workout-card {
        padding: 22px;
        border-radius: 30px;
    }

    .thl-workout-card-head h2 {
        font-size: 21px;
    }

    .thl-workout-table-head,
    .thl-workout-exercise summary {
        grid-template-columns: minmax(0, 1fr) 86px 64px 56px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .thl-session-completion {
        margin-bottom: 60px;
    }
}

/* ======================================================
   RC5 · Premium polish + logo image support
====================================================== */

.thl-logo img {
    display: block;
    max-width: 150px;
    max-height: 42px;
    object-fit: contain;
}

.thl-button,
.thl-resource-link,
.thl-bottom-nav a,
.thl-session-row,
.thl-month.active,
.thl-month.locked,
.thl-next-notice,
.thl-card,
.thl-progress-card,
.thl-session-stat,
.thl-workout-card,
.thl-workout-table,
.thl-complete-form button,
.thl-session-back,
.thl-session-more {
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.thl-card,
.thl-progress-card,
.thl-month.active,
.thl-month.locked,
.thl-next-notice,
.thl-community-card,
.thl-benefit-card,
.thl-benefit-small {
    box-shadow: 0 18px 45px rgba(20, 20, 20, .08);
}

.thl-button,
.thl-complete-form button,
.thl-resource-link {
    cursor: pointer;
}

@media (hover:hover) {
    .thl-button:hover,
    .thl-resource-link:hover,
    .thl-complete-form button:hover {
        transform: translateY(-2px);
        filter: brightness(.96);
        box-shadow: 0 18px 32px color-mix(in srgb, var(--thl-main) 22%, transparent);
    }

    .thl-session-row:hover,
    .thl-resource:hover,
    .thl-session-stat:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 28px rgba(20, 20, 20, .07);
    }

    .thl-month.active:hover,
    .thl-progress-card:hover,
    .thl-continue:hover,
    .thl-workout-table:hover {
        transform: translateY(-3px);
        box-shadow: 0 24px 56px rgba(20, 20, 20, .11);
    }

    .thl-bottom-nav a:hover {
        color: #fff;
        background: rgba(255, 255, 255, .08);
    }

    .thl-bottom-nav a.active:hover {
        background: var(--thl-main);
    }
}

.thl-button:active,
.thl-complete-form button:active,
.thl-resource-link:active,
.thl-bottom-nav a:active {
    transform: scale(.98);
}

.thl-button:focus-visible,
.thl-complete-form button:focus-visible,
.thl-resource-link:focus-visible,
.thl-session-row:focus-visible,
.thl-bottom-nav a:focus-visible,
.thl-session-back:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--thl-main) 40%, #fff);
    outline-offset: 3px;
}

.thl-accordion-title {
    transition: background-color .2s ease;
}

.thl-accordion[open] .thl-accordion-title {
    border-bottom: 1px solid var(--thl-border);
}

.thl-accordion-content {
    animation: thlFadeUp .24s ease both;
}

.thl-workout-exercise[open] .thl-workout-exercise-body {
    animation: thlFadeUp .22s ease both;
}

.thl-completed-box {
    animation: thlCompletePop .28s ease both;
}

@keyframes thlFadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes thlCompletePop {
    0% { opacity: 0; transform: scale(.96); }
    100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .thl-campus *,
    .thl-campus *::before,
    .thl-campus *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (min-width:1100px) {
    .thl-logo img {
        max-width: 210px;
        max-height: 58px;
    }
}


/* ======================================================
   Menú flotante global · Dashboard / Comunidad / Beneficios
   Iconos por CSS-mask para evitar que se pierdan por SVG inline.
====================================================== */

.thl-campus {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.thl-bottom-nav {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 12px;
    z-index: 9999;
    width: min(340px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    min-height: 72px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(17,17,17,.11);
    box-shadow: 0 26px 76px rgba(17,17,17,.20), 0 8px 22px rgba(17,17,17,.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateX(-50%);
    overflow: hidden;
}

.thl-bottom-nav a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 56px;
    padding: 7px 4px 6px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #746d66;
    text-align: center;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.thl-bottom-nav a .thl-nav-icon {
    width: 25px;
    height: 25px;
    display: block;
    flex: 0 0 auto;
    background: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.thl-nav-icon-program {
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http://www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27black%27%20d%3D%27M20.5%209.5H22v5h-1.5V17h-3v-2.5h-11V17h-3v-2.5H2v-5h1.5V7h3v2.5h11V7h3v2.5Zm-3%201.8h-11v1.4h11v-1.4Z%27/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http://www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27black%27%20d%3D%27M20.5%209.5H22v5h-1.5V17h-3v-2.5h-11V17h-3v-2.5H2v-5h1.5V7h3v2.5h11V7h3v2.5Zm-3%201.8h-11v1.4h11v-1.4Z%27/%3E%3C/svg%3E");
}

.thl-nav-icon-community {
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http://www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27black%27%20d%3D%27M9%2012a4%204%200%201%201%200-8a4%204%200%200%201%200%208Zm0%202c-4.4%200-7%202.2-7%205v1h14v-1c0-2.8-2.6-5-7-5Zm7.3-1.7A3.5%203.5%200%200%200%2016%205.4a5.7%205.7%200%200%201%200%206.2c.1.3.2.5.3.7Zm1.2%201.7c-.7%200-1.4.1-2%20.3c1.5%201.1%202.5%202.7%202.5%204.7v1h4v-1c0-2.8-1.8-5-4.5-5Z%27/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http://www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27black%27%20d%3D%27M9%2012a4%204%200%201%201%200-8a4%204%200%200%201%200%208Zm0%202c-4.4%200-7%202.2-7%205v1h14v-1c0-2.8-2.6-5-7-5Zm7.3-1.7A3.5%203.5%200%200%200%2016%205.4a5.7%205.7%200%200%201%200%206.2c.1.3.2.5.3.7Zm1.2%201.7c-.7%200-1.4.1-2%20.3c1.5%201.1%202.5%202.7%202.5%204.7v1h4v-1c0-2.8-1.8-5-4.5-5Z%27/%3E%3C/svg%3E");
}

.thl-nav-icon-benefits {
    mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http://www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27black%27%20d%3D%27M20%207h-2.1A3.4%203.4%200%200%200%2012%203.9A3.4%203.4%200%200%200%206.1%207H4a2%202%200%200%200-2%202v3h3v8a2%202%200%200%200%202%202h10a2%202%200%200%200%202-2v-8h3V9a2%202%200%200%200-2-2Zm-5.4-1.6A1.4%201.4%200%200%201%2017%206.4V7h-4V6.4c.2-.6.7-1%201.6-1Zm-5.2%200c.9%200%201.4.4%201.6%201V7H7v-.6a1.4%201.4%200%200%201%202.4-1ZM4%209h7v2H4V9Zm3%204h4v7H7v-7Zm10%207h-4v-7h4v7Zm3-9h-7V9h7v2Z%27/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http://www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27black%27%20d%3D%27M20%207h-2.1A3.4%203.4%200%200%200%2012%203.9A3.4%203.4%200%200%200%206.1%207H4a2%202%200%200%200-2%202v3h3v8a2%202%200%200%200%202%202h10a2%202%200%200%200%202-2v-8h3V9a2%202%200%200%200-2-2Zm-5.4-1.6A1.4%201.4%200%200%201%2017%206.4V7h-4V6.4c.2-.6.7-1%201.6-1Zm-5.2%200c.9%200%201.4.4%201.6%201V7H7v-.6a1.4%201.4%200%200%201%202.4-1ZM4%209h7v2H4V9Zm3%204h4v7H7v-7Zm10%207h-4v-7h4v7Zm3-9h-7V9h7v2Z%27/%3E%3C/svg%3E");
}

.thl-bottom-nav a b {
    display: block;
    font-size: 9.5px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .025em;
    text-transform: uppercase;
    white-space: nowrap;
}

.thl-bottom-nav a.active {
    background: #111;
    color: #fff;
}

.thl-bottom-nav a.active .thl-nav-icon {
    width: 26px;
    height: 26px;
}

@media (hover:hover) {
    .thl-bottom-nav a:hover {
        transform: translateY(-1px);
        color: #111;
    }

    .thl-bottom-nav a.active:hover {
        color: #fff;
    }
}

@media (max-width:390px) {
    .thl-campus {
        padding-bottom: calc(98px + env(safe-area-inset-bottom));
    }

    .thl-bottom-nav {
        bottom: 8px;
        width: min(326px, calc(100vw - 20px));
        max-width: calc(100vw - 20px);
        min-height: 70px;
        gap: 4px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .thl-bottom-nav a {
        min-height: 54px;
        border-radius: 17px;
    }

    .thl-bottom-nav a .thl-nav-icon {
        width: 24px;
        height: 24px;
    }

    .thl-bottom-nav a.active .thl-nav-icon {
        width: 25px;
        height: 25px;
    }

    .thl-bottom-nav a b {
        font-size: 8.8px;
        letter-spacing: .015em;
    }
}

@media (min-width:1100px) {
    .thl-campus {
        padding-bottom: 112px;
    }

    .thl-bottom-nav {
        bottom: 24px;
        width: min(560px, calc(100vw - 48px));
        min-height: 76px;
        padding: 9px 10px;
        border-radius: 28px;
    }

    .thl-bottom-nav a {
        min-height: 58px;
        border-radius: 22px;
        gap: 6px;
    }

    .thl-bottom-nav a .thl-nav-icon {
        width: 30px;
        height: 30px;
    }

    .thl-bottom-nav a.active .thl-nav-icon {
        width: 32px;
        height: 32px;
    }

    .thl-bottom-nav a b {
        font-size: 12px;
        letter-spacing: .06em;
    }
}


/* Ajuste UI: centrar verticalmente la flecha del acordeón "Cómo usar tu programa" */
.thl-accordion-title {
    align-items: center;
}

.thl-accordion-title span:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

/* ======================================================
   UI hierarchy v2 · Mes / Semana / Sesión
   Final alignment pass
====================================================== */
.thl-month-title,
.thl-week-title,
.thl-session-row,
.thl-month.locked {
    grid-template-columns: 44px minmax(0, 1fr) 128px !important;
    align-items: center !important;
}

.thl-status {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: end !important;
    min-width: 92px !important;
    height: 24px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 9px !important;
    line-height: 1 !important;
    letter-spacing: .035em !important;
    font-weight: 850 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.thl-status--completed,
.thl-status--active {
    color: #2f8e4f !important;
    background: #e8f5ec !important;
}

.thl-status--in-progress {
    color: #e9472b !important;
    background: #fff0e9 !important;
}

.thl-status--pending,
.thl-month.locked .thl-status {
    color: #777 !important;
    background: #ededeb !important;
}

/* Neutralize the last hierarchy level: sessions are details, not primary milestones. */
.thl-session-row > span,
.thl-session-row.completed > span,
.thl-week.completed .thl-session-row > span,
.thl-week.current .thl-session-row > span {
    width: 32px !important;
    height: 32px !important;
    background: #fff !important;
    color: #555 !important;
    border: 1px solid #ddd8d0 !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

.thl-session-row strong {
    font-weight: 700 !important;
}

/* One visual status column, even inside nested week/session cards. */
.thl-week-title .thl-status {
    transform: translateX(24px) !important;
}

.thl-session-row .thl-status {
    transform: translateX(34px) !important;
}

/* Softer state backgrounds so status and hierarchy do not compete with content. */
.thl-week.completed {
    background: #f3fbf5 !important;
}

.thl-week.current {
    background: #fff9f4 !important;
}

.thl-month.active.completed {
    border-color: #dcefe3 !important;
}

@media (max-width: 640px) {
    .thl-month-title,
    .thl-week-title,
    .thl-session-row,
    .thl-month.locked {
        grid-template-columns: 38px minmax(0, 1fr) 92px !important;
        gap: 10px !important;
    }

    .thl-status {
        min-width: 78px !important;
        height: 22px !important;
        padding: 0 7px !important;
        font-size: 8px !important;
    }

    .thl-session-row > span,
    .thl-session-row.completed > span,
    .thl-week.completed .thl-session-row > span,
    .thl-week.current .thl-session-row > span {
        width: 28px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    .thl-week-title .thl-status,
    .thl-session-row .thl-status {
        transform: none !important;
    }
}
