/* ==========================================
   1. RESETEO Y ESTILOS GENERALES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
}

/* ==========================================
   BARRA SUPERIOR (TOP BAR) DE CONTACTO
   ========================================== */
.top-bar {
    background: linear-gradient(135deg, #0d2c54 0%, #1e40af 100%);
    /*background-color: #00a8cc; /* Un azul que no destaque en la página */
    /*background-color: #f8fafc; /* Un gris/blanco roto limpísimo que no destaca nada */
    width: 100%;
    padding: 8px 7.5%; /* Delgada verticalmente y alineada con el header a los lados */
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.top-bar-contenido {
    display: flex;
    justify-content: space-between; /* Distribuye el espacio entre los elementos */
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.top-bar-contenido a {
    font-family: 'Inter', sans-serif; /* Tu nueva fuente limpia */
    /*color: #64748b; /* Gris medio elegante; la información se lee pero no grita */
    /*color: #ffffff;*/
    color: rgba(255, 255, 255, 0.9); /* Blanco ligeramente traslúcido para menos contraste */
    text-decoration: none;
    font-size: 13px; /* Tamaño pequeño, discreto y elegante */
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre el icono de Font Awesome y el texto */
    transition: color 0.3s ease;
}

/* Efecto al pasar el ratón: se ilumina con vuestro turquesa mar */
.top-bar-contenido a:hover {
    color: #00a8cc; 
}
/* El WhatsApp mantiene su luz verde al pasar el cursor */
.top-bar-contenido a.enlace-whatsapp:hover {
    color: #25d366;
}

/* Ocultar en móviles muy pequeños para que no se amontone el texto */
@media (max-width: 480px) {
    .top-bar-contenido {
        justify-content: center; /* Centrado en pantallas pequeñas */
        gap: 15px;
    }
}

/* ==========================================
   2. CABECERA (HEADER)
   ========================================== */
header {

    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* 1. Forzamos a que ocupe todo el ancho de la pantalla sin límites */
    width: 100% !important;
    max-width: 100% !important; 
    
    /* 2. Dejamos un aire vertical elegante y solo 3% o 4% a los lados */
    padding: 10px 4% !important; 
    
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;

}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: #0d2c54; /* Azul oscuro */
    font-weight: 700; /* Un grosor más fuerte y corporativo */
    letter-spacing: -0.5px;
}

.logo h1 span {
    color: #00a8cc; /* Turquesa mar */
    font-weight: 400;
}

nav a {
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    color: #555;
    margin-left: 28px;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover {
    color: #00a8cc;
}

/* ==========================================
   3. SECCIÓN HERO (PORTADA CON VÍDEO)
   ========================================== */
.hero {
    position: relative;
    height: 60vh; /* Mantiene la misma altura que tenías */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden; /* Evita que el vídeo se salga del contenedor */
}

/* El vídeo adaptado para cubrir todo el fondo */
.video-fondo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Capa azul corporativa idéntica a tu degradado original */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(13, 44, 84, 0.4), rgba(13, 44, 84, 0.2));
    z-index: 2;
}

/* El contenido del texto por encima de todo */
.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 46px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 20px;
    opacity: 0.9;
}

/* ==========================================
   4. SECCIÓN DE FILTROS (DESPLEGABLES)
   ========================================== */
.contenedor-principal {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.filtros-seccion {
    margin-bottom: 40px;
}

/* Panel de Filtros en Cuadrícula */
.contenedor-filtros {
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    align-items: end;
}

.filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.filtro-grupo label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0d2c54;
}

.filtro-control {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    background-color: white;
    color: #334155;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filtro-control:focus {
    border-color: #00a8cc;
    box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.15);
}

.btn-limpiar {
    padding: 10px 15px;
    background-color: #e2e8f0;
    color: #0d2c54;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.btn-limpiar:hover {
    background-color: #cbd5e1;
}

