
.fases-proyecto {
  width: 100%;
  height: 600px;
  padding: 0 70px;
  display: grid;
  place-items: center;
  margin-bottom: 100px;
  border-bottom: 1px dotted #ccc;
}

.fases-proyecto-contenedor {
  width: 80%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  position: relative;
}

.numero-pasos-contenedor {
  display: flex;
  gap: 60px;
  position: absolute;
  top: -5%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tab-paso {
  display: grid;
  place-items: center;
  background-color: #e4e1f8;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 0.9rem;
  color: #333;
  transition: 0.3s ease-out;
}

.tab-pasos--active {
  background-color: #278cd9;
  color: #fff;
  font-weight: bold;
}

.fases-descripcion {
  display: none;
}

.fases-descripcion-active {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 900px;
  gap: 30px;
}

.fases-descripcion-active .image-description {
  height: auto;
  width: 45%;
  transition: 0.5s ease-in-out;
}

.fases-descripcion-active .fases-descripcion-text {
  width: 50%;
}

.fases-descripcion-active .fases-descripcion-text h2 {
  font-size: 2.3em;
  font-weight: bold;
  margin-bottom: 20px;
  margin-top: 10px;
}

.fases-descripcion-active .fases-descripcion-text span {
  font-size: 0.9rem;
  font-weight: bold;
  padding: 4px 15px;
  border-radius: 15px;
  color: #444;
  background-color: #f7faff;
  box-shadow: rgba(0, 0, 0, 0.2) 1px 2px 7px 0;
}

/*--------------------Proyectos--------------------*/
img {
  width: 100%;
  height: 100%;
}

.proyectos {
  width: 100%;
  margin-top: 30px;
  height: 450px;
  text-align: center;
  background: -webkit-linear-gradient(
      to right,
      hsla(202, 17%, 39%, 0.459),
      hsla(231, 28%, 22%, 0.664)
    ),
    url(../../img/Proyectos/pexels-energepiccom-110469.jpg);
  background: linear-gradient(
      to right,
      hsla(202, 17%, 39%, 0.459),
      hsla(231, 28%, 22%, 0.664)
    ),
    url(../../img/Proyectos/pexels-energepiccom-110469.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: cover;
  background-position: center;
  position: relative;
}

.proyectos h1 {
  padding-top: 170px;
  color: #fff;
  font-size: 48px;
  font-weight: bolder;
}

.casos h2.titulo {
  font-size: 1.5em;
}

.wrap-proyectos{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  place-items: center;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

@media only screen and (min-width: 901px) and (max-width: 1150px) {
  .fases-descripcion-active {
    width: 100%;
  }

  .numero-pasos-contenedor {
    top: 0;
  }
  .fases-descripcion-active .fases-descripcion-text h2 {
    font-size: 1.5em;
  }
}

@media only screen and (max-width: 900px) {
  .fases-proyecto-contenedor {
    width: 100%;
  }

  .fases-descripcion-active {
    width: 100%;
    gap: 20px;
  }
  .fases-descripcion-active .fases-descripcion-text h2 {
    font-size: 1.5em;
  }
}

@media only screen and (max-width: 748px) {
  .fases-proyecto {
    padding: 0 30px;
  }

  .numero-pasos-contenedor {
    gap: 30px;
  }

  .tab-paso {
    width: 35px;
    height: 35px;
  }
}

@media only screen and (max-width: 600px) {
  .fases-proyecto {
    border: 1px solid #ccc;
    height: 500px;
  }

  .numero-pasos-contenedor {
    gap: 20px;
    width: 100%;
    top: 5%;
  }

  .tab-paso {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }

  .fases-descripcion-active {
    flex-direction: column;
    height: 500px;
  }

  .fases-descripcion-active .image-description {
    width: 60%;
  }

  .fases-descripcion-active .fases-descripcion-text {
    width: 100%;
  }

  .fases-descripcion-active .fases-descripcion-text h2 {
    font-size: 1.5em;
  }

  .fases-descripcion-active .fases-descripcion-text span {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
}
