/* ==========================
   BURBUJAS HOME
   ========================== */

.areas-bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
}

/* ==========================
   BURBUJA BASE
   ========================== */

.bubble {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: #faf9f6;
  padding: 0;
  font-family: inherit;
  text-align: inherit;

  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 1.7rem;

  box-shadow: 0 10px 20px rgba(107, 78, 255, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  overflow: hidden;
}

.bubble:focus {
  outline: none;
}

.bubble:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(107, 78, 255, 0.35);
}

/* ==========================
   IMÁGENES
   ========================== */

.bubble-img {
  height: auto;
  object-fit: contain;
  margin-bottom: 0.7rem;
}

/* Ajustes individuales */
#open-ansiedad .bubble-img {
  max-width: 75px;
}

#open-fobiasocial .bubble-img {
  max-width: 95px;
}

#open-autoestima .bubble-img {
  max-width: 105px;
  transform: scale(1.05);
}

#open-depresion .bubble-img {
  max-width: 88px;
}

#open-adolescencia .bubble-img,
#open-autolesiones .bubble-img,
#open-trauma .bubble-img,
#open-duelo .bubble-img {
  max-width: 95px;
}

#open-bipolar .bubble-img {
  max-width: 110px;
}

#open-dependencia .bubble-img,
#open-personalidad .bubble-img,
#open-otros .bubble-img {
  max-width: 90px;
}

/* ==========================
   TEXTO
   ========================== */

.bubble span {
  color: #6b4eff;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0 0.6rem;
}

/* ==========================
   CARRUSEL DE BURBUJAS
   ========================== */

.carousel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Flechas */
.carousel-arrow {
  background: none;
  border: none;
  font-size: 2.6rem;
  font-weight: 400;
  color: #6b4eff;
  cursor: pointer;
  padding: 0 0.4rem;
  line-height: 1;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.carousel-arrow:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

/* Ventana visible */
.carousel-viewport {
  overflow: hidden;
  flex: 1;
  padding: 1.2rem 0; /* aire vertical para hover */
}

/* Track horizontal */
.carousel-track {
  display: flex;
  gap: 2.5rem;
  transition: transform 0.45s ease;
  will-change: transform;
}

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

/* ==========================
   RESPONSIVE
   ========================== */

@media (max-width: 768px) {
  .carousel-arrow {
    font-size: 2.2rem;
  }

  .carousel-wrapper {
    gap: 0.6rem;
  }
}