/* ==========================================
   5. GRID Y TARJETAS DE PROPIEDADES
   ========================================== */
.grid-propiedades {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.cargando {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 18px;
    color: #777;
    padding: 40px;
}

.tarjeta-propiedad {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tarjeta-propiedad:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.tarjeta-propiedad img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* Evita que la foto se deforme */
}

.tarjeta-propiedad .info {
    padding: 20px;
}

/* Etiquetas Venta / Alquiler */
.etiqueta {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.etiqueta.venta {
    background-color: #e3fcef;
    color: #0ea75a;
}

.etiqueta.alquiler {
    background-color: #e0f2fe;
    color: #0369a1;
}

.tarjeta-propiedad h3 {
    font-size: 18px;
    color: #0d2c54;
    margin-bottom: 10px;
    height: 54px; /* Altura fija para que alineen los textos */
    overflow: hidden;
}

.tarjeta-propiedad .precio {
    font-size: 22px;
    font-weight: 700;
    color: #00a8cc;
    margin-bottom: 10px;
}

.tarjeta-propiedad p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.btn-contacto {
    width: 100%;
    background-color: #f4f7f6;
    border: 1px solid #ddd;
    color: #555;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-contacto:hover {
    background-color: #00a8cc;
    color: white;
    border-color: #00a8cc;
}

/* ==========================================
   FOOTER (PIE DE PÁGINA)
   ========================================== */
.pie-pagina {
    background: linear-gradient(135deg, #0d2c54 0%, #1e40af 100%);
    color: #ffffff;
    padding-top: 50px;
    padding-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.pie-contenedor {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 5.5%; /* Alineado con los márgenes de la barra superior */
    max-width: 100%;
    gap: 40px;
}

/* Base para las 3 columnas */
.pie-columna {
    flex: 1;
}

/* --- COLUMNA 1: MARCA Y CONTACTO (IZQUIERDA) --- */

/* Contenedor que junta la imagen del logo y el texto en horizontal */
.enlace-logo-pie {
    display: flex;
    align-items: center; /* Centra la imagen y el texto verticalmente */
    gap: 12px; /* Separación entre el dibujo del logo y el texto */
    text-decoration: none;
    margin-bottom: 15px;
}

/* Control del tamaño de la imagen del logo */
.logo-img-pie {
    height: 78px; /* Ajusta la altura para que no quede enorme */
    width: auto;
    object-fit: contain;
}

.texto-logo-pie {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.texto-logo-pie span {
    color: #00a8cc; /* Turquesa corporativo */
}

.pie-contacto-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pie-contacto-info a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.pie-contacto-info a:hover {
    color: #00a8cc;
}

/* --- COLUMNA 2: REDES, INSTAGRAM, WHATSAPP, TIKTOK (CENTRO) --- */

.pie-redes {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pie-titulo-redes {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Estilo común para todos los botones circulares */
.icono-social,
.icono-tiktok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 22px;
    border-radius: 50%;
    text-decoration: none;
    margin: 0 6px; /* Separación horizontal entre botones */
    transition: all 0.3s ease;
}

/* --- EFECTOS HOVER (Al pasar el ratón) --- */

/* TikTok: Turquesa corporativo */
.icono-tiktok:hover,
.icono-social.tiktok:hover {
    background-color: #00a8cc;
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(0, 168, 204, 0.4);
}

/* Instagram: Degradado magenta / naranja oficial */
.icono-social.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}

/* WhatsApp: Verde oficial */
.icono-social.whatsapp:hover {
    background-color: #25d366;
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}


/* --- COLUMNA 3: LEGALES (DERECHA) --- */
.pie-legal {
    display: flex;
    justify-content: flex-end;
}

.pie-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.pie-legal li {
    margin-bottom: 10px;
}

.pie-legal a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.pie-legal a:hover {
    color: #00a8cc;
}

/* --- BARRITA INFERIOR DE COPYRIGHT --- */
.pie-derechos {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #64748b;
}

/* --- ADAPTACIÓN RESPONSIVE (MÓVILES) --- */
@media (max-width: 768px) {
    .pie-contenedor {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 35px;
    }

    .pie-contacto-info p {
        justify-content: center;
    }

    .pie-legal {
        justify-content: center;
    }

    .pie-legal ul {
        text-align: center;
    }
}

/* ==========================================
   BANNER DE COOKIES (FLOTANTE EN INFERIOR)
   ========================================== */
.banner-cookies {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #0f172a;
    color: #ffffff;
    padding: 15px 20px;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
}

.cookies-contenido {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookies-contenido p {
    margin: 0;
    font-size: 0.9em;
    color: #e2e8f0;
    flex: 1;
}

.cookies-contenido a {
    color: #38bdf8;
    text-decoration: underline;
}

.btn-cookies {
    background-color: #0d2c54; /* El azul corporativo de tu web */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-cookies:hover {
    background-color: #1a3d6d;
}


/* ==========================================
   7. SECCIÓN DE CONTACTO
   ========================================== */
.seccion-contacto {
    background-color: #ffffff;
    padding: 60px 20px;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

.contenedor-contacto {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
}

.info-contacto h2 {
    color: #0d2c54;
    font-size: 32px;
    margin-bottom: 20px;
}

.info-contacto p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Botones de acción rápida */
.vias-rapidas {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.vias-rapidas a {
    text-decoration: none;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.2s, opacity 0.2s;
}

.vias-rapidas a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-telefono {
    background-color: #0d2c54;
    color: white;
}

.datos-oficina p {
    margin-bottom: 12px;
    font-size: 15px;
    color: #444;
}

/* Estilos del Formulario */
.formulario-contacto {
    background-color: #f4f7f6;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.grupo-input {
    margin-bottom: 20px;
}

.grupo-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #0d2c54;
    font-size: 14px;
}

.grupo-input input, .grupo-input textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.grupo-input input:focus, .grupo-input textarea:focus {
    border-color: #00a8cc;
}

.btn-enviar {
    width: 100%;
    background-color: #00a8cc;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-enviar:hover {
    background-color: #0d2c54;
}

/* Resaltar la página actual en el menú */
nav a.activo-nav {
    color: #00a8cc;
    border-bottom: 2px solid #00a8cc;
    padding-bottom: 5px;
}

/* ==========================================
   8. DETALLES VISUALES EXTRA (ICONOS Y MAPA)
   ========================================== */

/* Contenedor de la imagen de la tarjeta para posicionar la etiqueta encima */
.imagen-contenedor {
    position: relative;
}

.imagen-contenedor .etiqueta {
    position: absolute;
    top: 15px;
    left: 15px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Fila de características (Habitaciones, Baños, Metros) */
.caracteristicas {
    display: flex;
    justify-content: space-between;
    background-color: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #555;
    border: 1px solid #edf2f7;
}

.caracteristicas i {
    color: #00a8cc; /* Color turquesa para los iconos */
    margin-right: 4px;
}

/* Ajuste de descripción en la tarjeta */
.tarjeta-propiedad .descripcion {
    height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Efecto hover suave para el mapa de contacto */
.mapa-contenedor iframe {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.mapa-contenedor iframe:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

/* ==========================================
   9. BANNERS PARA PÁGINAS INTERNAS
   ========================================== */

/* Estilo común para los banners internos (más cortos que el index) */
.hero-paginas {
    height: 25vh; /* Bajamos de 40vh a 25vh */
    margin-bottom: 20px;
}

.hero-paginas h2 {
    font-size: 30px;
}

/* Imagen de fondo para la página de Inmuebles */
.hero-inmuebles {
    background: linear-gradient(rgba(13, 44, 84, 0.75), rgba(13, 44, 84, 0.45)), 
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
}

/* Imagen de fondo para la página de Contacto */
.hero-contacto {
    background: linear-gradient(rgba(13, 44, 84, 0.75), rgba(13, 44, 84, 0.45)), 
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
}

 /* ==========================================
   10. LOGO Y NOMBRE COMBINADOS
   ========================================== */
.enlace-logo {
    display: flex;
    align-items: center;  /* Alinea el logo y el texto verticalmente en el centro */
    gap: 15px;            /* Deja un espacio limpio de separación entre el logo y el texto */
    text-decoration: none;
}

.logo img {
    height: 110px;         /* Reducimos un pelín la altura para que armonice con el texto */
    width: auto;
    display: block;
    transition: transform 0.3s;
}

/* Estilos para el texto del logo al lado de la imagen */
.texto-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0d2c54;       /* El color azul oscuro principal */
    letter-spacing: 0.5px;
}

.texto-logo span {
    color: #00a8cc;       /* El toque turquesa que ya tenías */
}

/* Efecto hover en todo el conjunto */
.enlace-logo:hover img {
    transform: scale(1.05);
}

.enlace-logo:hover .texto-logo {
    opacity: 0.9;
}

/* Ajuste general para la cabecera */
header {
    align-items: center; 

}



/* ==========================================
   12. MENÚ COMPLETO (ORDENADORES Y MÓVIL)
   ========================================== */

/* --- A. ESTILOS PARA ORDENADORES (PANTALLAS GRANDES) --- */

/* El menú en PC se muestra en línea horizontal de forma natural */
.nav-menu {
    display: flex;
    align-items: center;
}

/* Enlaces del menú en ordenadores */
.nav-menu a {
    font-family: 'Inter', sans-serif; /* 👈 Tu nueva fuente limpia */
    text-decoration: none;
    color: #555;
    margin-left: 28px; /* Espaciado elegante ahora que el header es más ancho */
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #00a8cc; /* El turquesa corporativo */
}

/* Botón hamburguesa oculto por defecto en PC */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #0d2c54;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    transition: color 0.3s ease;
}


/* --- B. ESTILOS RESPONSIVE (MÓVILES Y TABLETS - MENOS DE 768PX) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Mostramos el botón de tres rayas */
    }

    /* Transformamos el menú horizontal en una cortina lateral que sale de la derecha */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Totalmente oculto a la derecha */
        width: 70%;  
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease-in-out;
        z-index: 999;
    }

    /* Modificamos los enlaces para que se adapten al formato vertical del móvil */
    .nav-menu a {
        font-family: 'Inter', sans-serif;
        font-size: 20px; /* Letra más grande y táctil para móviles */
        color: #0d2c54; /* Cambia al azul oscuro corporativo en móvil */
        font-weight: 600;
        margin-left: 0; /* Quitamos el margen lateral del PC */
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-menu a:hover {
        color: #00a8cc;
    }

    /* Clase activa que inyectará JavaScript para abrir el menú */
    .nav-menu.activo {
        right: 0; /* Desplaza el menú hacia adentro */
    }
}

/* ==========================================
   TOP-BAR RESPONSIVE (MÓVIL)
   ========================================== */
@media (max-width: 600px) {
    .top-bar-contenido {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 12px;
    }

    .top-bar-izquierda,
    .top-bar-derecha {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Ocultamos la dirección de correo larga */
    .top-bar-derecha .texto-email {
        display: none;
    }

    /* Añadimos la palabra corta "Email" al lado del icono solo en móvil */
    .top-bar-derecha a::after {
        content: " Email";
        font-size: 13px;
        font-weight: 500;
    }

    /* Ajustamos tamaños para que todo encaje en una sola línea elegante */
    .top-bar a {
        font-size: 13px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }
}


/* ==========================================
   14. SECCIÓN QUIÉNES SOMOS
   ========================================== */
.seccion-nosotros {
    padding: 80px 20px;
    background-color: #f8fafc; /* Un fondo grisáceo muy sutil para contrastar */
}

.contenedor-nosotros {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px; /* Espacio entre las dos columnas */
}

/* Estilos de la columna de texto */
.nosotros-texto {
    flex: 1;
}

.subtitulo-seccion {
    display: block;
    color: #00a8cc; /* El color secundario/llamativo de tu marca */
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.nosotros-texto h2 {
    color: #0d2c54; /* El color principal oscuro */
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.parrafo-destacado {
    font-size: 18px;
    color: #0d2c54;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 15px;
}

.nosotros-texto p {
    color: #64748b; /* Gris suave para lectura cómoda */
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Bloque de estadísticas */
.nosotros-datos {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.dato-item {
    display: flex;
    flex-direction: column;
}

.dato-numero {
    font-size: 32px;
    font-weight: 700;
    color: #0d2c54;
}

.dato-etiqueta {
    font-size: 14px;
    color: #64748b;
}

/* Estilos de la columna de la imagen */
.nosotros-imagen {
    flex: 1;
}

.nosotros-imagen img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px; /* Esquinas redondeadas elegantes */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* --- Adaptación para Móviles (Responsive) --- */
@media (max-width: 768px) {
    .seccion-nosotros {
        padding: 50px 20px;
    }
    
    .contenedor-nosotros {
        flex-direction: column; /* Apila el texto arriba y la foto abajo */
        gap: 35px;
    }

    .nosotros-texto h2 {
        font-size: 28px;
    }

    .nosotros-datos {
        justify-content: space-around;
        gap: 20px;
    }
}

/* ==========================================
   16. BLOQUE DE BIENVENIDA (INDEX)
   ========================================== */
.bienvenida-intro {
    padding: 60px 20px 20px 20px;
    text-align: center;
    max-width: 1050px; /* Centramos el texto acotando el ancho para que sea cómodo de leer */
    margin: 0 auto;
}

.bienvenida-intro h1 {
    color: #0d2c54;
    font-size: 38px;
    margin-bottom: 25px;
    font-weight: 700;
}

.texto-manifiesto {
    font-size: 19px;
    color: #475569; /* Un gris oscuro muy elegante */
    line-height: 1.8;
    margin-bottom: 15px;
}

.texto-manifiesto strong {
    color: #00a8cc; /* Destacamos el nombre con tu celeste mar */
    font-weight: 600;
}

.texto-manifiesto-secundario {
    font-size: 17px;
    color: #64748b;
    line-height: 1.7;
    font-style: italic; /* Un toque sutil para cerrar el párrafo */
}

/* Línea divisoria sutil antes de los inmuebles */
.divisor-sutil {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 40px auto;
    max-width: 600px;
}

/* Colores de marca aplicados al texto */
    .marca-texto {
        font-weight: 700; /* Le da fuerza al nombre dentro del párrafo */
    }

    .color-sea {
        color: #0d2c54; /* Tu celeste mar original */
    }

    .color-oro {
        color: #d4af37; /* El dorado elegante del logo */
    }

    .color-mar {
        color: #00a8cc; /* El turquesa que ya tenías */
    }

/* --- Adaptación para Móviles --- */
@media (max-width: 768px) {
    .bienvenida-intro {
        padding: 40px 15px 10px 15px;
    }
    .bienvenida-intro h1 {
        font-size: 28px;
    }
    .texto-manifiesto {
        font-size: 17px;
    }
    .texto-manifiesto-secundario {
        font-size: 15px;
    }
}

/* Línea divisoria dorada y elegante para separar secciones */
.divisor-dorado {
    border: 0;
    height: 2px;
    /* Degradado que va desde transparente, pasa por tu dorado corporativo y vuelve a transparente */
    background-image: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.5) 0%, rgba(212, 175, 55, 0) 80%);
    margin: 65px auto; /* Buen espacio arriba y abajo para que las secciones respiren */
    max-width: 1000px;  /* Un poco más ancha que la anterior para que luzca el dorado */
    width: 100%;
    opacity: 0.8;
}

/* ==========================================
   MODAL EMERGENTE DE DETALLES
   ========================================== */
.modal-oculto {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 44, 84, 0.75); /* Fondo oscuro semitransparente */
    backdrop-filter: blur(5px); /* Efecto desenfoque */
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Cuando el JS le añade la clase 'activo', se muestra */
.modal-oculto.activo {
    display: flex;
}

.modal-contenido {
    background-color: #ffffff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto; /* Permite scroll si la galería es larga */
    position: relative;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: abrirModal 0.3s ease-out;
}

@keyframes abrirModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-cerrar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #0d2c54;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.btn-cerrar-modal:hover {
    color: #e11d48;
}

/* Grilla para las 13 fotos dentro del Modal */
.modal-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.modal-galeria img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.2s;
}

.modal-galeria img:hover {
    transform: scale(1.03);
}

.modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    color: #0d2c54;
    font-size: 24px;
    margin-bottom: 6px;
}

.modal-precio {
    font-size: 26px;
    font-weight: 700;
    color: #00a8cc;
    margin-bottom: 15px;
}

.modal-caracteristicas {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 500;
}

/* ==========================================
   VISOR A PANTALLA COMPLETA (ZOOM FOTO)
   ========================================== */
.visor-oculto {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92); /* Fondo casi negro */
    z-index: 10000; /* Por encima del modal de detalles */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.visor-oculto.activo {
    display: flex;
}

#imagen-ampliada {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.2s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.btn-cerrar-visor {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 45px;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.btn-cerrar-visor:hover {
    color: #e11d48;
}

/* Indicador visual de que las fotos de la galería se pueden clicar */
.modal-galeria img {
    cursor: zoom-in;
}

/*Para texto descriptivo de los inmuebles en ventana emergente*/
.descripcion-modal {
    line-height: 1.8;
    text-align: justify;
    color: #475569;
}

/* ==========================================
   MAPA INTERACTIVO DENTRO DEL MODAL
   ========================================== */
.contenedor-mapa {
    margin-top: 25px;
}

.contenedor-mapa h3 {
    margin-bottom: 12px;
    color: #0d2c54;
    font-family: 'Montserrat', sans-serif;
}

#mapa-inmueble {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    z-index: 1; /* Para evitar conflictos de capas con el modal */
}

/* --- CONTENEDOR DE FILTROS RESPONSIVE PARA LOS BOTONES DE FILTROS--- */

.filtros-seccion {
    padding: 20px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Fila de botones de filtro */
.botones-filtro {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* En pantallas medianas se adaptan en varias filas */
    gap: 8px; /* Espacio uniforme entre botones */
    margin-bottom: 12px;
}

/* Estilo individual de cada botón de filtro */
.btn-filtro {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px; /* Bordes redondeados más elegantes */
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    white-space: nowrap; /* Evita que el texto de un botón se rompa en 2 líneas */
}

/* Estado activo y hover */
.btn-filtro:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

.btn-filtro.activo {
    background-color: #0d2c54; /* El color azul oscuro de tu marca */
    color: #ffffff;
    border-color: #0d2c54;
    box-shadow: 0 2px 6px rgba(13, 44, 84, 0.25);
}

/* --- ADAPTACIÓN ESPECIAL PARA MÓVILES (Menos de 600px) --- */
@media (max-width: 600px) {
    .botones-filtro {
        /* En móviles permitimos carrusel/scroll horizontal si hay muchos municipios */
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
        scrollbar-width: none; /* Oculta barra de scroll en Firefox */
    }

    /* Ocultar barra de scroll visual en Chrome/Safari para mantener diseño limpio */
    .botones-filtro::-webkit-scrollbar {
        display: none;
    }

    .btn-filtro {
        padding: 7px 14px;
        font-size: 13px;
        flex-shrink: 0; /* Impide que los botones se deformen o aplasten */
    }
}