/* ===== CSS DEFINITIVO PARA EL CARRUSEL ===== */

/* Contenedor del carrusel */

.pagina_carrusel{
    width: 100%;
    height: 77vh;
}


.carousel {
  position: relative;
  right: 650px;
  width: 600px;
}

.carousel-inner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Oculta todos los slides excepto el activo */
.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform .6s ease-in-out;
}

.carousel-item.active {
  display: block;
}

/* Durante la transición (deslizamiento) */
.carousel-item-next,
.carousel-item-prev {
  display: block;
}

/* Imagen dentro del slide: tamaño real, sin deformar ni recortar */
.carousel-item img {
  display: block;
  width: 100%;
  height: auto;       /* respeta la proporción original de cada imagen */
  max-height: 85vh;   /* evita que en pantallas grandes se vea gigante */
  margin: 0 auto;
  object-fit: contain;
}

/* Flechas de navegación */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8%;
  color: #fff;
  text-align: center;
  opacity: 0.8;
  border: 0;
  background: none;
  cursor: pointer;
}

.carousel-control-prev {
  left: 0;
}

.carousel-control-next {
  right: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Iconos de las flechas (por si no cargan los de Bootstrap) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: 100% 100%;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.6));
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Indicadores (puntitos de abajo) */
.carousel-indicators {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.carousel-indicators button {
  box-sizing: content-box;
  flex: 0 1 auto;
  width: 12px;
  height: 12px;
  padding: 0;
  margin: 0 4px;
  border-radius: 50%;
  background-color: #B8832F;
  background-clip: padding-box;
  opacity: 0.5;
  border: none;
  cursor: pointer;
}

.carousel-indicators button.active {
  opacity: 1;
}
