/* -------------------------
   VARIABLES Y RESETEO GENERAL
   ------------------------- */

/* :root {
    /* Aquí pondríamos tus colores, ej: 
    --color-azul-principal: #0d6efd; 
    --color-verde-filtro: #198754; 
    */
/* } */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    /* Un fondo gris claro para el body, como en tus diseños */
    background-color: #f4f4f4;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit; /* Hereda el color del padre */
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}




/* -------------------------
   HEADER FIJO (Configuración Anterior - ¡Correcta ahora!)
   ------------------------- */
.header-fijo {
    /* ¡Volvemos a sticky! */
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    
    background-color: #1074CB; 
    color: white;
    padding: 10px 0; /* Sin padding lateral en la barra */
    z-index: 1000;
    box-sizing: border-box; 
    
    /* Nos aseguramos de que no se centre */
    max-width: none;
    margin: 0;
}

.header-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 0 5%; /* El padding va aquí adentro */
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box; 
}

/* Grupo de la izquierda (Logo + Sociales) */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 30px; 
}

.header-logo img {
    height: 50px; 
    width: auto; /* Para que no se estire */
}

/* Íconos sociales (movidos y agrandados) */
.header-socials {
    display: flex;
    gap: 15px; 
}
.header-socials a {
    font-size: 1.5rem; 
    color: white;
    transition: transform 0.2s ease;
}
.header-socials a:hover {
    transform: scale(1.1);
}




.header-nav ul {
    display: flex;
    gap: 20px;
}
.header-nav a {
    color: white;
    font-weight: 500;
    padding-bottom: 5px;
}
.header-nav a.active {
    border-bottom: 2px solid white;
}



/* -------------------------
   FOOTER (Configuración Anterior - ¡Correcta ahora!)
   ------------------------- */
.footer {
    background-color: #1074CB; 
    color: #f4f4f4;
    padding: 30px 0; /* Sin padding lateral en la barra */
    width: 100%;
    box-sizing: border-box; 
    
    /* Nos aseguramos de que no se centre */
    max-width: none;
    margin: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; 
    gap: 20px;
    padding: 0 5%; /* El padding va aquí adentro */
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box; 
}

/* Columnas del Footer */
.footer-logo {
    flex: 1 1 30%; 
    text-align: left; 
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-contacto {
    flex: 1 1 30%; 
    text-align: center; 
}
.footer-copy {
    flex: 1 1 30%; 
    text-align: right; 
}

/* ¡ARREGLO DEL LOGO ESTIRADO! */
.footer-logo img {
    height: 80px; 
    width: 80px; /* ¡PARA QUE NO SE ESTIRE! */
    margin: 0; 
}

.footer-logo a {
    font-size: 0.8rem;
    color: #ddd;
}
.footer-contacto a {
    font-weight: 600;
}
.footer-copy p {
    font-size: 0.8rem;
    color: #ddd;
    margin: 0;
}

/* -------------------------
   HERO SECTION
   ------------------------- */
.hero-section {
    position: relative; /* Necesario para superponer el contenido */
    height: 70vh; /* 70% de la altura de la pantalla. Ajusta si lo necesitas más alto o bajo. */
    padding: 20px 5%;
    
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el contenido verticalmente */
    align-items: center;  /* Centra el contenido horizontalmente */
    text-align: center;
    
    color: white; /* Color del texto encima de la imagen */

    /* --- ¡AQUÍ ESTÁ LA IMAGEN DE FONDO (CON LA RUTA CORREGIDA)! --- */
    /* Asegúrate de tener una imagen 'hero-background.jpg' en tu carpeta 'images/' */
    /* La ruta ahora es '../images/...' porque salimos de la carpeta 'css' */
    
    background-image: url('../images/fotolanding.jpg');
    background-size: cover;     /* Cubre todo el espacio */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat;
}

/* Capa oscura semitransparente sobre la imagen para que el texto resalte */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Negro con 40% de opacidad */
    z-index: 1; /* Se pone entre la imagen y el contenido */
}
/* Contenedor del contenido del hero */
.hero-content {
    position: relative; /* Se pone por encima de la capa oscura */
    z-index: 2;
    /* ¡CAMBIO AQUÍ! Le damos más espacio para los 5 menús */
    max-width: 1050px; 
    width: 100%;
}

