/* ==========================================================================
   Carrusel — banner promocional (autoplay, sin librerías)
   ========================================================================== */

.carousel {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  background-color: var(--color-text);
}

.carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease-default), visibility 0s linear 0.9s;
}

.carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s var(--ease-default);
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Flechas ---- */

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-bg);
  font-size: 34px;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  z-index: 2;
  transition: opacity 0.2s var(--ease-default);
}

.carousel__arrow:hover {
  opacity: 0.6;
}

.carousel__arrow--prev {
  left: 16px;
}

.carousel__arrow--next {
  right: 16px;
}

/* ---- Dots ---- */

.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(var(--color-bg-rgb), 0.4);
  transition: background-color 0.2s var(--ease-default), transform 0.2s var(--ease-default);
}

.carousel__dot.is-active {
  background-color: var(--color-accent);
  transform: scale(1.3);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
  .carousel {
    height: 60vh;
  }

  .carousel__arrow {
    font-size: 26px;
  }

  .carousel__arrow--prev {
    left: 10px;
  }

  .carousel__arrow--next {
    right: 10px;
  }
}
