/* ===========================================================================
   Lumo — estilos del onboarding guiado (motor en js/Tour.jsx).
   Usa las variables de tema de :root, así se adapta a claro/oscuro solo.
   =========================================================================== */

/* Capa que bloquea la interacción del fondo durante el tour */
.tour-block {
  position: fixed; inset: 0; z-index: 8990; background: transparent;
}

/* Foco: un div sobre el elemento; su sombra gigante oscurece todo lo demás */
.tour-spot {
  position: fixed; z-index: 9000; border-radius: 12px; pointer-events: none;
  box-shadow:
    0 0 0 3px var(--accent),
    0 0 0 7px rgba(242, 169, 29, .28),
    0 0 0 9999px rgba(17, 20, 26, .60);
  transition: left .42s cubic-bezier(.4,0,.2,1), top .42s cubic-bezier(.4,0,.2,1),
              width .42s cubic-bezier(.4,0,.2,1), height .42s cubic-bezier(.4,0,.2,1),
              opacity .25s ease;
  opacity: 0;
}
.tour-spot.show { opacity: 1; }
.tour-spot::after {
  content: ""; position: absolute; inset: -3px; border-radius: inherit;
  box-shadow: 0 0 0 3px var(--accent); animation: tourPulse 1.9s ease-out infinite;
}
@keyframes tourPulse {
  0%   { opacity: .7; transform: scale(1); }
  70%  { opacity: 0;  transform: scale(1.05); }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-spot { transition: opacity .2s ease; }
  .tour-spot::after { animation: none; }
}

/* Bocadillo de la mascota */
.tour-bubble {
  position: fixed; z-index: 9100; width: 340px; max-width: calc(100vw - 28px);
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 8px 18px -6px rgba(20,28,44,.18), 0 30px 60px -24px rgba(20,28,44,.42);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.tour-bubble.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

.tour-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 0; }
.tour-mascot {
  width: 46px; height: 46px; flex: none; object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(20,28,44,.16));
  animation: tourBob 3.4s ease-in-out infinite;
}
@keyframes tourBob {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-4px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) { .tour-mascot { animation: none; } }

.tour-step { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.tour-title { font-size: 16.5px; font-weight: 700; margin: 2px 0 0; letter-spacing: -.01em; color: var(--ink); }
.tour-text { padding: 9px 18px 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

.tour-foot { display: flex; align-items: center; gap: 10px; padding: 16px 18px 16px; }
.tour-dots { display: flex; gap: 6px; margin-right: auto; }
.tour-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: .2s; }
.tour-dot.on { background: var(--accent); transform: scale(1.25); }

.tour-skip { background: none; border: none; color: var(--muted); font-size: 12.5px; padding: 6px 4px; cursor: pointer; }
.tour-skip:hover { color: var(--ink); text-decoration: underline; }

.tour-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .14s;
}
.tour-btn:hover { border-color: var(--muted-2); }
.tour-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tour-btn.primary:hover { background: var(--accent-hover); }

/* colita que apunta al elemento */
.tour-tail { position: absolute; width: 14px; height: 14px; background: var(--paper); transform: rotate(45deg); }
.tour-tail.top    { top: -8px;    border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.tour-tail.bottom { bottom: -8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Tarjeta centrada (bienvenida / cierre) */
.tour-bubble.center {
  left: 50% !important; top: 50% !important;
  transform: translate(-50%, -50%) scale(.96); width: 410px; text-align: center;
}
.tour-bubble.center.show { transform: translate(-50%, -50%) scale(1); }
.tour-bubble.center .tour-head { flex-direction: column; padding: 30px 26px 0; gap: 6px; }
.tour-bubble.center .tour-mascot { width: 84px; height: 84px; }
.tour-bubble.center .tour-text { padding: 10px 30px 0; font-size: 14px; }
.tour-bubble.center .tour-foot { padding: 22px 26px 24px; }
.tour-bubble.center .tour-dots { display: none; }
.tour-bubble.center .tour-tail { display: none; }

/* Botón "Ver tutorial" reutilizable (nav lateral y barra del editor) */
.tour-launch { display: inline-flex; align-items: center; gap: 7px; }
