

.index-banner {

  background-image: url('/images/head_banners/casos-banner.jpg');

}

.spacer {
  height: 14vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  padding: 1rem;
}

.scroll-items {
  display: flex;
  flex-wrap: wrap; /* allow wrapping on smaller screens */
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgb(215, 215, 215);
}

.item {
  flex: 1 1 calc(33.333% - 20px); /* three items per row with gaps */
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f3f3f3;
  padding: 20px;
  border-radius: 15px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
  box-sizing: border-box;
}

.item.visible {
  opacity: 1;
  transform: translateY(0);
}

.item img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 10px;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.item img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}


.text {
  margin-top: 15px;
  text-align: center;
}

/* Adjust layout on tablet */
@media (max-width: 990px) {
  .item {
    flex: 1 1 calc(50% - 20px); /* two items per row */
  }
}

/* Stack items on mobile */
@media (max-width: 580px) {
  .item {
    flex: 1 1 100%; /* one item per row */
  }
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.carousel-image {
  width: 100%;
  border-radius: 10px;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.carousel-image.active {
  display: block;
  position: relative;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 25px;
  cursor: pointer;
  padding: 4px 8px;
  z-index: 10;
}

.carousel-control.prev {
  left: 10px;
}
.carousel-control.next {
  right: 10px;
}

h1 {
  font-size: 44px;
}
.h3-info{
  font-size: 20px;
}
.p-text-info{
  font-size: 18px;
  margin-top: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 2px 2px 2px 2px;
  font-family: "Roboto", sans-serif;
}


.link-conocer-mas{
  background-color: rgb(207, 73, 142);
  color: #f3f3f3;
  font-size: 18px;
  font-weight:600;
  padding: 5px;
  border-radius: 8px;
  box-shadow: 2px 2px rgb(134, 137, 138);
}
.link-conocer-mas:hover{
  font-size: 19px;
  transition: ease-in-out;
}

/*align bottom center*/
.centered-button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  width: 100%;
}

.go-to-section {
  padding: 16px 28px;
  font-size: 18px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.go-to-section:hover {
  background-color: #0056b3;
}

.centered-button-wrapper {
  background-image: url(/main-casos/main-casos-img/banner_med_2.jpg);
  background-position: center;
  border-radius: 25px;
}
