/*----------------------------Globales----------------------------*/
html {
    box-sizing: border-box;
    font-size: 62.5%; /* 1rem = 10px, 1.6rem = 16px por defecto */
}

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

body {
    font-family: 'Lato', sans-serif;
    font-size: 1.6rem; /* 16px en base al font-size de html */
    line-height: 1.5; /* Mejora la legibilidad */
    margin: 0; /* Elimina márgenes por defecto */
    padding: 0; /* Elimina rellenos por defecto */
}

img {
    max-width: 100%; /* Asegura que las imágenes no se desborden */
}

.contenedor {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0;
}

/* Encabezados */
h1 {
    font-size: 3.8rem; /* = 38px */
}

h2 {
    font-size: 3.4rem;
}

h3 {
    font-size: 3rem;
}

h4 {
    font-size: 2.6rem;
}

/**-------------------------Utilidades--------------------------**/
.seccion {
    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;
    text-align: center;
    border: none;
}

.boton:hover {
    cursor: pointer;
}

.boton-amarillo {
    background-color: #E08709;
}

.boton-verde {
    background-color: #FFC436;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    html {
        font-size: 50%; /* Ajusta el tamaño del texto en pantallas pequeñas */
    }

    body {
        font-size: 1.4rem; /* Ajusta el tamaño del texto en pantallas pequeñas */
    }

    .boton {
        font-size: 1.6rem;
        padding: 0.8rem 2rem;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.6rem;
    }

    h3 {
        font-size: 2.2rem;
    }

    h4 {
        font-size: 1.8rem;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 75%; /* Ajusta el tamaño del texto en pantallas grandes */
    }

    body {
        font-size: 1.8rem; /* Ajusta el tamaño del texto en pantallas grandes */
    }

    .boton {
        font-size: 2rem;
        padding: 1.2rem 4rem;
    }
}


/*--------------------------header------------------------------*/

/*site-headr es una clase e inicio es una tambien*/
/*------------------------------Site Header------------------------------*/
.site-header {
    background-color: #333333;
    padding: 1rem 0 3rem 0;
}

.site-header.inicio {
    background-image: url(../img/header.jpg);
    background-position: center center; /* Centra la imagen */
    background-size: cover; /* Ajusta el tamaño de la imagen */
    height: 100vh;
    min-height: 60rem;
}

.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: 1.5; /* Mejor legibilidad */
}

/*------------------------------ Barra de Navegación ------------------------------*/
.barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
}

/*------------------------------ Navegación ------------------------------*/
.navegacion a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.8rem; /* 18px */
    margin-right: 2rem;
}

.navegacion a:hover {
    color: #FFC436;
}

.navegacion a:last-of-type {
    margin: 0;
}

/*------------------------------ Icono Nosotros ------------------------------*/
.iconos-nosotros {
    display: flex;
    justify-content: space-between;
}

.icono {
    flex-basis: calc(33.3% - 1rem);
    text-align: center;
    text-transform: uppercase;
}

/*------------------------------ Anuncios ------------------------------*/
.contendedor-anuncios {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.anuncio {
    flex-shrink: 0;
    flex-basis: calc(33.3% - 1rem);
    border: 1px solid #B5B5B5;
    background-color: #f5f5f5;
    margin-bottom: 2rem;
}

.contendio-anuncio {
    padding: 2rem;
}

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

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

.ver-todas {
    display: flex;
    justify-content: flex-end;
}

/*------------------------------ Iconos Características ------------------------------*/
.iconos-caracteristicas {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-evenly;
    flex: 1;
    max-width: 500px;
}

.iconos-caracteristicas li {
    display: flex;
}

.iconos-caracteristicas li img {
    margin-right: 2rem;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .site-header.inicio {
        height: auto; /* Ajusta la altura para pantallas pequeñas */
        min-height: auto;
        background-position: top center; /* Ajusta la posición de la imagen */
    }

    .iconos-nosotros, .contendedor-anuncios {
        flex-direction: column;
    }

    .icono, .anuncio {
        flex-basis: 100%;
        margin-bottom: 1rem;
    }

    .iconos-caracteristicas {
        flex-direction: column;
        max-width: 100%;
    }

    .iconos-caracteristicas li {
        margin-bottom: 1rem;
    }
}

/*-------------------------Contacto Home -----------------------------*/
/*-------------------------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; /* Corregido */
}

