/* ═══════════════════════════════════════════════════════════
   CREYAN — Pages Extended Stylesheet
   Login · Panel Alumno · Catálogo · Curso Detalle
   ═══════════════════════════════════════════════════════════ */

/* ── AUTH PAGE ──────────────────────────────────────────── */
.auth-body {
  overflow: auto;
  display: block;
}

.auth-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Brand panel */
.auth-brand {
  width: 420px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.auth-brand-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ab-grad {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #06041a 0%, #1a0840 40%, #0d052a 100%);
}

.ab-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.ab-spot--1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(109,40,217,0.3) 0%, transparent 70%);
  top: -80px; left: -80px;
}
.ab-spot--2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(212,160,23,0.18) 0%, transparent 70%);
  bottom: 60px; right: -40px;
}

.ab-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 36px 36px;
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ab-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-3);
  transition: color var(--t-fast);
  margin-bottom: 32px;
}
.ab-back:hover { color: var(--text-2); }

.ab-logo-wrap {
  text-align: center;
  margin-bottom: 24px;
}
.ab-logo {
  width: 100px;
  filter: drop-shadow(0 6px 24px rgba(212,160,23,0.5));
  animation: float 4s ease-in-out infinite;
}

.ab-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: 10px;
  text-align: center;
}
.ab-title em {
  display: block;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  background: linear-gradient(90deg, var(--gold-pale), var(--gold-base));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ab-subtitle {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.6;
  margin-bottom: 24px;
}

.ab-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}

.ab-stat { text-align: center; flex: 1; }
.ab-stat strong { display: block; font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700; color: var(--gold-light); }
.ab-stat span { font-size: 0.62rem; color: var(--text-3); }

.ab-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.ab-testimonial {
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: auto;
}

.ab-testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
  flex-shrink: 0;
}

.ab-testimonial-body p {
  font-size: 0.72rem;
  color: var(--text-2);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 4px;
}
.ab-testimonial-body span {
  font-size: 0.62rem;
  color: var(--text-3);
}

.ab-mic-art {
  position: absolute;
  bottom: -20px;
  right: -20px;
  opacity: 0.12;
  pointer-events: none;
}
.ab-mic-art svg { width: 180px; }

/* Form panel */
.auth-form-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg-surface);
  overflow-y: auto;
}

.auth-form-inner {
  width: 100%;
  max-width: 460px;
}

/* Tabs */
.auth-tabs {
  display: flex;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 10px;
  border-radius: calc(var(--radius-xl) - 2px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-3);
  transition: all var(--t-med);
  font-family: inherit;
  position: relative;
  z-index: 1;
}

.auth-tab.active {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  color: #fff;
  box-shadow: 0 2px 12px rgba(109,40,217,0.4);
}

.auth-tab:not(.active):hover { color: var(--text-2); }

/* Form welcome */
.form-welcome { margin-bottom: 20px; }
.form-welcome h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}
.form-welcome p { font-size: 0.78rem; color: var(--text-3); }

/* Form groups */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  font-size: 1rem;
  color: var(--text-3);
  pointer-events: none;
  z-index: 1;
}

.form-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px 10px 36px;
  font: inherit;
  font-size: 0.82rem;
  color: var(--text-1);
  transition: all var(--t-fast);
  outline: none;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus {
  border-color: var(--purple-600);
  box-shadow: 0 0 0 3px rgba(109,40,217,0.15);
  background: var(--bg-card2);
}

.input-toggle-eye {
  position: absolute;
  right: 10px;
  color: var(--text-3);
  font-size: 1rem;
  padding: 4px;
  transition: color var(--t-fast);
}
.input-toggle-eye:hover { color: var(--text-2); }

/* Form misc */
.form-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.check-input { position: absolute; opacity: 0; pointer-events: none; }

.check-mark {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-hi);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.check-input:checked + .check-mark {
  background: var(--purple-600);
  border-color: var(--purple-600);
}
.check-input:checked + .check-mark::after {
  content: '✓';
  font-size: 0.65rem;
  color: #fff;
}

.check-label { font-size: 0.75rem; color: var(--text-2); }

.form-link { font-size: 0.72rem; color: var(--purple-400); font-weight: 500; }
.form-link:hover { color: var(--purple-300); }

