/*
 * Staberman guided tour (assets/sbm-tour.js). Everything is namespaced sbm-tour- so it never touches the
 * demo's own styles. Same look as the Staberman bar: #080b14, magenta #ff4ad8, cyan #67e8ff, IBM Plex.
 */

/* ---------- "Ver guía" button in the Staberman bar ---------- */
.sbm-bar .sbm-tour-launch {
  box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 26px; margin: 0 -4px 0 auto; padding: 0 10px 0 8px;
  border: 1px solid rgba(174,182,205,.28); border-radius: 999px; background: rgba(255,255,255,.02);
  color: #aeb6cd; font: 500 12px/1 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -.01em; text-transform: none; white-space: nowrap; cursor: pointer;
  -webkit-font-smoothing: antialiased; transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.sbm-bar .sbm-tour-launch[hidden] { display: none; }
.sbm-bar .sbm-tour-launch:hover { color: #fff; border-color: rgba(255,74,216,.6); background: rgba(255,74,216,.08); }
.sbm-bar .sbm-tour-launch:focus-visible { outline: 2px solid #67e8ff; outline-offset: 2px; }
.sbm-tour-launch__icon { flex: none; width: 14px; height: 14px; color: #ff4ad8; }
.sbm-tour-launch__label { display: inline; }
@media (max-width: 480px) {
  .sbm-bar .sbm-tour-launch { width: 26px; padding: 0; justify-content: center; }
  .sbm-tour-launch__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
/* On phones the back link keeps its full label: its arrow (and, below 375 px, part of the logo, as the
   bar itself does below 360 px) makes room for the button. */
@media (max-width: 400px) {
  .sbm-bar .sbm-tour-launch:not([hidden]) ~ .sbm-bar__back .sbm-bar__arrow { display: none; }
}
@media (max-width: 374px) {
  .sbm-bar:has(.sbm-tour-launch:not([hidden])) .sbm-bar__brand img { height: 14px; }
  .sbm-bar .sbm-tour-launch { margin-right: -6px; }
}

/* ---------- tour layer ---------- */
.sbm-tour {
  position: fixed; inset: 0; z-index: 2147483000; pointer-events: none;
  color: #dfe4f2; font: 400 14px/1.5 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: normal; text-align: left; text-transform: none; -webkit-font-smoothing: antialiased;
}
.sbm-tour[hidden] { display: none; }
.sbm-tour *, .sbm-tour *::before, .sbm-tour *::after { box-sizing: border-box; }

/* Dimmed backdrop: a full-screen path with a rounded hole around the target. The hole is not painted,
   so clicks there reach the demo; the rest of the shade keeps the demo out of reach. */
.sbm-tour-backdrop { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sbm-tour-shade { fill: rgba(5,7,14,.62); pointer-events: auto; cursor: default; }

.sbm-tour-ring {
  position: absolute; left: 0; top: 0; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 2px #ff4ad8, 0 0 0 6px rgba(255,74,216,.2), 0 0 28px 4px rgba(255,74,216,.28);
  animation: sbm-tour-pulse 2.4s ease-in-out infinite;
}
.sbm-tour-ring[hidden] { display: none; }
@keyframes sbm-tour-pulse {
  0%, 100% { box-shadow: 0 0 0 2px #ff4ad8, 0 0 0 6px rgba(255,74,216,.2), 0 0 28px 4px rgba(255,74,216,.28); }
  50% { box-shadow: 0 0 0 2px #ff4ad8, 0 0 0 9px rgba(255,74,216,.1), 0 0 36px 6px rgba(103,232,255,.22); }
}

/* Tooltip card */
.sbm-tour-card {
  position: absolute; left: 0; top: 0; width: min(340px, calc(100vw - 32px)); margin: 0; padding: 16px 16px 12px;
  border: 1px solid rgba(103,232,255,.2); border-radius: 12px; pointer-events: auto; overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,74,216,.7), rgba(187,124,255,.7) 46%, rgba(103,232,255,.7)) left top / 100% 2px no-repeat,
    radial-gradient(ellipse at 12% -40%, rgba(174,94,229,.18), transparent 60%),
    #0b0f1c;
  box-shadow: 0 18px 48px -12px rgba(0,0,0,.65), 0 2px 8px rgba(0,0,0,.25);
  color: #dfe4f2;
}
.sbm-tour-card:focus { outline: none; }
.sbm-tour-card:focus-visible { outline: 2px solid #67e8ff; outline-offset: 2px; }
.sbm-tour-card--enter { animation: sbm-tour-enter .18s ease-out; }
.sbm-tour-card--nudge { animation: sbm-tour-nudge .32s ease-in-out; }
@keyframes sbm-tour-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes sbm-tour-nudge { 0%, 100% { margin-left: 0; } 25% { margin-left: -5px; } 75% { margin-left: 5px; } }

/* Narrow screens: docked to the bottom (or to the top when the target sits at the bottom). */
.sbm-tour-card.sbm-tour-card--dock {
  left: 8px; right: 8px; top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; transform: none;
}
.sbm-tour-card.sbm-tour-card--dock.sbm-tour-card--top { top: 8px; bottom: auto; }

.sbm-tour-live { min-width: 0; }
.sbm-tour .sbm-tour-count {
  margin: 0 0 8px; padding: 0; color: #67e8ff;
  font: 700 10px/1 "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .11em; text-transform: uppercase;
}
.sbm-tour .sbm-tour-title {
  margin: 0 0 6px; padding: 0; color: #fff; border: 0;
  font: 600 16px/1.3 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.01em; text-transform: none;
}
.sbm-tour .sbm-tour-text {
  margin: 0; padding: 0; color: #c4cadb; overflow-wrap: anywhere;
  font: 400 14px/1.5 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.sbm-tour .sbm-tour-text b { color: #fff; font-weight: 600; }

.sbm-tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.sbm-tour-nav { display: flex; align-items: center; gap: 8px; }
.sbm-tour .sbm-tour-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 34px; min-width: 0; margin: 0; padding: 0 14px;
  border: 1px solid rgba(174,182,205,.32); border-radius: 8px; background: transparent; color: #dfe4f2; cursor: pointer;
  font: 500 13px/1 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: -.01em; white-space: nowrap;
  box-shadow: none; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.sbm-tour .sbm-tour-btn:hover { border-color: rgba(223,228,242,.6); background: rgba(255,255,255,.05); }
.sbm-tour .sbm-tour-btn[disabled] { opacity: .38; cursor: default; }
.sbm-tour .sbm-tour-btn[disabled]:hover { border-color: rgba(174,182,205,.32); background: transparent; }
.sbm-tour .sbm-tour-btn--primary { border-color: #ff4ad8; background: #ff4ad8; color: #14051a; font-weight: 600; }
.sbm-tour .sbm-tour-btn--primary:hover { border-color: #ff6fe0; background: #ff6fe0; }
.sbm-tour .sbm-tour-skip {
  margin: 0 0 0 -2px; padding: 8px 2px; border: 0; background: none; color: #8f98b3; cursor: pointer;
  font: 500 13px/1 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-decoration: underline; text-decoration-color: rgba(143,152,179,.5); text-underline-offset: 3px; white-space: nowrap;
}
.sbm-tour .sbm-tour-skip:hover { color: #dfe4f2; }
.sbm-tour .sbm-tour-btn:focus-visible, .sbm-tour .sbm-tour-skip:focus-visible { outline: 2px solid #67e8ff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .sbm-bar .sbm-tour-launch, .sbm-tour .sbm-tour-btn { transition: none; }
  .sbm-tour-ring, .sbm-tour-card--enter, .sbm-tour-card--nudge { animation: none; }
}
@media print { .sbm-tour, .sbm-bar .sbm-tour-launch { display: none !important; } }
