@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg-dark: #0d0f14;
  --bg-surface: #151821;
  --bg-card: #1c202d;
  --bg-card-hover: #24293a;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 222, 0, 0.5);
  
  --innerevo-yellow: #ffde00;
  --innerevo-yellow-hover: #e6c800;
  --innerevo-yellow-glow: rgba(255, 222, 0, 0.25);
  
  --text-primary: #ffffff;
  --text-secondary: #a0a6b8;
  --text-muted: #6b7280;
  
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--innerevo-yellow);
}

/* ========================================================
   PANTALLA DE LOGIN (LOGIN SCREEN)
   ======================================================== */
.login-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  z-index: 9999;
  padding: 1.5rem;
  overflow-y: auto;
}

.login-background-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--innerevo-yellow-glow) 0%, rgba(13, 15, 20, 0) 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
  animation: pulseGlow 6s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.login-card {
  position: relative;
  z-index: 2;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  animation: cardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-brand-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.brand-icon {
  font-size: 3rem;
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem auto;
  background: var(--bg-card);
  border: 2px solid var(--innerevo-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--innerevo-yellow-glow);
}

.login-brand-header h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 0.9rem;
  color: var(--innerevo-yellow);
  font-weight: 500;
  margin-top: 0.2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-group input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--innerevo-yellow);
  box-shadow: 0 0 0 3px var(--innerevo-yellow-glow);
}

.btn-primary-skool {
  background: var(--innerevo-yellow);
  color: #000000;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px var(--innerevo-yellow-glow);
}

.btn-primary-skool:hover {
  background: var(--innerevo-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 222, 0, 0.4);
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}
.login-divider span {
  padding: 0 10px;
}

.btn-quick-login {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.btn-quick-login:hover {
  background: var(--bg-card-hover);
  border-color: var(--innerevo-yellow);
  transform: translateY(-2px);
}

.quick-icon {
  font-size: 1.5rem;
  background: rgba(255, 222, 0, 0.15);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.btn-quick-login strong {
  display: block;
  font-size: 0.9rem;
  color: var(--innerevo-yellow);
}

.btn-quick-login small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.login-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ========================================================
   AULA VIRTUAL (CLASSROOM SCREEN - NAVBAR)
   ======================================================== */
.skool-navbar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.logo-badge {
  font-size: 1.5rem;
  background: var(--innerevo-yellow);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 800;
}

.logo-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.logo-text span {
  display: block;
  font-size: 0.72rem;
  color: var(--innerevo-yellow);
  font-weight: 500;
  text-transform: uppercase;
}

.phase-filters {
  display: flex;
  gap: 0.4rem;
}

.phase-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.phase-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.phase-btn.active {
  background: var(--bg-card);
  border-color: var(--innerevo-yellow);
  color: var(--innerevo-yellow);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.search-box {
  position: relative;
  width: 260px;
}

.search-icon {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.45rem 1rem 0.45rem 2.4rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--innerevo-yellow);
  width: 300px;
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--innerevo-yellow);
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.1;
}

.profile-tag {
  font-size: 0.68rem;
  color: var(--accent-green);
  font-weight: 500;
}

.btn-logout {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

/* ========================================================
   CONTENEDOR PRINCIPAL DEL AULA (LAYOUT 2 COLUMNAS)
   ======================================================== */
.skool-main-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: calc(100vh - 64px);
}

/* --- COLUMNA IZQUIERDA: LESSON WORKSPACE --- */
.lesson-workspace {
  padding: 1.75rem 2.5rem;
  overflow-y: auto;
  border-right: 1px solid var(--border-color);
}

.video-player-container {
  position: relative;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  aspect-ratio: 16 / 9;
  max-height: 520px;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.html5-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050608;
  flex: 1;
}

.video-status-bar {
  background: var(--bg-surface);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
}

.video-error {
  color: #fbbf24;
  font-weight: 600;
}

.video-placeholder-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.overlay-content {
  text-align: center;
  max-width: 380px;
}

.overlay-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.8rem;
}

.btn-play-video {
  background: var(--innerevo-yellow);
  color: #000;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 4px 15px var(--innerevo-yellow-glow);
}

.lesson-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.lesson-meta-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.badge-module {
  background: var(--innerevo-yellow);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-phase {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-duration {
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
}

#lesson-title-heading {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.lesson-author-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.5rem;
}

.lesson-author-meta strong {
  color: var(--text-primary);
}

.lesson-action-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.nav-lesson-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-nav-lesson {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nav-lesson:hover {
  background: var(--bg-card-hover);
  border-color: var(--innerevo-yellow);
}

.btn-complete-lesson {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-complete-lesson:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.btn-complete-lesson.completed {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #ffffff;
  font-weight: 700;
}

/* --- PESTAÑAS SUBTABS (SKOOL STYLE) --- */
.skool-subtabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.75rem;
}

.subtab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.subtab-btn:hover {
  color: var(--text-primary);
}

.subtab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.subtab-btn.active {
  color: var(--innerevo-yellow);
}

.subtab-btn.active::after {
  background: var(--innerevo-yellow);
}

.tab-badge {
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 10px;
}

.subtab-btn.active .tab-badge {
  background: rgba(255, 222, 0, 0.2);
  color: var(--innerevo-yellow);
}

.subtab-body {
  animation: tabFadeIn 0.3s ease;
}

@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- TAB 1: NOTES & DESCRIPTION --- */
.lesson-description-box h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--innerevo-yellow);
  margin-bottom: 0.75rem;
}