.btn-auth {
  width: 100%;
  justify-content: center;
  padding: 11px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-divider span { font-size: 0.72rem; color: var(--text-3); white-space: nowrap; }

/* Google btn */
.btn-social {
  width: 100%;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 10px;
  margin-bottom: 20px;
  gap: 10px;
  transition: all var(--t-fast);
}
.btn-social:hover { background: var(--bg-hover); border-color: var(--border-md); }

.auth-switch-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-3);
}

.auth-switch-btn {
  color: var(--purple-400);
  font-weight: 600;
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t-fast);
}
.auth-switch-btn:hover { color: var(--purple-300); }

.auth-form { display: none; }
.auth-form.active { display: block; }

/* Form register extras */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.role-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.role-opt input { position: absolute; opacity: 0; pointer-events: none; }

.role-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.7rem;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
}
.role-card i { font-size: 1.3rem; }
.role-opt input:checked + .role-card {
  border-color: var(--purple-500);
  background: rgba(109,40,217,0.1);
  color: var(--purple-300);
}
.role-card:hover { border-color: var(--border-hi); }

/* Password strength */
.password-strength { margin: 10px 0; }
.pw-bars { display: flex; gap: 4px; margin-bottom: 4px; }
.pw-bar {
  flex: 1; height: 3px;
  background: var(--bg-hover);
  border-radius: 2px;
  transition: background var(--t-med);
}
.pw-label { font-size: 0.62rem; color: var(--text-3); }

.mt-8 { margin-top: 8px; }

/* Auth security note */
.auth-security {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--text-3);
  margin-top: 24px;
}
.auth-security i { color: var(--green); font-size: 0.9rem; }

/* ── WELCOME BANNER (Panel Alumno) ──────────────────────── */
.welcome-banner {
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  flex-shrink: 0;
}

.wb-bg {
  position: absolute; inset: 0;
  pointer-events: none;
}
.wb-grad {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #080828, #1a0a4a 60%, #07072a);
}
.wb-spot {
  position: absolute;
  top: -60px; right: 200px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.12) 0%, transparent 70%);
  filter: blur(40px);
}

.wb-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.wb-left { flex: 1; min-width: 280px; }

.wb-greeting {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 6px;
}
.wb-sun { color: var(--gold-base); font-size: 1rem; }

.wb-name {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}
.wb-name em {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  background: linear-gradient(90deg, var(--gold-pale), var(--gold-base));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wb-msg { font-size: 0.8rem; color: var(--text-2); margin-bottom: 16px; }
.wb-msg strong { color: var(--text-1); }

.wb-quick-actions { display: flex; gap: 10px; }

.wb-stats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wb-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 90px;
  text-align: center;
}

.wb-stat-ic { font-size: 1.2rem; }
.wb-stat strong {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}
.wb-stat span { font-size: 0.6rem; color: var(--text-3); }

