/* ======================================================
   Campus THL PRO · Dashboard FINAL
   Archivo completo para reemplazar assets/css/dashboard.css
====================================================== */

.thl-dashboard-app {
    --thl-success: #2f9c55;
    --thl-success-soft: #eaf7ed;
    --thl-active-soft: #fcf8f2;
    --thl-active-border: #f0e5d5;
    --thl-tree-line: #ebe5dc;
}

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

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

/* ======================================================
   Acordeón / Cómo usar tu programa
====================================================== */

.thl-accordion {
    overflow: hidden;
    margin-bottom: 16px;
    transition: box-shadow var(--thl-transition), transform var(--thl-transition);
}

.thl-accordion-title {
    padding: 18px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    list-style: none;
}

.thl-accordion-title::-webkit-details-marker { display: none; }

.thl-accordion-title span:first-child {
    display: block;
    min-width: 0;
}

.thl-accordion-title span:last-child {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    background: transparent;
    border: 0;
    color: transparent;
    position: relative;
    display: grid;
    place-items: center;
    transform: none;
    transition: transform .22s ease, opacity .22s ease;
    opacity: .9;
}

.thl-accordion-title span:last-child::before {
    content: "";
    width: 11px;
    height: 11px;
    border-right: 2.4px solid #111;
    border-bottom: 2.4px solid #111;
    transform: rotate(45deg) translate(-2px, -2px);
    transform-origin: center;
    display: block;
}

.thl-accordion[open] .thl-accordion-title span:last-child {
    transform: rotate(180deg);
    opacity: 1;
}

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

/* ======================================================
   Recursos dentro del acordeón
====================================================== */

.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-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;
}

/* ======================================================
   Tarjeta continuar
====================================================== */

.thl-continue {
    padding: 22px 18px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #141414, #282624);
    color: #fff;
    border-radius: 24px;
    box-shadow: 0 22px 54px rgba(0,0,0,.16);
    transition: transform var(--thl-transition), box-shadow var(--thl-transition);
}

.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;
    letter-spacing: -.035em;
}

.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; }

/* ======================================================
   Tarjeta progreso
====================================================== */

.thl-progress-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
    margin-bottom: 18px;
    background: var(--thl-card);
    border-radius: var(--thl-radius-lg);
    box-shadow: var(--thl-shadow);
    border: 1px solid rgba(17, 17, 17, .045);
    transition: transform var(--thl-transition), box-shadow var(--thl-transition);
}

.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; }

/* ======================================================
   Cabecera Tu programa
====================================================== */

.thl-program-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 22px 0 16px;
}

.thl-program-head strong {
    color: #111;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
}

.thl-program-head span {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    display: none;
}

/* ======================================================
   Árbol programa: Mes → Semana → Sesión
====================================================== */

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

.thl-month.active {
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
}

.thl-month-title,
.thl-week-title,
.thl-session-row,
.thl-month.locked {
    display: grid;
    grid-template-columns: 44px 1fr 132px;
    gap: 14px;
    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;
    background: var(--thl-main);
    color: #fff;
    font-weight: 900;
}

.thl-month-title > span,
.thl-month.locked > span {
    width: 42px;
    height: 42px;
    font-size: 18px;
}

.thl-week-title > span {
    width: 38px;
    height: 38px;
    font-size: 16px;
}

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

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

.thl-month-title b,
.thl-week-title b,
.thl-session-row b {
    display: block;
    width: 132px;
    text-align: right;
    white-space: nowrap;
    font-size: 12px;
    color: var(--thl-main);
    font-weight: 900;
    letter-spacing: .04em;
}

.thl-week {
    position: relative;
    background: var(--thl-active-soft);
    border: 1px solid var(--thl-active-border);
    margin: 18px 18px 18px 42px;
    padding: 2px;
    border-radius: 20px;
    overflow: hidden;
}

.thl-week::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    background: var(--thl-tree-line);
    border-radius: 2px;
}

.thl-week-title { padding-bottom: 18px; }

