/* Primer carrucel */
.info-carousel {
    padding: 60px 20px;
    background: #eceef2;
    text-align: center;
}

.info-carousel-title {
    font-size: 5rem;
    margin-bottom: 10px;
}

.info-carousel-description {
    font-size: 1.5rem;
    max-width: 90%;
    margin: 0 auto 40px auto;
}

.info-carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.info-carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.info-carousel-card {
    flex: 0 0 calc(33.33% - 20px);
    margin: 10px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

.info-carousel-card::before {
    content: "";
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #3c8cff;
    transition: bottom 0.4s ease-in-out;
    z-index: 0;
}

.info-carousel-card:hover::before {
    bottom: 0;
}

.info-carousel-card:hover {
    color: #eceef2;
}

.info-carousel-card * {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.info-carousel-card img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 5px;
}

.info-carousel-card-title {
    font-size: 2.5rem;
    margin: 10px 0 15px;
}

.info-carousel-card-text {
    font-size: 1.5rem;
    text-align: left;
}

.info-carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.info-carousel-button {
    width: 80px;
    height: 80px;
    background: #1b1b1b;
    color: #eceef2;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s ease;
}

.info-carousel-button:hover {
    background: #3c8cff;
}

@media (max-width: 799px) {
  .ts-3 {
      font-size: 2rem;
      line-height: 1.5;
  }
}

@media (max-width: 768px) {
    .info-carousel-card {
        flex: 0 0 100%;
    }

    .info-carousel-container {
        overflow: unset;
    }

    .info-carousel-title {
      font-size: 3rem;
  }
}

/* Segundo carrucel */
.info-carousel-2 {
  padding: 60px 20px;
  background: #eceef2;
  text-align: center;
}

.info-carousel-2-title {
  font-size: 5rem;
  margin-bottom: 10px;
}

.info-carousel-2-description {
  font-size: 1.6rem;
  max-width: 90%;
  margin: 0 auto 30px auto;
}

.info-carousel-2-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

.info-carousel-2-button {
  width: 80px;
  height: 80px;
  font-size: 20px;
  background: #1b1b1b;
  color: #eceef2;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.info-carousel-2-button:hover {
  background: #3c8cff;
}

.info-carousel-2-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.info-carousel-2-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.info-carousel-2-card {
  flex: 0 0 calc(33.33% - 20px);
  margin: 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: box-shadow 0.3s ease;
  min-width: 0;
}

.info-carousel-2-card img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 6px;
}

.info-carousel-2-card-title {
  font-size: 2.5rem;
  margin: 10px 0 15px;
}

.info-carousel-2-card-text {
  font-size: 1.5rem;
  text-align: left;
  color: #1b1b1b;
}

.interactive-card {
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.interactive-card:hover,
.interactive-card.selected {
  background-color: #3c8cff;
  color: white;
  transform: scale(1.05);
}

.interactive-card:hover h3,
.interactive-card:hover p,
.interactive-card.selected h3,
.interactive-card.selected p {
  color: white;
}

@media (max-width: 768px) {
  .info-carousel-2-track {
    flex: 0 0 calc(100% - 20px) !important;
    margin: 10px;
    box-sizing: border-box;
  }

  .info-carousel-2-card {
    flex: 0 0 100% !important;
    scroll-snap-align: start;
  }

  .info-carousel-2-container,
  .info-carousel-2-track {
    overflow: unset;
  }
}

/* Carrusel automático de imágenes */
.auto-carousel {
  overflow: hidden;
  margin-top: 30px;
  width: 100%;
}

.auto-carousel-track {
  display: flex;
  width: 100%;
  position: relative;
}

.carousel-images {
  display: none;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
}

.carousel-images.active {
  display: flex;
}

.auto-carousel-img {
  width: calc(100% / 2 - 10px);
  min-width: calc(100% / 2 - 10px);
  height: auto;
  max-height: 750px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

@media (max-width: 768px) {
  .auto-carousel-img {
    width: 100%;
    min-width: 100%;
  }

  .info-carousel-2-title {
    font-size: 3rem;
  }
}