/* ── MY COURSES GRID ────────────────────────────────────── */
.my-courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t-med);
}
.mc-card:hover {
  border-color: var(--border-md);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.mc-card--active { border-color: rgba(109,40,217,0.3); }

.mc-thumb {
  height: 120px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-thumb-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--mc-color), color-mix(in srgb, var(--mc-color) 50%, #000));
}

.mc-thumb-emoji {
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
  opacity: 0.85;
}

.mc-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  z-index: 2;
}
.mc-badge--active { background: rgba(109,40,217,0.85); color: #fff; }
.mc-badge--done { background: rgba(16,185,129,0.85); color: #fff; }

.mc-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.mc-category { font-size: 0.6rem; font-weight: 600; color: var(--purple-400); text-transform: uppercase; letter-spacing: 0.08em; }
.mc-title { font-size: 0.82rem; font-weight: 700; color: var(--text-1); line-height: 1.3; }

.mc-instructor { display: flex; align-items: center; gap: 6px; }
.mc-instructor-av {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem; font-weight: 700;
}
.mc-instructor span { font-size: 0.65rem; color: var(--text-3); }

.mc-progress-wrap { display: flex; align-items: center; gap: 8px; }
.mc-progress-bar {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.mc-progress-fill {
  height: 100%;
  width: var(--prog);
  background: linear-gradient(90deg, var(--purple-600), var(--purple-400));
  border-radius: 3px;
  transition: width 1s var(--ease);
}
.mc-progress-bar--done .mc-progress-fill { background: linear-gradient(90deg, var(--green), #34d399); }
.mc-progress-pct { font-size: 0.65rem; color: var(--text-3); white-space: nowrap; }
.mc-progress-pct.done { color: var(--green); }

.mc-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-meta span { font-size: 0.62rem; color: var(--text-3); display: flex; align-items: center; gap: 3px; }
.mc-meta i { font-size: 0.75rem; }

.mc-btn { margin-top: auto; }

/* Explore card */
.mc-card--explore {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
  background: var(--bg-surface);
  border: 2px dashed var(--border-md);
}
.mc-explore-icon i { font-size: 2.5rem; color: var(--purple-500); }
.mc-card--explore h3 { font-size: 0.85rem; font-weight: 700; color: var(--text-2); }
.mc-card--explore p { font-size: 0.72rem; color: var(--text-3); }

/* ── PANEL MID SECTION ──────────────────────────────────── */
.panel-mid-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pa-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Sessions */
.sessions-list { display: flex; flex-direction: column; gap: 8px; }

.session-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  transition: all var(--t-fast);
}
.session-item:hover { border-color: var(--border-md); }

.session-item--today {
  border-color: rgba(109,40,217,0.3);
  background: rgba(109,40,217,0.06);
}

.session-date { flex-shrink: 0; text-align: center; min-width: 44px; }
.sd-day { display: block; font-size: 0.62rem; font-weight: 700; color: var(--purple-400); text-transform: uppercase; }
.sd-time { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text-1); }

.session-info { flex: 1; min-width: 0; }
.session-badge { display: inline-block; font-size: 0.55rem; padding: 2px 6px; background: rgba(16,185,129,0.15); color: var(--green); border-radius: 99px; margin-bottom: 2px; }
.session-title { font-size: 0.75rem; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.session-course { font-size: 0.62rem; color: var(--text-3); }

.session-join-btn { flex-shrink: 0; }

/* Evaluations */
.evals-list { display: flex; flex-direction: column; gap: 8px; }

.eval-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.eval-item--urgent { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.04); }
.eval-item--done { opacity: 0.7; }

.eval-icon { font-size: 1.3rem; color: var(--eic); flex-shrink: 0; }
.eval-info { flex: 1; min-width: 0; }
.eval-urgent-badge { font-size: 0.58rem; font-weight: 700; color: var(--red); background: rgba(239,68,68,0.12); padding: 1px 6px; border-radius: 99px; display: inline-block; margin-bottom: 2px; }
.eval-title { font-size: 0.75rem; font-weight: 600; display: block; margin-bottom: 4px; }
.eval-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.eval-meta span { font-size: 0.6rem; color: var(--text-3); display: flex; align-items: center; gap: 3px; }
.eval-score { font-size: 0.65rem; color: var(--text-2); }
.eval-pass { font-size: 0.62rem; color: var(--green); font-weight: 600; }

/* ── BOTTOM SECTION ─────────────────────────────────────── */
.panel-bottom-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Certificados */
.cert-card {
  background: var(--bg-surface);
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 10px;
}

.cert-visual {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.cert-logo { flex-shrink: 0; }
.cert-logo-img { width: 52px; filter: drop-shadow(0 4px 12px rgba(212,160,23,0.4)); }

.cert-org { display: block; font-size: 0.6rem; color: var(--text-3); margin-bottom: 4px; }
.cert-course-name { font-size: 0.82rem; font-weight: 700; color: var(--text-1); margin-bottom: 4px; }
.cert-student { font-size: 0.68rem; color: var(--text-2); margin-bottom: 2px; }
.cert-date { font-size: 0.68rem; color: var(--text-2); margin-bottom: 8px; }

.cert-code {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62rem;
  background: rgba(16,185,129,0.1);
  color: var(--green);
  border: 1px solid rgba(16,185,129,0.2);
  padding: 3px 8px;
  border-radius: 99px;
}

.cert-actions { display: flex; gap: 8px; }

/* Certificado bloqueado */
.cert-locked {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  opacity: 0.7;
}

.cert-locked-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--text-3);
  flex-shrink: 0;
}

.cert-locked-info { flex: 1; min-width: 0; }
.cert-locked-info h4 { font-size: 0.75rem; font-weight: 600; margin-bottom: 4px; }
.cert-locked-info p { font-size: 0.62rem; color: var(--text-3); margin-bottom: 6px; }

.cert-locked-bar { height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.cert-locked-fill { height: 100%; background: linear-gradient(90deg, var(--purple-600), var(--purple-400)); border-radius: 2px; }

.cert-locked-pct { font-size: 0.7rem; font-weight: 700; color: var(--purple-400); flex-shrink: 0; }

/* Payments */
.payments-list { display: flex; flex-direction: column; gap: 8px; }

.payment-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}
.payment-item--ok { border-color: rgba(16,185,129,0.15); }

.pay-ic { font-size: 1.2rem; color: var(--green); flex-shrink: 0; }
.pay-ic--free { color: var(--gold-base); }
.pay-info { flex: 1; min-width: 0; }
.pay-title { font-size: 0.72rem; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-date { font-size: 0.6rem; color: var(--text-3); }
.pay-amount { text-align: right; flex-shrink: 0; }
.pay-val { display: block; font-size: 0.8rem; font-weight: 700; }
.pay-free { color: var(--green); }
.pay-status { display: block; font-size: 0.58rem; font-weight: 600; margin-top: 2px; }
.pay-ok { color: var(--green); }

.btn-xs { padding: 4px 8px; font-size: 0.68rem; }

/* ── RIGHT PANEL EXTRAS ─────────────────────────────────── */
.rp-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.rpp-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  border: 2px solid var(--purple-500);
  flex-shrink: 0;
}

.rpp-info { flex: 1; min-width: 0; }
.rpp-name { font-size: 0.82rem; font-weight: 700; }
.rpp-plan { font-size: 0.62rem; color: var(--purple-400); font-weight: 600; display: block; }
.rpp-since { font-size: 0.6rem; color: var(--text-3); display: flex; align-items: center; gap: 3px; margin-top: 2px; }

.rpp-edit { flex-shrink: 0; }

/* Global progress */
.global-progress { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.gp-ring-wrap { flex-shrink: 0; }
.gp-ring { width: 90px; height: 90px; }
.gp-stats { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.gp-stat { display: flex; justify-content: space-between; font-size: 0.65rem; }
.gp-stat span { color: var(--text-3); }
.gp-stat strong { color: var(--text-1); }

/* Achievements */
.achievements-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }

.achievement {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  cursor: help;
}

.ach-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all var(--t-fast);
}

.achievement--unlocked .ach-icon {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-mid));
  color: var(--gold-pale);
  box-shadow: 0 2px 8px rgba(212,160,23,0.3);
}
.achievement--locked .ach-icon {
  background: var(--bg-hover);
  color: var(--text-3);
}
.achievement span { font-size: 0.55rem; color: var(--text-3); }

