/*
Nombre de la plantilla: Temporahomes
Descripción: Diseño propio para inmobiliaria
Autor: Tú mismo
Versión: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

header {
    background-color: #0A2463;
    color: #ffffff;
    padding: 20px 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.logo-contenedor {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    flex-shrink: 0;
    z-index: 9999;
    width: 180px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
}

.logo-imagen {
    width: 100% !important;
    height: auto !important;
    max-height: 85px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
}

.texto-centrado {
    text-align: center;
    padding-left: 180px;
}

.texto-centrado h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.texto-centrado p {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.4;
}

nav {
    background-color: #081C48;
    padding: 15px 0;
    text-align: center;
    position: relative;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 22px;
    font-weight: 500;
    font-size: 1.15rem;
    transition: color 0.3s ease;
    display: inline-block;
}

nav a:hover {
    color: #3E92CC;
}

.btn-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #ffffff;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 0 0 rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    border: none;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3), 0 0 15px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp::after {
    content: "¿Tienes dudas? Escríbenos";
    position: absolute;
    right: 85px;
    background-color: #25D366;
    color: white;
    padding: 9px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.btn-whatsapp:hover::after {
    opacity: 1;
}

.contenido {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.contenido h2 {
    font-size: 2.3rem;
    color: #212529;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.4;
    font-weight: 700;
}

.contenido p {
    font-size: 1.35rem;
    color: #495057;
    margin-bottom: 40px;
    text-align: center;
    line-height: 1.5;
}

.buscador {
    background-color: #f8f9fa;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    margin-bottom: 60px;
    text-align: center;
}

.buscador h3 {
    color: #0A2463;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.campo {
    padding: 13px;
    width: 230px;
    margin: 8px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
}

.boton {
    background-color: #0A2463;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.boton:hover {
    background-color: #081C48;
}

.boton-wsp {
    background-color: #25D366;
}

.boton-wsp:hover {
    background-color: #128C7E;
}

.servicios {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 60px;
}

.servicios h3 {
    color: #0A2463;
    font-size: 1.8rem;
    margin-bottom: 25px;
    text-align: center;
}

.servicio-item {
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 4px solid #3E92CC;
}

.servicio-item h4 {
    color: #212529;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.servicio-item p {
    text-align: left;
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 0;
}

.propiedades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.propiedad {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.propiedad:hover {
    transform: translateY(-5px);
}

.propiedad img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.propiedad-info {
    padding: 25px;
}

.propiedad-info h4 {
    color: #0A2463;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.precio {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
}

.detalles {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #6C757D;
}

.contacto {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 60px;
}

.contacto h3 {
    color: #0A2463;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.correo-contacto {
    font-size: 1.4rem;
    font-weight: 500;
    color: #0A2463;
    margin-bottom: 25px;
}

.formulario {
    max-width: 700px;
    margin: 0 auto;
}

.form-campo {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
}

textarea.form-campo {
    min-height: 150px;
    resize: vertical;
}

footer {
    background-color: #0A2463;
    color: #ffffff;
    text-align: center;
    padding: 30px 0;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
        height: auto;
    }
    .logo-contenedor {
        position: static;
        transform: none;
        margin: 0 auto;
        width: 160px;
        height: 80px;
    }
    .texto-centrado {
        padding-left: 0;
        text-align: center;
    }
    .texto-centrado h1 {
        font-size: 1.8rem;
    }
    nav a {
        display: inline-block;
        margin: 8px 15px;
        font-size: 1.1rem;
    }
    .campo {
        width: 90%;
    }
    .propiedades {
        grid-template-columns: 1fr;
    }
    .btn-whatsapp {
        width: 58px;
        height: 58px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
    .btn-whatsapp::after {
        display: none;
    }
}
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
}
.es-listing,
.es-property,
.es-card {
    width: 100% !important;
}

.es-property img,
.es-card img,
.es-thumbnail img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}

.es-listing .row {
    display: flex;
    flex-wrap: wrap;
}
/* Corrección Estatik */

.es-property img,
.es-card img,
.es-thumbnail img,
.es-listing img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}

.es-property,
.es-card {
    margin-bottom: 30px !important;
}
