/* ============================================================
   Mis cursos — panel del estudiante y aula (student_session#index, sections#show)
   Salen del lienzo "Rediseño de inscripción CODEX" (Mis cursos · Inicio / Aula).
   Todo cuelga de .mc (inicio) y .cl (aula) para no tocar el resto del panel.
   ============================================================ */

.mc, .cl { color: var(--pc-ink); }
.mc *, .mc *::before, .mc *::after, .cl *, .cl *::before, .cl *::after { box-sizing: border-box; }

.mc-title { display: flex; align-items: baseline; justify-content: space-between; margin: 24px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pc-muted); }

/* Tu próxima clase */
.mc-next { margin: 0 0 4px; padding: 18px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #003366 0%, #4b3a9e 100%); }
.mc-next-name { margin: 12px 0 0; font-size: 14px; font-weight: 600; opacity: 0.9; }
.mc-next-time { margin: 2px 0 12px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.mc-meta { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; font-weight: 600; }
.mc-meta li { display: flex; align-items: center; gap: 10px; }
.mc-meta i { flex: none; width: 20px; text-align: center; opacity: 0.85; }

/* Esta semana */
.mc-week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.mc-day { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 68px; padding: 8px 0 6px; background: #fff; border: 1px solid var(--pc-line); border-radius: 12px; }
.mc-day b { font-size: 12px; font-weight: 800; color: var(--pc-muted); }
.mc-day span { font-size: 16px; font-weight: 800; }
.mc-pips { display: flex; gap: 3px; min-height: 8px; margin-top: 2px; }
.mc-pip { width: 7px; height: 7px; border-radius: 50%; background: var(--pc-cyan); }
.mc-pip.purple { background: var(--pc-purple); }
.mc-pip.amber { background: #f59e0b; }
.mc-day.today { border-color: var(--pc-cyan); box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.16); }
.mc-day.today b { color: var(--pc-ink); }

/* Mis cursos */
.mc-courses { display: flex; flex-direction: column; gap: 10px; }
.mc-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; background: #fff; border: 1px solid var(--pc-line); border-radius: 18px; color: var(--pc-ink); text-align: left; text-decoration: none; font-family: inherit; }
.mc-row:hover { color: var(--pc-ink); border-color: var(--pc-cyan); }
.mc-row:focus-visible { outline: 3px solid rgba(0, 188, 212, 0.45); outline-offset: 2px; }
.mc-row.shut { background: transparent; border-style: dashed; cursor: pointer; }
.mc-row-body { min-width: 0; }
.mc-row h3 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.25; }
.mc-row p { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--pc-muted); }
.mc-go { margin-left: auto; flex: none; color: var(--pc-muted); }

/* Aula cerrada: se explica en una ventana */
.mc-modal { padding: 24px; border: 0; border-radius: 24px; text-align: center; }
.mc-lock { display: grid; place-items: center; width: 84px; height: 84px; margin: 4px auto 14px; border-radius: 50%; background: #e5e9ef; color: var(--pc-muted); box-shadow: 0 0 0 8px rgba(82, 98, 122, 0.1); font-size: 34px; }
.mc-modal h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--pc-ink); }
.mc-modal > p { margin: 0 0 18px; font-size: 15px; line-height: 1.5; color: var(--pc-muted); }

@media (min-width: 992px) {
  .mc-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: end; }
  .mc-next .mc-meta { flex-direction: row; gap: 24px; margin: 0; }
  .pl-content .mc-next .pc-cta { width: auto; padding: 0 28px; grid-row: 1 / span 4; grid-column: 2; align-self: end; }
  .mc-next-time { font-size: 34px; }
}

/* ============================================================
   Aula del estudiante (sections#show). El contenedor lleva .cl, que define las
   variables de color de arriba.
   ============================================================ */
.cl-hdr { margin-bottom: 14px; padding: 18px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #003366 0%, #4b3a9e 100%); }
.cl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-hdr h1 { margin: 10px 0 2px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: #fff; }
.cl-sub { margin: 0; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.cl-when { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.cl-when i { color: #fcd34d; }
.cl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.cl-fact { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; line-height: 1.25; }
.cl-fact small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.cl-fact-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.16); }

.cl-resume { margin-bottom: 14px; padding: 16px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #00838f 0%, #6b46c1 100%); }
.cl-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fcd34d; }
.cl-resume h2 { margin: 4px 0 2px; font-size: 17px; font-weight: 800; line-height: 1.25; color: #fff; }
.cl-resume p { margin: 0; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.cl-bar { height: 8px; margin: 12px 0 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.cl-bar i { display: block; height: 100%; border-radius: 4px; background: #fcd34d; }

/* Pestañas Clases | Foros: fijas bajo la barra superior al hacer scroll */
.cl-tabs { position: sticky; top: 62px; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 12px; padding: 4px; list-style: none; background: #e3e8ef; border-radius: 14px; }
.cl-tabs li { min-width: 0; }
.cl-tab { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 8px; border: 0; border-radius: 11px; background: transparent; color: var(--pc-muted); font: 800 14px 'Montserrat', system-ui, sans-serif; cursor: pointer; }
.cl-tab.on, .cl-tab.active { background: #fff; color: var(--pc-ink); box-shadow: 0 1px 3px rgba(0, 51, 102, 0.14); }
.cl-tab:focus-visible { outline: 3px solid rgba(0, 188, 212, 0.45); outline-offset: 2px; }
.cl-tab small { font-size: 12px; font-weight: 600; color: var(--pc-muted); }
