html {
  box-sizing: border-box;
  font-size: 62.5%;
  /**Reset para REMS - 62.5% = 10px de 16px**/
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: "Lato", sans-serif;
  font-size: 1.6rem;
  line-height: 2;
}

/**Globals**/

img {
  max-width: 100%;
}

.container {
  width: 95%;
  max-width: 120rem;
  margin: 0 auto;
}

h1 {
  font-size: 3.8rem;
}

h2 {
  font-size: 3.4rem;
}

h3 {
  font-size: 3rem;
}

h4 {
  font-size: 2.6rem;
}

/**Utils**/

.section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.fw-300 {
  font-weight: 300;
}

.center-text {
  text-align: center;
}

.d-block {
  display: block !important;
}

.content-center {
  max-width: 800px;
}

.overlay-black::after {
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  z-index: -1;
  background: #000;
  opacity: 0.5;
}

/**Buttons**/

.button {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.8rem;
  padding: 1rem 3rem;
  margin-top: 3rem;
  display: inline-block;
  text-align: center;
  border: none;
  display: block;
  flex: 0 0 100%;
}

@media (min-width: 768px) {
  .button {
    display: inline-block;
    flex: 0 0 auto;
  }
}

.button {
  cursor: pointer;
}

.button-yellow {
  background-color: #e08709;
}

.button-green {
  background-color: #0047b1;
}

/*Header*/

.site-header {
  background-color: #333333;
  padding: 1rem 0 3rem 0;
}

.site-header.start {
  background-image: url(../img/bg-05.jpg);
  background-position: center center;
  background-size: cover;
  height: 100vh;
  min-height: 110rem;
  position: relative;
  z-index: 1;
}

.content-header {
  height: 80%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

@media (min-width: 768px) {
  .content-header {
    text-align: left;
  }
}

.content-header h1 {
  color: #ffffff;
  padding-bottom: 2rem;
  max-width: 60rem;
  line-height: 2;
}

.bar {
  padding-top: 1rem;
}

.bar img:first-child {
  width: 130px;
  height: 130px;
  padding-top: 3rem;
}

@media (min-width: 768px) {
  .bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/*Navigation*/

.navigation a {
  color: #ffffff;
  text-decoration: none;
  font-size: 2.2rem;
  display: block;
}

@media (min-width: 768px) {
  .navigation a {
    display: inline-block;
    font-size: 1.8rem;
    margin-right: 2rem;
  }
  .navigation a:last-of-type {
    margin: 0;
  }
}

.navigation a:hover {
  color: #71b100;
}

/**Mobile Menu**/

.mobile-menu img {
  width: 5rem;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none;
  }
}

.navigation:target {
  display: block;
}

.navigation {
  display: none;
}

@media (min-width: 768px) {
  .navigation {
    display: block;
  }
}

/*icons-nosotros*/

@media (min-width: 768px) {
  .icons-nosotros {
    display: flex;
    justify-content: space-between;
  }
}

.icon {
  text-align: center;
}

@media (min-width: 768px) {
  .icon {
    flex-basis: calc(33.3% - 1rem);
  }
}

.icon h3 {
  text-transform: uppercase;
}

/*Anuncios*/

@media (min-width: 768px) {
  .container-anuncios {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: stretch;
  }
}

.anuncio {
  border: 1px solid #b5b5b5;
  background: #f5f5f5;
  margin-bottom: 2rem;
  margin-right: 10px;
}

@media (min-width: 768px) {
  .anuncio {
    flex: 0 0 calc(33.3% - 1rem);
  }
}

.container-anuncio {
  padding: 2rem;
}

.container-anuncio h3,
.container-anuncio p {
  margin: 0;
}

.price {
  color: #71b100;
  font-weight: 700;
}

.icons-features {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-evenly;
  flex: 1;
  max-width: 500px;
}

.icons-features li {
  /*flex: 1;*/
  display: flex;
}

.icons-features li img {
  margin-right: 2rem;
}

.see-all {
  display: flex;
  justify-content: flex-end;
}

/*contacto home*/

.image-contacto {
  background-image: url(../img/bg-02.jpg);
  background-position: center center;
  background-size: cover;
  height: 50rem;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.content-contacto {
  flex: 0 0 95%;
  color: #ffffff;
}

.content-contacto p {
  font-size: 1.8rem;
}

/*Section Lower*/

@media (min-width: 768px) {
  .section-lower {
    display: flex;
    justify-content: space-between;
  }
  .section-lower .blog {
    flex-basis: 60%;
  }
  .section-lower .testimoniales {
    flex-basis: calc(40% - 2rem);
  }
}

.entrada-blog {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .entrada-blog {
    display: flex;
    justify-content: space-between;
  }
}

.entrada-blog:last-of-type {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .entrada-blog .imagen {
    flex-basis: 40%;
  }
  .entrada-blog .texto-entrada {
    flex-basis: calc(60% - 3rem);
  }
}

.texto-entrada a {
  color: #000000;
  text-decoration: none;
}

.texto-entrada h4 {
  margin: 0;
  line-height: 1.4;
}

.texto-entrada h4::after {
  content: "";
  display: block;
  width: 15rem;
  height: 0.5rem;
  background-color: #71b100;
  margin-top: 1rem;
}

.texto-entrada span {
  color: #e08709;
}

/*Testimoniales*/

.testimonial {
  background-color: #71b100;
  font-size: 2.4rem;
  padding: 2rem;
  color: #ffffff;
  border-radius: 2rem;
}

.testimonial p {
  text-align: right;
}

.testimonial blockquote::before {
  content: "";
  background-image: url(../img/comilla.svg);
  width: 4rem;
  height: 4rem;
  position: absolute;
  left: -2rem;
}

.testimonial blockquote {
  position: relative;
  padding-left: 5rem;
  font-weight: 300;
}

/*Footer*/

.site-footer {
  background-color: #333333;
  margin: 0;
}

.container-footer {
  padding: 3rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  .container-footer {
    display: flex;
    justify-content: space-between;
  }
}

.site-footer nav {
  display: none;
}

@media (min-width: 768px) {
  .site-footer nav {
    display: block;
  }
}

.copyright {
  margin: 0;
  color: #ffffff;
}

.info-business {
  color: #fff;
  text-align: justify;
  margin: 0 auto;
}

/**INTERNAS**/

/*Nosotros*/

@media (min-width: 768px) {
  .content-nosotros {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }
}

.text-nosotros blockquote {
  font-weight: 900;
  font-size: 2rem;
  margin: 0;
  padding: 0 0 3rem 0;
}

/*Anuncio*/

.resumen-propiedad {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/**Contacto**/

.contact p {
  font-size: 1.6rem;
  color: #4f4f4f;
  margin: 2rem 0 0 0;
}

legend {
  font-size: 2.4rem;
  color: #4f4f4f;
}

label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
}

input:not([type="submit"]),
textarea,
select {
  padding: 1rem;
  display: block;
  width: 100%;
  background-color: #e1e1e1;
  margin-bottom: 2rem;
  border: none;
  border-radius: 1rem;
}

input[type="radio"] {
  width: auto;
  margin: 0;
}

select {
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  height: 20rem;
}

.form-contact {
  max-width: 30rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* extra elements */
.btn {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  padding: 20px;
  margin: 15% auto;
  border-radius: 5px;
  width: 300px;
  text-align: center;
}

.modal-header {
  font-weight: bold;
  margin-bottom: 10px;
}

.modal-footer button {
  margin-top: 15px;
}
