/*** PAGE GENERATOR ***/

/*** Hero Page Generator ***/
.carousel-item {
  position: relative;
  height: 600px;
}

.carousel-item::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgb(60, 74, 117, 0.7), rgb(3, 11, 48, 0.7));
}

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

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

.carousel-caption {
  height: 100%;
  display: flex;
  justify-content: start;
  align-items: end;
  margin-bottom: 3rem;
  z-index: 1;
}

.hero-pagegen {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  max-width: 992px;
  text-align: start;
}

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

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

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

.hero-pagegen-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .5rem;
}

.hero-pagegen-cta a {
  display: block;
  padding: 1rem 2rem;
  max-width: 300px;
  text-align: center;
  background-color: var(--primario);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.5rem;
}

.hero-pagegen-cta a:nth-child(2) {
    background-color: var(--cuarto);
}

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

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

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

  .hero-pagegen {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

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

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

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

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

.pagegen-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: center;
  gap: 0.5rem;
}

.pagegen-cta a {
  display: block;
  margin-top: 1rem;
  padding: 1rem 2rem;
  max-width: 300px;
  text-align: center;
  background-color: var(--primario);
  color: var(--white);
  text-decoration: none;
  border-radius: 0.5rem;
}

.pagegen-cta a:nth-child(2) {
  background-color: var(--cuarto);
}

.pagegen-cta a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .pagegen-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;    
  }

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