/* ==========================================================================
   tour.css - Recorrido guiado (modo aprendizaje) para /equipo, /local y /cocina.
   Hoja independiente, con sus propias variables: estas tres pantallas usan
   paletas distintas entre si (rosa en portal.css/equipo.css, dorado en ops.css),
   asi que el tour no depende de ninguna y se ve igual en las tres.
   ========================================================================== */
:root {
  --tour-bg: #1c1320;
  --tour-card: #2a1b2a;
  --tour-line: #55304d;
  --tour-text: #fff6fb;
  --tour-muted: #d9b9ce;
  --tour-accent: #ff3d94;
  --tour-accent-ink: #fff;
}

body.tour-open { overflow: hidden; }

.tour-veil {
  position: fixed; inset: 0; z-index: 9998;
  background: transparent;
  cursor: pointer;
}

.tour-spot {
  position: fixed; z-index: 9998; pointer-events: none;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(10, 6, 10, .62), 0 0 0 3px var(--tour-accent);
  transition: top .22s var(--tour-ease, cubic-bezier(.22, 1, .36, 1)), left .22s, width .22s, height .22s;
}

.tour-card {
  position: fixed; z-index: 9999; max-width: 360px;
  background: var(--tour-card); color: var(--tour-text);
  border: 1.5px solid var(--tour-line); border-radius: 16px;
  padding: 1.1rem 1.2rem 1rem; box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  transition: top .22s cubic-bezier(.22, 1, .36, 1), left .22s cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .tour-spot, .tour-card { transition: none; }
}

.tour-close {
  position: absolute; top: .5rem; right: .5rem; appearance: none; border: 0; background: transparent;
  color: var(--tour-muted); font-size: 1.4rem; line-height: 1; width: 2rem; height: 2rem; border-radius: 8px; cursor: pointer;
}
.tour-close:hover { background: rgba(255, 255, 255, .08); color: var(--tour-text); }

.tour-count {
  margin: 0 1.6rem .35rem 0; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--tour-accent);
}
.tour-title {
  margin: 0 1.6rem .4rem 0; font: 800 1.15rem/1.25 "Bricolage Grotesque", "Manrope", sans-serif; color: var(--tour-text);
}
.tour-text { margin: 0 0 1rem; font-size: .95rem; line-height: 1.5; color: var(--tour-muted); }

.tour-hint {
  display: flex; align-items: center; gap: .4rem; margin: -.4rem 0 1rem; font-size: .82rem; font-weight: 700;
  color: var(--tour-accent);
}
.tour-hint[hidden] { display: none; }
.tour-hint::before { content: "\1F449"; font-size: 1rem; }

@keyframes tour-pulse {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(10, 6, 10, .62), 0 0 0 3px var(--tour-accent); }
  50% { box-shadow: 0 0 0 9999px rgba(10, 6, 10, .62), 0 0 0 6px var(--tour-accent); }
}
.tour-spot.is-waiting { animation: tour-pulse 1.3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .tour-spot.is-waiting { animation: none; }
}

.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.tour-nav { display: flex; gap: .5rem; }

.tour-btn {
  appearance: none; border: 1.5px solid var(--tour-line); background: #3a2638; color: var(--tour-text);
  font: 700 .9rem/1 "Manrope", sans-serif; padding: .6rem .9rem; border-radius: 10px; cursor: pointer;
  min-height: 2.6rem; touch-action: manipulation;
}
.tour-btn:hover { border-color: var(--tour-accent); }
.tour-btn:disabled { opacity: .4; cursor: default; }
.tour-btn--main { background: var(--tour-accent); border-color: var(--tour-accent); color: var(--tour-accent-ink); }
.tour-btn--ghost { background: transparent; border-color: transparent; color: var(--tour-muted); padding-inline: .4rem; }
.tour-btn--ghost:hover { color: var(--tour-text); border-color: transparent; background: transparent; text-decoration: underline; }

[data-tour-start] { white-space: nowrap; }

@media (max-width: 26rem) {
  .tour-card { left: 12px !important; right: 12px; width: auto !important; max-width: none; }
}
