/* ═══════════════════════════════════════════════════════════════════
   aula-nav.css — «Ir a…», menú ☰ de celular y medallero del aula 3D
   ═══════════════════════════════════════════════════════════════════ */

#goto-btn {
  background: rgba(14, 116, 144, 0.3);
  border: 1px solid rgba(34, 211, 238, 0.5);
  color: #a5f3fc;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  cursor: pointer;
}

#goto-fade {
  position: fixed;
  inset: 0;
  background: #020617;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
  z-index: 30000;
}
#goto-fade.on {
  opacity: 0.85;
}

#goto-modal {
  position: fixed;
  inset: 0;
  z-index: 25000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 6, 23, 0.75);
}
#goto-modal.open {
  display: flex;
}
.goto-card {
  width: min(420px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #0f172a, #1e1b4b);
  border: 1px solid rgba(165, 180, 252, 0.4);
  border-radius: 16px;
  padding: 18px;
  color: #e2e8f0;
  font-family: system-ui, sans-serif;
}
.goto-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}
.goto-list {
  display: grid;
  gap: 8px;
}
.goto-item,
.goto-close {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 15px;
  text-align: left;
  padding: 10px 14px;
  cursor: pointer;
}
.goto-item:hover,
.goto-item:focus-visible {
  border-color: #fbbf24;
  outline: none;
  background: #273449;
}
.goto-close {
  margin-top: 12px;
  width: 100%;
  text-align: center;
}

/* ── Celular: barra compacta + menú ☰ ─────────────────────────── */
.jedu-mobile-hud #hud-top {
  padding: 6px 8px;
  gap: 6px;
  flex-wrap: nowrap;
}
.jedu-mobile-hud #hud-top h2 {
  font-size: 15px;
  white-space: nowrap;
}
.jedu-mobile-hud #hud-top img {
  height: 32px !important;
}
.jedu-mobile-hud #class-status {
  display: none;
}
.jedu-mobile-hud #hud-top > div:last-child {
  flex-wrap: nowrap;
  gap: 6px !important;
}
.jedu-mobile-hud #hud-top > div:last-child > a,
.jedu-mobile-hud #signout-btn {
  white-space: nowrap;
  padding: 8px 10px !important;
  font-size: 12px !important;
  min-height: 36px;
}
#hud-menu-btn {
  min-width: 40px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(165, 180, 252, 0.5);
  background: rgba(79, 70, 229, 0.35);
  color: #e0e7ff;
  font-size: 18px;
  cursor: pointer;
}
#hud-menu {
  position: fixed;
  top: 54px;
  right: 8px;
  z-index: 21000;
  display: none;
  flex-direction: column;
  gap: 8px;
  width: min(280px, calc(100vw - 16px));
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.97);
  border: 1px solid rgba(99, 102, 241, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
#hud-menu.open {
  display: flex;
}
#hud-menu > *,
#hud-menu button,
#hud-menu .mode-badge {
  width: 100%;
  box-sizing: border-box;
}
#hud-menu button,
#hud-menu .mode-badge {
  min-height: 44px;
  font-size: 13px !important;
}
#hud-menu #prof-settings-dropdown {
  position: static;
  margin-top: 6px;
}
#hud-menu #music-ctrl {
  position: static;
  width: 100%;
  border-radius: 10px;
  justify-content: center;
}

#goto-fab {
  position: fixed;
  right: 18px;
  bottom: 290px;
  z-index: 22;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(34, 211, 238, 0.7);
  background: rgba(14, 116, 144, 0.75);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
  touch-action: manipulation;
}

/* ── Modo día: barra superior sólida (el techo claro le restaba contraste) ── */
body.jedu-day #hud-top {
  background: linear-gradient(180deg, rgba(10, 10, 30, 0.96) 0%, rgba(10, 10, 30, 0.88) 100%);
}

/* ── «❓ Ver la guía del aula» en la ventana «Ir a…» ─────────────── */
.goto-guide {
  margin-top: 12px;
  min-height: 48px;
  width: 100%;
  border-radius: 12px;
  border: 1px dashed rgba(250, 204, 21, 0.55);
  background: rgba(250, 204, 21, 0.08);
  color: #fde68a;
  font-size: 15px;
  cursor: pointer;
}

/* ── Guía del aula (onboarding.js) ───────────────────────────────── */
.tour-card {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: min(400px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  overflow-y: auto;
  z-index: 23000;
  padding: 18px 18px 14px;
  border-radius: 18px;
  background: rgba(10, 14, 32, 0.96);
  border: 1px solid rgba(0, 255, 159, 0.35);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 255, 159, 0.12);
  color: #e2e8f0;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.tour-card.tour-in {
  animation: tour-in 0.3s ease-out both;
}
.tour-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.tour-icon {
  font-size: 30px;
  line-height: 1;
}
.tour-title {
  margin: 0;
  font-size: 19px;
  color: #6ee7b7;
}
.tour-body p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
  color: #cbd5e1;
}
.tour-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 12px;
}
.tour-dots {
  display: flex;
  gap: 5px;
}
.tour-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.35);
}
.tour-dots span.done {
  background: rgba(34, 211, 238, 0.6);
}
.tour-dots span.on {
  width: 20px;
  border-radius: 4px;
  background: #00ff9f;
}
.tour-count {
  font-size: 12px;
  color: #94a3b8;
}
.tour-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tour-nav button {
  min-height: 44px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}
.tour-skip {
  margin-right: auto;
  background: none;
  border: none;
  color: #94a3b8;
  text-decoration: underline;
  padding: 0 4px;
}
.tour-back {
  padding: 0 14px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
}
.tour-back:disabled {
  opacity: 0.4;
  cursor: default;
}
.tour-next {
  padding: 0 18px;
  border: none;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(135deg, #00ff9f, #22d3ee);
}
.tour-highlight {
  outline: 3px solid #00ff9f !important;
  outline-offset: 3px;
  border-radius: 10px;
  animation: tour-pulse 1.4s ease-in-out infinite;
}
@keyframes tour-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tour-pulse {
  50% {
    outline-color: rgba(0, 255, 159, 0.25);
  }
}
/* Celular: hoja inferior a todo el ancho, sobre los controles táctiles */
.jedu-mobile-hud .tour-card {
  left: 12px;
  right: 12px;
  bottom: 12px;
  width: auto;
  max-height: 46vh;
}
@media (prefers-reduced-motion: reduce) {
  .tour-card.tour-in,
  .tour-highlight {
    animation: none !important;
  }
}
