/* =========================================
   TEMPLATE: ESTATE PRO (Luxury Real Estate)
   ========================================= */

:root {
    /* COLORES DE LUJO */
    --navy: #0f172a;       /* Azul Marino Muy Oscuro */
    --gold: #c6a87c;       /* Dorado Elegante */
    --gold-hover: #b08d55;
    --white: #ffffff;
    --light-grey: #f4f4f5;
    --text-dark: #334155;
    --text-light: #64748b;

    /* FUENTES */
    --font-heading: 'Playfair Display', serif; /* Estilo Revista */
    --font-body: 'Lato', sans-serif;           /* Estilo Moderno */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* UTILIDADES */
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--light-grey); }
.text-center { text-align: center; margin-top: 40px; }
.gold { color: var(--gold); }
.gold-text { color: var(--gold); font-style: italic; }

/* NAVBAR (Sin barra superior) */
.navbar { 
    background: var(--white); 
    padding: 20px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 20px rgba(0,0,0,0.05); 
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--navy); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.btn-nav { border: 2px solid var(--navy); padding: 10px 25px; transition: 0.3s; }
.btn-nav:hover { background: var(--navy); color: var(--white); }

/* HERO SECTION */
.hero {
    height: 85vh;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80');
    background-size: cover; background-position: center;
    position: relative; display: flex; align-items: center; justify-content: center;
}
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.4); } 

.hero-content { position: relative; z-index: 2; text-align: center; color: var(--white); width: 100%; }
.subtitle { font-family: var(--font-heading); font-style: italic; color: var(--gold); font-size: 1.5rem; letter-spacing: 2px; }
.hero h1 { font-family: var(--font-heading); font-size: 4rem; margin: 20px 0 40px; line-height: 1.1; }

/* BUSCADOR VISUAL */
.search-box {
    background: var(--white); padding: 20px; border-radius: 4px;
    display: flex; gap: 15px; max-width: 800px; margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); flex-wrap: wrap;
}
.input-group { flex: 1; display: flex; flex-direction: column; text-align: left; min-width: 200px; }
.input-group label { font-size: 0.8rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; margin-bottom: 5px; }
.input-group input, .input-group select { border: none; border-bottom: 1px solid #ddd; padding: 10px 0; outline: none; font-family: var(--font-body); width: 100%; }

.btn-search {
    background: var(--navy); color: var(--white); border: none;
    padding: 0 40px; font-weight: 700; cursor: pointer; transition: 0.3s;
    text-transform: uppercase; letter-spacing: 1px;
}
.btn-search:hover { background: var(--gold); }

/* PROPIEDADES */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-family: var(--font-heading); font-size: 3rem; color: var(--navy); }

.property-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.property-card { background: var(--white); transition: 0.4s; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.property-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.card-img { position: relative; height: 250px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.property-card:hover .card-img img { transform: scale(1.1); }

.tag { position: absolute; top: 20px; left: 20px; background: var(--navy); color: var(--white); padding: 5px 15px; font-size: 0.8rem; text-transform: uppercase; font-weight: 700; }
.tag.rent { background: var(--gold); }
.price { position: absolute; bottom: 0; right: 0; background: var(--gold); color: var(--white); padding: 10px 20px; font-weight: 700; font-size: 1.2rem; }

.card-body { padding: 30px; }
.card-body h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 10px; color: var(--navy); }
.location { color: var(--text-light); margin-bottom: 20px; display: flex; align-items: center; gap: 5px; font-size: 0.9rem; }

.features { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid #eee; margin-bottom: 20px; color: var(--text-dark); font-size: 0.9rem; }
.features i { color: var(--gold); margin-right: 5px; }

.btn-card { display: block; text-align: center; border: 1px solid var(--navy); padding: 10px; color: var(--navy); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; transition: 0.3s; }
.btn-card:hover { background: var(--navy); color: var(--white); }

.btn-outline { border: 2px solid var(--navy); padding: 15px 40px; display: inline-block; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* STATS */
.stats-section { background: var(--navy); padding: 60px 0; color: var(--white); }
.stats-grid { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; gap: 30px; }
.stat-box .number { font-family: var(--font-heading); font-size: 3.5rem; color: var(--gold); display: block; line-height: 1; margin-bottom: 10px; }
.stat-box .label { font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; opacity: 0.8; }

/* CTA LUXURY */
.cta-luxury { text-align: center; padding: 100px 0; background: url('https://www.transparenttextures.com/patterns/cubes.png'), #f8f8f8; }
.cta-luxury h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 20px; color: var(--navy); }
.cta-luxury p { max-width: 600px; margin: 0 auto 40px; color: var(--text-light); font-size: 1.1rem; }

.btn-gold { background: var(--gold); color: var(--white); padding: 15px 40px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-3px); }

/* FOOTER PREMIUM (Rediseñado) */
footer { background: var(--navy); padding: 80px 0 30px; color: var(--white); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 60px; }

.footer-brand h3 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 20px; color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 0.95rem; max-width: 300px; }

.footer-contact h4, .footer-social h4 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 20px; color: var(--gold); }
.footer-contact ul li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.8); }
.footer-contact i { font-size: 1.2rem; }

.social-icons-big { display: flex; gap: 15px; }
.social-icons-big a { 
    display: flex; justify-content: center; align-items: center;
    width: 50px; height: 50px; background: rgba(255,255,255,0.1); 
    border-radius: 50%; font-size: 1.5rem; color: var(--white); transition: 0.3s; border: 1px solid rgba(255,255,255,0.1);
}
.social-icons-big a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-5px); }

.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; color: rgba(255,255,255,0.5); font-size: 0.85rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .search-box { flex-direction: column; padding: 15px; }
    .btn-search { padding: 15px 0; }
    .features { font-size: 0.8rem; }
    .stats-grid { flex-direction: column; }
    .footer-grid { text-align: center; }
    .social-icons-big { justify-content: center; }
    .footer-contact ul li { justify-content: center; }
}