/* Unread notification */
.notif-unread {
  background: rgba(109,40,217,0.06);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--purple-500);
  padding-left: 6px;
}

/* ── CATALOG HERO ───────────────────────────────────────── */
.catalog-main { overflow-x: hidden; }

.catalog-hero {
  position: relative;
  padding: 28px 22px;
  overflow: hidden;
  flex-shrink: 0;
}
.ch-bg { position: absolute; inset: 0; pointer-events: none; }
.ch-grad {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #07071a, #1a0840 60%, #07071a);
}
.ch-spot {
  position: absolute;
  top: -60px; right: 80px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.12) 0%, transparent 70%);
  filter: blur(50px);
}
.ch-content { position: relative; z-index: 1; }
.ch-title {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}
.ch-title em {
  font-style: italic;
  font-family: 'Playfair Display', serif;
  background: linear-gradient(90deg, var(--gold-pale), var(--gold-base));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ch-sub { font-size: 0.82rem; color: var(--text-2); margin-bottom: 16px; }
.ch-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.ch-stats span { font-size: 0.72rem; color: var(--text-3); display: flex; align-items: center; gap: 5px; }
.ch-stats strong { color: var(--text-1); }
.ch-stats i { color: var(--gold-base); }

/* Category tabs */
.catalog-tabs-wrap {
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
}
.catalog-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 0;
  min-width: max-content;
}
.cat-tab {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  transition: all var(--t-fast);
  font-family: inherit;
  white-space: nowrap;
}
.cat-tab:hover { color: var(--text-2); background: var(--bg-hover); }
.cat-tab.active {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
  color: #fff;
}

