/* Moving Border — segmento luminoso #7FFFD4 (estilo Aceternity UI) */

@property --moving-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.moving-border-shell {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  max-width: 100%;
  padding: 1.5px;
  overflow: hidden;
  border-radius: 999px;
  isolation: isolate;
}

.moving-border-shell--block {
  display: flex;
  width: 100%;
}

.moving-border-shell--whatsapp {
  position: fixed;
  right: clamp(1rem, 2.4vw, 1.65rem);
  bottom: clamp(1rem, 2.4vw, 1.65rem);
  z-index: 9999;
  width: clamp(3.35rem, 4.8vw, 3.85rem);
  height: clamp(3.35rem, 4.8vw, 3.85rem);
  padding: 2px;
  border-radius: 50%;
}

.moving-border-beam {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  --moving-border-angle: 0deg;
  background: conic-gradient(
    from var(--moving-border-angle),
    transparent 0deg 302deg,
    rgba(127, 255, 212, 0.12) 318deg,
    #7fffd4 334deg,
    rgba(127, 255, 212, 0.12) 350deg,
    transparent 360deg
  );
  animation: moving-border-angle 4.2s linear infinite;
}

.moving-border__target {
  position: relative;
  z-index: 1;
  border-color: transparent !important;
}

.moving-border-shell .moving-border__target.button:hover,
.moving-border-shell .moving-border__target.button:focus-visible {
  transform: none;
}

.moving-border-shell--whatsapp > .moving-border__target.whatsapp-float {
  position: relative;
  inset: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 100%;
}

.moving-border-shell:has(.about-finale-cta) {
  width: max-content;
  max-width: 100%;
  justify-self: start;
  margin-top: 0.5rem;
}

.moving-border-shell:has(.about-finale-cta) .about-finale-cta {
  margin-top: 0;
}

.moving-border-shell:has(.button:hover),
.moving-border-shell:has(.button:focus-visible) {
  transform: translateY(-2px);
}

.moving-border-shell--whatsapp:has(.moving-border__target:hover),
.moving-border-shell--whatsapp:has(.moving-border__target:focus-visible) {
  transform: none;
}

.moving-border-shell--whatsapp:has(.moving-border__target:hover) .moving-border__target,
.moving-border-shell--whatsapp:has(.moving-border__target:focus-visible) .moving-border__target {
  transform: scale(1.06);
}

@keyframes moving-border-angle {
  to {
    --moving-border-angle: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .moving-border-beam {
    animation-duration: 10s;
  }
}

@media (max-width: 767px) {
  .moving-border-shell {
    padding: 1.25px;
  }

  .moving-border-beam {
    animation-duration: 4.8s;
  }

  .is-mobile-layout .moving-border-shell:has(.about-finale-cta),
  .about-story[data-about-layout="stack"] .moving-border-shell:has(.about-finale-cta) {
    margin-top: 1.25rem;
  }
}
