/* WondarCore — código propio, no generado. Se puede modificar libremente. */
/* Tour guiado de bienvenida — primera visita real de un usuario nuevo. Reemplaza al modal
   "¡Bienvenido a Wondar!" (welcome-modal.js/.css, retirado 2026-09-20 por pedido de Agustin/
   Gonzalo: se veía como publicidad) por un recorrido sobre el header REAL — el buscador y las 4
   opciones del menú de accesos rápidos (.dock-item) — con el resto de la pantalla oscurecida.
   Ver onboarding-tour.js. */

body.tour-activo { overflow: hidden; }

/* Spotlight — el "agujero" se logra con box-shadow sobre una caja transparente (spread de
   9999px), no con un overlay + clip-path aparte: oscurece TODO menos la caja misma, sin
   necesitar recalcular ningún polígono al reposicionar. */
.tour-highlight {
  position: fixed;
  z-index: 4001;
  border-radius: 16px;
  box-shadow: 0 0 0 3px var(--color-fondo-superficie), 0 0 0 9999px rgba(10, 10, 20, 0.72);
  pointer-events: none;
  opacity: 0;
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1), left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1), height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
}
.tour-highlight--visible { opacity: 1; }

.tour-card {
  position: fixed;
  z-index: 4002;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: var(--color-fondo-superficie);
  border-radius: 16px;
  box-shadow: var(--sombra-fuerte);
  padding: 18px 20px 16px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1), left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, transform 0.25s ease;
}
.tour-card--visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Flechita apuntando al elemento resaltado — el JS fija su posición horizontal con --arrow-left
   según dónde cae el centro del target relativo a la card. */
.tour-card::before {
  content: '';
  position: absolute;
  left: var(--arrow-left, 24px);
  width: 14px;
  height: 14px;
  background: var(--color-fondo-superficie);
  transform: translateX(-50%) rotate(45deg);
}
.tour-card--abajo::before { top: -7px; border-radius: 3px 0 0 0; }
.tour-card--arriba::before { bottom: -7px; border-radius: 0 0 3px 0; }

.tour-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.tour-card-paso {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-secundario);
}
.tour-card-close {
  background: none;
  border: none;
  color: var(--color-texto-terciario);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
  min-height: auto;
}
.tour-card-close:hover { background: var(--color-fondo-hover); color: var(--color-texto); }

.tour-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-texto);
  margin-bottom: 6px;
}
.tour-card-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-texto-secundario);
  margin-bottom: 14px;
}

.tour-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tour-dots { display: flex; gap: 5px; }
.tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-borde);
  transition: background 0.2s ease, transform 0.2s ease;
}
.tour-dot--activo {
  background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
  transform: scale(1.25);
}

.tour-btn-siguiente {
  border: none;
  cursor: pointer;
  color: var(--color-texto-sobre-color);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
  white-space: nowrap;
}
.tour-btn-siguiente:hover { opacity: 0.9; }

@media (max-width: 480px) {
  .tour-card { width: 280px; padding: 16px 16px 14px; }
}