/*---------------------------Sección Inferior---------------------*/
.seccion-inferior.contenedor {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Asegura que el contenido se ajuste en pantallas pequeñas */
}

.seccion-inferior .blog {
    flex-basis: 60%;
}

.seccion-inferior .testimoniales {
    flex-basis: calc(40% - 2rem);
}

/* Entrada Blog */
.entrada-blog {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5rem;
}

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

.entrada-blog .imagen {
    flex-basis: 40%;
    display: flex;
    justify-content: center;
}

.entrada-blog .texto-entrada {
    flex-basis: calc(60% - 3rem);
}

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

/* Entre lineado de la página de proyectos */
.texto-entrada h4 {
    margin: 0;
    line-height: 1.1;
}

.texto-entrada h4::after {
    content: '';
    display: block;
    width: 7rem;
    height: 0.5rem;
    background-color: #FFC436;
    margin-top: 1.5rem;
}

.texto-entrada span {
    color: #191d88;
}

/*--------------------------Testimoniales---------------------------*/
.testimonial {
    background-color: #71b100;
    font-size: 2.4rem;
    padding: 2rem;
    color: #ffffff;
    border-radius: 2rem;
    position: relative; /* Necesario para el posicionamiento del before */
}

.testimonial p {
    text-align: right;
}

.testimonial blockquote::before {
    content: '';
    background-image: url(../img/comilla.svg); /* Corregido */
    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;
}

.contenedor-footer {
    padding: 3rem 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Asegura que el contenido se ajuste en pantallas pequeñas */
}

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

/* Estilos responsivos */
@media (max-width: 768px) {
    .seccion-inferior.contenedor {
        flex-direction: column;
    }

    .seccion-inferior .blog,
    .seccion-inferior .testimoniales {
        flex-basis: 100%;
        margin-bottom: 2rem;
    }

    .entrada-blog {
        flex-direction: column;
    }

    .entrada-blog .imagen,
    .entrada-blog .texto-entrada {
        flex-basis: 100%;
    }

    .testimonial {
        font-size: 2rem;
        padding: 1.5rem;
    }
}




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

/*----------------------Contacto------------------------*/
.contacto p {
    font-size: 1.2rem;
    color: #4f4f4f;
    margin: 2rem 0 0 0;
}

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

label {
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem; /* Agregado para espacio debajo de las etiquetas */
}

input:not([type="submit"]), textarea, select {
    padding: 1rem;
    display: block;
    width: 100%; /* Cambiado a 100% para ajustar al contenedor */
    background-color: #e1e1e1;
    margin-bottom: 2rem;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.1); /* Agregado para un ligero efecto de profundidad */
}

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

select {
    -webkit-appearance: none; /* Elimina el estilo por defecto de los selectores en Webkit */
    appearance: none;
    background-color: #ffffff; /* Cambiado para asegurar un buen contraste */
    border: 1px solid #ccc; /* Añadido un borde para mejor contraste */
    padding: 1rem; /* Asegura que el padding sea consistente */
}

textarea {
    height: 20rem;
    resize: vertical; /* Permite redimensionar verticalmente */
}

/* Estilos del formulario de contacto */
.forma-contacto {
    max-width: 100%; /* Ajustado para que se adapte a diferentes tamaños de pantalla */
    display: flex;
    flex-direction: column; /* Cambiado para que los elementos se apilen verticalmente */
    align-items: flex-start; /* Alinea los elementos al inicio del contenedor */
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .contacto p {
        font-size: 1rem; /* Ajusta el tamaño del texto en pantallas pequeñas */
    }

    legend {
        font-size: 2rem; /* Ajusta el tamaño del texto en pantallas pequeñas */
    }

    .forma-contacto {
        max-width: 100%;
        padding: 1rem; /* Añadido padding para mejor espaciado */
    }
}
