/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

/* Encabezado */
header {
    background: #2c3e50;
    color: white;
    padding: 15px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f1c40f;
}
/* Header con logo y navegación */
header {
    background: #2c3e50;
    color: white;
    padding: 15px 0;
    text-align: center;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Logo en el header */
.logo-header img {
    width: 250px; /* Ajusta el tamaño según necesites */
    max-width: 100%;
}
/* Primera tira: Logo e información de contacto */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2c3e50; /* Color de fondo */
    padding: 15px 5%;
    color: white;
}

/* Estilos del logo */
.logo-header img {
    width: 280px; /* Aumentado el tamaño del logo */
    height: auto;
}

/* Información de contacto */
.contacto-header {
    display: flex;
    align-items: center;
    gap: 20px; /* Más espacio entre elementos */
}

/* Estilos para cada ítem de contacto */
.contacto-item {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 18px; /* Texto más grande */
    font-weight: bold;
    gap: 10px; /* Más espacio entre icono y texto */
    transition: color 0.3s ease;
}

/* Iconos de contacto más grandes */
.contacto-item img {
    width: 28px; /* Aumentado el tamaño de los iconos */
    height: 28px;
}

/* Efecto al pasar el mouse */
.contacto-item:hover {
    color: #d35400; /* Cambio de color al pasar el mouse */
}


/* Segunda tira: Menú de navegación */
.header-bottom {
    background: #d35400; /* Color diferente */
    text-align: center;
    padding: 10px 0;
}

.header-bottom ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.header-bottom ul li {
    display: inline;
}

.header-bottom ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.header-bottom ul li a:hover {
    color: #2c3e50; /* Cambio de color al pasar el mouse */
}

/* Responsividad */
@media screen and (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }

    .contacto-header {
        flex-direction: column;
        gap: 5px;
    }

    .header-bottom ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* Estilos de navegación */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Responsivo: Ajustar en pantallas pequeñas */
@media screen and (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        padding-top: 10px;
    }
}


/* Sección Hero con imagen de fondo */
.hero {
    background: url('Inmobiliaria-Imagenes/inmobiliaria\ 1.jpg') center/cover no-repeat;
    text-align: center;
    padding: 150px 20px;
    color: white;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 50px;
    border-radius: 10px;
    display: inline-block;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* Contenedor del formulario de búsqueda */
#search-form {
    display: flex;
    flex-direction: row; /* Asegura que los elementos estén en fila */
    justify-content: center; /* Centra los elementos horizontalmente */
    align-items: center; /* Alinea verticalmente */
    gap: 10px; /* Espaciado entre los elementos */
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px;
    margin: auto;
    white-space: nowrap; /* Evita que el contenido se divida en varias líneas */
    flex-wrap: nowrap; /* Evita que los elementos se bajen */
    overflow: hidden; /* Previene desbordamientos */
}

/* Estilos de los selectores */
#search-form select {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 250px; /* Tamaño fijo para que se mantenga alineado */
    min-width: 200px;
    flex-shrink: 0; /* Evita que los elementos se encojan */
}

/* Botón de búsqueda */
#search-form .btn {
    background: #d35400;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap; /* Evita que el texto del botón se corte */
    flex-shrink: 0; /* Mantiene el botón con tamaño fijo */
}

#search-form .btn:hover {
    background: #b03a00;
}

/* Asegurar que los elementos no se rompan en pantallas más pequeñas */
@media screen and (max-width: 768px) {
    #search-form {
        flex-wrap: wrap; /* En pantallas pequeñas, si es necesario, se acomoda */
    }

    #search-form select, 
    #search-form .btn {
        width: 45%; /* Distribuye los elementos en 2 columnas si hay poco espacio */
    }
}

/* En móviles (menores a 500px), los elementos se apilan */
@media screen and (max-width: 500px) {
    #search-form {
        flex-direction: column; /* En pantallas muy pequeñas, los elementos se apilan */
        align-items: stretch;
    }

    #search-form select, 
    #search-form .btn {
        width: 100%; /* Ocupar todo el ancho en móviles */
    }
}



/* Tira con texto grande */
.tira-destacada {
    background: #d35400; /* Color llamativo */
    color: white;
    text-align: center;
    padding: 40px 10%;
    font-size: 24px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}
