/* ═══════════════════════════════════════════
   JAMM Tour Wizard — estilos
   ═══════════════════════════════════════════ */

/* Overlay semi-transparente */
#tour-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9000;
  pointer-events: all;
}

/* Frame de glow alrededor del elemento resaltado */
#tour-highlight-frame {
  display: none;
  position: fixed;
  z-index: 9100;
  border-radius: 10px;
  pointer-events: none;
  border: 2px solid rgba(99, 162, 241, 0.85);
  box-shadow:
    0 0 0 3px rgba(99, 162, 241, 0.25),
    0 0 18px 6px rgba(99, 162, 241, 0.40),
    0 0 40px 10px rgba(99, 162, 241, 0.18);
  animation: tour-glow-pulse 2s ease-in-out infinite;
}

@keyframes tour-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 3px rgba(99, 162, 241, 0.25),
      0 0 18px 6px rgba(99, 162, 241, 0.40),
      0 0 40px 10px rgba(99, 162, 241, 0.18);
    border-color: rgba(99, 162, 241, 0.85);
  }
  50% {
    box-shadow:
      0 0 0 5px rgba(99, 162, 241, 0.15),
      0 0 28px 10px rgba(99, 162, 241, 0.55),
      0 0 60px 18px rgba(99, 162, 241, 0.22);
    border-color: rgba(147, 197, 253, 1);
  }
}

/* ─── Tooltip ──────────────────────────────── */
#tour-tooltip {
  display: none;
  position: fixed;
  z-index: 9200;
  background: #0f1923;
  border: 1px solid rgba(99, 162, 241, 0.35);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(99, 162, 241, 0.12) inset;
  font-family: inherit;
  max-width: 340px;
  animation: tour-tt-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tour-tt-in {
  from { opacity: 0; transform: scale(0.93) translateY(6px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Header con badge de módulo y progreso */
.tour-tt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tour-tt-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(99, 162, 241, 0.14);
  border: 1px solid rgba(99, 162, 241, 0.28);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.tour-tt-progress {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4f5d6a;
}

/* Título del paso */
.tour-tt-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Qué es */
.tour-tt-que-es {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 8px;
}

.tour-tt-que-es strong {
  color: #cbd5e1;
}

/* Cómo completar */
.tour-tt-como {
  font-size: 0.82rem;
  color: #7dd3fc;
  line-height: 1.5;
  margin-bottom: 6px;
  padding: 8px 10px;
  background: rgba(14, 165, 233, 0.08);
  border-left: 3px solid rgba(14, 165, 233, 0.5);
  border-radius: 0 6px 6px 0;
}

.tour-tt-como-label {
  font-weight: 700;
  color: #38bdf8;
}

/* Ejemplo */
.tour-tt-ejemplo {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 6px;
  font-style: italic;
}

.tour-tt-ejemplo em {
  color: #9ca3af;
  font-style: normal;
}

/* Barra de acciones */
.tour-tt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  gap: 8px;
}

.tour-tt-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Botón Omitir */
.tour-btn-skip {
  font-size: 0.75rem;
  font-weight: 600;
  color: #556270;
  background: transparent;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.15s;
}

.tour-btn-skip:hover {
  color: #ef4444;
}

/* Botones Anterior / Siguiente */
.tour-btn-nav {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}

.tour-btn-nav:active {
  transform: scale(0.97);
}

.tour-btn-ant {
  background: rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tour-btn-ant:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.tour-btn-sig {
  background: linear-gradient(135deg, #1a56db 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.35);
}

.tour-btn-sig:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  box-shadow: 0 6px 16px rgba(26, 86, 219, 0.45);
}

/* ─── Tab Ayuda en Configuración ─────────────── */
#cfg-tab-ayuda {
  padding: 20px 0;
}

.tour-ayuda-intro {
  font-size: 0.86rem;
  color: #607080;
  margin-bottom: 20px;
  line-height: 1.6;
}

.tour-ayuda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.tour-ayuda-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(99, 162, 241, 0.2);
  border-radius: 12px;
  background: rgba(99, 162, 241, 0.05);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.tour-ayuda-card:hover {
  background: rgba(99, 162, 241, 0.12);
  border-color: rgba(99, 162, 241, 0.45);
  transform: translateY(-1px);
}

.tour-ayuda-card:active {
  transform: scale(0.98);
}

.tour-ayuda-icono {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
}

.tour-ayuda-info {
  flex: 1;
  min-width: 0;
}

.tour-ayuda-nombre {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 2px;
}

.tour-ayuda-desc {
  font-size: 0.76rem;
  color: #607080;
}

.tour-ayuda-arrow {
  font-size: 0.9rem;
  color: #3b82f6;
  flex-shrink: 0;
}

.tour-ayuda-section {
  margin-bottom: 22px;
}

.tour-ayuda-section-titulo {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #4a6076;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(99, 162, 241, 0.12);
}
