:root {
    --color1: #95c2d8;
    --color2: #4e7d95;
    --color3: #f8f8f8;
    --color4: #4d5868;
    --colorh2: #3d3d3d;
    --colorCompromiso: #7c7c7c;
}

* {
    box-sizing: border-box;
}


#logo {
    width: 213px;
    display: block;
    margin: auto;
}

#navegadorPrincipal nav{
    width: 65%;
    margin: auto;
    background-color: var(--color1);
    box-shadow: 0 0 1px 0;
    text-align: center;
}

#navegadorPrincipal span{
    font-size: 12px;
}

header #navegadorPrincipal ul{
    list-style: none;
    height: 85px;
    display: grid;
    font-family: sans-serif;
    grid-template-columns: repeat(8,1fr);
    justify-content: center;
    align-content: center;
}

header a {
    text-decoration: none;
    color: white;
}

header li {
    height: 100%;
}

header li:hover{
    background-color: var(--color2);
}

h3, ul{
    margin: 0;
}

#imgPortada{
    background-image: url("imagenes/portada.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 750px;
    width: 100%;
    display: grid;
    grid-template-rows: 80% 6% 16%;
    justify-items: center;
    align-items: center;
}

#imgPortada h3{
    margin: 0;
}

#imgPortada h3, #imgPortada p{
    color: white;
    text-align: center;
    transform: translateY(50%);
    font-size: 52px;
    font-family: sans-serif;
}

#buscador {
    width: 100%;
    text-align: center;
}

#buscador ul{
    list-style: none;
    height: 85px;
    display: grid;
    font-family: sans-serif;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-content: center;
}

#buscadorGeneral {
    background-color: var(--color1);
}

#buscadorGeneral form{
    width: 80%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    padding-top: 30px;
    padding-bottom: 30px;
    color: white;
}

#buscador, #email {
    background-color: var(--color2);
}

.fondo, .fondo #email{
    background-color: var(--color3);
}

h2 {
    font-family: sans-serif;
    font-size: 38px;
    color: var(--colorh2);
}

#venta, #alquiler, #compromiso{
    margin: auto;
    width: 65%;
    padding-top: 50px;
    padding-bottom: 50px;
}

#compromiso p {
    color: var(--colorCompromiso);
    font-size: 17px;
}

#anunciosVenta, #anunciosAlquiler {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 40px;
    justify-items: center;
}

#venta img, #alquiler img{
    width: 200px;
}

.anuncio{
    background-color: white;
    box-shadow: 0 0 1px 0;
    width: 400px;
}

.anuncio div:nth-child(2){
    padding-left: 20px;
}

.anuncio a{
    text-decoration: none;
    color: var(--color4);
}

.anuncio a:hover{
    color: var(--color1);
}

.anuncio ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.anuncio li {
    display: inline-block;
}
footer {
    background-color: var(--color1);
    color: white;
}

.anuncio {
    display: flex;
}

.anuncio div{
    flex: 1;
}

.barra {
    width: 50px;
    text-align: left;
}

.barra br{
    display: inline-block;
    border: 2px solid black;
    width: 125px;
}

.fondo {
    text-align: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.fondo h3 {
    margin-bottom: 10px;
    color: var(--color4);
}

.fondo form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
}

.fondo form div:nth-child(1) { 
    grid-area: 1 / 1 / 2 / 3;
}

.fondo form div:nth-child(1) i {
    border: 3px solid var(--color2);
    background-color: var(--color2);
} 
.fondo form div:nth-child(2) { 
    grid-area: 2 / 1 / 3 / 2;
    text-align: end;
    padding-right: 5px;
 }

 .fondo form div:nth-child(2) label {
    border: 1px solid black;
    padding: 10px;
    box-shadow: 0 0 1px 0 ;
 }
.fondo form div:nth-child(3) { 
    grid-area: 2 / 2 / 3 / 3;
    text-align: start;
    padding-left: 5px;
}

.fondo form div:nth-child(3) input {
    width: 100px;
    height: 30px;
}
.fondo form div:nth-child(4) { grid-area: 3 / 1 / 4 / 3; }

.fondo div:nth-child(2){
    display: inline-block;
    font-size: 11px
}

#contacto {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 100px;
    align-items: center;
    justify-items: center;
}

#creditos {
    display: grid;
    grid-template-columns: 2fr 3fr 1fr 1fr;
    align-items: center;
}

#contacto a, #creditos a  {
    text-decoration: none;
    color: var(--color3);
}