/* Guía interactiva (product tour): fondo translúcido, foco sobre un elemento y tarjeta explicativa. */

.sige-tour-block {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: transparent;
  cursor: default;
}

/* El "agujero" iluminado: una sombra enorme oscurece todo salvo el recuadro del elemento. */
.sige-tour-spot {
  position: fixed;
  z-index: 4001;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(17, 17, 27, 0.66);
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
  pointer-events: none;
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.sige-tour-card {
  position: fixed;
  z-index: 4003;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  transition: top 0.2s ease, left 0.2s ease;
}

.sige-tour-arrow {
  position: fixed;
  z-index: 4002;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.sige-tour-step {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a11463;
  font-weight: 700;
}

.sige-tour-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 5px 0 8px;
  color: #1e1e28;
  line-height: 1.3;
}

.sige-tour-body {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
}

.sige-tour-dontshow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #666;
  margin-top: 12px;
  cursor: pointer;
  user-select: none;
}
.sige-tour-dontshow input {
  width: auto;
  margin: 0;
}

.sige-tour-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.sige-tour-spacer {
  flex: 1;
}

.sige-tour-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.sige-tour-btn-primary {
  background: #a11463;
  color: #fff;
}
.sige-tour-btn-primary:hover {
  background: #86104f;
}
.sige-tour-btn-ghost {
  background: transparent;
  color: #666;
  border-color: transparent;
  padding: 7px 6px;
}
.sige-tour-btn-ghost:hover {
  color: #a11463;
}
.sige-tour-btn-secondary {
  background: #fff;
  color: #444;
  border-color: rgba(0, 0, 0, 0.15);
}
.sige-tour-btn-secondary:hover {
  border-color: #a11463;
  color: #a11463;
}

/* Botón fijo "❓ Guía" en la barra superior */
.sige-tour-help-btn {
  display: none; /* lo muestra el JS solo si la pantalla tiene guía */
  align-items: center;
  gap: 6px;
  background: rgba(161, 20, 99, 0.08);
  color: #a11463;
  border: 1px solid rgba(161, 20, 99, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.sige-tour-help-btn:hover {
  background: rgba(161, 20, 99, 0.15);
}
.sige-tour-help-btn.is-available {
  display: inline-flex;
}

/* Índice de guías (se abre con "❓ Guía" si la pantalla no tiene guía propia) */
.sige-guide-index-overlay {
  position: fixed;
  inset: 0;
  z-index: 4100;
  background: rgba(17, 17, 27, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sige-guide-index {
  width: 520px;
  max-width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 22px 24px 24px;
  box-sizing: border-box;
}
.sige-guide-index-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sige-guide-index-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a11463;
  font-weight: 700;
}
.sige-guide-index-h2 {
  margin: 3px 0 0;
  font-size: 1.25rem;
  color: #1e1e28;
}
.sige-guide-index-close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
}
.sige-guide-index-close:hover {
  color: #a11463;
}
.sige-guide-index-intro {
  font-size: 0.88rem;
  color: #555;
  margin: 8px 0 16px;
  line-height: 1.5;
}
.sige-guide-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sige-guide-index-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}
.sige-guide-index-item.is-here {
  border-color: #a11463;
  background: rgba(161, 20, 99, 0.045);
}
.sige-guide-index-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sige-guide-index-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e1e28;
}
.sige-guide-index-hint {
  font-size: 0.8rem;
  color: #777;
  line-height: 1.4;
}
.sige-guide-index-item .sige-tour-btn {
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .sige-tour-card {
    width: calc(100vw - 24px);
  }
  .sige-tour-arrow {
    display: none;
  }
}
