/* ===== CAROUSEL STYLES ===== */

.carousel-container {
  width: 100%;
  max-width: 500px;       /* más grande: ocupa la columna derecha hasta el borde del contenido */
  justify-self: end;      /* pegado al borde derecho, alineado con el contenido */
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;    /* vertical, algo más alto que el bloque de texto */
  max-height: 82vh;       /* nunca más alto que la pantalla: no se corta al hacer scroll */
  overflow: hidden;
  border-radius: 10px;    /* igual que el carrusel de Programación */
  background-color: var(--black);
  box-shadow: 0 10px 40px rgba(183, 255, 0, 0.1);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--black);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Navigation Arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: rgba(183, 255, 0, 0.2);
  border: 2px solid var(--lime);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-size: 20px;
  font-weight: bold;
  z-index: 10;
  transition: all 0.3s ease;
  font-family: var(--font-display);
  padding: 0;
}

.carousel-nav:hover {
  background-color: rgba(183, 255, 0, 0.4);
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

/* Dots Indicator */
.carousel-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 9;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}

.dot.active {
  background-color: var(--lime);
  width: 12px;
  height: 12px;
  box-shadow: 0 0 16px rgba(183, 255, 0, 0.6);
}

.dot:hover {
  transform: scale(1.1);
  background-color: var(--gray);
}

.dot.active:hover {
  background-color: var(--lime);
}

/* Hide navigation buttons */
.carousel-nav {
  display: none;
}

/* Responsive */
@media (max-width: 820px) {
  .carousel-container {
    max-width: 100%;
    justify-self: stretch;
  }
  .carousel-wrapper {
    aspect-ratio: 4 / 5;
    max-height: 70vh;
  }
}

@media (max-width: 768px) {
  .carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .carousel-prev {
    left: 12px;
  }

  .carousel-next {
    right: 12px;
  }

  .carousel-dots {
    bottom: 12px;
    gap: 8px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .dot.active {
    width: 10px;
    height: 10px;
  }
}
