/* MAIN */

/* BACKGROUND PRINCIPAL */

.img-principal {
  width: 100%;
}

/* WELCOME */

.title-welcome h1 {
  font-family: "Montserrat";
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
}

.img-church img {
  /* aspect-ratio: 218/145; */
  width: 494px;
  height: 352px;
  /* object-fit: cover; */
}

.text-welcome p {
  font-family: "Roboto Mono";
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  text-wrap: balance;
}

#welcome {
  padding-top: 150px;
  padding-bottom: 150px;
  background: var(--color-body);
}

/* SQUARES */
#squares {
  margin-bottom: 150px;
  margin-top: 150px;
  background-color: var(--color-fondo);
}

.history {
  display: flex;
  justify-content: flex-end;
}

.missionandvision {
  display: flex;
  justify-content: flex-start;
}

.beliefs {
  display: flex;
  justify-content: flex-end;
}

.leaders {
  display: flex;
  justify-content: flex-start;
}

.img-history {
  width: 500px;
  height: 500px;
  cursor: pointer;
}

.img-missionandvision {
  width: 500px;
  height: 500px;
  cursor: pointer;
}

.img-beliefs {
  width: 500px;
  height: 500px;
  cursor: pointer;
}

.img-leaders {
  width: 500px;
  height: 500px;
  cursor: pointer;
}

.text-history {
  font-family: "Montserrat";
  font-size: 48px;
  font-style: normal;
  font-weight: 900;
}

.text-missionandvision {
  font-family: "Montserrat";
  font-size: 48px;
  font-style: normal;
  font-weight: 900;
}

.text-beliefs {
  font-family: "Montserrat";
  font-size: 48px;
  font-style: normal;
  font-weight: 900;
}

.text-leaders {
  font-family: "Montserrat";
  font-size: 48px;
  font-style: normal;
  font-weight: 900;
}

/* Estilo de la superposición */
.overlay-two {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  /* Inicialmente transparente */
  transition: background-color 0.3s ease;
  /* Transición suave */
}

/* Estilo de la superposición al hacer hover */
.img-history:hover .overlay-two {
  background-color: rgba(0, 0, 0, 0.8);
  /* Superposición semi-transparente */
}

.img-missionandvision:hover .overlay-two {
  background-color: rgba(0, 0, 0, 0.8);
  /* Superposición semi-transparente */
}

.img-beliefs:hover .overlay-two {
  background-color: rgba(0, 0, 0, 0.8);
  /* Superposición semi-transparente */
}

.img-leaders:hover .overlay-two {
  background-color: rgba(0, 0, 0, 0.8);
  /* Superposición semi-transparente */
}


/* GALLERY */
#gallery {
  background-color: var(--color-body);
  padding-bottom: 100px;
  padding-top: 100px;
  padding-bottom: 100px;
}

.carousel-gallery {
  width: 70%;
  margin: auto;
}

.text-gallery {
  font-family: "Montserrat";
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  margin-bottom: 100px;
}

.img-carousel {
  height: 450px;
}



/* RESPONSIVE */
@media (width <=1028px) {

  /* MAIN */

  /* WELCOME */
  .title-welcome {
    margin-bottom: 0 !important;
  }

  .title-welcome h1 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 0 !important;
  }

  .text-welcome {
    margin-top: -50px;
  }

  .text-welcome p {
    font-size: 20px;
    font-weight: 300;
  }

  #welcome {
    padding-top: 100px;
    padding-bottom: 100px;
    background: var(--color-body);
    margin-bottom: 0;
  }

  .img-welcome {
    margin-top: -50px;
  }


  /* SQUARES */
  #squares {
    margin-bottom: 100px;
    margin-top: 100px;
  }

  .img-history {
    width: 400px;
    height: 400px;
  }

  .img-missionandvision {
    width: 400px;
    height: 400px;
  }

  .img-beliefs {
    width: 400px;
    height: 400px;
  }

  .img-leaders {
    width: 400px;
    height: 400px;
  }

  .text-history {
    font-size: 40px;
    font-weight: 600;
  }

  .text-missionandvision {
    font-size: 40px;
    font-weight: 600;
  }

  .text-beliefs {
    font-size: 40px;
    font-weight: 600;
  }

  .text-leaders {
    font-size: 40px;
    font-weight: 600;
  }


}

