:root {
  --bg-color: #0f172a; /* Slate 900 */
  --surface-color: #1e293b; /* Slate 800 */
  --surface-hover: #334155; /* Slate 700 */
  --primary-color: #3b82f6; /* Blue 500 */
  --primary-hover: #60a5fa; /* Blue 400 */
  --text-main: #f8fafc; /* Slate 50 */
  --text-muted: #94a3b8; /* Slate 400 */
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  
  --border-color: rgba(255, 255, 255, 0.1);
  --border-radius: 16px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden; /* Hide main scroll, handle inside components */
}

/* Layout */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background-color: var(--surface-color);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-main);
}

.brand-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.nav-item:hover {
  background-color: var(--surface-hover);
  color: var(--text-main);
}

.nav-item.active {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

/* Progress Section */
.progress-container {
  margin-top: auto;
  background-color: rgba(0,0,0,0.2);
  padding: 1rem;
  border-radius: 12px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.progress-bar {
  height: 8px;
  background-color: var(--surface-hover);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-purple));
  width: 0%;
  transition: width 1s ease;
}

/* Main Content */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 3rem;
  scroll-behavior: smooth;
}

.view {
  display: none;
  animation: fadeIn 0.4s ease;
}

.view.active {
  display: block;
}

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

/* Dashboard Cards */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.module-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.2);
}

.module-card:hover::before {
  transform: scaleX(1);
}

.module-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.75rem;
  background-color: rgba(255,255,255,0.05);
  border-radius: 12px;
}

.module-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.module-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Module Detail View */
.module-header {
  margin-bottom: 2rem;
}

