/* ============================================
   Academia PICAÑAS BURGER – Estilos base
   Tema: negro + amarillo dorado
   ============================================ */

:root {
  --brand: #E8A317;        /* amarillo dorado del logo */
  --brand-dark: #c5860c;   /* amarillo más oscuro (hover) */
  --brand-soft: #fdf3dc;   /* amarillo muy suave (fondos sutiles) */
  --navbar-bg: #1a1a1a;    /* negro de la barra superior */
  --navbar-bg-dark: #000;  /* negro puro */
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #f5f6f8;
  --sidebar-w: 240px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

/* Navbar */
.app-navbar { background: var(--navbar-bg); }
.app-navbar .navbar-brand { color: #fff; }
.app-navbar .navbar-brand .brand-text { color: var(--brand); }
.app-navbar .navbar-brand img { display: block; }

/* Layout */
.app-layout { display: flex; min-height: calc(100vh - 56px); }
.app-sidebar {
  width: var(--sidebar-w);
  background: #fff;
  border-right: 1px solid #e5e7eb;
  padding-bottom: 1rem;
  flex-shrink: 0;
}
.app-main { flex: 1; min-width: 0; }

@media (max-width: 767.98px) {
  .app-sidebar {
    position: fixed; top: 56px; left: -260px;
    height: calc(100vh - 56px); transition: left .25s; z-index: 1030;
    box-shadow: 4px 0 12px rgba(0,0,0,.08);
  }
  .app-sidebar.open { left: 0; }
}

/* Sidebar links */
.sidebar-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem 1.1rem;
  color: var(--ink); text-decoration: none;
  font-size: .94rem;
  border-left: 3px solid transparent;
}
.sidebar-link i { color: var(--muted); width: 18px; text-align: center; }
.sidebar-link:hover { background: #f3f4f6; color: var(--brand-dark); }
.sidebar-link.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-left-color: var(--brand);
  font-weight: 600;
}
.sidebar-link.active i { color: var(--brand-dark); }

/* Cards de cursos */
.course-card {
  border: 1px solid #e5e7eb; border-radius: 12px; background: #fff;
  overflow: hidden; transition: transform .15s, box-shadow .15s;
  height: 100%; display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.07); }
.course-thumb {
  height: 110px; background: linear-gradient(135deg, var(--navbar-bg), var(--navbar-bg-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 2.2rem;
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-card .card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.course-card h5 { font-size: 1rem; margin-bottom: .35rem; }
.course-meta { font-size: .8rem; color: var(--muted); }

/* Badges de estado */
.badge-status { font-size: .72rem; padding: .35em .6em; }
.badge-status.pendiente   { background: #e5e7eb; color: #374151; }
.badge-status.en_progreso { background: #fef3c7; color: #92400e; }
.badge-status.aprobado    { background: #d1fae5; color: #065f46; }
.badge-status.reprobado   { background: #fee2e2; color: #991b1b; }
.badge-status.vencido     { background: #fed7aa; color: #9a3412; }

/* Progreso */
.progress { height: 8px; border-radius: 99px; background: #e5e7eb; }
.progress-bar { background: var(--brand); }

/* Botones */
.btn-brand { background: var(--brand); border-color: var(--brand); color: #1a1a1a; font-weight: 600; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #1a1a1a; }
.btn-outline-brand { color: var(--brand-dark); border-color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #1a1a1a; }

/* Lección/Quiz */
.lesson-content { background: #fff; padding: 1.5rem; border-radius: 12px; border: 1px solid #e5e7eb; }
.lesson-content h2 { margin-top: 1.2rem; }
.lesson-content img { max-width: 100%; height: auto; }

.quiz-question {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 1.25rem; margin-bottom: 1rem;
}
.quiz-question h6 { font-weight: 600; }
.quiz-option {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .65rem .85rem; border: 1px solid #e5e7eb; border-radius: 8px;
  margin-bottom: .5rem; cursor: pointer; transition: all .15s;
}
.quiz-option:hover { background: #f9fafb; border-color: var(--brand); }
.quiz-option input { margin-top: .25rem; }
.quiz-option.selected { background: var(--brand-soft); border-color: var(--brand); }

/* Login */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navbar-bg) 0%, var(--navbar-bg-dark) 100%);
  padding: 1rem;
}
.login-card {
  background: #fff; border-radius: 16px; max-width: 400px; width: 100%;
  padding: 2.2rem 2rem; box-shadow: 0 25px 60px rgba(0,0,0,.2);
}
.login-card h1 { font-size: 1.45rem; margin-bottom: .25rem; text-align: center; }
.login-card .brand-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 1rem;
}

/* Dashboard stats */
.stat-card {
  background: #fff; border-radius: 12px; padding: 1.1rem 1.25rem;
  border: 1px solid #e5e7eb;
}
.stat-card .stat-value { font-size: 1.7rem; font-weight: 700; }
.stat-card .stat-label { color: var(--muted); font-size: .85rem; }

/* Resultado quiz */
.result-circle {
  width: 140px; height: 140px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 700; color: #fff;
  margin: 0 auto 1rem;
}
.result-circle.pass { background: #16a34a; }
.result-circle.fail { background: #dc2626; }

/* Utilidades */
.cursor-pointer { cursor: pointer; }
.text-brand { color: var(--brand-dark); }
