/* ===========================================
  SCROLL TO TOP
=========================================== */

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  color: var(--gris-oscuro);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

/* Borde multicolor con 5 secciones */
.scroll-to-top::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      #18b4b0 0deg 72deg,
      #68ccf0 72deg 144deg,
      #afd652 144deg 216deg,
      #ed5482 216deg 288deg,
      #f2964d 288deg 360deg);
  z-index: -2;
}

/* Centro blanco que cubre el gradiente */
.scroll-to-top::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #fff;
  z-index: -1;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.visible:hover {
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .scroll-to-top {
    width: 40px;
    height: 40px;
    bottom: 1.2rem;
    left: 1.2rem;
  }

  .scroll-to-top svg {
    width: 18px;
    height: 18px;
  }
}