/* ══════════════════════════════════════════════════════════════════════════════
   floating-buttons.css — Botones flotantes de redes sociales
   Incluido en header.php → disponible en todas las páginas automáticamente.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Contenedor ──────────────────────────────────────────────────────────────── */
#sh-floating-buttons {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 85;          /* sobre contenido, bajo header (100) y zoom (500) */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  /* bottom se ajusta dinámicamente por JS si hay sticky CTA en móvil */
}

/* ── Botón individual ────────────────────────────────────────────────────────── */
.sh-float-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  flex-shrink: 0;
  /* Color de fondo se pone via JS (color de marca) */
}
.sh-float-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  flex-shrink: 0;
}

/* ── Tooltip (desktop hover) ─────────────────────────────────────────────────── */
.sh-float-tooltip {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a1a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
  /* Flechita */
}
.sh-float-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1a1a1a;
}
.sh-float-btn:hover .sh-float-tooltip {
  opacity: 1;
}

/* ── Responsive móvil ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #sh-floating-buttons {
    right: 8px;
    bottom: 20px;
    gap: 5px;
  }
  .sh-float-btn {
    width: 36px;
    height: 36px;
    box-shadow: 0 1px 5px rgba(0,0,0,.22);
  }
  .sh-float-btn svg {
    width: 16px;
    height: 16px;
  }
  /* Ocultar tooltips en móvil — no hay hover real */
  .sh-float-tooltip {
    display: none;
  }
}

/* ── Accesibilidad: foco visible ─────────────────────────────────────────────── */
.sh-float-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
