
 
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;
    line-height: 2;
}

/*Globales*/
.contenedor {
    width: 95%;
    max-width: 120rem; /*= 1200px*/
    margin: 0 auto 0 auto; 
}
h1 {
    font-size: 3.8rem;
}
h2 {
    font-size: 3.4rem;
}
h3 {
    font-size: 3rem;
}
h4 {
    font-size: 2.6rem
}
img {
    max-width: 100%;
}
.d-block {
    display: block !important;
}

/**Utilizades**/

.seccion {
    margin-bottom: 2rem;
    margin-top: 2rem;
}
.fw-300 {
    font-weight: 300;
}
.centrar-texto {
    text-align: center
}
.contenido-centrado {
    max-width: 800px;
}
/*Botones*/
.boton {
    color: #f5f5f5;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.8rem;
    padding: 1rem 3rem;
    display: inline-block;
    margin-top: 3rem;
    text-align: center;
    border: none;
    display: block;
    flex: 0 0 100%;
}
@media (min-width:768px) {
    .boton {
        display: inline-block;
        flex: 0 0 auto;
    }
}
.boton:hover {
    cursor: pointer;
}
.boton-amarillo {
    background-color: orangered;
}
.boton-verde {
    background-color: green
}

/*Header*/
.site-header.inicio {
    background-image: url(../img/header.jpg);
    background-position: center center;
    background-size: cover;
    height: 100vh;
    min-height: 60rem
}
.site-header {
    background-color: #333333;
    padding: 1rem  0rem 3rem 0rem;
}
.contenido-header {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content:space-between;
    text-align: center;
}
@media (min-width:768px) {
    .contenido-header {
        text-align: left;
    }
}
.contenido-header h1 {
    color: white;
    padding-bottom: 5rem;
    max-width: 60rem;
    line-height: 2 /**Interlineado**/
}
.barra {
    padding-top: 3.5rem;
}
@media (min-width:768px) {
    .barra {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}
/**Navegacion**/
.navegacion a {
    color: white;
    text-decoration: none; /*Elimina la linea debajo del texto*/
    font-size: 2.2rem;  /*= 20px*/
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    display: block;
}
@media (min-width:768px) {
    .navegacion a {
        display: inline-block;
        margin-right: 1.5rem;
        font-size: 1.8rem;
    }
    .navegacion a:last-of-type {
        margin: 0px
    }
}
.navegacion a:hover {  /*Cambia el color del enlace al seleccionarlo*/
    color: aqua
}
/**Mobile Menu**/
.mobile-menu img {
    width: 5rem;
    margin-top: 3rem;
}
@media (min-width:768px) {
    .mobile-menu img {
        display: none;
    }
}
.navegacion:target {
    display: block;
}
.navegacion {
    display: none;
}
@media (min-width:768px) {
    .navegacion {
        display: block;
    }
}

/*Iconos Nosotros*/
@media (min-width:768px) {
    .iconos-nosotros {
        display: flex; /*Base para flexbox*/
        justify-content: space-between;
    }    
}
.icono {
    text-align: center;
}
@media (min-width:768px) {
    .icono {
    flex-basis: calc(33.3% - 0.5rem);
    }   
}
.icono h3 {
    text-transform: uppercase
}
/*Anuncios*/
@media (min-width:768px) {
    .contenedor-anuncios {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap-reverse; /***Modifica las filas de distribucion de acuerdo a la informacion dada**/
    }   
}
.anuncios {
    flex: 1 0 calc(33.3% - 1rem); /** Primero toma grow, para que el contenido crezca si es posible, luego shrik y se aplica lo mismo, y al final se coloca la base**/
    border-style: solid;
    border-color: white;
    border-width: 10px;
    background-color: #f5f5f5;
    margin-bottom: 2rem;
    line-height: 4rem;
}
@media (min-width:768px) {
    .anuncios {
        flex: 1 0 calc(33.3% - 1rem);
    }
}
.parrafo-anuncios {
    text-align: center;
}
.contenido-anuncio {
    padding: 2rem;
}
.contenido-anuncio h3 {
    text-align: center;
}
.contenido-anuncio h3, .contenido-anuncio p {
    margin: 0;
}
.precio {
    color: green;
    font-weight: 700;
    text-align: center;
}
.ver-todas {
    display: flex;
    justify-content: center
}
.iconos-caracteristicas {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-evenly;
    max-width: 500px;
    flex: 1; /**Crece respetando la anchura maxima**/
}
.iconos-caracteristicas li {
    display: flex;
}
.iconos-caracteristicas li img {
    margin-right: 2rem;
   
}
/*Contacto Home*/
.imagen-contactos {
    background-image: url(../img/encuentra.jpg);
    background-position: center center;
    background-size: cover;
    height: 40rem;
    display: flex;
    align-items: center;
    color: white;
}
.contenido-contacto {
    flex: 0 0 95%;
}
.contenido-contacto p {
    font-size: 1.8rem;
}

/**Seccion Inferior**/
@media (min-width:768px) {
    .seccion-inferior {
        display: flex;
        justify-content: space-between;
    }
    .seccion-inferior .blog {
        flex-basis: 60%
    }
    .seccion-inferior .testimoniales {
        flex-basis:calc(40% - 1rem)
    }
}
.entrada-blog {
    margin-bottom: 2rem;
}
@media (min-width:768px) {
    .entrada-blog {
        display: flex;
        justify-content: space-between;
    }
}
.entrada-blog :last-of-type {
    margin-bottom: none;
}
.entrada-blog .imagen {
    flex-basis: 40%;
    justify-content:space-between;
}
.entrada-blog .texto-entrada {
    flex-basis: calc(60% - 3rem)
}
.texto-entrada h4 {
    margin: 0;
    line-height: 1.4;
}
.texto-entrada h4:hover {
    color: aqua;
}
.texto-entrada a {
    color: black;
    text-decoration: none; /**Elimina la linea de abajo del enlace**/
}
.texto-entrada h4::after { /** Esto es un pseudo elemento, con el se hicieron las lineas verdes del blog**/
    content: "";
    display: block;
    width: 15rem;
    height: 0.7rem;
    background-color: green;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.texto-entrada span {
    color: orangered;
}
/***Testimoniales**/
.testimonial {
    background-color: green;
    font-size: 2.4rem;
    padding: 2rem;
    color: white;
    border-radius: 2rem; /**Modifica las esquinas de las imagenes, con 50% se crea un circulo**/
}
.testimonial p {
    text-align: right;
}
.testimonial blockquote::before {
    content: "";
    background-image: url(../img/comilla.svg);
    width: 4rem;
    height: 4rem;
    position: absolute;
    left: -2.8rem;
}
.testimonial blockquote {
    position: relative;
    padding-left: 2rem;
    font-weight: 300;
}
/**Footer**/
.site-footer {
    background-color: #333333;
    margin: 0;
    margin-top: 2rem;
}
@media (min-width: 768px) {
    .contenedor-footer {
        display: flex;
        justify-content: space-between;
    }
}
.site-footer nav {
    display: none;
}
@media (min-width:768px) {
    .site-footer nav {
        display: block;
    }
}
.contenedor-footer {
    padding: 3rem 0;
    text-align: center;
}
.copyright {
    margin: 0;
    font-size: 1.5rem;
    color: #f5f5f5
}
/**INTERNAS**/
/**Nosotros**/
@media (min-width:768px) {
    .contenido-nosotros {
        display: grid;
        grid-template-columns: repeat(2, 50%); /**Tambien se pueden usar 2 de 50% o 2, 1fr**/
        grid-column-gap: 2rem;
    }
}
.texto-nosotros blockquote {
    font-weight: 900;
    font-size: 2rem;
    padding: 1rem 0rem 3rem 0;
    margin: 0;
    text-align: center;
}
.texto-nosotros p {
    font-weight: 400;
    text-align: justify;
}
/**Anuncio**/
.resumen-propiedad {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/**Contacto**/
.contacto p {
    font-size: 1.2rem;
    color: #333333;
    margin: 2rem 0 0 0;
}
legend {
    font-size: 2rem;
    color: #333333
}
label {
    display: block; /**selecciona todo el espacio disponible, para que no se superponga**/
    font-weight: 700;
    text-transform: capitalize;
    font-size: 1.2rem;
}
input:not([type="submit"]),
textarea,
select { /** not es un elemento que da el formato a todos los atributos menos al señalado**/ 
    padding: 0.7rem;
    display: block;
    width: 100%;
    background-color: #e1e1e1;
    margin-bottom: 1rem;
    border: none;
    border-radius: 1.5rem;
}
input[type="radio"] {
    width: auto;
    margin: 0;
}
textarea {
    height:20rem;
}
.forma-contacto {
    max-width:300px;
    display: flex;
    justify-content: space-between;
}