.hero-title {
    font-size: 2.8rem; /* Tamaño de fuente grande */
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Sombra para legibilidad */
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Formulario del buscador */
.hero-search-form {
    display: flex;
    flex-wrap: wrap; /* Para que se vea bien en móviles */
    gap: 10px; /* Espacio entre los elementos del buscador */
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco semitransparente */
    padding: 15px;
    border-radius: 50px; /* Bordes super redondeados */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    align-items: center;
}

/* Contenedor de cada dropdown */
.search-dropdown-container {
    position: relative; /* Para posicionar el menú desplegable */
    flex: 1; /* Hace que todos los dropdowns ocupen espacio similar */
    min-width: 150px; /* Ancho mínimo */
}

/* El botón que abre el dropdown */
.dropdown-toggle {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 500;
    
    background-color: #f0f0f0; /* Fondo gris claro */
    color: #333;
    border: 1px solid #ccc;
    border-radius: 30px; /* Bordes redondeados */
    
    text-align: left;
    cursor: pointer;
    
    display: flex;
    justify-content: space-between; /* Pone el texto a la izq y la flecha a la der */
    align-items: center;
}

.dropdown-toggle:hover {
    background-color: #e9e9e9;
}

/* El menú que se despliega */
.dropdown-menu {
    position: absolute;
    top: 110%; /* Justo debajo del botón */
    left: 0;
    width: 100%;
    
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    
    z-index: 100;
    overflow: hidden; /* Para que las esquinas redondeadas corten el contenido */
    
    /* --- INICIALMENTE OCULTO --- */
    display: none; 
}

/* Mostramos el menú cuando el contenedor tenga la clase 'open' (con JS) */
.search-dropdown-container.open .dropdown-menu {
    display: block;
}

/* Opciones del menú */
.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    font-size: 0.95rem;
}

/* Estado hover de las opciones (azul claro de tu diseño) */
.dropdown-menu li a:hover {
    background-color: #e0f7ff; /* Un azul muy claro */
}

/* Dropdown especial del slider */
.slider-dropdown {
    padding: 20px;
    text-align: left;
    color: #333;
}
.slider-dropdown label {
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}
#price-slider {
    width: 100%;
}
#price-value {
    font-weight: 700;
    color: #004a98; /* Azul principal */
}

/* Botón de Buscar */
.btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-buscar {
    background-color: #28a745; /* Verde de tu diseño (aprox) */
}

.btn-buscar:hover {
    background-color: #218838; /* Verde más oscuro */
}

.btn-buscar:active {
    background-color: #1e7e34;
    transform: scale(0.98); /* Efecto de clic */
}


/* -------------------------
   CONTENEDOR GENERAL (Para centrar)
   ------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* -------------------------
   SECCIÓN PROPIEDADES DESTACADAS
   ------------------------- */
.featured-properties {
    padding: 60px 5%;
    background-color: white; /* El fondo blanco que pediste */
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

/* Grupo de Filtros 1 (Botones) */
.filter-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    
    /* Estado por defecto (gris oscuro de image_96899f.png) */
    background-color: #6c757d; 
}

.filter-btn:hover {
    /* Estado hover (verde de image_96899f.png) */
    background-color: #198754; 
}

.filter-btn.active {
    /* Estado activo/seleccionado (verde brillante de image_96899f.png) */
    background-color: #20c997; 
    font-weight: 700;
}

/* Grupo de Filtros 2 (Enlaces de Ubicación) */
.filter-group-location {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.filter-location-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    padding-bottom: 5px;
    position: relative;
    /* Pediste que no tuviera hover */
}

/* Estado activo/seleccionado (subrayado verde de image_96153b.png) */
.filter-location-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #198754; /* Verde */
    border-radius: 2px;
}

/* -------------------------
   CUADRÍCULA Y TARJETAS DE PROPIEDAD
   ------------------------- */
.properties-grid {
    display: grid;
    /* Crea una cuadrícula de 3 columnas en escritorio */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    text-align: left;
}

