/* ============================================================
   Dualtic Tour — estilos del tour guiado (tooltips).
   Autocontenido, scoped bajo .dt-tour-*. z-index 99998
   (justo debajo de los toasts en 99999). Tipografía de marca.
   ============================================================ */

.dt-tour-root {
  /* Tokens locales del componente */
  --dtt-bg: #ffffff;
  --dtt-ink: #141414;
  --dtt-muted: #6a5651;
  --dtt-border: #ecd7d2;
  --dtt-accent: #ed6f5c;
  --dtt-accent-deep: #d8553f;
  --dtt-dim: rgba(20, 12, 10, 0.55);
  --dtt-radius: 16px;
  --dtt-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --dtt-body: 'Hanken Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
  --dtt-mono: 'JetBrains Mono', ui-monospace, monospace;
  --dtt-shadow: 0 18px 40px -12px rgba(60, 30, 25, .34), 0 4px 12px -4px rgba(60, 30, 25, .18);
  --dtt-ease: cubic-bezier(.23, 1, .32, 1);

  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: auto; /* bloquea la página durante el tour */
  font-family: var(--dtt-body);
  opacity: 0;
  transition: opacity 260ms var(--dtt-ease);
}

.dt-tour-root[data-shown="true"] { opacity: 1; }

/* Paso centrado (sin target): oscurecer toda la pantalla */
.dt-tour-root--plain { background: var(--dtt-dim); }

/* Spotlight: recorta todo menos el elemento resaltado vía box-shadow */
.dt-tour-spot {
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px var(--dtt-dim);
  pointer-events: none;
  transition: left .28s var(--dtt-ease), top .28s var(--dtt-ease),
              width .28s var(--dtt-ease), height .28s var(--dtt-ease);
}

/* Popover / tooltip */
.dt-tour-pop {
  position: fixed;
  pointer-events: auto;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: var(--dtt-bg);
  color: var(--dtt-ink);
  border: 1px solid var(--dtt-border);
  border-radius: var(--dtt-radius);
  box-shadow: var(--dtt-shadow);
  padding: 18px 18px 16px;
  transition: left .24s var(--dtt-ease), top .24s var(--dtt-ease);
}

.dt-tour-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--dtt-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s var(--dtt-ease), color .18s var(--dtt-ease), transform .18s var(--dtt-ease);
}
.dt-tour-x svg { width: 16px; height: 16px; display: block; }
.dt-tour-x:hover { background: var(--dtt-accent); color: #fff; transform: rotate(90deg); }

.dt-tour-count {
  font-family: var(--dtt-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--dtt-accent-deep);
  margin: 0 0 6px;
}

.dt-tour-title {
  font-family: var(--dtt-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 26px 8px 0;
  color: var(--dtt-ink);
}

.dt-tour-body {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--dtt-muted);
  margin: 0 0 16px;
}
.dt-tour-body strong { color: var(--dtt-ink); font-weight: 700; }

.dt-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dt-tour-skip {
  border: 0;
  background: transparent;
  color: var(--dtt-muted);
  font-family: var(--dtt-body);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 2px;
  border-radius: 8px;
}
.dt-tour-skip:hover { color: var(--dtt-ink); text-decoration: underline; }

.dt-tour-nav { display: inline-flex; gap: 8px; }

.dt-tour-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 100px;
  padding: 9px 16px;
  font-family: var(--dtt-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s var(--dtt-ease), border-color .18s var(--dtt-ease),
              color .18s var(--dtt-ease), transform .12s var(--dtt-ease);
}
.dt-tour-btn:active { transform: scale(.97); }

.dt-tour-btn--ghost {
  border: 1px solid var(--dtt-border);
  background: #fff;
  color: var(--dtt-ink);
}
.dt-tour-btn--ghost:hover { border-color: var(--dtt-accent); color: var(--dtt-accent-deep); }

.dt-tour-btn--primary {
  border: 1px solid var(--dtt-accent);
  background: var(--dtt-accent);
  color: #fff;
}
.dt-tour-btn--primary:hover { background: var(--dtt-accent-deep); border-color: var(--dtt-accent-deep); }

.dt-tour-ar { display: inline-flex; }
.dt-tour-ar svg { width: 15px; height: 15px; display: block; }

/* Flecha que apunta al target */
.dt-tour-arrow {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--dtt-bg);
  border: 1px solid var(--dtt-border);
  transform: rotate(45deg);
}
.dt-tour-arrow--bottom { top: -8px; border-right: 0; border-bottom: 0; margin-left: -7px; }
.dt-tour-arrow--top    { bottom: -8px; border-left: 0; border-top: 0; margin-left: -7px; }
.dt-tour-arrow--right  { left: -8px; border-top: 0; border-right: 0; margin-top: -7px; }
.dt-tour-arrow--left   { right: -8px; border-bottom: 0; border-left: 0; margin-top: -7px; }

/* Movimiento reducido: sin desplazamientos ni transiciones de posición */
@media (prefers-reduced-motion: reduce) {
  .dt-tour-root,
  .dt-tour-spot,
  .dt-tour-pop { transition: opacity 160ms ease; }
}
