* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --gris: #7E7E7E;
    --gris-oscuro: #4A4A4A;
    --rojo: #E74C3C;
    --blanco: #FFFFFF;
}
body { font-family: 'Montserrat', sans-serif; background-color: #f5f5f5; color: #333; line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }

/* Header */
header { background: var(--gris); padding: 15px 0; position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { height: 70px; }
.logo {
    filter: brightness(1.1); /* Esto le da un 20% más de luz al logo */
    opacity: 1; /* Asegurate de que no sea transparente */
}
nav ul { list-style: none; display: flex; gap: 30px; }
nav a { color: white; text-decoration: none; font-weight: 500; font-size: 14px; text-transform: uppercase; }

/* Hero */
.hero { height: 60vh; margin-top: 75px; position: relative; overflow: hidden; }
.carousel-slide { position: absolute; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: 1.5s ease; }
.carousel-slide.active { opacity: 1; }

/* Filtros */
.filtro-section { background: #eeeeee; padding: 40px 0; }
.filter-container { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); text-align: center; max-width: 800px; margin: 0 auto; }
.filter-row { display: flex; gap: 20px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }
.filter-group { display: flex; flex-direction: column; align-items: flex-start; }
.filter-group select { padding: 10px; width: 220px; border: 1px solid #ddd; border-radius: 5px; }
.btn-buscar { background: var(--rojo); color: white; border: none; padding: 12px 40px; border-radius: 5px; cursor: pointer; font-weight: 700; text-transform: uppercase; }

/* Nosotros y Catálogo */
.section-title { text-align: center; color: var(--gris); font-size: 32px; margin-bottom: 30px; font-weight: 700; text-transform: uppercase; }
.section-title::after { content: ''; display: block; width: 60px; height: 4px; background: var(--rojo); margin: 15px auto; }
.nosotros-content { max-width: 800px; margin: 0 auto; text-align: center; color: #555; font-size: 18px; }
.catalogo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.property-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); cursor: pointer; transition: 0.3s; }
.property-card:hover { transform: translateY(-8px); }
.property-image { height: 230px; background-size: cover; background-position: center; position: relative; }
.property-badge { position: absolute; top: 15px; left: 15px; background: var(--rojo); color: white; padding: 6px 14px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.property-info { padding: 25px; }
.property-price { font-size: 24px; font-weight: 700; color: var(--gris); }

/* Mapa */
#mapa-leaflet { height: 450px; border-radius: 15px; z-index: 1; }

/* Contacto */
.contacto-section { background: var(--gris); color: white; text-align: center; }
.contacto-section .section-title { color: white; }
.footer-link {
    color: var(--blanco); /* O el color que prefieras para el texto */
    text-decoration: none; /* Quita el subrayado molesto */
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #cccccc; /* Cambia a un gris clarito cuando pasan el mouse */
    text-decoration: underline; /* Solo se subraya al pasar el mouse */
}
.redes-sociales { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.btn-redes { padding: 12px 30px; border-radius: 50px; text-decoration: none; color: white; font-weight: 700; }
.whatsapp { background: #25D366; }
.tiktok { background: #000; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* MODAL */
.modal { display: none; position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); overflow-y: auto; }
.modal-content { background: white; margin: 2% auto; width: 92%; max-width: 800px; border-radius: 15px; position: relative; overflow: hidden; }
.modal-close { position: absolute; right: 20px; top: 10px; font-size: 45px; color: #333; cursor: pointer; z-index: 10; }
.modal-carrusel { height: 400px; position: relative; background: #000; overflow: hidden; }
#modalCarruselSlides { display: flex; height: 100%; transition: 0.6s ease-in-out; }
.modal-carrusel-slide { min-width: 100%; height: 100%; background-size: cover; background-position: center; }
.modal-carrusel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.4); color: white; border: none; padding: 18px; cursor: pointer; font-size: 24px; }
.modal-carrusel-btn.next { right: 0; }
.modal-carrusel-indicadores { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.modal-carrusel-indicador { width: 12px; height: 12px; background: rgba(255,255,255,0.4); border-radius: 50%; cursor: pointer; }
.modal-carrusel-indicador.active { background: white; }
.modal-info { padding: 30px; }
.btn-contactar-whatsapp { display: block; background: #25D366; color: white; text-align: center; padding: 15px; border-radius: 8px; text-decoration: none; margin-top: 20px; font-weight: 700; }
/* Flechas del Carrusel Principal (Hero) */
.hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: background 0.3s;
}
.hero-btn:hover { background: rgba(0,0,0,0.6); }
.hero-btn.next { right: 0; }
.hero-btn.prev { left: 0; }

/* --- ADAPTACIÓN A CELULARES (Responsive) --- */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 15px; }
    .logo { height: 50px; } /* Logo un poco más chico en celular */
    nav ul { gap: 15px; }
    nav a { font-size: 12px; }
    
    .hero { height: 40vh; margin-top: 130px; } /* Ajuste de altura del inicio */
    
    .filter-group select { width: 100%; } /* Filtros a ancho completo */
    .filter-row { flex-direction: column; width: 100%; }
    
    .section-title { font-size: 24px; }
    .nosotros-content { font-size: 16px; }
    
    .modal-content { width: 95%; margin: 10% auto; }
    .modal-carrusel { height: 250px; } /* Carrusel más bajo en móviles */
    
    .redes-sociales { flex-direction: column; align-items: stretch; }
}