.thl-session-row {
    background: #fff;
    margin: 14px 14px 14px 24px;
    border-radius: 16px;
    min-height: 78px;
    color: #111;
    text-decoration: none;
    transition: transform var(--thl-transition), box-shadow var(--thl-transition), border-color var(--thl-transition);
    border: 1px solid transparent;
}

.thl-week-title strong,
.thl-session-row strong { letter-spacing: .01em; }

/* Estados completados */
.thl-month.completed,
.thl-month.active.completed {
    border: 1px solid rgba(47, 156, 85, .18);
}

.thl-month.completed > .thl-month-title > span,
.thl-week.completed > .thl-week-title > span,
.thl-session-row.completed > span {
    background: var(--thl-success);
    color: #fff;
}

.thl-month.completed > .thl-month-title > b,
.thl-week.completed > .thl-week-title > b,
.thl-session-row.completed > b,
.thl-month-title b.done,
.thl-week-title b.done,
.thl-session-row b.done {
    color: var(--thl-success);
}

.thl-week.completed {
    background: var(--thl-success-soft);
    border-color: rgba(47, 156, 85, .18);
}

.thl-week.completed .thl-session-row.completed {
    border-color: rgba(47, 156, 85, .14);
}

/* Próximos meses / bloqueados */
.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;
    box-shadow: none;
}

