/* ==========================================================================
   Sistema de ayuda contextual (tour guiado + tooltips)
   Color: mismo amarillo que ya usa el loader de bolitas de la app
   (css/loading.css, animacion bouncedelay, #FFBB00) -- se reutiliza a
   proposito en vez de inventar un tono nuevo, y se mantiene separado del
   azul de modern.css (accion primaria) y del naranja de advertencia
   (#e67e22) ya existentes.
   ========================================================================== */

.view-help-fab {
  /* Inline, al final del titulo de cada vista (ver JS: se inserta como
     ultimo hijo de .modern-card-title), no flotante -- se desplaza con la
     pagina igual que el resto del titulo. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: #C79200;
  border: 2px solid #FFBB00;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(255, 187, 0, 0.4);
  margin-left: 8px;
  vertical-align: middle;
  flex: none;
  transition: transform .15s ease;
}
.view-help-fab:hover { transform: scale(1.08); }

.view-help-toast {
  position: fixed;
  left: 26px;
  bottom: 26px;
  max-width: 300px;
  background: #fff;
  border: 1px solid #e1e6ee;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(30,40,60,0.06), 0 8px 24px rgba(30,40,60,0.10);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(8px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.view-help-toast.show { transform: translateY(0); opacity: 1; }
.view-help-toast .vh-title { font-size: 13.5px; font-weight: 700; }
.view-help-toast .vh-body { font-size: 12.5px; color: #78849b; line-height: 1.5; }
.view-help-toast .vh-actions { display: flex; gap: 8px; }
.view-help-toast .vh-actions button {
  font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 7px;
  cursor: pointer; border: 1px solid #e1e6ee; background: #f6f8fb; color: #263243;
}
.view-help-toast .vh-actions button.go {
  background: linear-gradient(135deg, #FFBB00 0%, #C79200 100%);
  color: #2a1f00; border-color: transparent;
}

[data-help].view-help-target {
  position: relative;
  z-index: 9500;
  border-radius: 10px;
  box-shadow: 0 0 0 4px #FFBB00, 0 0 0 9999px rgba(16,23,35,0.74);
  transition: box-shadow .2s ease;
}

/* El "?" dentro del encabezado de un modal (ver showModalFabs en el JS):
   mismo estilo que el de la vista, apenas mas compacto para el h4 del modal. */
.vh-modal-fab {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.view-help-pop {
  position: fixed;
  /* Por encima de .modern-modal (z-index 99999 en modern-modal.css): el tour
     y las burbujas tambien funcionan dentro de los modales. */
  z-index: 100600;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: #fff;
  color: #263243;
  border-radius: 12px;
  padding: 16px 16px 14px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,187,0,0.55);
}
.view-help-pop .vh-step-count {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #C79200; margin-bottom: 6px;
}
.view-help-pop h3 { margin: 0 0 6px; font-size: 15px; }
.view-help-pop p { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: #78849b; }
.view-help-pop-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.view-help-pop-actions .vh-left { display: flex; gap: 6px; }
.view-help-pop-actions button {
  font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 7px;
  cursor: pointer; border: 1px solid #e1e6ee; background: #f6f8fb; color: #263243;
}
.view-help-pop-actions button.vh-next {
  background: linear-gradient(135deg, #3a7bd5 0%, #1e5ba8 100%);
  color: #fff; border-color: transparent;
}
.view-help-pop-actions .vh-skip {
  background: none; border: none; color: #78849b; font-size: 12px; font-weight: 600;
  text-decoration: underline; cursor: pointer; padding: 6px 2px;
}
.view-help-dots { display: flex; gap: 5px; justify-content: center; margin-top: 12px; }
.view-help-dots span { width: 5px; height: 5px; border-radius: 50%; background: #e1e6ee; display: inline-block; }
.view-help-dots span.on { background: #FFBB00; width: 14px; border-radius: 3px; }

.view-help-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff4cf;
  color: #C79200;
  border: 1px solid rgba(255,187,0,0.55);
  font-size: 10px;
  font-weight: 800;
  cursor: help;
  margin-left: 6px;
  vertical-align: middle;
  position: relative;
}
/* position:fixed + top/left calculados por JS (ver positionFloating en
   view-help-tour.js): centrado por CSS puro se salia de pantalla por la
   izquierda en movil cuando el elemento estaba cerca del borde.
   El JS mueve este elemento a <body> (fuera de .view-help-badge) para que
   no lo recorte ningun contenedor con overflow, por eso el selector NO
   va calificado por .view-help-badge: ya no es descendiente suyo. */
.vh-bubble {
  position: fixed;
  width: 230px;
  max-width: calc(100vw - 32px);
  background: #263243;
  color: #eef1f6;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  padding: 9px 11px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 100600; /* por encima de .modern-modal (99999), igual que .view-help-pop */
  text-align: left;
}
.vh-bubble.show {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .view-help-fab, .view-help-toast, [data-help].view-help-target, .vh-bubble {
    transition: none !important;
  }
}
