/* ===== DRAG & DROP overlay PANTALLA COMPLETA (HAON) ===== */
#haon-drop-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 60, 120, 0.88);
  border: 3px dashed rgba(255, 255, 255, 0.7);
  z-index: 9999;
  pointer-events: none;
  backdrop-filter: blur(3px);
}
#haon-drop-overlay.is-visible { display: flex; }
.haon-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-align: center;
}
.haon-drop-plus {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f2c200;
  color: #1a3a6b;
  font-size: 46px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.haon-drop-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ============================================================
   HEADER — Widget de folios + Solicitar + Salir (HAON)
   Bloque unico y limpio. No duplicar reglas abajo de aqui.
   ============================================================ */
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

/* --- Widget de folios (barrita) --- */
.haon-folios-widget {
  display: flex;
  align-items: center;
  gap: 10px;
}
.haon-folios-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  box-sizing: border-box;
  padding: 0 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.haon-folios-meter:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
}
.haon-folios-icon { display: flex; color: #5dcaa5; opacity: 0.9; }
.haon-folios-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.haon-folios-num { font-size: 16px; font-weight: 700; color: #e8f5f0; letter-spacing: 0.3px; }
.haon-folios-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.6px; color: #7a93a8; }
.haon-folios-bar { width: 54px; height: 5px; background: rgba(255,255,255,0.10); border-radius: 3px; overflow: hidden; }
.haon-folios-bar-fill { display: block; height: 100%; width: 50%; background: #1d9e75; border-radius: 3px; transition: width 0.4s ease, background 0.3s ease; }
.haon-folios-widget.is-warn .haon-folios-bar-fill { background: #ef9f27; }
.haon-folios-widget.is-warn .haon-folios-icon { color: #ef9f27; }
.haon-folios-widget.is-low .haon-folios-bar-fill { background: #e24b4a; }
.haon-folios-widget.is-low .haon-folios-icon { color: #e24b4a; }
.haon-folios-widget.is-low .haon-folios-num { color: #ffb3b3; }

/* --- Boton Solicitar --- */
.haon-solicitar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  box-sizing: border-box;
  padding: 0 14px;
  background: rgba(93,202,165,0.12);
  border: 1px solid rgba(93,202,165,0.35);
  color: #9fe1cb;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.haon-solicitar-btn:hover { background: rgba(93,202,165,0.22); border-color: rgba(93,202,165,0.55); }
.haon-folios-widget.is-low .haon-solicitar-btn {
  background: rgba(226,75,74,0.16);
  border-color: rgba(226,75,74,0.5);
  color: #ffb3b3;
  animation: haon-solicitar-pulse 2s ease-in-out infinite;
}
@keyframes haon-solicitar-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226,75,74,0.0); }
  50% { box-shadow: 0 0 0 4px rgba(226,75,74,0.18); }
}

/* --- Separador (elemento propio, centrado por flex) --- */
.haon-header-sep {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.16);
  flex: 0 0 auto;
}

/* --- Boton Salir --- */
.haon-logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  box-sizing: border-box;
  padding: 0 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.16);
  color: #c2d2e0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.haon-logout-btn:hover { background: rgba(226,75,74,0.10); border-color: rgba(226,75,74,0.4); color: #ffb3b3; }

/* --- Movil: compactar (la bascula usa telefono) --- */
@media (max-width: 768px) {
  .user-menu { gap: 8px; }
  .haon-folios-label, .haon-folios-bar { display: none; }
  .haon-folios-meter { padding: 0 10px; gap: 6px; }
  .haon-solicitar-btn span, .haon-logout-btn span { display: none; }
  .haon-solicitar-btn, .haon-logout-btn { padding: 0 11px; }
  .haon-header-sep { height: 20px; }
}

