/* Marco con halo animado para títulos destacados */
.star-border-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  overflow: hidden;
  --star-color: rgba(255, 255, 255, 0.95);
  --star-speed: 6s;
  --star-thickness: 1px;
  --star-sweep-overflow: clamp(12px, 3vw, 32px);
  padding: 0;
}

.border-gradient-top,
.border-gradient-bottom {
  position: absolute;
  width: calc(100% + var(--star-sweep-overflow) * 2);
  height: 42%;
  opacity: 0.55;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--star-color) 0%, rgba(255, 255, 255, 0.22) 26%, rgba(255, 255, 255, 0.08) 52%, transparent 75%);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
  animation-duration: var(--star-speed);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  filter: blur(8px);
  left: calc(-1 * var(--star-sweep-overflow));
}

.border-gradient-top {
  top: calc(-12px - var(--star-thickness));
  animation-name: star-movement-top;
}

.border-gradient-bottom {
  bottom: calc(-12px - var(--star-thickness));
  animation-name: star-movement-bottom;
}

.inner-content {
  position: relative;
  border: var(--star-thickness) solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: clamp(0.9rem, 2vw, 1.2rem) clamp(2rem, 4vw, 3.2rem);
  border-radius: 20px;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: clamp(260px, 40vw, 420px);
  text-align: center;
  box-shadow:
    0 0 12px rgba(160, 205, 255, 0.14),
    inset 0 0 8px rgba(255, 255, 255, 0.22);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
}

.inner-content::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: var(--star-thickness) solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 0 18px rgba(182, 216, 255, 0.18),
    0 0 36px rgba(116, 186, 255, 0.18);
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

@keyframes star-movement-bottom {
  from {
    transform: translate(0%, 0%);
    opacity: 1;
  }
  to {
    transform: translate(-100%, 0%);
    opacity: 0;
  }
}

@keyframes star-movement-top {
  from {
    transform: translate(0%, 0%);
    opacity: 1;
  }
  to {
    transform: translate(100%, 0%);
    opacity: 0;
  }
}

.weekly__title-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(2.2rem, 4vw, 2.8rem);
  text-align: center;
}
