/* Barra promo: envío gratis Región Metropolitana — arriba de todo */

.gf-rm-free-ship-bar {
  position: relative;
  z-index: 10050;
  width: 100%;
  min-height: 2.35rem;
  overflow: hidden;
  background: linear-gradient(
    105deg,
    #450a0a 0%,
    #7f1d1d 28%,
    #991b1b 50%,
    #7f1d1d 72%,
    #450a0a 100%
  );
  background-size: 220% 100%;
  color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 20px rgba(69, 10, 10, 0.65);
  animation: gf-rm-ship-bar-bg 6s ease-in-out infinite;
}

.gf-rm-free-ship-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 42%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.06) 58%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: gf-rm-ship-bar-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}

.gf-rm-free-ship-bar__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: gf-rm-ship-bar-marquee 18s linear infinite;
}

.gf-rm-free-ship-bar__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.52rem 2.5rem;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: clamp(0.78rem, 2.2vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.gf-rm-free-ship-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  animation: gf-rm-ship-bar-icon-bounce 1.6s ease-in-out infinite;
}

.gf-rm-free-ship-bar__badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  background: #fef2f2;
  color: #7f1d1d;
  font-weight: 800;
  animation: gf-rm-ship-bar-badge-pulse 1.8s ease-in-out infinite;
}

@keyframes gf-rm-ship-bar-bg {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes gf-rm-ship-bar-shine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes gf-rm-ship-bar-marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes gf-rm-ship-bar-icon-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes gf-rm-ship-bar-badge-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(254, 242, 242, 0.35);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 10px 2px rgba(254, 242, 242, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gf-rm-free-ship-bar,
  .gf-rm-free-ship-bar::before,
  .gf-rm-free-ship-bar__icon,
  .gf-rm-free-ship-bar__badge {
    animation: none;
  }

  .gf-rm-free-ship-bar__track {
    animation-duration: 40s;
  }
}
