/* ============ "MIS CLASES DE HOY" (vista agregada por fecha) ============ */
/* Ver src/client/components/TodayClassesView.tsx. En escritorio ocupa el
   mismo espacio (main + panel derecho) que .mob-stage/.lib-view; en móvil
   real es la pantalla de arranque (ver App.tsx/getInitialView). */
.today-view {
  grid-column: 2 / 4;
  background: transparent;
  overflow-y: auto;
  padding: 28px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
}

.today-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.today-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.today-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--fg);
}
.today-today-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
  color: var(--accent);
  transition: all 0.15s;
}
.today-today-btn:hover { border-color: var(--accent); }

.today-date-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  width: fit-content;
}
.today-date-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--fg-dim);
  transition: all 0.15s;
}
.today-date-arrow:hover { background: var(--bg-hover); color: var(--fg); }
.today-date-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 130px;
}
.today-date-relative {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}
.today-date-full {
  font-size: 12px;
  color: var(--fg-muted);
}

.today-loading,
.today-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--fg-muted);
  font-size: 14px;
}

.today-class-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.today-class-card {
  display: flex;
  align-items: stretch;
  gap: 10px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.15s;
}
.today-class-card:hover { border-color: var(--line-strong); }

.today-class-order {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px;
  background: var(--bg-hover);
  border-right: 1px solid var(--line);
  flex-shrink: 0;
}
.today-order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  border-radius: var(--radius-sm);
  color: var(--fg-dim);
  transition: all 0.15s;
}
.today-order-btn:hover:not(:disabled) { background: var(--bg-panel); color: var(--fg); }
.today-order-btn:disabled { opacity: 0.25; cursor: default; }

.today-class-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  text-align: left;
  min-width: 0;
}

.today-class-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.today-class-group-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
}
.today-class-group-meta {
  font-size: 12px;
  color: var(--fg-muted);
}

.today-class-session-title {
  font-size: 14px;
  color: var(--fg-dim);
  font-weight: 600;
}
.today-class-session-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 2px;
}
.today-class-session-stats svg { flex-shrink: 0; }
.today-class-session-sep { opacity: 0.5; }

.today-class-none {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
}

.today-class-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* -------- Responsive: pantalla estrecha de escritorio -------- */
@media (max-width: 1279px) {
  .today-view { grid-column: 2; }
}

/* -------- Responsive: móvil real (<768px) — pantalla de arranque -------- */
@media (max-width: 767px) {
  .today-view {
    grid-column: auto;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 20px 16px 32px;
    max-width: none;
  }
  .today-title { font-size: 22px; }
  .today-class-body { padding: 14px 14px; }
}
