/* === Modal general === */
.c-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.c-modal-content {
  position: relative;
  padding: 0;
  width: 100%;
  text-align: center;
  color: white;
  background-color: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* === Encabezado del carrusel === */
.carousel_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #222;
  border-bottom: 2px solid #444;
  color: white;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.carousel-title {
  font-size: 1.5rem;
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

/* === Botón de cierre === */
.c-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 12px;
  transition: color 0.3s ease;
}

.c-close-btn:hover {
  color: #ff4c4c;
}

/* === Contenedor del carrusel === */
.carousel-inner {
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item {
  height: 100%;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* === Botones de navegación personalizados === */
.c-carousel-button {
  position: absolute;
  top: 50%;
  background-color: transparent;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
  z-index: 1;
  transform: translateY(-50%);
}

.c-carousel-button:hover {
  color: black;
}

.c-prev-button {
  left: 0;
}

.c-next-button {
  right: 0;
}

/* === Responsive para móviles === */
@media (max-width: 480px) {
  .c-modal-content {
    width: 95%;
    padding-top: 20px;
  }

  .carousel-inner {
    height: 300px;
  }

  .c-close-btn {
    font-size: 1.5rem;
    padding: 0 8px;
  }

  .carousel-title {
    font-size: 1.1rem;
  }
}