/* Catalog body */
.catalog-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Filter sidebar */
.filter-sidebar {
  width: 220px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-header h3 { font-size: 0.88rem; font-weight: 700; }
.filter-clear { font-size: 0.68rem; color: var(--purple-400); font-family: inherit; }
.filter-clear:hover { color: var(--purple-300); }

.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-2);
  cursor: pointer;
}
.filter-check input { accent-color: var(--purple-600); }
.filter-check:hover { color: var(--text-1); }

.stars { color: var(--gold-base); }

.filter-promo {
  background: linear-gradient(135deg, rgba(109,40,217,0.15), rgba(236,72,153,0.1));
  border: 1px solid rgba(109,40,217,0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}

.fp-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 99px;
  width: fit-content;
}
.filter-promo h4 { font-size: 0.8rem; font-weight: 700; }
.filter-promo p { font-size: 0.65rem; color: var(--text-3); }
.fp-price { display: flex; align-items: center; gap: 8px; }
.fp-current { font-size: 0.9rem; font-weight: 700; color: var(--gold-light); }
.fp-old { font-size: 0.7rem; color: var(--text-3); text-decoration: line-through; }

/* Course grid */
.course-grid-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cg-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cg-count { font-size: 0.75rem; color: var(--text-3); }
.cg-count strong { color: var(--text-1); }

.cg-sort { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--text-3); margin-left: auto; }
.cg-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  font: inherit;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  outline: none;
}

