/* === Tour overlay === */
.tour-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.tour-overlay.tour-show    { opacity: 1; }
.tour-overlay.tour-closing { opacity: 0; pointer-events: none; }

/* Modal card */
.tour-modal {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 24px;
  padding: 32px 28px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

@keyframes tourSlideOut {
  to { transform: translateX(-20px); opacity: 0; }
}
@keyframes tourSlideIn {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.tour-modal.tour-exit  { animation: tourSlideOut 0.18s ease forwards; }
.tour-modal.tour-enter { animation: tourSlideIn  0.28s ease forwards; }

/* Step indicator dots */
/* Badge "Novedades" cuando el tour muestra solo pasos nuevos */
.tour-whatsnew {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: center;
  margin: 0 auto 16px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tour-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 28px;
}

.tour-dot {
  height: 6px;
  width: 6px;
  border-radius: 3px;
  background: var(--bs-border-color);
  transition: width 0.3s ease, background 0.3s ease;
}

.tour-dot.active {
  width: 22px;
  background: var(--accent);
}

/* Icon circle */
.tour-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--accent);
}

/* Text */
.tour-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--bs-body-color);
  margin: 0 0 10px;
  line-height: 1.3;
}

.tour-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--bs-secondary-color);
  margin: 0 0 28px;
}

/* Buttons */
.tour-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-btn-skip {
  background: none;
  border: none;
  color: var(--bs-secondary-color);
  font-size: 13px;
  cursor: pointer;
  padding: 10px 8px;
  border-radius: 8px;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.tour-btn-skip:hover { color: var(--bs-body-color); }

.tour-btn-next {
  flex: 1;
  background: var(--accent);
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.tour-btn-next:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Toast de "podés relanzar desde Ajustes" */
.tour-toast {
  position: fixed;
  bottom: calc(var(--bottomnav-height) + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  color: var(--bs-body-color);
  font-size: 13px;
  padding: 12px 18px;
  border-radius: 14px;
  z-index: 10001;
  max-width: calc(100vw - 40px);
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.tour-toast.tour-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.tour-toast i {
  color: var(--accent);
  margin-right: 6px;
}

@media (min-width: 768px) {
  .tour-toast { bottom: 24px; }
}

/* === Settings panel: lista de tours disponibles === */
.settings-tour-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--bs-secondary-color);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: border-color 0.15s, color 0.15s;
  margin-bottom: 6px;
}

.settings-tour-item:last-child { margin-bottom: 0; }

.settings-tour-item:hover {
  border-color: var(--accent);
  color: var(--bs-body-color);
}

.settings-tour-item i:first-child {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.settings-tour-item span { flex: 1; }

.settings-tour-item .tour-replay-icon {
  font-size: 11px;
  opacity: 0.5;
}
