/* =========================
   CAROUSEL – VERSIÓN ESTABLE
   SIN AFECTAR BURBUJAS BASE
========================= */

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

/* Flechas */
.carousel-arrow {
  background: none;
  border: none;
  font-size: 32px;
  color: #7a6cff;
  cursor: pointer;
  z-index: 5;
  padding: 8px;
}

.carousel-arrow.left {
  margin-right: 6px;
}

.carousel-arrow.right {
  margin-left: 6px;
}

/* Ventana del carrusel */
.carousel-viewport {
  width: 560px;                 /* 2 burbujas + medias */
  overflow: hidden;
  position: relative;

  /* Desvanecido lateral */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* Pista */
.carousel-track {
  display: flex;
  gap: 40px;
  transition: transform 0.4s ease;
  will-change: transform;
}

/* =========================
   BORDE DEGRADADO SUTIL
   (EXTERNO, NO INVASIVO)
========================= */

.carousel-track .bubble {
  flex: 0 0 auto;
  position: relative;
}

.carousel-track .bubble::after {
  content: "";
  position: absolute;
  inset: -4px;                  /* borde externo */
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    #bfa8ff,
    #8fd3f4
  );
  opacity: 0.6;                 /* MÁS SUTIL */
  z-index: -1;
}

/* Hover */
.carousel-track .bubble:hover {
  transform: translateY(-6px);
  transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-viewport {
    width: 90%;
  }
}
