#obras{
  overflow: hidden;
}
.portada {
  position: relative;
  display: inline-block;
  text-align: center;
}
.centrado {
  position: absolute;
  top: 50%;
  left: 20%;
  transform: translate(-50%, -50%);
}
.centrado h1 {
  color: white;
}
.line-orange {
  width: 50px;
  height: 4px;
  background: #f36c21;
  margin-top: 10px;
}
section {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 80%;
  margin: auto;
}

.obras-two {
  width: 27%;
  border: 1px solid black;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 4rem;
}
.obras img {
  width: 100%;
  object-fit: cover;
  height: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.obras div {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.obras div h1,
.obras div h2 {
  color: white;
}
.obras-two div span {
  color: #000000;
  font-family: "Rubik Medium";
  background: #f36c21;
  padding: 1px 5px;
}
.title-obra {
  padding-top: 10px;
  font-family: "Rubik Regular";
  font-size: 30px !important;
  line-height: 32px !important;
  padding-bottom: 5px;
}
.obras-two div:nth-of-type(2) {
  width: 90%;
  margin-right: auto;
  margin-left: auto;
  padding-bottom: 15px;
}
.obras-two div:nth-of-type(2) p {
  margin: 15px 0;
  font-size: 14px;
  line-height: 16px;
}


a {
  width: 48%;
}
h2 {
  color: #000000;
  text-transform: none;
  font-family: "Rubik Regular";
  font-size: 35px;
  line-height: 35px;
  margin-bottom: 1rem;
}
p {
  font-size: 16px;
  line-height: 19px;
}
.jobs:hover {
  background: #f36c21;
}
.jobs:hover h2,
.jobs:hover p {
  color: white;
}

@media only screen and (max-width: 768px) {
  section {
    flex-direction: column;
  }
  .obras-two{
    width: 100%;
  }
  a{
      width:100%;
  }
  .centrado {
    top: 60% !important;
    left: 30% !important;
}
}

@media screen and (min-width: 780px) and (max-width: 821px) {
  section{
    justify-content: space-around;
    width: 90%;
  }
  .obras-two {
    width: 31%;
    margin-bottom: 1rem;
}
}