/* Estilos de la Tarjeta (image_52c73d.png) */
.property-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Para que la imagen no se salga */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px); /* Se levanta un poco */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Contenedor de la imagen (para el hover y carrusel) */
.property-image-container {
    position: relative;
    width: 100%;
    /* Mantiene la proporción 4:3 para la imagen */
    padding-top: 75%; 
}

.property-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Evita que la imagen se deforme */
}

/* Flechas del carrusel (image_5027a6.png) */
.card-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 1rem;
    cursor: pointer;
    
    /* Ocultas por defecto */
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card-nav-arrow.left { left: 10px; }
.card-nav-arrow.right { right: 10px; }

/* Muestra las flechas en el hover de la tarjeta */
.property-card:hover .card-nav-arrow {
    opacity: 1;
}

.card-nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Contenido de la tarjeta */
.property-content {
    padding: 20px;
}

.property-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #004a98; /* Azul principal */
    margin-bottom: 5px;
}

.property-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #333;
}

.feature i {
    color: #004a98; /* Iconos en azul */
}

.property-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #28a745; /* Precio en verde */
}

/* Estilo para el mensaje de 'no resultados' */
.no-results {
    /* Ocupa las 3 columnas de la cuadrícula */
    grid-column: 1 / -1; 
    text-align: center;
    font-size: 1.2rem;
    color: #888;
    padding: 50px 0;
}

/* -------------------------
   SECCIÓN CONTACTO
   ------------------------- */
.contact-section {
    padding: 60px 5%;
    /* Fondo gris claro de tu diseño (image_9758ce.png) */
    background-color: #f4f4f4; 
    text-align: center;
}

/* Cuadrícula de Iconos de Contacto (ACTUALIZADO a Grid) */
.contact-icons-grid {
    display: grid;
    /* ¡CAMBIO AQUÍ! Crea 6 columnas de igual tamaño */
    grid-template-columns: repeat(6, 1fr);
    gap: 20px; /* Reducimos el espacio un poco */
    margin-bottom: 40px;
    
    /* Nota: Esto funciona porque el .contact-icons-grid
       ya está dentro de un .container */
}

.contact-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.contact-icon-item:hover {
    transform: scale(1.05); /* Pequeño efecto al pasar el mouse */
}

.contact-icon-item img {
    width: 70px; /* Tamaño de los iconos grandes */
    height: 70px;
}

.contact-icon-item strong {
    font-size: 1.1rem;
    color: #000;
}