.cg-view-toggle { display: flex; gap: 4px; }
.cg-view-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: var(--text-3);
  transition: all var(--t-fast);
  background: var(--bg-surface);
}
.cg-view-btn.active, .cg-view-btn:hover {
  background: var(--purple-700);
  color: #fff;
  border-color: var(--purple-600);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* Course card */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t-med);
}
.course-card:hover {
  border-color: var(--border-md);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.cc-thumb {
  height: 130px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cc-thumb::before {
  content: '';
  position: absolute; inset: 0;
}
.cc-thumb--purple::before { background: linear-gradient(135deg, #3b0764, #2d1b69); }
.cc-thumb--teal::before { background: linear-gradient(135deg, #064e3b, #065f46); }
.cc-thumb--blue::before { background: linear-gradient(135deg, #1e3a8a, #1e40af); }
.cc-thumb--orange::before { background: linear-gradient(135deg, #7c2d12, #9a3412); }
.cc-thumb--magenta::before { background: linear-gradient(135deg, #831843, #9d174d); }
.cc-thumb--gold::before { background: linear-gradient(135deg, #78350f, #92400e); }

.cc-thumb-emoji { font-size: 3rem; position: relative; z-index: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }

.cc-badges { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.cc-badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}
.cc-badge--hot { background: rgba(239,68,68,0.9); color: #fff; }
.cc-badge--new { background: rgba(16,185,129,0.9); color: #fff; }
.cc-badge--free { background: rgba(212,160,23,0.9); color: #1a0a00; }

.cc-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }

.cc-cats { display: flex; align-items: center; gap: 6px; }
.cc-cat { font-size: 0.6rem; font-weight: 600; color: var(--purple-400); text-transform: uppercase; letter-spacing: 0.06em; }
.cc-level {
  font-size: 0.58rem;
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 600;
}
.cc-level--bas { background: rgba(16,185,129,0.15); color: var(--green); }
.cc-level--mid { background: rgba(245,158,11,0.15); color: var(--gold-base); }
.cc-level--adv { background: rgba(239,68,68,0.15); color: var(--red); }

.cc-title { font-size: 0.82rem; font-weight: 700; color: var(--text-1); line-height: 1.3; }
.cc-desc { font-size: 0.68rem; color: var(--text-3); line-height: 1.5; }

.cc-instructor { display: flex; align-items: center; gap: 6px; }
.cc-inst-av {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem; font-weight: 700;
}
.cc-instructor span { font-size: 0.65rem; color: var(--text-3); }

.cc-rating { display: flex; align-items: center; gap: 4px; }
.cc-stars { color: var(--gold-base); font-size: 0.7rem; }
.cc-rating strong { font-size: 0.72rem; color: var(--text-1); }
.cc-reviews { font-size: 0.62rem; color: var(--text-3); }

.cc-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cc-meta-row span { font-size: 0.6rem; color: var(--text-3); display: flex; align-items: center; gap: 3px; }
.cc-meta-row i { font-size: 0.72rem; }

.cc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.cc-price-val { font-size: 1rem; font-weight: 700; color: var(--text-1); }
.cc-price-free { font-size: 0.9rem; font-weight: 700; color: var(--green); }

.catalog-load-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
}
.clm-count { font-size: 0.68rem; color: var(--text-3); }

.btn-lg { padding: 11px 24px; font-size: 0.85rem; }

/* ── LMS (CURSO DETALLE) ─────────────────────────────────── */
.lms-main { overflow: hidden; }

.top-bar--lms { gap: 8px; }

.lms-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-3);
  overflow: hidden;
}
.lms-breadcrumb a { color: var(--purple-400); }
.lms-breadcrumb a:hover { color: var(--purple-300); }
.lms-breadcrumb i { font-size: 0.7rem; flex-shrink: 0; }
.bc-current { color: var(--text-1); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lms-progress-mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.6rem;
  color: var(--text-3);
  min-width: 100px;
}
.lpm-bar { height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.lpm-fill { height: 100%; background: linear-gradient(90deg, var(--purple-600), var(--purple-400)); border-radius: 2px; }

/* LMS Layout */
.lms-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.lms-content-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Video player */
.lms-player {
  background: #000;
  flex-shrink: 0;
}

.lms-player-inner { position: relative; padding-bottom: 56.25%; }

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vp-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #0a0020 0%, #1a0840 50%, #000820 100%);
}

.vp-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.vp-play-btn {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 0 40px rgba(109,40,217,0.5);
  transition: all var(--t-med);
}
.vp-play-btn:hover { transform: scale(1.1); box-shadow: 0 0 60px rgba(109,40,217,0.7); }

.vp-lesson-info { text-align: center; }
.vp-module { display: block; font-size: 0.65rem; color: var(--purple-400); margin-bottom: 4px; }
.vp-title { font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700; color: var(--text-1); }

.vp-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9), transparent);
  padding: 20px 16px 12px;
}

.vp-progress-wrap { margin-bottom: 8px; }
.vp-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 4px;
}
.vp-progress-fill {
  height: 100%;
  background: var(--purple-500);
  border-radius: 2px;
}
.vp-time { display: flex; justify-content: space-between; font-size: 0.62rem; color: var(--text-2); }

.vp-btns { display: flex; align-items: center; gap: 4px; }
.vp-spacer { flex: 1; }
.vp-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
  font-size: 0.75rem;
  font-family: inherit;
}
.vp-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.vp-btn--play { font-size: 1rem; }

/* Lesson nav */
.lms-lesson-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

/* Content tabs */
.lms-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
  background: var(--bg-surface);
}

.lms-tab {
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--t-fast);
  font-family: inherit;
}
.lms-tab.active { color: var(--purple-400); border-bottom-color: var(--purple-500); }
.lms-tab:hover:not(.active) { color: var(--text-2); }

.lms-tab-content { display: none; padding: 20px 18px; }
.lms-tab-content.active { display: block; }

/* Lesson desc */
.lesson-desc h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 10px; }
.lesson-desc p { font-size: 0.78rem; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }

.lesson-points { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.lesson-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-2);
}
.lesson-points i { color: var(--green); flex-shrink: 0; }

.lesson-instructor-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.lic-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  flex-shrink: 0;
}
.lic-info { flex: 1; }
.lic-info h4 { font-size: 0.82rem; font-weight: 700; margin-bottom: 2px; }
.lic-info p { font-size: 0.65rem; color: var(--text-3); line-height: 1.4; }

/* Resources */
.resources-list h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 12px; }
.resource-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 8px;
}
.res-ic { font-size: 1.3rem; color: var(--ric); }
.res-info { flex: 1; }
.res-info h4 { font-size: 0.75rem; font-weight: 600; }
.res-info span { font-size: 0.62rem; color: var(--text-3); }

/* Task panel */
.task-panel h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; }
.task-panel p { font-size: 0.75rem; color: var(--text-2); margin-bottom: 14px; line-height: 1.6; }

