/* ==========================================================================
   BYTPRESS — counter.css
   Contador flotante del Programa Fundadores.
   ========================================================================== */

#bytmpress-founder-counter {
  transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  height: 44px;
  padding-right: 44px;
  padding-top: env(safe-area-inset-top, 0);
  background: #FFFFFF;
  color: #0A0A0A;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

#bytmpress-founder-counter .bytmpress-founder-counter__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

#bytmpress-founder-counter .bytmpress-founder-counter__link:hover,
#bytmpress-founder-counter .bytmpress-founder-counter__link:focus-visible {
  color: inherit;
  text-decoration: none;
}

#bytmpress-founder-counter .bytmpress-founder-counter__track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  animation: bytmpress-marquee 40s linear infinite;
}

#bytmpress-founder-counter .bytmpress-founder-counter__group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
  flex-shrink: 0;
}

#bytmpress-founder-counter .bytmpress-founder-counter__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0055FF;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 85, 255, 0.7);
  animation: bytmpress-counter-pulse 2s ease-in-out infinite;
}

#bytmpress-founder-counter .bytmpress-founder-counter__text {
  color: #0A0A0A;
  white-space: nowrap;
}

#bytmpress-founder-counter .bytmpress-founder-counter__text strong {
  color: #0055FF;
  font-weight: 700;
  font-size: 1.0625rem;
}

#bytmpress-founder-counter .bytmpress-founder-counter__sep {
  color: rgba(10, 10, 10, 0.3);
  font-size: 1.125rem;
  flex-shrink: 0;
}

#bytmpress-founder-counter .bytmpress-founder-counter__link:hover .bytmpress-founder-counter__track {
  animation-play-state: paused;
}

#bytmpress-founder-counter .bytmpress-founder-counter__close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: rgba(10, 10, 10, 0.08);
  border: none;
  border-radius: 999px;
  color: #0A0A0A;
  cursor: pointer;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}

#bytmpress-founder-counter .bytmpress-founder-counter__close:hover,
#bytmpress-founder-counter .bytmpress-founder-counter__close:focus-visible {
  background: rgba(10, 10, 10, 0.15);
}

#bytmpress-founder-counter .bytmpress-founder-counter__close svg {
  display: block;
  width: 12px;
  height: 12px;
}

@keyframes bytmpress-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes bytmpress-counter-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.75); }
}
/* ==========================================================================
   Empujar layout debajo del contador
   ========================================================================== */

body.has-founder-counter {
  padding-top: 44px !important;
}

body.has-founder-counter .bytmpress-header {
  top: 44px !important;
}

body.has-founder-counter .bytmpress-menu {
  top: 44px !important;
}

@media (max-width: 900px) {
  body.has-founder-counter {
    padding-top: 40px !important;
  }

  body.has-founder-counter .bytmpress-header {
    top: 40px !important;
  }

  body.has-founder-counter .bytmpress-menu {
    top: 40px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bytmpress-founder-counter .bytmpress-founder-counter__track {
    animation: none;
    transform: translateX(0);
  }

  #bytmpress-founder-counter .bytmpress-founder-counter__dot {
    animation: none;
  }

  #bytmpress-founder-counter .bytmpress-founder-counter__group[aria-hidden="true"] {
    display: none;
  }
}