/* Ajuste responsivo para pantallas pequeñas */
@media screen and (max-width: 768px) {
    .tira-destacada {
        font-size: 22px;
        padding: 40px 5%;
    }
}
/* Propiedades */
.propiedades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.propiedad {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.propiedad img {
    width: 100%;
    border-radius: 5px;
}

/* Botón */
.btn {
    display: inline-block;
    background: #2c3e50;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
}

.btn:hover {
    background: #1a252f;
}
/* Contenedor de la imagen con lupa */
.imagen-container {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

.imagen-container img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

/* Lupa aparece al pasar el cursor */
.lupa-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.imagen-container:hover .lupa-overlay {
    opacity: 1;
}

.imagen-container:hover img {
    transform: scale(1.05);
}

/* Precio y etiqueta "VENTA" */
.precio-venta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.precio {
    font-size: 18px;
    font-weight: bold;
    color: #d35400;
}

.etiqueta-venta {
    background: #d35400;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

/* Detalles de la propiedad */
.propiedad-detalles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 10px;
    gap: 5px;
}

.detalle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f8f8;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    justify-content: center;
    min-width: 70px;
    overflow: hidden;
}

/* Iconos */
.detalle img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Texto */
.detalle p {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* Contenedor de detalles de la propiedad */
.propiedad-detalles {
    display: flex;
    justify-content: space-between; /* Distribuye los elementos dentro del recuadro */
    align-items: center;
    width: 100%; /* Ajusta al ancho del recuadro */
    max-width: 90%; /* Asegura que no se desborde */
    margin: 10px auto;
    padding: 5px 0;
    flex-wrap: wrap;
}

/* Estilo de cada detalle */
.detalle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f8f8;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1; /* Hace que los detalles se distribuyan dentro del recuadro */
    min-width: 80px; /* Evita que se compriman demasiado */
    justify-content: center;
}

/* Iconos */
.detalle svg {
    fill: #2c3e50;
    width: 20px;
    height: 20px;
}

/* Texto de los detalles */
.detalle p {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

/* Precio de la propiedad */
.precio {
    font-size: 16px;
    font-weight: bold;
    color: #d35400;
    margin: 10px 0;
    text-align: center;
}

.detalle img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Ajuste para pantallas pequeñas */
@media screen and (max-width: 768px) {
    .propiedad-detalles {
        flex-direction: column; /* En móviles, coloca los detalles en columna */
        align-items: center;
    }

    .detalle {
        width: 100%;
        justify-content: center;
    }
}

/* Footer */
footer {
    text-align: center;
    background: #2c3e50;
    color: white;
    padding: 10px;
    margin-top: 20px;
}
/* Slider */
.galeria {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
}

.slider-container {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider img {
    width: 100%;
    border-radius: 10px;
}


/* Estilo general para la sección de propiedad */
.propiedad-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    gap: 20px;
}
/* Precio de la propiedad en grande */
.precio-propiedad {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.precio-propiedad h2 {
    margin: 0;
    font-size: 32px;
    color: #d35400; /* Un color llamativo para el precio */
}

/* Asegurar que el formulario y la info general estén alineados */
.propiedad-container {
    display: flex;
    align-items: flex-start; /* Alinear al inicio */
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    gap: 20px;
}

/* Ajuste para mantener proporciones */
.propiedad-left {
    flex: 1;
}

.propiedad-right {
    flex: 2;
}
/* Teléfono en el formulario */
.telefono-contacto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #0000FF;
}

.telefono-contacto svg {
    fill: #0000FF; /* Color llamativo para el icono */
    width: 24px;
    height: 24px;
}

.telefono-cta {
    text-decoration: none;
    color: #0000FF; /* Mismo color que el icono */
    transition: color 0.3s ease;
}

.telefono-cta:hover {
    color: #e67e22; /* Color más brillante al pasar el mouse */
}

/* Formulario de contacto (izquierda, ocupa 1/3 de la pantalla) */
.propiedad-left {
    flex: 1;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.formulario-contacto {
    text-align: center;
}

.logo-form img {
    width: 150px;
    margin-bottom: 10px;
}

form {
    display: flex;
    flex-direction: column;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form button {
    background: #2c3e50;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background: #1a252f;
}

/* Hacer que el formulario de contacto sea fijo al desplazarse */
.propiedad-left {
    position: sticky;
    top: 20px; /* Mantiene el formulario visible con un pequeño margen arriba */
    height: fit-content; /* Se ajusta al contenido */
}

/* Slider de imágenes (derecha, ocupa 2/3 de la pantalla) */
.propiedad-right {
    flex: 2;
    position: relative;
}

.galeria {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 600px;
    margin: auto;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider img {
    height: auto;
    display: block;
}

/* Estilos para las pestañas */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.tab-button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.tab-button:hover, .tab-button.active {
    background: #d35400;
}

/* Contenido de las pestañas */
.tab-content {
    display: none;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.tab-content.active {
    display: block;
}

/* Ajustes responsivos */
@media screen and (max-width: 768px) {
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 80%;
        margin-bottom: 5px;
    }
}
/* Contenedor de las columnas */
.propiedad-info {
    display: flex;
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    margin-top: 30px;
}

/* Columna izquierda: Tabla de detalles */
.detalles-propiedad {
    flex: 1;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Estilos de la tabla */
.detalles-propiedad table {
    width: 100%;
    border-collapse: collapse;
}

.detalles-propiedad table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.detalles-propiedad table tr:last-child td {
    border-bottom: none;
}

/* Columna derecha: Descripción de la propiedad */
.descripcion-propiedad {
    flex: 2;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.descripcion-propiedad h2, .descripcion-propiedad h3 {
    color: #2c3e50;
}

.descripcion-propiedad ul {
    padding-left: 20px;
}

.descripcion-propiedad ul li {
    margin-bottom: 5px;
}

/* Responsividad: Columnas en una sola fila en pantallas pequeñas */
@media screen and (max-width: 768px) {
    .propiedad-info {
        flex-direction: column;
    }

    .detalles-propiedad, .descripcion-propiedad {
        width: 100%;
    }
}
/* Pestañas */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.tab-button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.tab-button:hover, .tab-button.active {
    background: #d35400;
}

/* Contenido de pestañas */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Información de la propiedad SIEMPRE visible */
.propiedad-info {
    display: flex;
    gap: 20px;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    margin-top: 30px;
}

/* Columna izquierda: Detalles */
.detalles-propiedad {
    flex: 1;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Estilos para la tabla */
.detalles-propiedad table {
    width: 100%;
    border-collapse: collapse;
}

.detalles-propiedad table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.detalles-propiedad table tr:last-child td {
    border-bottom: none;
}

/* Columna derecha: Descripción */
.descripcion-propiedad {
    flex: 2;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Responsividad */
@media screen and (max-width: 768px) {
    .propiedad-info {
        flex-direction: column;
    }
}

/* Botones de navegación */
button.prev, button.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 50%;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

button.prev:hover, button.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsividad para pantallas más pequeñas */
@media screen and (max-width: 768px) {
    .propiedad-container {
        flex-direction: column;
    }
    
    .propiedad-left, .propiedad-right {
        width: 100%;
        flex: none;
    }
}
/* Aumentar el espacio debajo del header */
header {
    background: #2c3e50;
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
    width: 100%;
}

/* Agregar más espacio entre el header y la siguiente sección */
.propiedad-container {
    margin-top: 50px; /* Ajusta este valor según el espacio deseado */
}

@media screen and (max-width: 768px) {
    .propiedad-container {
        margin-top: 30px; /* Espacio más reducido en móviles */
    }
}

/* Contenedor de la información general */
.info-general {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.info-general h1 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.ubicacion {
    font-weight: bold;
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.descripcion {
    font-size: 14px;
    color: #444;
    margin-bottom: 15px;
}

/* Estilo de los detalles con iconos */
.detalles-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.detalle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.detalle svg {
    fill: #2c3e50;
    width: 24px;
    height: 24px;
}

.detalle p {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

/* Responsividad para pantallas más pequeñas */
@media screen and (max-width: 768px) {
    .detalles-icons {
        flex-direction: column;
        align-items: center;
    }
}

/* Nuevo footer con 3 columnas */
.footer-top {
    background: white; /* Color diferente al footer actual */
    color: black;
    padding: 30px 10%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Estilos de las columnas */
.footer-column {
    flex: 1;
    margin: 0 15px;
    min-width: 250px;
}

/* Títulos del footer */
.footer-column h3 {
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 2px solid #d35400; /* Línea decorativa */
    padding-bottom: 5px;
}

/* Estilos del menú */
.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 5px;
}

.footer-column ul li a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #0000FF ; /* Cambio de color al pasar el mouse */
}

/* Enlaces de contacto */
.footer-column a {
    color: #0000FF;
    text-decoration: none;
    font-weight: bold;
}

.footer-column a:hover {
    text-decoration: underline;
}

/* Responsividad */
@media screen and (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 20px;
    }
}
/* Estilo del botón de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Color oficial de WhatsApp */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Icono de WhatsApp */
.whatsapp-btn img {
    width: 35px;
    height: 35px;
}

/* Efecto al pasar el mouse */
.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Contenedor principal */
.ventas .ventas-container {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Filtros en el lado izquierdo */
.ventas .filtros {
    width: 30%;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.ventas .filtros h2 {
    text-align: center;
}

/* Inputs de filtro */
.ventas .filtros select, .filtros input {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.ventas .filtros .btn {
    width: 100%;
    padding: 10px;
    background: #d35400;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

/* Sección de propiedades */
.ventas .lista-propiedades {
    width: 65%;
}

/* Propiedades con imagen a la izquierda */
.ventas .propiedad {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.ventas .propiedad-img img {
    width: 150px;
    border-radius: 10px;
}

.ventas .propiedad-info {
    flex: 1;
}

@media screen and (max-width: 768px) {
    .ventas .ventas-container {
        flex-direction: column;
    }
    
    .ventas .filtros, .lista-propiedades {
        width: 100%;
    }
    
    .ventas .propiedad {
        flex-direction: column;
        align-items: center;
    }
}

/* Propiedades organizadas en dos mitades */
.ventas .propiedad {
    display: flex;
    width: 100%;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

/* Contenedor de la imagen con lupa */
.ventas .imagen-container {
    position: relative;
    width: 50%; /* La imagen ocupa la mitad del contenedor */
    overflow: hidden;
    border-radius: 10px;
}

.ventas .imagen-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Efecto lupa */
.ventas .lupa-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ventas .imagen-container:hover .lupa-overlay {
    opacity: 1;
}

.ventas .imagen-container:hover img {
    transform: scale(1.05);
}

/* Información de la propiedad ocupa la otra mitad */
.ventas .propiedad-info {
    width: 50%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Precio y etiqueta de venta */
.ventas .precio-venta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ventas .precio {
    font-size: 20px;
    font-weight: bold;
    color: #d35400;
}

.ventas .etiqueta-venta {
    background: #d35400;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

/* Detalles de la propiedad */
.ventas .propiedad-detalles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.ventas .detalle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f8f8;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 100px;
    justify-content: center;
}

/* Iconos */
.ventas .detalle img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Texto */
.ventas.detalle p {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsividad: En pantallas pequeñas la imagen se coloca arriba */
@media screen and (max-width: 768px) {
    .ventas .propiedad {
        flex-direction: column;
    }

    .ventas .imagen-container {
        width: 100%;
        height: 200px; /* Ajuste para móviles */
    }

    .ventas .propiedad-info {
        width: 100%;
    }

    .ventas .propiedad-detalles {
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* Estilo de la paginación */
.paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.ventas .paginacion .btn {
    background: #d35400;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.ventas .paginacion .btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ventas .paginacion .btn:hover:not(:disabled) {
    background: #b03a00;
}

.ventas .paginacion span {
    font-size: 18px;
    font-weight: bold;
}

.galeria {
    text-align: center;
}

#mainImage {
    width: 100%;
    max-width: 600px;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out;
}

#mainImage:hover {
    transform: scale(1.05);
}

.miniaturas {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.miniaturas img {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s ease-in-out;
}

.miniaturas img:hover {
    transform: scale(1.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
}

#closeModal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    color: white;
    cursor: pointer;
}

/* Sección de Contacto */
.contacto-section {
    padding: 50px 20px;
    max-width: 700px;
    margin: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contacto-section h2 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.contacto-section p {
    margin-bottom: 30px;
    color: #666;
}

.formulario-contacto input,
.formulario-contacto textarea {
    width: 90%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.formulario-contacto .btn {
    background: #d35400;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.formulario-contacto .btn:hover {
    background: #b03a00;
}

/* Sección Nosotros */
.nosotros-section {
    background-color: #f8f9fa;
    padding: 60px 10%;
}

.contenedor-nosotros {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.texto-nosotros {
    flex: 1;
    min-width: 300px;
}

.texto-nosotros h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.texto-nosotros h3 {
    color: #d35400;
    margin-top: 20px;
}

.texto-nosotros p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.texto-nosotros ul {
    margin-top: 10px;
    padding-left: 20px;
    color: #2c3e50;
}

.imagen-nosotros {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.imagen-nosotros img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
    .contenedor-nosotros {
        flex-direction: column;
    }

    .imagen-nosotros {
        margin-top: 20px;
    }
}

.nosotros {
    padding: 40px 10%;
    background: #f8f9fa;
    color: #2c3e50;
  }
  
  .nosotros h2,
  .nosotros h3 {
    text-align: center;
    color: #d35400;
  }
  
  .nosotros-intro p {
    font-size: 18px;
    max-width: 800px;
    margin: auto;
    text-align: center;
  }
  
  .linea-tiempo {
    margin: 40px 0;
  }
  
  .linea-tiempo ul {
    list-style: none;
    padding-left: 0;
    max-width: 600px;
    margin: auto;
  }
  
  .linea-tiempo li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 16px;
  }
  
  .linea-tiempo li span {
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #2c3e50;
  }
  
  .testimonios {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: auto;
  }
  
  .testimonio {
    margin-bottom: 20px;
    text-align: center;
  }
  
  .testimonio p {
    font-style: italic;
    color: #555;
  }
  
  .testimonio span {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 14px;
  }

  /* Sección Privacidad */
  .privacidad-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: #ffffff;
    color: #333;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
  }
  
  .privacidad-container h2 {
    color: #d35400;
    margin-top: 30px;
    font-size: 22px;
  }
  
  .privacidad-container ul {
    margin-left: 20px;
    list-style-type: disc;
  }
  
  footer {
    text-align: center;
    padding: 20px;
    background: #2c3e50;
    color: white;
    margin-top: 40px;
  }
  form textarea {
    min-width: 90%;
    resize: vertical; 
    min-height: 45px;
    max-height: 300px;
  }

  /* 🔧 Correcciones para ancho completo en móviles */
@media screen and (max-width: 768px) {
    body {
      margin: 0;
      padding: 0;
      overflow-x: hidden;
    }
  
    .ventas .ventas-container {
      padding: 0 !important;
      margin: 0 auto !important;
      width: 100% !important;
      max-width: 100% !important;
    }
  
    .ventas .lista-propiedades {
      width: 100% !important;
      padding: 0 !important;
      margin: 0 auto !important;
    }
  
    .ventas .propiedad {
      width: 100% !important;
      margin: 0 !important;
      border-radius: 0 !important;
      padding: 0 !important;
      flex-direction: column !important;
    }
  
    .ventas .imagen-container,
    .ventas .propiedad-info {
      width: 100% !important;
      padding: 15px !important;
    }
  
    .propiedades-grid {
      padding: 0 !important;
      margin: 0 auto !important;
      width: 100% !important;
    }
  }
  @media screen and (max-width: 768px) {
    .ventas .lista-propiedades,
    .ventas .propiedad,
    .ventas .imagen-container,
    .ventas .propiedad-info {
      padding-left: 10px !important;
      padding-right: 10px !important;
    }
  }
  @media screen and (max-width: 768px) {
    .ventas .propiedad-info {
      padding-left: 10px;
      padding-right: 10px;
      box-sizing: border-box;
    }
  
    .ventas .propiedad {
      padding-left: 10px;
      padding-right: 10px;
      box-sizing: border-box;
    }
  }
      