.task-upload-zone {
  border: 2px dashed var(--border-md);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: border-color var(--t-fast);
}
.task-upload-zone:hover { border-color: var(--purple-600); }
.task-upload-ic { font-size: 2rem; color: var(--text-3); }
.task-upload-zone p { font-size: 0.75rem; color: var(--text-3); margin: 0; }
.task-formats { font-size: 0.62rem; color: var(--text-3); }

.task-status { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--text-2); margin-bottom: 12px; }

/* Comments */
.comments-section h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 14px; }
.comment-form { display: flex; gap: 10px; margin-bottom: 20px; }
.cf-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.cf-input-wrap { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cf-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.78rem;
  color: var(--text-1);
  resize: vertical;
  min-height: 70px;
  outline: none;
  transition: border-color var(--t-fast);
}
.cf-input::placeholder { color: var(--text-3); }
.cf-input:focus { border-color: var(--purple-600); }

.comments-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item { display: flex; gap: 10px; }
.cm-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
  flex-shrink: 0;
}
.cm-avatar--instructor { background: linear-gradient(135deg, var(--purple-700), var(--purple-500)); }
.cm-body { flex: 1; }
.cm-header { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; flex-wrap: wrap; }
.cm-header strong { font-size: 0.75rem; }
.cm-badge { font-size: 0.55rem; background: rgba(109,40,217,0.2); color: var(--purple-400); padding: 1px 6px; border-radius: 99px; }
.cm-time { font-size: 0.6rem; color: var(--text-3); }
.cm-body p { font-size: 0.72rem; color: var(--text-2); line-height: 1.5; margin-bottom: 4px; }
.cm-reply-btn { font-size: 0.65rem; color: var(--purple-400); display: flex; align-items: center; gap: 3px; font-family: inherit; }
.comment-reply { padding-left: 20px; }

/* Notes */
.notes-panel h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 12px; }
.notes-count { font-size: 0.7rem; color: var(--text-3); }
.note-compose { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }

.notes-list { display: flex; flex-direction: column; gap: 8px; }
.note-item {
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.note-timestamp {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--purple-400);
  background: rgba(109,40,217,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  height: fit-content;
  white-space: nowrap;
  flex-shrink: 0;
}
.note-item p { font-size: 0.72rem; color: var(--text-2); line-height: 1.5; margin: 0; }

/* LMS Modules sidebar */
.lms-modules-sidebar {
  width: 300px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
}

.lms-course-info {
  padding: 14px;
  border-bottom: 1px solid var(--border);
}
.lms-course-title { font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }
.lms-course-progress { display: flex; flex-direction: column; gap: 4px; }
.lcp-bar { height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.lcp-fill { height: 100%; background: linear-gradient(90deg, var(--purple-600), var(--purple-400)); border-radius: 3px; }
.lms-course-progress span { font-size: 0.62rem; color: var(--text-3); }

.modules-list { flex: 1; overflow-y: auto; }

/* Module item */
.module-item { border-bottom: 1px solid var(--border); }

.module-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.module-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  transition: background var(--t-fast);
}
.module-toggle:hover .module-hd,
.module-item .module-hd:hover { background: var(--bg-hover); }

.module-done-ic { font-size: 1.1rem; color: var(--green); flex-shrink: 0; }
.module-locked-ic { font-size: 1.1rem; color: var(--text-3); flex-shrink: 0; }

.module-info { flex: 1; min-width: 0; }
.module-label { display: block; font-size: 0.6rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; }
.module-title { font-size: 0.75rem; font-weight: 600; color: var(--text-1); }

.module-meta { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.module-meta span { font-size: 0.62rem; color: var(--text-3); }
.module-arrow { font-size: 0.8rem; color: var(--text-3); transition: transform var(--t-fast); }

.module-lessons { overflow: hidden; }
.module-lessons.collapsed { display: none; }

/* Module active */
.module-item--active .module-hd { background: rgba(109,40,217,0.08); }
.module-item--active .module-label { color: var(--purple-400); }
.module-item--locked { opacity: 0.5; pointer-events: none; }

.module-progress-ring-mini {
  position: relative;
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.module-progress-ring-mini svg { width: 28px; height: 28px; }
.module-progress-ring-mini span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--purple-400);
}

/* Lesson items */
.lesson-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 24px;
  cursor: pointer;
  transition: background var(--t-fast);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.lesson-item:hover { background: var(--bg-hover); }

.li-ic { font-size: 0.9rem; flex-shrink: 0; }
.lesson-item--done .li-ic { color: var(--green); }
.lesson-item--locked { opacity: 0.4; cursor: not-allowed; }
.li-ic-locked { font-size: 0.8rem; color: var(--text-3); }

.li-play-ic { font-size: 1rem; color: var(--purple-400); flex-shrink: 0; animation: pulse-ring 2s infinite; }

.lesson-item--current { background: rgba(109,40,217,0.1); }
.lesson-item--current:hover { background: rgba(109,40,217,0.15); }

.li-info { flex: 1; min-width: 0; }
.li-title { display: block; font-size: 0.72rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-title--current { color: var(--purple-300); font-weight: 600; }
.li-meta { display: block; font-size: 0.6rem; color: var(--text-3); margin-top: 2px; display: flex; align-items: center; gap: 3px; }

/* Next class */
.lms-next-class {
  border-top: 1px solid var(--border);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(109,40,217,0.04);
}
.lnc-header { display: flex; align-items: flex-start; gap: 10px; }
.lnc-ic { font-size: 1.2rem; color: var(--purple-400); flex-shrink: 0; margin-top: 2px; }
.lnc-label { display: block; font-size: 0.6rem; color: var(--text-3); margin-bottom: 2px; }
.lnc-title { font-size: 0.75rem; font-weight: 600; }
.lnc-date { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: var(--text-2); }

/* Shared small button */
.btn-sm { padding: 7px 14px; font-size: 0.75rem; }
.search-wrap--lg { max-width: 500px; }

/* ── PERFIL EDICIÓN ──────────────────────────────────────── */
.profile-edit-wrap {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.pe-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 140px;
}

.pe-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
}

.pe-avatar-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-800));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Cinzel, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  border: 3px solid var(--border);
  overflow: hidden;
}