.contact-icon-item span {
    font-size: 0.9rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

/* Formulario */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Fila para poner dos campos juntos */
.form-row {
    display: flex;
    gap: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: inherit;
    
    /* Estado Estático (image_9758ce.png) */
    background-color: #f0f0f0; /* Fondo gris claro */
    border: 1px solid #ccc; /* Borde gris */
    border-bottom: 2px solid #aaa; /* Línea inferior un poco más oscura */
    border-radius: 4px;
    
    transition: all 0.2s ease-in-out;
}

/* Estado Focus (image_895a95.png, derecha) */
.form-control:focus {
    background-color: #ffffff; /* Fondo blanco */
    outline: none; /* Quitamos el borde feo del navegador */
    
    /* Tu diseño con borde azul */
    border: 1px solid #34ace0; /* Borde azul claro */
    border-bottom: 3px solid #1a8de8; /* Borde inferior azul oscuro */
    box-shadow: 0 0 8px rgba(52, 172, 224, 0.3); /* Sombra azul suave */
}

/* Botón Enviar (basado en image_895aba.png) */
.btn-enviar {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    border: none;
    border-radius: 5px; /* Tu botón de enviar es más cuadrado */
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    
    /* Estado Estático (Izquierda) */
    background-color: #34ace0; 
}

.btn-enviar:hover {
    /* Estado Hover (Centro) */
    background-color: #229fd9; 
}

.btn-enviar:active {
    /* Estado Click (Derecha) */
    background-color: #1a8de8;
    transform: scale(0.99); /* Efecto de clic */
}

/* -------------------------
   FASE 3.5 - SECCIÓN "POR QUÉ ELEGIRNOS"
   ------------------------- */
.why-choose-us {
    padding: 60px 5%;
    background-color: white; /* Fondo blanco */
    text-align: center;
}

.why-choose-us .section-subtitle {
    font-size: 1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.features-grid {
    display: grid;
    /* 3 columnas en escritorio */
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    text-align: center;
}

.feature-item img {
    height: 120px; /* Ajusta este tamaño según tus imágenes */
    margin: 0 auto 20px auto;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* -------------------------
   FASE 3.5 - SECCIÓN "CTA (CALL TO ACTION)"
   ------------------------- */
.cta-section {
    padding: 60px 5%;
    background-color: #f4f4f4; /* Fondo gris claro */
}

.cta-container {
    display: grid;
    /* 2 columnas */
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    margin: 0 auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden; /* Para que la imagen no rompa el borde redondeado */
}

.cta-text {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.cta-text p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 25px;
}

.btn-cta {
    background-color: #34A853; /* Verde del diseño */
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
    align-self: flex-start; /* Hace que el botón no ocupe todo el ancho */
}

.btn-cta:hover {
    background-color: #2c8f45;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* La imagen cubre todo el espacio sin deformarse */
}

/* -------------------------
   FASE 3.5 - SECCIÓN "EXPLORAR ZONAS"
   ------------------------- */
.locations-section {
    /* Pegado a la sección CTA, por eso no hay padding-top */
    padding: 0 5% 60px 5%; 
    background-color: #f4f4f4;
    text-align: center;
}

.section-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: #34A853; /* Verde */
    margin-bottom: 10px;
    text-transform: uppercase;
}

.locations-section .section-title {
    margin-bottom: 15px;
}

.locations-section .section-subtitle {
    font-size: 1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.locations-grid {
    display: grid;
    /* 4 columnas */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.location-card {
    position: relative;
    height: 450px; /* Alto fijo para las tarjetas */
    border-radius: 10px;
    overflow: hidden;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.location-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

/* Efecto de zoom al pasar el mouse */
.location-card:hover .location-card-bg {
    transform: scale(1.05);
    opacity: 1;
}

.location-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    color: white;
    text-align: left;
    /* Gradiente oscuro para que el texto resalte */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.location-card-content .property-count {
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.location-card-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.more-details {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.more-details i {
    font-size: 0.7rem; /* Para el icono de "play" */
}

/* -------------------------
   FASE 5 - PÁGINA DE PROPIEDADES (Layout)
   ------------------------- */
.properties-page-layout {
    display: grid;
    /* Define las 2 columnas: 
      La 1ra (sidebar) de 280px fijos.
      La 2da (contenido) ocupa el resto (1fr).
    */
    grid-template-columns: 280px 1fr;
    min-height: 80vh; /* Mínimo 80% de la altura de la pantalla */
}

/* -------------------------
   FASE 5 - SIDEBAR (Barra Azul)
   ------------------------- */
.sidebar-filters {
    /* Tu diseño de barra azul (image_52c73d.png) */
    background-color: #004a98;
    color: white;
    padding: 30px 25px;
}

.sidebar-filters h3 {
    font-size: 1.4rem;
    font-weight: 700;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}



.filter-list label {
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Ocultamos el checkbox real */
.filter-list input[type="checkbox"] {
    display: none;
}

/* Creamos la caja del checkbox (Estado "no seleccionado") */
.custom-checkbox {
    width: 22px;
    height: 22px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: background-color 0.2s ease;
}

/* Creamos el "checkmark" (la palomita) pero la ocultamos */
.custom-checkbox::after {
    content: '\f00c'; /* Código del ícono de check de Font Awesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); /* Oculto y escalado a 0 */
    font-size: 14px;
    color: #004a98; /* Checkmark azul */
    transition: transform 0.1s ease-in-out;
}

/* Estado "Seleccionado" (image_461c37.png, derecha) */
.filter-list input[type="checkbox"]:checked + .custom-checkbox {
    background-color: white; /* Fondo blanco */
}

.filter-list input[type="checkbox"]:checked + .custom-checkbox::after {
    transform: translate(-50%, -50%) scale(1); /* Mostramos el checkmark */
}

.filter-list label:hover .custom-checkbox {
    background-color: #ddd; /* Pediste no hover, pero es buena UX */
}

/* -------------------------
   FASE 5 - CONTENIDO PRINCIPAL (Gris)
   ------------------------- */
.main-content-filters {
    background-color: #f4f4f4; /* Tu fondo gris claro */
    padding: 30px;
}

.top-filter-bar {
    display: flex;
    flex-wrap: wrap; /* Para móviles */
    gap: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* Hacemos que los dropdowns del top-filter-bar 
  se vean iguales a los del hero-search 
*/
.top-filter-bar .search-dropdown-container {
    flex: 1;
    min-width: 180px;
}
.top-filter-bar .dropdown-toggle {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 8px; /* Menos redondos que en el hero */
}
.top-filter-bar .dropdown-toggle:hover {
    background-color: #e9e9e9;
}

/* Aseguramos que la cuadrícula de propiedades se vea bien aquí
  (Usamos las clases .properties-grid y .property-card de la Fase 3)
*/
.main-content-filters .properties-grid {
    /* 3 columnas, pero puedes cambiarlo a 2 si te gusta más */
    grid-template-columns: repeat(3, 1fr); 
}

/* -------------------------
   FASE 7 - PÁGINA DETALLE DE PROPIEDAD
   ------------------------- */
.property-detail-page {
    /* El fondo gris de tu diseño (image_452438.png) */
    background-color: #f4f4f4; 
    padding: 40px 0;
}

.property-detail-page .container {
    background-color: white; /* Contenedor blanco principal */
    max-width: 900px; /* Más angosto para leer mejor */
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.detail-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
}
.detail-header .property-price {
    font-size: 2.0rem;
    font-weight: 700;
    color: #28a745; /* Verde */
}

/* Galería */
.detail-gallery {
    margin-bottom: 30px;
}
.gallery-main-image {
    position: relative;
    width: 100%;
    /* Proporción 16:9 */
    padding-top: 56.25%; 
    background-color: #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}
.gallery-main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    opacity: 0; /* Oculto por ahora */
}
.gallery-main-image:hover .gallery-nav {
    opacity: 1;
}
.gallery-nav.left { left: 15px; }
.gallery-nav.right { right: 15px; }
.gallery-nav:hover { background-color: rgba(0, 0, 0, 0.7); }

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 miniaturas */
    gap: 10px;
}
.gallery-thumbnails .thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.2s ease;
}
.gallery-thumbnails .thumbnail:hover {
    opacity: 1;
}
.gallery-thumbnails .thumbnail.active {
    opacity: 1;
    border-color: #004a98; /* Borde azul al seleccionado */
}

/* Barra de Características */
.detail-features-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas */
    gap: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}
.feature-item i {
    font-size: 1.8rem;
    color: #004a98; /* Azul */
}
.feature-item span {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* Descripción */
.detail-description-section {
    margin-bottom: 30px;
}
.detail-description-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.detail-description-section div {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
}
/* Estilo para los <p> que añadiremos con JS */
.detail-description-section div p {
    margin-bottom: 15px;
}

/* Tablas de Detalles */
.detail-table-white, .detail-table-blue {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}
.detail-table-white table, .detail-table-blue table {
    width: 100%;
    border-collapse: collapse; /* Bordes limpios */
}
.detail-table-white td, .detail-table-blue td {
    padding: 15px;
    font-size: 1rem;
}
.detail-table-white td:first-child {
    font-weight: 600;
    color: #333;
    width: 30%;
}
.detail-table-white tr:not(:last-child) td {
    border-bottom: 1px solid #eee;
}
.detail-table-white {
    background-color: #f9f9f9;
    border: 1px solid #eee;
}

/* Tabla Azul (basada en tu diseño) */
.detail-table-blue h3 {
    background-color: #004a98;
    color: white;
    padding: 15px;
    font-size: 1.2rem;
}
.detail-table-blue table {
    background-color: #e6f0fa; /* Azul claro */
}
.detail-table-blue td:first-child {
    font-weight: 600;
    color: #003366; /* Azul oscuro */
    width: 50%;
}
.detail-table-blue td {
    color: #333;
}
.detail-table-blue tr:not(:last-child) td {
    border-bottom: 1px solid #cce0f5;
}

/* Mapa Placeholder */
.detail-map-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.map-placeholder {
    width: 100%;
    height: 350px;
    background-color: #eee;
    border-radius: 8px;
    overflow: hidden;
}
.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------------------------
   FASE 8 - PÁGINA ESTÁTICA (Privacidad)
   ------------------------- */
.static-page-content {
    /* Fondo gris claro de tu diseño (image_4614f6.png) */
    background-color: #f4f4f4; 
    padding: 60px 0;
    min-height: 70vh; /* Para que no se vea vacía */
}

.static-page-content .container {
    max-width: 900px; /* Ancho de lectura cómodo */
    background-color: white; /* Contenido en caja blanca */
    padding: 40px 50px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.static-page-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

/* Estilos para el texto del aviso */
.privacy-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #004a98; /* Azul principal */
    margin-top: 25px;
    margin-bottom: 15px;
}

.privacy-content p, 
.privacy-content li {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.privacy-content strong {
    color: #333;
}

.privacy-content ul {
    list-style: disc; /* Viñetas redondas */
    padding-left: 20px;
    margin-bottom: 20px;
}

/* -------------------------
   FASE 8 (Ajuste) - Lista de Privacidad
   ------------------------- */

/* Estilos para la lista numerada en la página de privacidad */
.privacy-content ol {
    list-style: decimal; /* Números */
    padding-left: 30px; /* Espacio para los números */
    margin-bottom: 20px;
}

.privacy-content ol li {
    margin-bottom: 10px; /* Espacio entre puntos */
}

/* -------------------------
   barra de busqueda
   ------------------------- */

   .top-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.search-text-wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    min-width: 240px;
    max-width: 320px;
    flex: 1 1 240px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.search-text-wrapper i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

#property-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    background: transparent;
    color: #333;
}
/* =========================================
   AJUSTES RESPONSIVE PARA CELULARES
   ========================================= */
@media (max-width: 768px) {

  /* --------- GLOBAL --------- */
  html, body {
    max-width: 100%;
    overflow-x: hidden;   /* evita el scroll lateral raro */
  }

  body {
    font-size: 14px;
  }

  .container {
    padding: 0 15px;
  }

  /* --------- HEADER --------- */
  .header-container {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
  }

  .header-left-group {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }

  .header-logo img {
    height: 40px;
  }

  .header-socials a {
    font-size: 1.3rem;
  }

  .header-nav ul {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-nav a {
    font-size: 13px;
    padding-bottom: 2px;
  }

  /* --------- HERO --------- */
  .hero-section {
    height: auto;
    min-height: 70vh;
    padding: 90px 15px 25px; /* espacio por el header sticky */
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .hero-search-form {
    flex-direction: column;
    border-radius: 20px;
    padding: 12px;
    gap: 8px;
  }

  .search-dropdown-container {
    min-width: 100%;
  }

  .dropdown-toggle {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .dropdown-menu {
    font-size: 0.9rem;
  }

  .btn-buscar {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
  }

  /* --------- EXPLORAR ZONAS --------- */
  .locations-section {
    padding: 30px 5%;
  }

  .locations-grid {
    grid-template-columns: 1fr; /* una tarjeta por fila */
    gap: 15px;
  }

  .location-card {
    height: 260px;
  }

  /* --------- PROPIEDADES DESTACADAS --------- */
  .featured-properties {
    padding: 40px 5%;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .filter-group {
    gap: 8px;
    flex-wrap: wrap;
  }

  .filter-btn {
    padding: 7px 14px;
    font-size: 0.85rem;
  }

  /* aquí la fila de VERACRUZ / BOCA / etc */
  .filter-group-location {
    display: block;
    white-space: nowrap;       /* todo en una sola línea */
    overflow-x: auto;          /* scroll horizontal si no cabe */
    padding-bottom: 5px;
    margin-bottom: 20px;
  }
  .filter-group-location::-webkit-scrollbar {
    display: none;             /* oculta la barra en iOS */
  }
  .filter-location-link {
    display: inline-block;
    font-size: 0.85rem;
    margin-right: 14px;
  }

  /* tarjetas de propiedades: 1 por fila en móvil */
  .properties-grid,
  .main-content-filters .properties-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .property-card {
    border-radius: 10px;
  }

  /* --------- POR QUÉ ELEGIRNOS --------- */
  .why-choose-us {
    padding: 40px 5%;
  }

  .why-choose-us .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .features-grid {
    grid-template-columns: 1fr; /* 3 → 1 columna */
    gap: 20px;
  }

  .feature-item img {
    height: 90px;
  }

  /* --------- CTA (CALL TO ACTION) --------- */
  .cta-section {
    padding: 40px 5%;
  }

  .cta-container {
    grid-template-columns: 1fr; /* 2 → 1 */
  }

  .cta-text {
    padding: 25px 20px;
    text-align: center;
  }

  .cta-text h2 {
    font-size: 1.5rem;
  }

  .cta-text p {
    font-size: 0.95rem;
  }

  .btn-cta {
    align-self: center;
    width: 100%;
    max-width: 260px;
  }

  .cta-image img {
    height: 220px;
    object-fit: cover;
  }

  /* --------- CONTACTO --------- */
  .contact-section {
    padding: 40px 5%;
  }

  .contact-icons-grid {
    grid-template-columns: repeat(2, 1fr); /* 6 → 2 columnas */
    gap: 12px;
  }

  .contact-icon-item img {
    width: 45px;
    height: 45px;
  }

  .contact-icon-item strong {
    font-size: 0.9rem;
  }

  .contact-icon-item span {
    font-size: 0.8rem;
  }

  .contact-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }

  .form-control {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .btn-enviar {
    width: 100%;
    padding: 10px;
  }

  /* --------- FOOTER --------- */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 20px 15px;
  }

  .footer-logo {
    align-items: center;
    text-align: center;
  }

  .footer-logo img {
    height: 60px;
    width: 60px;
  }

  .footer-logo a {
    font-size: 0.8rem;
  }

  .footer-copy p {
    font-size: 0.75rem;
  }

  /* --------- LISTADO Y DETALLE (otras páginas) --------- */
  .properties-page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-filters {
    padding: 20px 15px;
  }

  .main-content-filters {
    padding: 20px 15px;
  }

  .top-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-text-wrapper {
    max-width: 100%;
  }

  .property-detail-page {
    padding: 25px 0;
  }

  .property-detail-page .container {
    padding: 20px 15px;
  }

  .detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .detail-header h1 {
    font-size: 1.7rem;
  }

  .detail-header .property-price {
    font-size: 1.6rem;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-thumbnails .thumbnail {
    height: 70px;
  }

  .detail-features-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .static-page-content {
    padding: 30px 0;
  }

  .static-page-content .container {
    padding: 20px 15px;
  }

  .static-page-content h1 {
    font-size: 1.8rem;
  }

    /* --------- BARRA DE BÚSQUEDA EN LISTADO --------- */
  /* 🔹 Reducir altura y padding del buscador */
  .top-filter-bar .search-text-wrapper {
    padding: 8px 10px;
    min-height: 42px;
  }

  /* 🔹 Disminuir tamaño de texto dentro del input */
  #property-search-input {
    font-size: 0.85rem;
  }

  /* 🔹 Ícono más pequeño y alineado */
  .search-text-wrapper i {
    font-size: 0.9rem;
    margin-right: 6px;
  }

  /* 🔹 Reducir bordes más redondos en móvil */
  .search-text-wrapper {
    border-radius: 10px;
  }

  /* 🔹 Espacio inferior más pequeño para que no se sienta tan grande */
  .search-text-wrapper {
    margin-bottom: 10px;
  }
}

/* AJUSTE ESPECÍFICO: BUSCADOR MÁS PEQUEÑO EN MÓVIL */
@media (max-width: 768px) {

  /* Caja blanca del buscador */
  .top-filter-bar .search-text-wrapper {
    padding: 6px 10px !important;   /* menos relleno */
    height: 44px !important;        /* altura fija más bajita */
    min-height: 44px !important;
    max-height: 44px !important;
    border-radius: 8px !important;
    display: flex;
    align-items: center;            /* centra el texto verticalmente */
  }

  /* Input de texto dentro */
  #property-search-input {
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
  }

  /* Ícono de lupa */
  .search-text-wrapper i {
    font-size: 0.9rem !important;
    margin-right: 6px;
  }
}