@media (width <=900px) {

  /* WELCOME */
  .welcome-content {
    margin-top: -50px;
  }

  #welcome .title-welcome {
    margin-bottom: 0 !important;
  }

  .title-welcome h1 {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 0 !important;
  }

  .text-welcome p {
    font-size: 16px;
    font-weight: 200;
    text-align: center;
  }

  /* SQUARES */
  .img-history {
    width: 300px;
    height: 300px;
  }

  .img-missionandvision {
    width: 300px;
    height: 300px;
  }

  .img-beliefs {
    width: 300px;
    height: 300px;
  }

  .img-leaders {
    width: 300px;
    height: 300px;
  }

  .text-history {
    font-size: 32px;
    font-weight: 400;
  }

  .text-missionandvision {
    font-size: 32px;
    font-weight: 400;
  }

  .text-beliefs {
    font-size: 32px;
    font-weight: 400;
  }

  .text-leaders {
    font-size: 32px;
    font-weight: 400;
  }

  /* SQUARES */

  .img-history {
    width: 250px;
    height: 250px;
  }

  .img-missionandvision {
    width: 250px;
    height: 250px;
  }

  .img-beliefs {
    width: 250px;
    height: 250px;
  }

  .img-leaders {
    width: 250px;
    height: 250px;
  }

  .text-history {
    font-size: 24px;
    font-weight: 300;
  }

  .text-missionandvision {
    font-size: 24px;
    font-weight: 300;
  }

  .text-beliefs {
    font-size: 24px;
    font-weight: 300;
  }

  .text-leaders {
    font-size: 24px;
    font-weight: 300;
  }

  /* GALLERY */
  .carousel-gallery {
    width: 80%;
    margin: auto;
  }

  .text-gallery {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 75px;
  }

  .img-carousel {
    height: 400px;
  }

}

@media (width <768px) {

  /* MAIN */

  /* WELCOME */
  .title-welcome h1 {
    font-size: 32px;
    font-weight: 400;
  }

  .text-welcome p {
    padding-top: 0 !important;
    margin: auto;
    font-size: 16px;
    font-weight: 200;
  }

  .img-church {
    text-align: center !important;
    padding: 0 !important;
  }

  /* GALLERY */
  .carousel-gallery {
    width: 85%;
    margin: auto;
  }

  .text-gallery {
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 50px;
  }

  .img-carousel {
    height: 400px;
  }

}

@media (width <=600px) {

  /* WELCOME */

  #welcome {
    margin-bottom: 0;
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .title-welcome h1 {
    font-size: 28px;
    font-weight: 400;
  }

  .text-welcome p {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: auto;
  }

  .img-church img {
    aspect-ratio: 218/145;
    width: 350px;
    height: 350px;
  }

  /* SQUARES */
  #squares {
    margin-bottom: 75px;
    margin-top: 75px;
  }

  .history,
  .missionandvision,
  .beliefs,
  .leaders {
    width: 100% !important;
  }

  .img-history {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }

  .img-missionandvision {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }

  .img-beliefs {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }

  .img-leaders {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }

  .text-history {
    font-size: 20px;
    font-weight: 200;
  }

  .text-missionandvision {
    font-size: 20px;
    font-weight: 200;
  }

  .text-beliefs {
    font-size: 20px;
    font-weight: 200;
  }

  .text-leaders {
    font-size: 20px;
    font-weight: 200;
  }

  /* GALLERY */

  #gallery {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .carousel-gallery {
    width: 85%;
    margin: auto;
  }

  .text-gallery {
    margin: auto;
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 50px;
    width: 75%;
    text-align: center;
  }

  .img-carousel {
    height: 300px;
  }

  /* Fix for 'Ver más' button on mobile */
  .beliefs .btn {
    padding: 0.25rem 1rem !important;
    font-size: 14px;
    margin-bottom: 30px !important;
  }

}

@media (width <=400px) {

  /* GALLERY */
  .carousel-gallery {
    width: 85%;
    margin: auto;
  }

  .text-gallery {
    font-size: 24px;
    font-weight: 300;
  }

  .img-carousel {
    height: 200px;
  }
}