
html {
    scroll-behavior: smooth;
}
/* RESETEO PARA QUITAR ESPACIOS GRISES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #f4f4f4; /* O el color de fondo que prefieras */
}

header {
    background-color: #ffffff; /* Asegura que el fondo sea blanco */
    padding: 10px 0;
    margin: 0;
    width: 100%;
}

/* ================= RESET & GENERAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f4f4f4;
    color: #333;
    overflow-x: hidden;
}

/* ================= HEADER & NAVEGACIÓN ================= */
header {
    background: #aa2e5e;
    padding: 10px 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    width: 340px;
    height: auto;
    display: block;
    margin: 5px auto;
}

.header-top{
display:flex;
justify-content:center;
gap:15px;
margin-bottom:8px;
}

.icono{
width:30px;
transition:0.3s;
}

.icono:hover{
transform:scale(1.2);
}

nav {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 10px;
}
a
nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 15px;
    transition: 0.3s;
}

nav a:hover {
    color: #ffd700;
}

/* ================= SLIDER PRINCIPAL ================= */
.slider {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: 1s;
}

.slide.active {
    opacity: 1;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* ================= BUSCADOR ================= */
.buscador {
    background: white;
    padding: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 20;
    margin: -20px 10px 0 10px;
    border-radius: 5px;
}

.buscador input, .buscador select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.buscador button {
    background: #aa2e5e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* ================= PROPIEDADES (GRILLA) ================= */
.propiedades {
    display: flex;          /* Activa el modo columnas */
    flex-wrap: wrap;       /* Si no entran, pasan a la fila de abajo */
    justify-content: center; /* Centra las cajas en la pantalla */
    gap: 20px;             /* Espacio entre cada caja */
    padding: 40px 20px;
}

/* Ajuste de cada caja individual */
.propiedad {
    flex: 1 1 calc(25% - 40px); /* Esto obliga a que ocupen el 25% (4 columnas) */
    min-width: 280px;           /* Evita que se achiquen demasiado en móviles */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;     /* Organiza el contenido de la caja (foto, texto, mapa) hacia abajo */
}

/* Asegurar que el mapa no rompa la caja */
.mapa-caja iframe {
    width: 100%;
    height: 150px;
    border: none;
}

/* ================= CATEGORÍAS FULL WIDTH (ZIG-ZAG) ================= */
#categorias-full {
    width: 100%;
    margin-top: 40px;
}

.caja-horizontal {
    display: flex;
    width: 100%;
    height: 380px;
    background: white;
    border-bottom: 1px solid #eee;
}

.caja-horizontal.invertida {
    flex-direction: row-reverse;
}

.caja-horizontal .slider-propiedad {
    width: 50%;
    height: 100%;
    border-radius: 0;
    margin: 0;
}

.caja-horizontal .info-horizontal {
    width: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.info-horizontal h2 { color: #aa2e5e; font-size: 28px; margin-bottom: 15px; }
.info-horizontal p { font-size: 16px; color: #666; margin-bottom: 20px; }

.boton-full {
    background: #aa2e5e;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}

/* ================= CONTACTO ================= */
.contacto {
    padding: 60px 20px;
    background: #fff;
    text-align: center;
    clear: both; /* IMPORTANTE: Para que baje después de las cajas */
}

.contacto h2 { color: #aa2e5e; margin-bottom: 30px; }

.contacto form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacto input, .contacto textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* ================= WHATSAPP ================= */
.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp img { width: 60px; }

/* ================= RESPONSIVE ================= */
@media(max-width: 800px) {
    .caja-horizontal, .caja-horizontal.invertida {
        flex-direction: column;
        height: auto;
    }
    .caja-horizontal .slider-propiedad, 
    .caja-horizontal .info-horizontal {
        width: 100%;
    }
    .caja-horizontal .slider-propiedad { height: 250px; }
    .caja-horizontal .info-horizontal { padding: 30px; }
    
    nav { flex-direction: column; gap: 10px; }
}
/* ================= FOOTER ================= */
footer {
    background: #333; /* O el color que prefieras */
    padding: 20px;
    text-align: center;
}

footer p {
    font-size: 12px; /* Aquí ajustas el tamaño. 12px es pequeño y discreto */
    color: #bbb;    /* Un gris claro para que no resalte tanto como el blanco */
    margin: 0;
}
/* Ocultar el modal por defecto */
.modal {
    display: none; /* Esto evita que se vea cualquier cosa abajo al cargar */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

/* Estilo para las flechas del visor grande */
.prev-modal, .next-modal {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    background: none;
    border: none;
    user-select: none;
}

.prev-modal { left: 20px; }
.next-modal { right: 20px; }

/* Slider dentro de la caja */
.slider-propiedad {
    position: relative;
    height: 250px; /* Ajustá según tu diseño */
    overflow: hidden;
}

.prop-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Escondemos todas */
}

.prop-slide.active {
    display: block; /* Solo mostramos la activa */
}

/* Flechas de la caja */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 5;
}

.prev { left: 5px; border-radius: 0 5px 5px 0; }
.next { right: 5px; border-radius: 5px 0 0 5px; }

/* Modal Visor Grande y la X */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center; align-items: center;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: white;
    cursor: pointer;
}
.slider-propiedad {
    position: relative; /* Importante para que las flechas se ubiquen respecto a la caja */
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.prop-slide {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Escondemos todas por defecto */
}

.prop-slide.active {
    display: block; /* Solo mostramos la que tiene la clase 'active' */
}

/* Flechas dentro de la caja */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.prev { left: 0; border-radius: 0 5px 5px 0; }
.next { right: 0; border-radius: 5px 0 0 5px; }

/* Efecto al pasar el mouse */
.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}
/* Contenedor Principal */
.propiedades-container {
    display: flex;
    flex-wrap: wrap;        /* Permite que bajen si la pantalla es chica */
    justify-content: center;
    gap: 20px;              /* Espacio entre las cajas */
    padding: 40px 20px;
    background-color: #f9f9f9;
}

/* La Caja de cada Propiedad */
.propiedad {
    flex: 1 1 calc(25% - 40px); /* 25% de ancho menos el margen */
    min-width: 280px;           /* No se achican más de esto */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;     /* Contenido hacia abajo */
    overflow: hidden;
    transition: transform 0.3s;
}

.propiedad:hover {
    transform: translateY(-5px);
}

/* Info y Texto */
.info-prop {
    padding: 15px;
    flex-grow: 1; /* Empuja el mapa siempre al fondo */
}

/* Mapa */
.mapa-caja {
    width: 100%;
    border-top: 1px solid #eee;
}

.mapa-caja iframe {
    display: block;
}
/* VIDEOS */
.videos-seccion {
    padding: 50px 20px;
    background: #fff;
    text-align: center;
}

.contenedor-videos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.video-card iframe {
    width: 450px;
    height: 250px;
    border-radius: 10px;
}

/* CAJAS HORIZONTALES */
.caja-horizontal {
    display: flex;
    align-items: center;
    background: #fff;
    margin: 20px 0;
    min-height: 350px;
    overflow: hidden;
}

.caja-horizontal.invertida {
    flex-direction: row-reverse;
}

.caja-horizontal .slider-propiedad {
    flex: 1;
    height: 400px;
}

.info-horizontal {
    flex: 1;
    padding: 50px;
    background: #aa2e5e; /* Color institucional */
    color: white;
}

.info-horizontal h2 { font-size: 2.5rem; margin-bottom: 15px; }
.info-horizontal p { font-size: 1.2rem; margin-bottom: 25px; }

.boton-full {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #aa2e5e;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

/* RESPONSIVE PARA MÓVILES */
@media (max-width: 768px) {
    .caja-horizontal, .caja-horizontal.invertida {
        flex-direction: column;
    }
    .video-card iframe {
        width: 100%;
        height: 200px;
    }
}
.contacto {
    padding: 60px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.contenedor-contacto {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contacto h2 {
    color: #aa2e5e; /* El rosa de tu logo */
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.form-grupo {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.contacto input, .contacto textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    outline: none;
}

.contacto input:focus, .contacto textarea:focus {
    border-color: #aa2e5e;
}

.boton-enviar {
    background-color: #aa2e5e;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: 10px;
}

.boton-enviar:hover {
    background-color: #8a244c;
}

/* Responsive para celulares */
@media (max-width: 600px) {
    .form-grupo {
        flex-direction: column;
        gap: 15px;
    }
}
/* Asegurar que el formulario no flote */
.contacto {
    clear: both; /* Corta cualquier flujo anterior */
    display: block;
    width: 100%;
    padding: 60px 20px;
    background-color: #f4f4f4;
}

.contenedor-contacto {
    max-width: 800px;
    margin: 0 auto; /* Centra el cuadro blanco */
    background: white;
    padding: 30px;
    border-radius: 10px;
}

/* Corregir el Footer para que siempre esté abajo */
footer {
    clear: both;
    width: 100%;
    background: #535151;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative; /* Asegura que no se solape */
}
/* --- ESTILO DEL MENÚ (Para que no sea azul) --- */
.menu a, nav a {
    text-decoration: none;
    color: white !important; /* Fuerza el color blanco */
    font-weight: bold;
    transition: 0.3s;
}

.menu a:hover, nav a:hover {
    color: #ffd700 !important; /* Dorado al pasar el mouse */
}

/* --- FOOTER CON COLORES ORIGINALES --- */
.footer-estilo-cris {
    background-color: #1a1a1a;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    clear: both;
}

.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.redes-sociales img {
    width: 35px;
    height: 35px;
    /* QUITAMOS EL FILTER BLANCO PARA DEJAR LOS ORIGINALES */
    transition: transform 0.3s;
}

.redes-sociales img:hover {
    transform: scale(1.2);
}

/* --- FIX DEFINITIVO PARA EL MENÚ AZUL --- */
.menu a, nav a {
    color: white !important; /* Fuerza el blanco en el menú */
    text-decoration: none;
    font-weight: bold;
}

.menu a:visited, nav a:visited {
    color: white !important; /* Evita que se pongan azules/violetas al hacer clic */
}

.menu a:hover, nav a:hover {
    color: #ffd700 !important; /* Dorado al pasar el mouse */
}
/* Cambia el color del fondo del Header */
header {
    background: #aa2e5e; /* <--- Cambiá este código */
}

/* Cambia el color del fondo de la info horizontal (la de la foto 2) */
.info-horizontal {
    background: #aa2e5e; /* <--- Cambiá este también */
}
/* Esto arregla el texto que no se ve */
.info-horizontal p {
    color: white !important; /* Fuerza el color blanco */
    font-size: 1.1rem;      /* Lo hace un poquito más grande para que se lea mejor */
    opacity: 1 !important;  /* Quita cualquier transparencia gris */
}

.info-horizontal h2 {
    color: white !important;
    margin-bottom: 10px;
}/* Esto ataca directamente a cualquier enlace dentro de la info horizontal */
.info-horizontal a, 
.info-horizontal p, 
.info-horizontal h2 {
    color: #ffffff !important;
    text-decoration: none !important;
    opacity: 1 !important;
}

/* Y esto asegura que el botón "Consultar ahora" mantenga su forma */
.info-horizontal .boton-full {
    background-color: white !important;
    color: #aa2e5e !important; /* Texto borravino dentro del botón */
    padding: 10px 20px;
    display: inline-block;
    border-radius: 5px;
    margin-top: 15px;
}
.slider-propiedad img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto hace que la foto cubra el espacio sin estirarse */
    cursor: pointer;
    transition: 0.3s;
}

.slider-propiedad img:hover {
    filter: brightness(0.9); /* Un pequeño efecto al pasar el mouse */
}
.prop-slide, .slider-propiedad img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* FUNDAMENTAL para que no se estiren */
}
/* Esto permite que al tocarlo en el celu, el cartel aparezca */
.whatsapp-float:hover .tooltip-horario,
.whatsapp-float:active .tooltip-horario,
.whatsapp-float:focus .tooltip-horario {
    visibility: visible;
    opacity: 1;
    bottom: 85px;
}

/* Agregamos esto para que el enlace sea "enfocable" en móviles */
.whatsapp-float {
    outline: none;
}
/* EL BOTÓN (SIEMPRE EN EL RINCÓN) */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-float {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;  /* Tamaño tranqui, no gigante */
    height: 50px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    outline: none;
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
}

/* EL CARTELITO (TOOLTIP) */
.tooltip-horario {
    visibility: hidden;
    width: 180px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 8px;
    position: absolute;
    bottom: 60px; /* Aparece justo arriba del botón */
    right: 0;     /* Alineado al borde derecho para que no se corte */
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    font-size: 11px;
    line-height: 1.4;
    border-right: 4px solid #e91e63;
    pointer-events: none;
}

/* APARECE AL PASAR EL MOUSE O TOCAR CON EL DEDO */
.whatsapp-float:hover .tooltip-horario,
.whatsapp-float:active .tooltip-horario,
.whatsapp-float:focus .tooltip-horario {
    visibility: visible;
    opacity: 1;
    bottom: 65px;
}

/* SI EL CELULAR ES MUY CHICO, LO ACHICAMOS UN PELÍN MÁS */
@media (max-width: 480px) {
    .whatsapp-container {
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-float {
        width: 45px;
        height: 45px;
    }
    .whatsapp-float img {
        width: 25px;
    }
}