.formatted-markdown {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.75;
  white-space: pre-line;
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.keypoints-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.keypoints-list li {
  background: var(--bg-card);
  border-left: 3px solid var(--innerevo-yellow);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

/* --- TAB 2: EJERCICIOS ACCIONABLES (CHECKLIST) --- */
.exercises-header-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.exercises-header-text h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.exercises-header-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.exercises-progress-box {
  min-width: 160px;
  text-align: right;
}

#lesson-exercises-status-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--innerevo-yellow);
  display: block;
  margin-bottom: 0.4rem;
}

.mini-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  background: var(--innerevo-yellow);
  transition: width 0.4s ease;
}

.checklist-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checklist-item-card:hover {
  background: var(--bg-card);
  border-color: rgba(255, 222, 0, 0.4);
  transform: translateX(4px);
}

.checklist-item-card.completed {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.checklist-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: transparent;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.checklist-item-card.completed .checklist-checkbox {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #ffffff;
}

.checklist-text {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.5;
  transition: all 0.2s ease;
}

.checklist-item-card.completed .checklist-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* --- TAB 3: RESOURCES --- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.resource-card-premium {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: all 0.2s ease;
}

.resource-card-premium:hover {
  border-color: var(--innerevo-yellow);
  transform: translateY(-3px);
}

.resource-icon-wrapper {
  font-size: 2.2rem;
  background: var(--bg-card);
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.resource-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}

.resource-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.btn-download-resource {
  background: var(--innerevo-yellow);
  color: #000;
  text-decoration: none;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  display: block;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-download-resource:hover {
  background: var(--innerevo-yellow-hover);
}

.btn-download-resource.secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* --- TAB 4: DISCUSSION & COMMUNITY --- */
.composer-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.composer-top {
  display: flex;
  gap: 1rem;
}

.composer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--innerevo-yellow);
  color: #000;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comment-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 85px;
}

.comment-textarea:focus {
  outline: none;
  border-color: var(--innerevo-yellow);
}

.composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
}

.composer-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-post-comment {
  background: var(--innerevo-yellow);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-post-comment:hover {
  background: var(--innerevo-yellow-hover);
}

.discussion-divider h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.6rem;
  margin-bottom: 1.25rem;
}

.comments-feed {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.comment-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.comment-card.official {
  background: rgba(255, 222, 0, 0.04);
  border-color: rgba(255, 222, 0, 0.3);
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.comment-author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-card.official .comment-avatar {
  background: var(--innerevo-yellow);
  color: #000;
}

.comment-author-name {
  font-size: 0.9rem;
  font-weight: 700;
}

.comment-role-badge {
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 0.4rem;
}

.comment-card.official .comment-role-badge {
  background: var(--innerevo-yellow);
  color: #000;
  font-weight: 700;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.comment-actions {
  display: flex;
  gap: 1rem;
}

.btn-comment-like {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-comment-like:hover, .btn-comment-like.liked {
  color: #ef4444;
}

/* ========================================================
   COLUMNA DERECHA: SIDEBAR DE MÓDULOS & PROGRESO
   ======================================================== */
.course-sidebar {
  background: var(--bg-surface);
  padding: 1.5rem;
  overflow-y: auto;
}

.sidebar-progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.progress-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.progress-title-row h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.progress-percent {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--innerevo-yellow);
}

.global-progress-bar-container {
  width: 100%;
  height: 10px;
  background: #0d0f14;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.global-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--innerevo-yellow) 0%, var(--accent-green) 100%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.status-badge {
  color: var(--accent-green);
  font-weight: 600;
}

/* Acordeones de Módulos (Sidebar) */
.sidebar-modules-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.module-group {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.module-header {
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--bg-card);
  transition: all 0.2s ease;
  user-select: none;
}

.module-header:hover {
  background: var(--bg-card-hover);
}

.module-header.expanded {
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card-hover);
}

.module-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.module-icon {
  font-size: 1.1rem;
}

.module-title-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.module-chevron {
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.module-header.expanded .module-chevron {
  transform: rotate(180deg);
}

.module-lessons-list {
  list-style: none;
  display: none;
}

.module-lessons-list.show {
  display: block;
}

.lesson-item {
  padding: 0.75rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lesson-item:last-child {
  border-bottom: none;
}

.lesson-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  padding-left: 1.35rem;
}

.lesson-item.active {
  background: rgba(255, 222, 0, 0.12);
  color: var(--innerevo-yellow);
  font-weight: 600;
  border-left: 3px solid var(--innerevo-yellow);
}

.lesson-item.completed {
  color: #d1d5db;
}

.lesson-status-icon {
  font-size: 0.8rem;
}

.lesson-item.completed .lesson-status-icon {
  color: var(--accent-green);
}

.lesson-item.active .lesson-status-icon {
  color: var(--innerevo-yellow);
}

/* ========================================================
   RESPONSIVE QUERIES
   ======================================================== */
@media (max-width: 1100px) {
  .skool-main-container {
    grid-template-columns: 1fr;
  }
  .course-sidebar {
    border-top: 1px solid var(--border-color);
  }
}

@media (max-width: 768px) {
  .skool-navbar {
    flex-direction: column;
    height: auto;
    padding: 1rem;
    gap: 1rem;
  }
  .navbar-left, .navbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .phase-filters {
    display: none;
  }
  .lesson-workspace {
    padding: 1rem;
  }
  .lesson-top-bar {
    flex-direction: column;
  }
  .skool-subtabs-nav {
    overflow-x: auto;
    white-space: nowrap;
  }
}
