/* CSS GLOBAL PARA LA PÍLDORA (Sin la dependencia de #bk-hero-card) */

.bkfh-hint {
  position: absolute; /* Será absoluto respecto al body */
  z-index: 2147483647 !important; /* Valor máximo real */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;

  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  max-width: none !important;
}

/* visible */
.bkfh-hint.bkfh-is-ready {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: bkfhFloat 2.25s linear infinite !important;
}

/* hidden */
.bkfh-hint.bkfh-is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
}

.bkfh-hint__label {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap !important;
  display: inline-block !important;
}

.bkfh-hint__icon,
.bkfh-hint__icon i {
  color: var(--bk-front-hint-mid, #0d41e1);
  font-size: 16px;
  line-height: 1;
}

.bkfh-hint::before,
.bkfh-hint::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
}

.bkfh-hint.bkfh-is-ready::before {
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 0 16px rgba(var(--bk-front-hint-mid-rgb,13,65,225),.18);
  animation: bkfhWave 2.25s linear infinite;
}

.bkfh-hint.bkfh-is-ready::after {
  border: 1px solid rgba(var(--bk-front-hint-mid-rgb,13,65,225),.22);
  box-shadow: 0 0 12px rgba(255,255,255,.10);
  animation: bkfhWave 2.25s linear infinite 1.1s;
}

@keyframes bkfhFloat {
  /* Mantenemos el translateX para que el JS solo se preocupe de enviarlo al centro exacto */
  0% {transform: translateX(-50%) translateY(0)}
  25% {transform: translateX(-50%) translateY(-2px)}
  50% {transform: translateX(-50%) translateY(-6px)}
  75% {transform: translateX(-50%) translateY(-2px)}
  100% {transform: translateX(-50%) translateY(0)}
}

@keyframes bkfhWave {
  0% {opacity: 0; transform: scale(.96)}
  18% {opacity: .28}
  60% {opacity: .10}
  100% {opacity: 0; transform: scale(1.18)}
}

/* Ocultar el legado (este sí se queda con el ID porque pertenece al hero) */
#bk-hero-card #bk-marine-pulse,
#bk-hero-card .bk-marine-pulse {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  animation: none !important;
}