/* Botón flotante derecho «Diagnóstico Gratuito» (opción 7: Medidor).
   Velocímetro que sube y aguja que se mueve, sobre cristal oscuro con borde y resplandor lima.
   Espejo del botón de WhatsApp (abajo a la izquierda); las redes sociales quedan al centro de la derecha. */
@keyframes dg-gauge { 0% { stroke-dashoffset: 100; } 60%, 100% { stroke-dashoffset: 22; } }
@keyframes dg-needle { 0% { transform: rotate(-80deg); } 60%, 100% { transform: rotate(48deg); } }
@keyframes dg-glow { 0%, 100% { box-shadow: 0 0 22px rgba(155, 233, 22, .22), 0 14px 34px rgba(0, 0, 0, .45); } 50% { box-shadow: 0 0 40px rgba(155, 233, 22, .42), 0 14px 34px rgba(0, 0, 0, .45); } }

.dg-fab {
  position: fixed; right: 24px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px;
  border-radius: 16px; color: #fff; text-decoration: none; background: rgba(7, 10, 6, .95); border: 1px solid rgba(155, 233, 22, .5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: dg-glow 3s ease-in-out infinite, fade-in-up .4s 0s var(--ease) both;
  transition: transform .3s var(--ease), border-color .3s;
}
.dg-fab:hover { transform: translateY(-4px); border-color: #9BE916; }
.dg-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.dg-gauge { width: 62px; height: 36px; flex: none; overflow: visible; }
.dg-gauge .tr { stroke: #26361a; }
.dg-gauge .pr { stroke: #9BE916; stroke-dasharray: 100; stroke-dashoffset: 100; animation: dg-gauge 3s ease-in-out infinite; filter: drop-shadow(0 0 4px #9BE916); }
.dg-gauge .nd { transform-origin: 31px 32px; animation: dg-needle 3s ease-in-out infinite; }

.dg-tx { display: grid; gap: 2px; line-height: 1.1; }
.dg-tx small { font: 500 .6rem ui-monospace, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: #9BE916; }
.dg-tx strong { font-size: .98rem; font-weight: 600; color: #fff; white-space: nowrap; }

@media (max-width: 600px) {
  .dg-fab { right: 14px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); gap: 9px; padding: 8px 14px 8px 9px; border-radius: 14px; }
  .dg-gauge { width: 46px; height: 27px; }
  .dg-tx small { display: none; }
  .dg-tx strong { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dg-fab { animation: none; }
  .dg-gauge .pr { animation: none; stroke-dashoffset: 22; }
  .dg-gauge .nd { animation: none; transform: rotate(48deg); }
}

/* Pantallas muy chicas (≤ 360 px): el botón se compacta para convivir con el de WhatsApp (72 px) sin tocarse */
@media (max-width: 360px) {
  .dg-fab { right: 10px; gap: 7px; padding: 7px 11px 7px 7px; }
  .dg-gauge { width: 38px; height: 22px; }
  .dg-tx strong { font-size: .78rem; }
}