.pe-avatar-change {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-500);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 0.85rem;
  transition: background var(--t-fast);
  border: 2px solid var(--bg-card);
}
.pe-avatar-change:hover { background: var(--purple-400); }

.pe-avatar-hint {
  font-size: 0.67rem;
  color: var(--text-3);
  text-align: center;
  max-width: 130px;
  line-height: 1.5;
}

.pe-form-col {
  flex: 1;
  min-width: 280px;
}

.pe-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.pe-form-row--3 { grid-template-columns: 1fr 1fr 1fr; }

.pe-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pe-field--full { grid-column: 1 / -1; }

.pe-field label {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.pe-field input,
.pe-field textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text-1);
  font-size: 0.82rem;
  font-family: Poppins, sans-serif;
  resize: none;
  transition: border-color var(--t-fast);
}
.pe-field input:focus,
.pe-field textarea:focus {
  outline: none;
  border-color: var(--purple-400);
}
.pe-field input::placeholder,
.pe-field textarea::placeholder { color: var(--text-3); }

.pe-password-section {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.pe-password-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: Poppins, sans-serif;
  padding: 4px 0;
  width: 100%;
}
.pe-password-toggle:hover { color: var(--text-1); }
.pe-password-toggle i:first-child { color: var(--purple-400); font-size: 1.05rem; }
.pe-password-toggle #pe-pw-caret { margin-left: auto; transition: transform 0.3s ease; }

.pe-pw-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── RESPONSIVE EXTRAS ───────────────────────────────────── */
@media (max-width: 1200px) {
  .my-courses-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-mid-section,
  .panel-bottom-section { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .auth-brand { display: none; }
  .auth-wrapper { justify-content: center; }
  .auth-form-panel { padding: 24px 16px; }
  .lms-modules-sidebar { width: 260px; }
  .filter-sidebar { display: none; }
}

@media (max-width: 768px) {
  .auth-form-inner { max-width: 100%; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .my-courses-grid { grid-template-columns: 1fr; }
  .lms-modules-sidebar { display: none; }
  .course-grid { grid-template-columns: 1fr; }
  .wb-stats { display: none; }
  .catalog-body { flex-direction: column; }
  .pe-form-row,
  .pe-form-row--3 { grid-template-columns: 1fr; }
  .profile-edit-wrap { padding: 20px; gap: 24px; }
}
