@charset "utf-8";

/* 1. AJUSTE DEL CONTENEDOR (EVITA ANCHO DE VENTANA) */
.ac-popup .modal-dialog {
  max-width: fit-content !important;
  width: auto !important;
  margin: 1.75rem auto;
}

.ac-popup .modal-content {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
}

.ac-popup .modal-body {
  padding: 0;
  background-color: #000;
  border: 4px solid #fff; /* Marco blanco pegado a la imagen */
  border-radius: 5px;
}

/* 2. CONTROL DE IMÁGENES Y TRANSICIÓN FADE (EVITA DISTORSIÓN) */
.ac-popup .carousel-item {
  display: none;
  float: none;
  margin-right: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.ac-popup .carousel-item.active {
  display: block;
  opacity: 1;
}

.ac-popup .carousel-item img {
  max-height: 80vh;
  max-width: 90vw;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* 3. BOTÓN CERRAR AZUL */
.ac-popup .custom-close-link {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 32px;
  height: 32px;
  background-color: #00b5f7;
  color: #fff !important;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #fff;
  z-index: 1100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* 4. INDICADORES NUMÉRICOS (NÚMEROS BLANCOS) */
.ac-popup .carousel-indicators {
  position: absolute;
  bottom: 15px;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ac-popup .carousel-indicators [data-bs-target] {
  text-indent: 0 !important; /* Muestra el número */
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background-color: rgba(40, 40, 40, 0.9) !important; /* Fondo oscuro */
  color: #ffffff !important; /* Número Blanco */
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  font-size: 13px !important;
  font-weight: bold !important;
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-popup .carousel-indicators .active {
  background-color: #00b5f7 !important; /* Azul activo */
  border-color: #fff !important;
}

/* 5. FLECHAS */
.ac-popup .icon-chevron-left,
.ac-popup .icon-chevron-right {
  width: 35px;
  height: 35px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Anular la transición de Bootstrap por completo */
.ac-popup .carousel-item {
    transition: transform 0s none !important; /* Quita el movimiento */
    transition: opacity 0s none !important;  /* Quita el desvanecimiento */
    -webkit-transition: none !important;
    transition: none !important;
}

/* Forzar que el cambio de opacidad no tenga tiempo de espera */
.ac-popup .carousel-fade .active.carousel-item-start,
.ac-popup .carousel-fade .active.carousel-item-end {
    transition: 0s !important;
    opacity: 1 !important;
}

.ac-popup .carousel-fade .carousel-item {
    transition-duration: 0.0001s !important; /* Casi cero para engañar al motor de JS */
}