.section-block {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-guide-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ai-icon {
  color: var(--accent-purple);
  font-size: 1.5rem;
}

.code-block {
  background-color: #0b0f19; /* Deeper slate dark */
  border-radius: 12px;
  padding: 1.25rem;
  font-family: 'Fira Code', Consolas, Monaco, 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
  white-space: pre-wrap;
  word-spacing: normal;
  word-break: break-word;
}

/* Tablas Comparativas */
.comparison-table {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.table-row:last-child {
  border-bottom: none;
}

.table-header {
  background-color: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* Quiz Styles */
.quiz-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-btn {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  text-align: left;
  justify-content: flex-start;
  color: var(--text-main);
}

.quiz-btn:hover {
  background-color: var(--surface-hover);
  border-color: var(--primary-color);
}

.quiz-btn.correct {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.quiz-btn.incorrect {
  background-color: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

.btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

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

/* Simulator Panel */
.simulator-panel {
  width: 400px;
  background-color: var(--bg-color);
  border-left: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.device-frame {
  width: 300px;
  height: 600px;
  background-color: #000;
  border-radius: 40px;
  border: 8px solid #334155;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
}

.device-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background-color: #334155;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
}

.device-screen {
  width: 100%;
  height: 100%;
  background-color: #fff;
  color: #000;
  position: relative;
}

.device-content {
  width: 100%;
  height: 100%;
  border: none;
}

/* Prompt Copyable Field */
.prompt-field {
  background-color: #0d1117;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 10px;
  padding: 1rem;
  color: #c9d1d9;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  width: 100%;
  min-height: 80px;
  resize: vertical;
  margin: 0.75rem 0;
  transition: border-color 0.3s ease;
}

.prompt-field:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.prompt-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1rem;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--primary-hover);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}

.tool-badge.green { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); color: var(--accent-green); }
.tool-badge.purple { background: rgba(139,92,246,0.15); border-color: rgba(139,92,246,0.3); color: var(--accent-purple); }
.tool-badge.orange { background: rgba(249,115,22,0.15); border-color: rgba(249,115,22,0.3); color: #fb923c; }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.table-2col .table-row { grid-template-columns: 1fr 2fr; }

.sidebar { overflow-y: auto; }

/* Responsive */
@media (max-width: 1024px) {
  .simulator-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    padding: 1rem;
  }
}

/* ==========================================================================
   COMPONENTES DE GUÍA DOCENTE PREMIUM (APRENDIZAJE ACTIVO, GIT & IA)
   ========================================================================== */

/* Caja de Objetivos de Aprendizaje */
.learning-box {
  background: rgba(59, 130, 246, 0.05);
  border: 1px dashed rgba(59, 130, 246, 0.4);
  border-left: 4px solid var(--primary-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.learning-box h3 {
  color: var(--primary-hover);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.learning-box p {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Tarjeta de Concepto */
.concept-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-purple);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.concept-card:hover {
  transform: translateX(4px);
  border-color: rgba(139, 92, 246, 0.3);
}

.concept-card h3 {
  color: #c084fc;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.concept-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Tarjeta de Retos Prácticos (Challenges) */
.challenge-card {
  background: rgba(249, 115, 22, 0.03);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-left: 4px solid #f97316;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
}

.challenge-card h3 {
  color: #fdba74;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.challenge-card p {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

.challenge-badge {
  position: absolute;
  top: -12px;
  right: 15px;
  background: #f97316;
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

/* Caja de Inteligencia Artificial (IA) */
.ai-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-left: 4px solid var(--accent-purple);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.ai-box h3 {
  color: #c084fc;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.prompt-field-copiador {
  background-color: #090d16;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #c9d1d9;
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 1rem;
  width: 100%;
  min-height: 80px;
  resize: vertical;
  margin: 0.5rem 0;
  display: block;
}

/* Caja de Control de Versiones (Git y GitHub) */
.git-box {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-left: 4px solid #38bdf8;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.git-box h3 {
  color: #38bdf8;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.git-box p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Caja de Consejos Pedagógicos del Profesor (Teacher Tip) */
.teacher-tip {
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 4px solid var(--accent-green);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.teacher-tip h4 {
  color: var(--accent-green);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.teacher-tip p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  font-style: italic;
}

/* Caja de Advertencias y Errores de IA (Warning) */
.warning-box {
  background: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.warning-box h3 {
  color: #f87171;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.warning-box p {
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Caja de Depuración y Diagnóstico (Debug) */
.debug-box {
  background: rgba(100, 116, 139, 0.05);
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-left: 4px solid #64748b;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.debug-box h3 {
  color: #cbd5e1;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.debug-box ul {
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Caja de Lista de Verificación (Checklist) */
.checklist-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.checklist-box h3 {
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checklist-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.checklist-item.done {
  color: var(--text-main);
}

.checklist-item input[type="checkbox"] {
  accent-color: var(--accent-green);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Rúbrica de Evaluación */
.rubric-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.rubric-table th, .rubric-table td {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  text-align: left;
}

.rubric-table th {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-hover);
  font-weight: 600;
}

.rubric-table tr:hover {
  background-color: rgba(255, 255, 255, 0.01);
}

/* Esquemas Visuales Simplificados (Tree-view y branches) */
.tree-view {
  font-family: monospace;
  background-color: #090d16;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  color: #a8cdfc;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 1rem 0;
  overflow-x: auto;
}

/* ==========================================================================
   ELEMENTOS GRÁFICOS RESPONSIVOS PREMIUM (TIMELINE Y ARQUITECTURA)
   ========================================================================== */

/* Git Timeline Flow */
.git-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  margin: 2rem 0;
  padding-left: 1.5rem;
}

.git-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-purple) 50%, var(--accent-green) 100%);
}

.timeline-step {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-step:hover {
  transform: translateX(4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -23px;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
}

.timeline-step.api::before { border-color: var(--primary-color); box-shadow: 0 0 8px var(--primary-color); }
.timeline-step.ui::before { border-color: var(--accent-purple); box-shadow: 0 0 8px var(--accent-purple); }
.timeline-step.logic::before { border-color: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }

.timeline-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-branch-badge {
  font-family: monospace;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: bold;
}

.timeline-branch-badge.api { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); color: var(--primary-hover); }
.timeline-branch-badge.ui { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.3); color: #c084fc; }
.timeline-branch-badge.logic { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: var(--accent-green); }

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.timeline-action {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

/* Architecture Map Components */
.arch-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0;
  width: 100%;
}

.arch-node {
  width: 100%;
  max-width: 550px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.arch-node:hover {
  transform: translateY(-2px);
}

.arch-node.mobile { border-top: 4px solid var(--primary-color); }
.arch-node.server { border-top: 4px solid var(--accent-purple); }
.arch-node.db { border-top: 4px solid var(--accent-green); }

.arch-node-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.arch-node-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.arch-node-header i {
  padding: 0.4rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.arch-node.mobile .arch-node-header i { color: var(--primary-hover); }
.arch-node.server .arch-node-header i { color: #c084fc; }
.arch-node.db .arch-node-header i { color: var(--accent-green); }

.arch-node-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.arch-tech-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.arch-tech-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

/* Conectores de Arquitectura */
.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 60px;
  width: 100%;
}

.arch-connector-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: dashed rgba(255, 255, 255, 0.15);
  z-index: 1;
}

.arch-connector-label {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fb923c; /* Orange */
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  animation: pulseConnector 2s infinite ease-in-out;
}

.arch-connector-label.sql {
  color: var(--primary-hover);
}

@keyframes pulseConnector {
  0% { transform: scale(1); border-color: rgba(255, 255, 255, 0.1); }
  50% { transform: scale(1.03); border-color: rgba(249, 115, 22, 0.4); }
  100% { transform: scale(1); border-color: rgba(255, 255, 255, 0.1); }
}

/* ==========================================================================
   INTERACTIVE TERMINAL STEP LIST (PREMIUM CURRICULUM UI)
   ========================================================================== */
.terminal-window {
  background: #090d16;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin: 1.5rem 0;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.close { background-color: #ef4444; }
.terminal-dot.minimize { background-color: #eab308; }
.terminal-dot.maximize { background-color: #22c55e; }

.terminal-title {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.terminal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Steps list */
.interactive-command-card {
  background: rgba(30, 41, 59, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.interactive-command-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(30, 41, 59, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.interactive-command-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--accent-purple));
  opacity: 0.5;
}

.interactive-command-card:hover::before {
  opacity: 1;
}

.command-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.command-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.command-step-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-family: 'Fira Code', monospace;
  box-shadow: 0 2px 5px rgba(59, 130, 246, 0.2);
}

.command-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.command-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.command-display-box {
  background: #040711;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-family: 'Fira Code', Consolas, Monaco, monospace;
  font-size: 0.85rem;
  overflow-x: auto;
  gap: 1rem;
}

.command-text {
  white-space: pre;
  word-break: keep-all;
  flex-grow: 1;
  color: #38bdf8; /* terminal cyan */
  font-weight: 500;
}

.btn-command-copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}

.btn-command-copy:hover {
  background: var(--primary-color);
  border-color: var(--primary-hover);
  color: white;
  transform: scale(1.05);
}

.btn-command-copy:active {
  transform: scale(0.95);
}

.btn-command-copy.copied {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #10b981 !important;
}

.command-badge-explanation {
  background: rgba(255, 255, 255, 0.01);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  border-left: 2px solid rgba(16, 185, 129, 0.3);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.command-badge-explanation i {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

