/* ═══════════════════════════════════════════════════════════
   LECCION VISOR PREMIUM — Coursera / NetAcad Enterprise
   Light theme, world-class LMS experience
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Layout ── */
.lv-body { background: #f8fafc !important; color: #0f172a !important; }
.lv-body #mc-main-navbar { display: none !important; }
.lv-body .footer-top, .lv-body .footer-bottom, .lv-body .mc-dashboard-submenu { display: none !important; }

/* ── Top Navigation Bar ── */
.lv-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #ffffff; height: 56px;
  border-bottom: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.lv-topbar-left { display: flex; align-items: center; gap: 1rem; }
.lv-topbar-back {
  display: flex; align-items: center; gap: 0.5rem;
  color: #475569; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; padding: 0.4rem 0.8rem;
  border-radius: 8px; transition: all 0.2s;
}
.lv-topbar-back:hover { background: #f1f5f9; color: #0f172a; text-decoration: none; }
.lv-topbar-title {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  font-weight: 700; font-size: 0.88rem; color: #0f172a;
  max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lv-topbar-divider { width: 1px; height: 24px; background: #e2e8f0; }
.lv-topbar-right { display: flex; align-items: center; gap: 1rem; }

/* Progress in topbar */
.lv-progress-wrap { display: flex; align-items: center; gap: 0.6rem; }
.lv-progress-text { font-size: 0.72rem; color: #94a3b8; font-weight: 600; white-space: nowrap; }
.lv-progress-bar { width: 120px; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.lv-progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #0ea5e9, #06b6d4); transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.lv-progress-pct { font-size: 0.72rem; font-weight: 800; color: #0ea5e9; }

/* Mark complete button */
.lv-btn-complete {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem; border-radius: 8px;
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  border: 2px solid #e2e8f0; background: #fff; color: #64748b;
  transition: all 0.25s ease;
}
.lv-btn-complete:hover { border-color: #0ea5e9; color: #0ea5e9; background: #f0f9ff; }
.lv-btn-complete.done { border-color: #10b981; background: #ecfdf5; color: #059669; }
.lv-btn-complete.done:hover { background: #d1fae5; }

/* ── Main Layout ── */
.lv-layout { display: flex; margin-top: 56px; min-height: calc(100vh - 56px); }
.lv-main { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.lv-sidebar {
  width: 360px; background: #ffffff; border-left: 1px solid #e2e8f0;
  overflow-y: auto; display: flex; flex-direction: column; flex-shrink: 0;
}

/* ── Content Area ── */
.lv-content { padding: 2rem 3rem; max-width: 960px; margin: 0 auto; width: 100%; }

/* Lesson Header */
.lv-lesson-header { margin-bottom: 1.5rem; }
.lv-lesson-breadcrumb {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; color: #94a3b8; font-weight: 600; margin-bottom: 0.6rem;
}
.lv-lesson-breadcrumb a { color: #0ea5e9; text-decoration: none; }
.lv-lesson-breadcrumb a:hover { text-decoration: underline; }
.lv-lesson-title {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  font-weight: 900; font-size: 1.6rem; color: #0f172a;
  line-height: 1.3; margin-bottom: 0.5rem;
}
.lv-lesson-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.lv-lesson-meta-item {
  display: flex; align-items: center; gap: 0.3rem;
  font-size: 0.75rem; color: #64748b; font-weight: 500;
}
.lv-lesson-meta-item i { font-size: 0.7rem; }
.lv-badge-tipo {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 2px 10px; border-radius: 20px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px;
}
.lv-badge-video { background: #fef2f2; color: #dc2626; }
.lv-badge-pdf { background: #eff6ff; color: #2563eb; }
.lv-badge-text { background: #ecfdf5; color: #059669; }

/* Video Player */
.lv-player-wrap {
  background: #0f172a; border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  margin-bottom: 2rem; position: relative;
}
.lv-player-aspect { position: relative; padding-bottom: 56.25%; height: 0; }
.lv-player-aspect iframe, .lv-player-aspect embed {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}
.lv-player-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 400px; color: #64748b; gap: 1rem;
}
.lv-player-placeholder i { font-size: 3.5rem; opacity: 0.4; }
.lv-player-placeholder p { font-size: 0.9rem; font-weight: 600; }

/* Content Description Card */
.lv-desc-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 1.8rem; margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.lv-desc-title {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  font-weight: 800; font-size: 1rem; color: #0f172a;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.lv-desc-title i { color: #0ea5e9; }
.lv-desc-body { color: #475569; line-height: 1.8; font-size: 0.9rem; }
.lv-desc-body p { margin-bottom: 0.8rem; }

/* Materials Card */
.lv-materials-card {
  background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 16px;
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.lv-material-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0; border-bottom: 1px solid #e0f2fe;
  text-decoration: none;
}
.lv-material-item:last-child { border-bottom: none; }
.lv-material-item:hover { opacity: 0.8; }
.lv-material-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; flex-shrink: 0;
}
.lv-material-icon.pdf { background: #fef2f2; color: #dc2626; }
.lv-material-icon.link { background: #eff6ff; color: #2563eb; }
.lv-material-name { font-size: 0.82rem; font-weight: 700; color: #0f172a; }
.lv-material-size { font-size: 0.68rem; color: #94a3b8; }

/* Navigation Footer */
.lv-nav-footer {
  margin-top: auto; padding: 1.5rem 3rem;
  border-top: 1px solid #e2e8f0; background: #ffffff;
  display: flex; justify-content: space-between; align-items: center;
}
.lv-nav-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.5rem; border-radius: 10px;
  font-size: 0.82rem; font-weight: 700; text-decoration: none;
  transition: all 0.2s ease; cursor: pointer; border: none;
}
.lv-nav-btn:hover { text-decoration: none; transform: translateY(-1px); }
.lv-nav-prev { background: #f1f5f9; color: #475569; }
.lv-nav-prev:hover { background: #e2e8f0; color: #0f172a; }
.lv-nav-next { background: #0ea5e9; color: #ffffff; box-shadow: 0 4px 12px rgba(14,165,233,0.3); }
.lv-nav-next:hover { background: #0284c7; color: #fff; }
.lv-nav-eval {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #ffffff;
  box-shadow: 0 4px 12px rgba(245,158,11,0.3);
}
.lv-nav-eval:hover { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }

/* ── Sidebar ── */
.lv-sb-header {
  padding: 1.2rem 1.5rem; border-bottom: 1px solid #e2e8f0;
  background: #fafbfc;
}
.lv-sb-course-title {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  font-weight: 800; font-size: 0.9rem; color: #0f172a;
  margin-bottom: 0.6rem;
}
.lv-sb-progress { display: flex; align-items: center; gap: 0.6rem; }
.lv-sb-progress-bar { flex: 1; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.lv-sb-progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #0ea5e9, #06b6d4); }
.lv-sb-progress-text { font-size: 0.68rem; color: #64748b; font-weight: 700; white-space: nowrap; }

/* Module Section */
.lv-sb-module {
  border-bottom: 1px solid #f1f5f9;
}
.lv-sb-module-header {
  padding: 0.9rem 1.5rem; display: flex; align-items: center;
  justify-content: space-between; cursor: pointer;
  transition: background 0.15s;
}
.lv-sb-module-header:hover { background: #f8fafc; }
.lv-sb-module-title {
  font-weight: 700; font-size: 0.78rem; color: #334155;
  display: flex; align-items: center; gap: 0.5rem;
}
.lv-sb-module-count {
  font-size: 0.65rem; color: #94a3b8; font-weight: 600;
  background: #f1f5f9; padding: 1px 8px; border-radius: 10px;
}

/* Lesson Items */
.lv-sb-lesson {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.65rem 1.5rem 0.65rem 2.2rem;
  color: #475569; text-decoration: none;
  font-size: 0.8rem; transition: all 0.15s;
  border-left: 3px solid transparent;
}
.lv-sb-lesson:hover { background: #f0f9ff; color: #0ea5e9; text-decoration: none; }
.lv-sb-lesson.active {
  background: #eff6ff; border-left-color: #0ea5e9; color: #0ea5e9; font-weight: 700;
}
.lv-sb-lesson.completed { color: #10b981; }

.lv-sb-lesson-icon {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; flex-shrink: 0;
}
.lv-sb-lesson-icon.vid { background: #fef2f2; color: #ef4444; }
.lv-sb-lesson-icon.doc { background: #eff6ff; color: #3b82f6; }
.lv-sb-lesson-icon.txt { background: #ecfdf5; color: #10b981; }

.lv-sb-lesson-title {
  flex: 1; min-width: 0; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lv-sb-lesson-status { font-size: 0.75rem; flex-shrink: 0; }
.lv-sb-lesson-status .done { color: #10b981; }
.lv-sb-lesson-status .current { color: #0ea5e9; }
.lv-sb-lesson-status .pending { color: #cbd5e1; }

/* Evaluation Entry */
.lv-sb-eval {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 1.5rem; margin: 0.5rem 1rem;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a; border-radius: 12px;
  color: #92400e; text-decoration: none; font-size: 0.8rem;
  transition: all 0.2s;
}
.lv-sb-eval:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,0.15); text-decoration: none; color: #78350f; }
.lv-sb-eval-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: #f59e0b; color: white;
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem;
}

/* Eval CTA Banner */
.lv-eval-banner {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a; border-radius: 16px;
  padding: 2rem; text-align: center; margin-top: 1.5rem;
}
.lv-eval-banner-icon { font-size: 2.5rem; color: #f59e0b; margin-bottom: 0.8rem; }
.lv-eval-banner h4 {
  font-family: 'Plus Jakarta Sans', Inter, sans-serif;
  font-weight: 900; font-size: 1.1rem; color: #92400e; margin-bottom: 0.3rem;
}
.lv-eval-banner p { font-size: 0.82rem; color: #a16207; margin-bottom: 1rem; }

/* Mobile Toggle */
.lv-sb-toggle {
  display: none; position: fixed; bottom: 20px; right: 20px; z-index: 999;
  width: 50px; height: 50px; border-radius: 50%;
  background: #0ea5e9; color: white; border: none;
  box-shadow: 0 4px 16px rgba(14,165,233,0.4);
  font-size: 1.1rem; cursor: pointer;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .lv-sidebar { width: 300px; }
  .lv-content { padding: 1.5rem 2rem; }
  .lv-nav-footer { padding: 1rem 2rem; }
}
@media (max-width: 768px) {
  .lv-sidebar {
    position: fixed; top: 56px; right: -100%; bottom: 0;
    width: 85%; max-width: 360px; z-index: 998;
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  }
  .lv-sidebar.open { right: 0; }
  .lv-sb-toggle { display: flex; align-items: center; justify-content: center; }
  .lv-content { padding: 1.2rem 1rem; }
  .lv-nav-footer { padding: 1rem; }
  .lv-lesson-title { font-size: 1.2rem; }
  .lv-topbar-title { max-width: 150px; font-size: 0.78rem; }
  .lv-progress-bar { width: 60px; }
  .lv-sb-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3);
    z-index: 997;
  }
  .lv-sidebar.open ~ .lv-sb-overlay { display: block; }
}
