/*** CMS - Carrusel Index ***/
.carousel-divider {
  width: 100%;
  height: 1rem;
  background-color: var(--secundario);
}

.index-carousel-container {
  display: flex;
  margin-inline: auto;
}

.index-carousel-item {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.index-carousel-item::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, 0.4);
  z-index: 10;
}

.index-carousel-container > .index-carousel-wrapper img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
}

.index-carousel-container > .index-carousel-wrapper img {
  aspect-ratio: 16 / 9;
}

.index-carousel-desc,
.index-carousel-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  max-width: 1320px;
  color: var(--white);
  z-index: 20;
}

.index-carousel-hero h1 {
  margin-block: 0;
  font-size: 1rem;
}

.index-carousel-hero h2 {
  margin-block: 0;
  font-size: 6rem;
}

.index-carousel-hero h2 {
  font-size: 3rem;
}

.index-carousel-desc span {
  font-size: 1rem;
  font-weight: 500;
}

.index-carousel-desc p {
  font-size: 1.25rem;
  font-weight: 600;
}

.index-carousel-desc h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

.index-carousel-cta {
  display: flex;
  margin-top: 1rem;
  gap: 1rem;
}

.index-carousel-cta a {
  padding: 1rem 2rem;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 0.5rem;
}

.index-carousel-cta a:first-child {
  background-color: var(--primario) !important;
}

.index-carousel-cta a:last-child {
  background-color: var(--cuarto);
}

@media (max-width: 992px) {
  .index-carousel-container > .index-carousel-wrapper img {
    height: auto;
    aspect-ratio: 9 / 16;
  }

  .index-carousel-hero {
    max-width: 80%;
  }

  .index-carousel-hero h1 {
    margin-block: 0;
    font-size: 1rem;
  }

  .index-carousel-hero h2 {
    margin-block: 0;
    font-size: 3rem;
  }

  .index-carousel-hero h2 {
    font-size: 1.5rem;
  }

  .index-carousel-desc h2 {
    font-size: 1.25rem;
  }

  .index-carousel-desc span {
    font-size: 0.875rem;
  }

  .index-carousel-cta a {
    font-size: 1rem;
  }
}
