/* ===========================================================
   tour.css — guía de uso: foco, globo y botón de ayuda.
   =========================================================== */

/* botón flotante de ayuda; se aparta de la barra inferior en móvil */
.to-ayuda {
  position: fixed; right: 18px; bottom: 22px; z-index: 60;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); color: var(--terracotta);
  border: 1px solid var(--line-soft); box-shadow: var(--sh-md);
  cursor: pointer; transition: transform .18s, background .18s;
}
.to-ayuda:hover { transform: scale(1.08); background: var(--cream-2); }
@media (max-width: 900px) { .to-ayuda { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); right: 14px; } }
@media print { .to-ayuda { display: none; } }

/* capa */
.to-capa { position: fixed; inset: 0; z-index: 200; }
.to-fondo { position: absolute; inset: 0; background: rgba(20, 14, 8, .46); backdrop-filter: blur(1.5px);
  animation: toFade .22s ease-out; }
@keyframes toFade { from { opacity: 0; } to { opacity: 1; } }

/* recuadro que señala el elemento: el agujero se hace con una sombra enorme
   hacia fuera, que recorta el fondo oscuro sin tapar lo de dentro */
.to-foco {
  position: absolute; border-radius: 14px; pointer-events: none;
  border: 2px solid var(--terracotta);
  box-shadow: 0 0 0 9999px rgba(20, 14, 8, .46);
  transition: top .25s cubic-bezier(.2,.8,.2,1), left .25s cubic-bezier(.2,.8,.2,1),
              width .25s cubic-bezier(.2,.8,.2,1), height .25s cubic-bezier(.2,.8,.2,1);
}
.to-foco + .to-globo { z-index: 2; }

/* globo */
.to-globo {
  position: absolute; z-index: 3; width: 380px; max-width: calc(100vw - 32px);
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 20px;
  padding: 20px 22px 16px; box-shadow: 0 18px 50px rgba(20, 14, 8, .26);
  display: flex; flex-direction: column; gap: 9px;
  animation: toSube .26s cubic-bezier(.2,.8,.2,1);
}
@keyframes toSube { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.to-globo.centrado { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.to-globo.movil {
  top: auto !important; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 16px !important; right: 16px; width: auto; transform: none;
}
.to-globo.centrado.movil { top: auto; }

.to-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.to-seccion { font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.to-x { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--cream-2); color: var(--ink-soft); border: none; cursor: pointer; }
.to-x:hover { background: var(--line-soft); }
.to-x svg { transform: rotate(45deg); }   /* la cruz de cerrar es el "+" girado */

.to-intro { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-faint);
  border-left: 2px solid var(--line); padding-left: 11px; }
.to-t { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.to-texto { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

.to-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.to-puntos { display: flex; gap: 6px; align-items: center; }
.to-punto { width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: var(--line); transition: all .18s; }
.to-punto.hecho { background: var(--terracotta-soft, var(--ochre-soft)); }
.to-punto.on { background: var(--terracotta); width: 20px; border-radius: 999px; }
.to-botones { display: flex; gap: 8px; align-items: center; }
.btn-primary.sm, .btn-soft.sm { padding: 8px 14px; font-size: 13px; }

/* fila de ajustes para volver a ver las guías */
.to-reset { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.to-reset-txt { font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); max-width: 52ch; }
