/* ==========================================
   RESET Y BASE
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background: #f4f4f4; 
    color: #333; 
    line-height: 1.6; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* ==========================================
   HEADER & LOGO INTELIGENTE
   ========================================== */
.header { 
    background: #fff; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 20px;
    flex-wrap: wrap; /* Permite que los elementos se adapten */
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Evita que el logo se encoja */
}

.logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.logo-mobile { display: block; }
.logo-desktop { display: none; }

/* Menú de navegación */
.nav-menu { 
    display: flex; 
    gap: 20px; 
    list-style: none; 
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu a { 
    text-decoration: none; 
    color: #333; 
    font-weight: 500; 
    font-size: 14px; 
    text-transform: uppercase; 
    transition: color 0.3s;
}

.nav-menu a:hover { color: #D4AF37; }

/* Selector de idioma */
.language-selector { 
    display: flex; 
    gap: 5px; 
    flex-shrink: 0;
}

.lang-btn { 
    border: 1px solid #ddd; 
    background: transparent; 
    padding: 5px 10px; 
    cursor: pointer; 
    border-radius: 4px; 
    font-size: 12px;
    transition: all 0.3s;
}

.lang-btn.active { 
    background: #2C5F2D; 
    color: #fff; 
    border-color: #2C5F2D; 
}

/* ==========================================
   HERO
   ========================================== */
.page-hero { 
    position: relative; 
    padding: 100px 20px; 
    text-align: center; 
    color: #fff; 
    background: #2C5F2D; 
    overflow: hidden; 
}

.hero-bg-blur { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(135deg, #1a3c1b, #D4AF37); 
    filter: blur(60px); 
    opacity: 0.6; 
}

.hero-content { 
    position: relative; 
    z-index: 2; 
}

.page-hero h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: 40px; 
    margin-bottom: 10px; 
}

.page-hero p { font-size: 18px; margin-bottom: 20px; }

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #D4AF37;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover { background: #b8941f; }

/* ==========================================
   FILTROS
   ========================================== */
.filters-section { 
    background: #fff; 
    padding: 20px 0; 
    border-bottom: 1px solid #eee; 
}

.filters-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 15px; 
}

.filter-group select { 
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
}

/* ==========================================
   TARJETAS PREMIUM
   ========================================== */
.properties-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 60px; 
    padding: 50px 0; 
}

.property-item { 
    position: relative; 
    height: 500px; 
}

.property-bg-blur {
    position: absolute; 
    top: 20px; left: 20px; right: -20px; bottom: -20px;
    background: #2C5F2D; 
    opacity: 0.5; 
    filter: blur(20px); 
    z-index: 1; 
    border-radius: 12px;
}

.property-card-premium {
    position: relative; 
    width: 100%; 
    height: 100%; 
    background: #fff;
    border-radius: 12px; 
    z-index: 2; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    transition: transform 0.3s;
}

.property-card-premium:hover { transform: translateY(-10px); }

.property-image-placeholder { 
    height: 55%; 
    background: #eee; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 50px; 
    color: #ccc; 
}

.property-info-premium { 
    padding: 25px; 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.property-title { 
    font-family: 'Playfair Display', serif; 
    color: #2C5F2D; 
    font-size: 22px; 
}

.property-location { color: #666; font-size: 14px; margin: 5px 0 15px; }

.property-stats { 
    display: flex; 
    justify-content: space-between; 
    border-top: 1px solid #eee; 
    padding-top: 15px; 
    margin-bottom: 15px; 
    font-size: 14px; 
}

.property-price { 
    font-size: 24px; 
    font-weight: 700; 
    color: #D4AF37; 
}

.btn-details { 
    display: block; 
    text-align: center; 
    padding: 12px; 
    background: #2C5F2D; 
    color: #fff; 
    text-decoration: none; 
    border-radius: 6px; 
    font-weight: 600; 
    margin-top: 10px; 
    transition: background 0.3s;
}

.btn-details:hover { background: #1e4220; }

/* ==========================================
   SECCIONES GENERALES
   ========================================== */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    text-align: center;
    margin: 40px 0;
    color: #2C5F2D;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer { 
    background: #1a1a1a; 
    color: #888; 
    text-align: center; 
    padding: 40px 0; 
    margin-top: 50px; 
}

/* ==========================================
   MEDIA QUERIES - RESPONSIVE
   ========================================== */

/* Tablet y Desktop (>= 768px) */
@media (min-width: 768px) {
    .logo-mobile { display: none; }
    .logo-desktop { 
        display: block; 
        height: 50px; 
    }
    
    .nav-menu { justify-content: flex-start; }
    
    .page-hero h1 { font-size: 48px; }
}

/* Móvil (< 768px) */
@media (max-width: 767px) {
    .nav {
        flex-direction: column;
        padding: 15px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-menu a {
        font-size: 12px;
    }
    
    .page-hero {
        padding: 60px 20px;
    }
    
    .page-hero h1 {
        font-size: 28px;
    }
    
    .page-hero p {
        font-size: 16px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px 0;
    }
    
    .property-item {
        height: 450px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

/* Móvil muy chico (< 480px) */
@media (max-width: 480px) {
    .property-item {
        height: 400px;
    }
    
    .property-title {
        font-size: 18px;
    }
    
    .property-price {
        font-size: 20px;
    }
}