.slidercarouselindex {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Evita scrolls horizontales accidentales */
}

/* Recuadro del texto */
.slidercarouselindex .carousel-caption {
  background-color: rgba(
    0,
    0,
    0,
    0.4
  ); /* Un poco más oscuro para mejor lectura */
  padding: 1rem; /* Bordes suaves para que no se vea tan rígido */
  bottom: 10%; /* Lo sube un poco para que no pegue con los indicadores */
}

.slidercarouselindex .carousel-item img {
  width: 100%;
  height: 90vh;
  /* CAMBIO CLAVE: Usa 'cover' para llenar todo el ancho */
  object-fit: cover;
  object-position: center;
}

/* OPCIONAL: Si quieres que la grúa no se corte mucho, 
   puedes probar 'object-position: 70% center' 
   para mover la imagen un poco a la izquierda */

/* Transiciones suaves */
.slidercarouselindex .carousel-item {
  transition:
    transform 0.8s ease-in-out,
    opacity 0.8s ease-in-out;
}

/* Mobile */
@media (max-width: 768px) {
  .slidercarouselindex .carousel-item img {
    height: 60vh; /* En móviles es mejor que no sea tan alta */
  }
  .slidercarouselindex .carousel-caption h2 {
    font-size: 1.1rem;
    font-weight: bold;
  }
}
