html {
    box-sizing: border-box;
    font-size: 62.5%; /** Reset para REMS = 62.5% = 10px de 16px**/
}
/* Snippet para evitar que ell padding sea tomado del tamaño total del elemento (width)*/
*, *:before, *:after {
    box-sizing: inherit;
}

/* Los rems son una medida mas escalable que los pixels, vuelven las medidas responsivas*/
/*font-family: ; fuentes seguras, que estan en todos los ordenadores*/
body {
    font-family: 'Lato', sans-serif;
    font-size: 1.6rem;
    line-height: 2;
}

/** Globales**/
img{
    max-width: 100%; /* SIEMPRE, para que las imagenes sean responsivas*/
}
.contenedor {
    width: 90%;
    max-width: 120rem;
    margin: 0 auto 0 auto;
}
/* IDEM:
    margin: 0 auto 0 auto; --> superior der inf izq
    margin-left: auto;
    margin-right: auto;
*/


h1{
    font-size: 3.8rem;
}
h2{
    font-size: 3.4rem;
}
h3{
    font-size: 3rem;
}
h4{
    font-size: 2.6rem;
}

/** Utilidades **/
.seccion {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.w-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; /* debo modificar su display sino ignora los cambios de margen*/
    text-align: center;
    border: none;
}
.boton:hover {
    cursor: pointer;
}
.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);/* importo la ruta de la imagen*/
    background-position: center center; /* toma la imagen desde el centro y al expande */
    background-size: cover; /* toma todo el espacio disponible y lo proporciona */ 
    height: 100vh; /* viewport height: toma la altura de la pantalla para dimensionar la imagen*/
    min-height: 60rem; /* setea el tamaño minimo para no perder congruencia del vh*/
}

.contenido-header{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.contenido-header h1{
    color: #ffffff;
    padding-bottom: 2rem;
    max-width: 60rem;
    line-height: 2;
}
.barra{
    display: flex; 
    justify-content: space-between; /* distribuye los elementos*/
    align-items: center;
    padding-top: 3rem;
}


.navegacion a {
    color: #ffffff;
    text-decoration: none; /* elimina la linea inferior*/
    font-size: 1.8rem; /* ==18px*/
    margin-right: 2rem;
}
.navegacion a:hover{
    color: #71B100;
}
.navegacion a:last-of-type{ /* da un margen distinto al ultimo elemento*/
    margin: 0;
}


/** iconos nosotros**/
.iconos-nosotros{
    display: flex;
    justify-content: space-between;
}
.icono{
    flex-basis: calc(33.3% - 1rem); /* utilizo % para que sea responsive, el rem da el espacio entre elementos */
    text-align: center;
}
.icono h3{
    text-transform: uppercase;
}


/** Anuncios **/
.contenedor-anuncios{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* para que el contenido no se expanda hacia los costados*/
    margin-bottom: 2rem;
}
.anuncio{
    flex-grow: 0; /*el contenido crece si hay espacio*/
    flex-shrink: 0; /*hace que respete la proporcion del basis*/
    flex-basis: calc(33.3% - 1rem);
    /*Se pueden resumir en flex: grow shrink basis: */
    /*flex: 0 0 calc(33.3% - 1rem);*/
    border:1px solid #B5B5B5;
    /*border-style: solid;
    border-color: #B5B5B5;
    border-width: 1px;*/
    background: #F5F5F5;
}
.contenido-anuncio{
    padding: 2rem; /*top-bottom-left-right*/
}
.contenido-anuncio h3, .contenido-anuncio p{
    margin: 0;
}
.precio{
    color: #71B100;
    font-weight: 700; /* los <p> tienen un default de 400, los <h> de 700*/
}
.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;
    margin-left: 2rem;
}

.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: 0 0 90%; /* factor de crecimiento: divide los pixeles disponibles y los asigna a los elementos*/
    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.2;
}
/* crea un pseudoelemento (no se puede seleccionar) despues del elemento */
.texto-entrada h4::after {
    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: 3rem;
}
.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; 
}

/** Site Footer**/
.site-footer {
    background-color: #333333;
    margin: 0;
}
.contenedor-footer {
    padding: 3rem 0;
    display: flex;
    text-align: center;
    justify-content: space-between;
}
.copyright {
    margin: 0;
    color: #ffffff;
}


/** INTERNAS **/
/* Nosotros */
.contenido-nosotros {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    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; /* alinea horizontalmente */ 
    align-items: center; /* alinea verticalmente*/
}

/** Contacto **/
form p { /* solo afecta a los parrafos del formulario */
    font-size: 1.5rem;
    margin: 2rem 0 0 0;
}
legend {
    font-size: 2rem;
    color: #7c7979;
}
label {
    font-weight: 700;
    display: block;
}
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 { /* para que funcione el padding */
    -webkit-appearance: none; /* prefijo */
    appearance: none;
}
.forma-contacto {
    max-width: 30rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/**
MEDIA QUERIES



**/