* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.carousel-container {
  width: 80%;
  max-width: 1200px;
  border-radius: 1rem;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  height: 400px;
}
.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.carousel-item {
  min-width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#item1 {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/corte-laser-large.jpg") no-repeat center center/cover;
}

#item2 {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/maquinacnc.jpg") no-repeat center center/cover;
}

#item3 {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/sistemalot.jpg") no-repeat center center/cover;
}

#item4 {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/soportetecnico.jpg") no-repeat center center/cover;
}

.carousel-item img {
  max-width: 50%;
  height: auto;
  margin-bottom: 5rem;
}
.carousel-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: whitesmoke;
  line-height: 1.8rem;
}
.carousel-text h3 {
  font-size: 24px;
  margin: 0;
}
.carousel-text p {
  font-size: 16px;
  color: #dddddd;
}
.carousel-text button {
  background-color: #1A3C34;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.carousel-nav button {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  margin: 0 1rem 0 1rem;
  padding: 10px;
  cursor: pointer;
}