html{
    box-sizing: border-box;
    font-size: 62.5%;/*Reset para REMS - 62.5% = 10px de 16px*/
}
*,*:before, *:after{
    box-sizing: inherit;
}

/*fonts*/
body{
    font-family: 'Lato', sans-serif;
    font-size: 1.6rem;
    line-height: 2;
}

/*Globales*/
.container{
    max-width: 120rem;/*=1200px*/
    margin: 0 auto;
    /*Es lo mismo que lo de arriba.
    margin-left: auto;
    margin-right: auto;
    */
    /*margin trabaja como las horas del reloj
    margin 0 auto 0 auto. el 0 seria la coordenada de 
    las 12, el auto las 3, el 0 las 6 y el ultimo
    auto las 9*/
    /*Solo se utilizo margin: 0 auto para 
    simplificarlo, ya que solo se necesita el 
    de la derecha y va en sentido de las 
    manecillas del reloj*/
}

img{
    max-width: 100%;
}

h1{
    font-size: 3.8rem;
}

h2{
    font-size: 3.4rem;
}

h3{
    font-size: 3rem;
}

h4{
    font-size: 2.6rem;
}

/*Utilidades*/
.section{
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.fw-300{
    font-weight: 300;
}
.centrar-texto{
    text-align: center;
}
.d-block{
    display: block!important;
}
.contenido-centrado{
    max-width: 800px;
}

/*Botones*/
.boton{
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.8rem;
    padding: 1rem 3rem;
    margin-top: 3rem;
    display: inline-block;/*Los enlaces href tiene un display inline, asi que se tiene que cambiar a block para poder modificarlos*/
    text-align: center;
}
.boton-amarillo{
    background-color: #e08709;
}
.boton-verde{
    background-color: #71b100;
}

/*Header*/
.site-header{
    background-color: #333333;
    padding: 1rem 0 3rem 0;
}
.site-header.inicio{
    background-image: url(../img/header.jpg);
    background-position: center center;
    background-size: cover;
    height: 100vh;
    min-height: 60rem;/*=600px*/
}
.contenido-header{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.contenido-header h1{
    color: #ffffff;
    padding-bottom: 2rem;
    max-width: 60rem;
    line-height: 2;
}
.barra{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;/*=30px*/
}

/*Navegacion*/
.navegacion a{
    color: #ffffff;
    text-decoration: none;
    font-size: 1.8rem;/*=18px*/
    margin-right: 2rem;/*=20px*/
}
.navegacion a:hover{
    color: #71b100;
}
.navegacion a:last-of-type{
    margin: 0;
}

/*Iconos Nosotros*/

.iconos-nosotros{
    display: flex;
    justify-content: space-between;
}
.icono{
    flex-basis: calc(33.3% - 1rem);
    text-align: center;
}
.icono h3{
    text-transform: uppercase;
}

/*Anuncios*/
.container-anuncios{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.anuncio{
    /*Otra manera en lugar de utililzar solamente flex es:
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(33.3% - 1rem); */
    flex: 0 0 calc(33.3% - 1rem);
    /*border-style: solid;
    border-color: ;
    border-width: 1px;*/
    /*El border se puede simplificar a una linea
    utilizando el codigo de abajo, que practicamente
    es lo mismo que hay en las tres de arriba
    (style, color, width*/
    border: 1px solid #B5B5B5;
    background-color: #f5f5f5;
    margin-bottom: 2rem;
}
.contenido-anuncio{
    padding: 2rem;
    /*Para utilizar padding en ciertas direcciones
    se puede usar el 
    padding-top: 
    padding-right: 
    padding-bottom:  
    padding-left:
    Pero en este caso solo se utiliza el 
    padding: 2 rem, ya que toma los 4 valores 
    de los distintos tipos de padding en una sola linea.
    Otra manera de hacerlo:
    Ejemplo: padding: 2 rem 4rem 2 rem 4 rem*/
}
.contenido-anuncio h3, .contenido-anuncio p{
    margin: 0;
}
.iconos-caracteristicas{
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-between;
    flex: 1;
    max-width: 500px;
}
.iconos-caracteristicas li{
    /*flex: 1;*/
    display: flex;
}
.iconos-caracteristicas li img{
    margin-right: 2rem;
}
.precio{
    color: #71b100;
    font-weight: 700;
}
.ver-todas{
    display: flex;
    justify-content: flex-end;
}

/*Contacto Home*/
.imagen-contacto{
    background-image: url(../img/encuentra.jpg);
    background-position: center center;
    background-size: cover;
    height: 40rem;
    display: flex;
    align-items: center;
}
.contenido-contacto{
    flex: 1;
    color: #ffffff;
}
.contenido-contacto p{
    font-size: 1.8rem;
}

/*Seccion inferior*/
.seccion-inferior{
    display: flex;
    justify-content: space-between;
}
.seccion-inferior .blog{
    flex-basis: 60%;
}
.seccion-inferior .testimoniales{
    flex-basis: calc(40% - 2rem);
}
.entrada-blog{
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.entrada-blog:last-of-type{
    margin-bottom: 0;
}
.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{/*crea la linea que aparece abajo de nombre de blog*/
    content: '';
    display: block;
    width: 15rem;
    height: .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{/*crea las comillas donde esta el testimonial*/
    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;
    display: flex;
    justify-content: space-between;
}
.copyright{
    margin: 0;
    color: #ffffff;
}

/*Paginas internas*/

/*Nosotros*/
.contenido-nosotros{
    display: grid;
    grid-template-columns: repeat(2,1fr); /*Tambien se  puede usar 50%*/
    grid-column-gap: 2rem;
}
.texto-nosotros blockquote{
    font-weight: 900;
    font-size: 2rem;
    margin: 0;
    padding: 1rem 0 3rem 0;
}

/*Anuncio*/
.resumen-propiedad{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/** Contacto **/
.contacto p {
    font-size: 1.4rem;
    color: #4f4f4f;
    margin: 2rem 0 0 0;
}
legend {
    font-size: 2rem;
    color: #4f4f4f;
}
label {
    font-weight: 700;
    text-transform: uppercase;/*Convierte texto a MAYUSCULAS*/
    display: block;
}

/*Selecciona todos los input que no sean tipo submit. 
Para eso utiliza input:not([tipo de dato]). 
Hace que se aplique el estilo a lo que se desee, excluyendo a los que no */
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;
}
.forma-contacto {
    max-width:30rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}