/*** CMS - Carrusel Index ***/
#header-carousel .carousel-item {
  position: relative;
  height: 90vh;
}

#header-carousel .carousel-item img {
  width: auto;
  height: 100%;
  object-fit: cover;
}

#header-carousel .carousel-item::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#header-carousel .carousel-caption {
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 1;
}

.hero-index {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-index h1,
.hero-index span {
  font-size: 1rem;
}

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

.hero-index p {
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

.hero-index a {
  display: block;
  padding: 1rem 2rem;
  width: 400px;
  background-color: var(--primario);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.5rem;
}

.hero-index a:hover {
  background-color: var(--white);
  color: var(--dark);
  text-decoration: underline;
}

#header-carousel .carousel-control-prev {
  width: 50px;
  height: 60px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  border-radius: 0 50px 50px 0;
  opacity: 1;
  transition: 0.5s;
}

#header-carousel .carousel-control-prev:hover {
  background: var(--primario);
}

#header-carousel .carousel-control-next {
  width: 50px;
  height: 60px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  border-radius: 50px 0 0 50px;
  opacity: 1;
  transition: 0.5s;
}

#header-carousel .carousel-control-next:hover {
  background: var(--primario);
}

@media (max-width: 768px) {
#header-carousel   .carousel-item {
    min-height: 50vh;
  }

#header-carousel   .carousel-item img {
    min-height: 50vh;
    object-fit: cover;
  }

  .hero-index h1,
  .hero-index span {
    font-size: 0.875rem;
  }

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

  .hero-index p {
    font-size: 0.875rem;
  }

  .hero-index a {
    width: 100% !important;
    font-size: 0.875rem;
  }

#header-carousel   .carousel-control-prev,
#header-carousel   .carousel-control-next {
    width: 5vw;
    height: 10vh;
    transition: background-color 0.5s;
  }

#header-carousel   .carousel-control-prev:hover,
#header-carousel   .carousel-control-next:hover {
    background: var(--primario);
  }

#header-carousel   .carousel-control-prev:focus,
#header-carousel   .carousel-control-next:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primario);
  }
}
