/* ── Zanellato · Tour guiado (motor compartido) ──
   Lo usan index/admin/viajero-mobile/viajero-desktop.
   Cada página define window.TOUR_STEPS y linkea tour.css + tour.js. */

:root {
  --zt-purple: #3D2660; --zt-coral: #E8735A; --zt-lilac: #EDE8F5;
  --zt-ink: #1A1025; --zt-gray: #6B6478;
}

/* Botón flotante de lanzamiento */
.ztour-launch {
  position: fixed; right: 18px; bottom: 18px; z-index: 9000;
  background: linear-gradient(135deg, #3D2660, #5B3D8A); color: #fff;
  border: none; border-radius: 999px; padding: 12px 18px; cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(40,20,70,0.35); display: inline-flex; align-items: center; gap: 7px;
  transition: transform .15s, box-shadow .15s;
}
.ztour-launch:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(40,20,70,0.45); }
.ztour-launch::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--zt-coral); box-shadow: 0 0 0 3px rgba(232,115,90,0.3); }

/* Root */
.ztour-root { position: fixed; inset: 0; z-index: 9100; display: none; font-family: 'Inter', system-ui, sans-serif; }
.ztour-root.open { display: block; }

.ztour-backdrop { position: absolute; inset: 0; background: rgba(20,10,30,0.62); opacity: 0; transition: opacity .25s; }
.ztour-root.dim .ztour-backdrop { opacity: 1; }

/* Spotlight (recorta el área enfocada con un box-shadow gigante) */
.ztour-spot {
  position: fixed; border-radius: 12px; display: none; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(20,10,30,0.62); border: 2px solid var(--zt-coral);
  transition: top .28s, left .28s, width .28s, height .28s; z-index: 1;
}

/* Tarjeta de narración */
.ztour-card {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 3;
  width: min(440px, calc(100vw - 28px)); background: #fff; border-radius: 16px;
  padding: 18px 20px 16px; box-shadow: 0 24px 60px rgba(20,10,30,0.45);
  transition: top .28s; top: 50%;
}
.ztour-card.center { top: 50%; transform: translate(-50%, -50%); }

/* Barra de flujo (el gráfico del flujo original) */
.ztour-flow { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.ztour-stg { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600;
  color: var(--zt-gray); background: var(--zt-lilac); border-radius: 999px; padding: 4px 9px; opacity: .55; transition: all .25s; }
.ztour-stg i { font-style: normal; font-size: 12px; }
.ztour-stg.done { opacity: .9; background: #E8F5F0; color: #2D7A5F; }
.ztour-stg.on { opacity: 1; background: var(--zt-purple); color: #fff; transform: scale(1.04); box-shadow: 0 4px 12px rgba(61,38,96,0.3); }
.ztour-arr { color: var(--zt-gray); opacity: .4; font-size: 11px; }

.ztour-step { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--zt-gray); margin-bottom: 6px; }
.ztour-step b { color: var(--zt-coral); }
.ztour-title { font-family: 'Playfair Display', Georgia, serif; font-size: 19px; font-weight: 500; color: var(--zt-ink); margin: 0 0 7px; line-height: 1.25; }
.ztour-body { font-size: 13.5px; color: #3a3147; line-height: 1.55; margin: 0 0 16px; }
.ztour-body b { color: var(--zt-purple); }

.ztour-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ztour-skip { background: none; border: none; color: var(--zt-gray); font-size: 12.5px; cursor: pointer; font-family: inherit; }
.ztour-skip:hover { color: var(--zt-ink); }
.ztour-nav { display: flex; gap: 8px; }
.ztour-prev, .ztour-next { font-family: inherit; font-size: 13px; border-radius: 9px; padding: 9px 16px; cursor: pointer; border: 1px solid rgba(61,38,96,0.16); background: #fff; color: var(--zt-ink); }
.ztour-prev { padding: 9px 12px; }
.ztour-next { background: var(--zt-purple); color: #fff; border-color: var(--zt-purple); font-weight: 600; }
.ztour-next:hover { background: #5B3D8A; }

/* Mobile: tarjeta como hoja inferior */
@media (max-width: 640px) {
  .ztour-card, .ztour-card.center { top: auto !important; bottom: 0; left: 0; transform: none;
    width: 100%; border-radius: 18px 18px 0 0; padding-bottom: 22px; }
  .ztour-launch { right: 12px; bottom: 12px; padding: 10px 15px; font-size: 12px; }
}
