/* PROJECTS */

/* divider */
.dividerProject{
  width: 60%;
  height: 3px;
  margin-bottom: 1rem;
  background-color: var(--color-secondary);
}

/* SWIPER carousel img */
.swiper {
  width: 100%;
  height: 100%;
}
.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center; 
}
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiper-container{
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
}


.projects-title{
    background: linear-gradient(to bottom, #0c4273, #01182b);
    width: 50%;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 50px;
}
.projects-title h1{
    text-transform: uppercase;
    font-size: 4em;
}
.secondSpanProject{
  width: 80%;
}
.startButtonProject{
  position: absolute;
  bottom: 10%;
  background-color: var(--color-secondary);
  padding: 10px 15px 10px;
  border-radius: 100%;
  cursor: pointer;
  transition: transform 0.3s;
  color: black;
}
.startButtonProject:hover{
  transform: scale(1.3);
}


/*proyectos*/
.project-container {
  background: linear-gradient(to bottom, #0c4273, #000a12);
  position: relative;
  padding: 130px 0 200px 0;
}

.wrapper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 20rem);
  justify-content: center;
  width: 80%;
  margin: 0 auto;
}

.preview_project {
  overflow: hidden;
  box-shadow: 0px 2px 8px 0px var(--clr-gray-light);
  background-color: white;
  text-align: center;
  border-radius: 1rem;
  position: relative;
  margin: 1rem;
  height: fit-content;
  height: 400px;
}
.preview_project h1{
  text-transform: uppercase;
}

.imgProject {
  height: 10rem;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 1rem; /* Agregado un border-radius similar al del contenedor principal */
}
.imgProject img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* La propiedad object-fit ajustará la imagen al contenedor sin distorsionarla */
}

.nameProject{
  font-weight: bold;
  font-size: 1.5rem;
  color: black;
}

.descriptionProject {
  margin: 1rem 2rem;
  font-size: 0.9rem;
  color: black;
}

.btnProject {
  width: 90%;
  display: inline-block; /* Ensure the width works as expected */
  font-size: 1rem;
  font-weight: bold;
  color: black;
  background-color: var(--color-secondary);
  padding: 1rem;
  position: absolute;
  bottom: 0;
  left: 0;
}

.btnProject:hover{
  cursor: pointer;
}

/* popup de los proyectos */
.overlay_projects {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
  z-index: 100;
}
.overlay_projects.visible {
  visibility: visible;
  opacity: 1;
}
.overlay_projects:target {
  visibility: visible;
  opacity: 1;
}
.popup_projects {
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 60%;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  transition: all 2s ease-in-out;
  max-height: 80%;
  overflow-y: auto;
  overflow-x: hidden;
}

.popupImg {
  height: 300px;
  width: 100%;
}
.popupImg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  object-fit: cover; /* La propiedad object-fit ajustará la imagen al contenedor sin distorsionarla */
}

.close_project {
  position: absolute;
  cursor: pointer;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  background-color: black;
  width: 30px;
  text-align: center;
  border-radius: 10px;
  z-index: 9999;
}

.content_popup{

}
.content_popup p{
  color: black;
}


.close-btn-behind{
  position: fixed;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  z-index: -1;
}