.thl-month.locked { margin-bottom: 10px; opacity: .65; }
.thl-month.locked > span { background: #e9e4dd; color: #777; }

/* ======================================================
   Header programa
====================================================== */

.thl-header .thl-program-title {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.thl-header .thl-program-title em {
    font-style: normal;
    font-size: clamp(16px, .42em, 30px);
    line-height: 1;
    font-weight: 850;
    letter-spacing: .08em;
    color: #5f5750;
    text-transform: uppercase;
}

.thl-header .thl-duration { display: none; }


/* ======================================================
   Mobile · Árbol compacto y legible
   Evita que los estados ocupen una columna fija en móvil.
====================================================== */

@media (max-width:1099px) {
    .thl-month-title,
    .thl-week-title,
    .thl-session-row {
        position: relative;
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .thl-month-title > div,
    .thl-week-title > div,
    .thl-session-row > div {
        min-width: 0;
    }

    .thl-month-title > div,
    .thl-week-title > div {
        padding-right: 92px;
    }

    .thl-session-row > div {
        padding-right: 78px;
    }

    .thl-month-title b,
    .thl-week-title b,
    .thl-session-row b {
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: auto;
        max-width: 86px;
        text-align: right;
        font-size: 10px;
        line-height: 1.1;
        letter-spacing: .035em;
        white-space: nowrap;
    }

    .thl-month-title b {
        right: 16px;
    }

    .thl-week-title b {
        right: 16px;
    }

    .thl-session-row b {
        right: 14px;
        max-width: 78px;
    }

    .thl-week {
        margin: 16px 12px 16px 28px;
        padding: 2px;
        border-radius: 18px;
    }

    .thl-week::before {
        left: -14px;
        top: 22px;
        bottom: 22px;
    }

    .thl-session-row {
        margin: 12px 10px 12px 18px;
        min-height: 76px;
        border-radius: 15px;
    }

    .thl-month-title > span,
    .thl-month.locked > span {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .thl-week-title > span {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

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

@media (max-width:390px) {
    .thl-month-title > div,
    .thl-week-title > div {
        padding-right: 80px;
    }

    .thl-session-row > div {
        padding-right: 68px;
    }

    .thl-month-title b,
    .thl-week-title b,
    .thl-session-row b {
        font-size: 9px;
        max-width: 74px;
    }

    .thl-week {
        margin-left: 22px;
        margin-right: 10px;
    }

    .thl-session-row {
        margin-left: 14px;
        margin-right: 8px;
    }
}

/* ======================================================
   Interacciones
====================================================== */

@media (hover:hover) {
    .thl-continue:hover,
    .thl-progress-card:hover { transform: translateY(-4px); box-shadow: var(--thl-shadow-hover); }
    .thl-session-row:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(20,20,20,.08); border-color: color-mix(in srgb, var(--thl-main) 20%, transparent); }
    .thl-accordion-title:hover span:last-child { opacity: 1; }
}

/* ======================================================
   Desktop
====================================================== */

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

    .thl-dashboard-desktop {
        display: grid;
        grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
        grid-template-areas:
            "continue progress"
            "program-head ."
            "program resources";
        column-gap: 28px;
        row-gap: 0;
        align-items: start;
    }

    .thl-dashboard-continue { grid-area: continue; min-width: 0; }
    .thl-dashboard-progress {
        grid-area: progress;
        min-width: 0;
        align-self: center;
    }
    .thl-dashboard-program-head { grid-area: program-head; min-width: 0; }
    .thl-dashboard-program { grid-area: program; min-width: 0; }
    .thl-dashboard-resources { grid-area: resources; min-width: 0; }

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

    .thl-dashboard-desktop .thl-continue {
        min-height: 298px;
    }

    .thl-dashboard-desktop .thl-continue {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 42px 44px;
        margin-bottom: 28px;
    }

    .thl-dashboard-desktop .thl-progress-card {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 32px;
        padding: 30px;
        margin-bottom: 28px;
        border-radius: 24px;
    }

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

    .thl-dashboard-desktop .thl-program-list .thl-program-head {
        display: none;
    }

    .thl-dashboard-desktop .thl-progress-card > div:last-child {
        min-width: 0;
        max-width: none;
    }

    .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-progress-card strong {
        max-width: 100%;
        font-size: 30px;
        line-height: 1.22;
        letter-spacing: -.035em;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }

    .thl-dashboard-desktop .thl-progress-card p {
        max-width: 100%;
        white-space: normal;
    }

    .thl-dashboard-desktop .thl-continue h2 {
        font-size: 36px;
        max-width: 560px;
        margin: 14px 0 14px;
        line-height: 1.05;
    }

    .thl-dashboard-desktop .thl-continue p { margin-bottom: 22px; }
    .thl-dashboard-desktop .thl-pills { margin-bottom: 26px; }

    .thl-dashboard-desktop .thl-continue .thl-button {
        width: 100%;
        max-width: 450px;
    }

    .thl-dashboard-desktop .thl-accordion-title span:last-child {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .thl-dashboard-desktop .thl-accordion-title span:last-child::before {
        width: 12px;
        height: 12px;
        border-width: 2.5px;
    }

    .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;
    }

    .thl-month-title,
    .thl-week-title,
    .thl-session-row {
        grid-template-columns: 48px 1fr 150px;
    }

    .thl-month-title b,
    .thl-week-title b,
    .thl-session-row b {
        width: 150px;
        font-size: 13px;
    }

    .thl-week {
        margin: 24px 24px 24px 54px;
        padding: 4px;
    }

    .thl-week::before { left: -22px; }
    .thl-session-row { margin: 16px 16px 16px 30px; }

    .thl-header {
        grid-template-areas: "brand user" "title back";
    }

    .thl-header .thl-program-title { gap: 18px; }

    .thl-header .thl-program-title em {
        font-size: 28px;
        letter-spacing: .1em;
    }
}

@media (min-width:1280px) {
    .thl-dashboard-desktop .thl-progress-card {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 36px;
        padding: 34px;
    }

    .thl-dashboard-desktop .thl-progress-card strong {
        font-size: 32px;
        line-height: 1.18;
    }
}

@media (min-width:1440px) {
    .thl-dashboard-desktop {
        column-gap: 30px;
    }
}


/* ======================================================
   Continuidad: años futuros / bloqueados
====================================================== */

.thl-future-years {
    margin-top: 22px;
}

.thl-future-years-head {
    margin-bottom: 14px;
}

.thl-future-years-head strong {
    display: block;
    color: #111;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
}

.thl-future-years-head p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--thl-muted);
    font-size: 13px;
    line-height: 1.5;
}

.thl-future-years-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.thl-year-card {
    position: relative;
    min-height: 168px;
    border-radius: 20px;
    padding: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, #171614, #22201d);
    color: #fff;
    box-shadow: 0 20px 44px rgba(17,17,17,.14);
}

.thl-year-card::after {
    content: attr(data-year);
    position: absolute;
    right: -8px;
    bottom: -32px;
    font-size: 118px;
    line-height: 1;
    font-weight: 950;
    color: rgba(255,255,255,.035);
    letter-spacing: -.08em;
    pointer-events: none;
}

.thl-year-lock {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(255,255,255,.12);
    display: grid;
    place-items: center;
    position: relative;
}

.thl-year-lock::before {
    content: "";
    width: 12px;
    height: 9px;
    border: 2px solid rgba(255,255,255,.72);
    border-radius: 3px;
    transform: translateY(3px);
}

.thl-year-lock::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 9px;
    border: 2px solid rgba(255,255,255,.72);
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    top: 9px;
}

.thl-year-card strong {
    display: block;
    font-size: 21px;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.thl-year-card p {
    margin: 4px 0 0;
    color: rgba(255,255,255,.62);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}

.thl-year-card b {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
}

.thl-year-card.is-unlocked {
    background: linear-gradient(135deg, #173f27, #2f9c55);
}

.thl-year-card.is-unlocked .thl-year-lock::before {
    width: 13px;
    height: 7px;
    border: 0;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    border-radius: 0;
    transform: rotate(-45deg);
}

.thl-year-card.is-unlocked .thl-year-lock::after {
    display: none;
}

.thl-year-card.is-unlocked b {
    background: rgba(255,255,255,.18);
    color: #fff;
}

@media (max-width:390px) {
    .thl-future-years-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width:1100px) {
    .thl-dashboard-desktop .thl-future-years {
        margin-top: 28px;
    }

    .thl-dashboard-desktop .thl-future-years-grid {
        max-width: 720px;
        gap: 14px;
    }

    .thl-dashboard-desktop .thl-year-card {
        min-height: 184px;
        padding: 22px;
        border-radius: 22px;
    }
}

/* Ajuste UI: flecha del acordeón centrada respecto al texto en desktop y móvil */
.thl-accordion-title {
    align-items: center;
}

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

.thl-accordion-title span:last-child::before,
.thl-dashboard-desktop .thl-accordion-title span:last-child::before {
    transform: rotate(45deg);
    margin-top: -3px;
}

/* ======================================================
   Sprint UI-01 · Jerarquía real Mes / Semana / Sesión
   Aplicado en dashboard.css porque este archivo se carga después de campus.css.
====================================================== */

.thl-month-title,
.thl-week-title,
.thl-session-row,
.thl-month.locked {
    grid-template-columns: 44px minmax(0, 1fr) 132px !important;
    align-items: center !important;
}

.thl-week {
    overflow: visible !important;
}

.thl-month-title .thl-status,
.thl-week-title .thl-status,
.thl-session-row .thl-status,
.thl-month-title > b,
.thl-week-title > b,
.thl-session-row > b {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: end !important;
    width: auto !important;
    min-width: 88px !important;
    height: 23px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 8.5px !important;
    line-height: 1 !important;
    letter-spacing: .035em !important;
    font-weight: 850 !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    transform: none !important;
}

.thl-status--completed,
.thl-status--active,
.thl-month.completed > .thl-month-title > b,
.thl-week.completed > .thl-week-title > b,
.thl-session-row.completed > b,
.thl-month-title b.done,
.thl-week-title b.done,
.thl-session-row b.done {
    color: #2f8e4f !important;
    background: #e9f5ed !important;
}

.thl-status--in-progress,
.thl-week.current > .thl-week-title > b {
    color: #e9472b !important;
    background: #fff0e9 !important;
}

.thl-status--pending,
.thl-month.locked .thl-status,
.thl-month.locked > b,
.thl-session-row:not(.completed) > b {
    color: #777 !important;
    background: #ededeb !important;
}

.thl-week-title .thl-status,
.thl-week-title > b {
    transform: translateX(20px) !important;
}

.thl-session-row .thl-status,
.thl-session-row > b {
    transform: translateX(34px) !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: 30px !important;
    height: 30px !important;
    background: #fff !important;
    color: #585858 !important;
    border: 1px solid #ddd8d0 !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

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

.thl-week.completed {
    background: #f3fbf5 !important;
    border-color: rgba(47, 156, 85, .15) !important;
}

.thl-week.current {
    background: #fff9f4 !important;
    border-color: rgba(233, 71, 43, .14) !important;
}

.thl-week.completed .thl-session-row.completed,
.thl-session-row.completed {
    border-color: rgba(17,17,17,.045) !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-month-title .thl-status,
    .thl-week-title .thl-status,
    .thl-session-row .thl-status,
    .thl-month-title > b,
    .thl-week-title > b,
    .thl-session-row > b {
        min-width: 74px !important;
        height: 21px !important;
        padding: 0 7px !important;
        font-size: 7.5px !important;
    }

    .thl-week-title .thl-status,
    .thl-week-title > b,
    .thl-session-row .thl-status,
    .thl-session-row > b {
        transform: none !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;
    }
}

/* ======================================================
   Sprint UI-01 · V4 ajuste real de columna de estados
   Evita desplazamientos fuera de tarjeta y neutraliza reglas móviles antiguas.
====================================================== */

.thl-month-title,
.thl-week-title,
.thl-session-row,
.thl-month.locked {
    grid-template-columns: 44px minmax(0, 1fr) 108px !important;
    column-gap: 14px !important;
    align-items: center !important;
}

.thl-month-title .thl-status,
.thl-week-title .thl-status,
.thl-session-row .thl-status,
.thl-month-title > b,
.thl-week-title > b,
.thl-session-row > b,
.thl-month.locked .thl-status,
.thl-month.locked > b {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    justify-self: end !important;
    align-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    height: 22px !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    border-radius: 999px !important;
    font-size: 8px !important;
    line-height: 1 !important;
    letter-spacing: .03em !important;
    font-weight: 850 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.thl-session-row > span,
.thl-session-row.completed > span,
.thl-week.completed .thl-session-row > span,
.thl-week.current .thl-session-row > span,
.thl-session-row:not(.completed) > span {
    background: #fff !important;
    color: #555 !important;
    border: 1px solid #ddd8d0 !important;
    box-shadow: none !important;
}

.thl-session-row {
    overflow: hidden !important;
}

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

    .thl-month-title > div,
    .thl-week-title > div,
    .thl-session-row > div {
        padding-right: 0 !important;
        min-width: 0 !important;
    }

    .thl-month-title .thl-status,
    .thl-week-title .thl-status,
    .thl-session-row .thl-status,
    .thl-month-title > b,
    .thl-week-title > b,
    .thl-session-row > b,
    .thl-month.locked .thl-status,
    .thl-month.locked > b {
        position: static !important;
        transform: none !important;
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        height: 20px !important;
        padding: 0 6px !important;
        font-size: 7px !important;
        justify-self: end !important;
    }

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

/* ======================================================
   Sprint UI-01 · V5 columna real de estados
   Alinea Mes / Semana / Sesión en una única columna visual.
====================================================== */
.thl-month-title,
.thl-week-title,
.thl-session-row,
.thl-month.locked {
    position: relative !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    align-items: center !important;
}

.thl-month-title,
.thl-month.locked {
    padding-right: 156px !important;
}

.thl-week-title {
    padding-right: 138px !important;
}

.thl-session-row {
    padding-right: 122px !important;
}

.thl-month-title .thl-status,
.thl-week-title .thl-status,
.thl-session-row .thl-status,
.thl-month-title > b,
.thl-week-title > b,
.thl-session-row > b,
.thl-month.locked .thl-status,
.thl-month.locked > b {
    position: absolute !important;
    top: 50% !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    height: 22px !important;
    padding: 0 8px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 999px !important;
    font-size: 8px !important;
    line-height: 1 !important;
    letter-spacing: .03em !important;
    font-weight: 850 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

.thl-month-title .thl-status,
.thl-month-title > b,
.thl-month.locked .thl-status,
.thl-month.locked > b {
    right: 48px !important;
}

.thl-week-title .thl-status,
.thl-week-title > b {
    right: 30px !important;
}

.thl-session-row .thl-status,
.thl-session-row > b {
    right: 16px !important;
}

.thl-month-title > div,
.thl-week-title > div,
.thl-session-row > div,
.thl-month.locked > div {
    min-width: 0 !important;
    padding-right: 0 !important;
}

.thl-session-row > span,
.thl-session-row.completed > span,
.thl-week.completed .thl-session-row > span,
.thl-week.current .thl-session-row > span,
.thl-session-row:not(.completed) > span {
    width: 30px !important;
    height: 30px !important;
    background: #fff !important;
    color: #555 !important;
    border: 1px solid #ddd8d0 !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

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

    .thl-month-title,
    .thl-month.locked {
        padding-right: 112px !important;
    }

    .thl-week-title {
        padding-right: 100px !important;
    }

    .thl-session-row {
        padding-right: 88px !important;
    }

    .thl-month-title .thl-status,
    .thl-month-title > b,
    .thl-month.locked .thl-status,
    .thl-month.locked > b {
        right: 34px !important;
    }

    .thl-week-title .thl-status,
    .thl-week-title > b {
        right: 22px !important;
    }

    .thl-session-row .thl-status,
    .thl-session-row > b {
        right: 12px !important;
    }

    .thl-month-title .thl-status,
    .thl-week-title .thl-status,
    .thl-session-row .thl-status,
    .thl-month-title > b,
    .thl-week-title > b,
    .thl-session-row > b,
    .thl-month.locked .thl-status,
    .thl-month.locked > b {
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        height: 20px !important;
        padding: 0 6px !important;
        font-size: 7px !important;
    }

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

@media (max-width: 390px) {
    .thl-month-title,
    .thl-month.locked {
        padding-right: 102px !important;
    }

    .thl-week-title {
        padding-right: 92px !important;
    }

    .thl-session-row {
        padding-right: 82px !important;
    }

    .thl-month-title .thl-status,
    .thl-month-title > b,
    .thl-month.locked .thl-status,
    .thl-month.locked > b {
        right: 28px !important;
    }

    .thl-week-title .thl-status,
    .thl-week-title > b {
        right: 18px !important;
    }

    .thl-session-row .thl-status,
    .thl-session-row > b {
        right: 8px !important;
    }
}


/* Ocultar temporalmente contador Mes X de X */
.thl-program-header-progress,
.thl-dashboard-program-progress,
.thl-program-progress {display:none !important;}

/* ======================================================
   Dashboard · Usuario en cabecera
   Sustituye el logo del curso por avatar + saludo del usuario.
====================================================== */

.thl-dashboard-user {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0 0 20px;
}

.thl-dashboard-avatar {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    overflow: hidden;
    background: #f3f0eb;
    border: 1px solid rgba(20, 20, 20, .08);
    box-shadow: 0 10px 24px rgba(20, 20, 20, .06);
}

.thl-dashboard-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thl-dashboard-greeting {
    display: block;
    color: var(--thl-muted);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    white-space: nowrap;
}

@media (min-width:1100px) {
    .thl-dashboard-app .thl-header {
        grid-template-areas:
            "brand back"
            "title back"
            "duration back";
    }

    .thl-dashboard-app .thl-dashboard-user {
        grid-area: brand;
        margin: 0;
        align-self: center;
        justify-self: start;
    }

    .thl-dashboard-app .thl-back {
        grid-area: back;
        justify-self: end;
    }
}

@media (max-width:1099px) {
    .thl-dashboard-user {
        margin-bottom: 16px;
    }

    .thl-dashboard-avatar {
        width: 44px;
        height: 44px;
    }

    .thl-dashboard-greeting {
        font-size: 13px;
    }
}
