/* =========================================
   PTY ESTATE - URBAN MODERN STYLE
   ========================================= */

:root {
    --primary: #0f172a;    /* Navy Blue Profundo */
    --accent: #3b82f6;     /* Azul Eléctrico */
    --light: #f1f5f9;      /* Gris muy claro */
    --white: #ffffff;
    --text: #334155;
    
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text);
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--primary); font-weight: 700; }
a { text-decoration: none; transition: 0.3s; }

/* --- NAVBAR --- */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--primary); letter-spacing: -1px; }
.text-blue { color: var(--accent); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text); font-weight: 600; font-size: 0.9rem; }
.nav-links a:hover { color: var(--accent); }

.btn-primary {
    background: var(--primary); color: white !important;
    padding: 10px 25px; border-radius: 6px; transition: 0.3s;
}
.btn-primary:hover { background: var(--accent); }

.menu-btn { display: none; font-size: 2rem; color: var(--primary); cursor: pointer; }

/* --- HERO SPLIT --- */
.hero-split {
    display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh;
    padding-top: 70px; /* Navbar height */
}

.hero-content {
    display: flex; align-items: center; padding: 50px; background: var(--white);
}
.content-wrapper { max-width: 500px; margin-left: auto; }

.badge-tech {
    background: #eff6ff; color: var(--accent); padding: 5px 12px;
    font-weight: 700; font-size: 0.75rem; border-radius: 4px;
    margin-bottom: 20px; display: inline-block;
}

.hero-content h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
.highlight { color: var(--accent); position: relative; }
/* Subrayado creativo */
.highlight::after { 
    content: ''; position: absolute; bottom: 5px; left: 0; width: 100%; height: 10px; 
    background: rgba(59, 130, 246, 0.2); z-index: -1; 
}

.hero-content p { font-size: 1.1rem; margin-bottom: 40px; color: #64748b; }

/* Barra de Búsqueda Moderna */
.hero-search {
    background: white; border: 1px solid #e2e8f0; border-radius: 8px;
    display: flex; box-shadow: 0 20px 40px rgba(0,0,0,0.05); padding: 5px;
}
.input-group {
    flex: 1; display: flex; align-items: center; padding: 0 15px; border-right: 1px solid #f1f5f9;
}
.input-group i { color: var(--accent); font-size: 1.2rem; margin-right: 10px; }
.input-group select {
    width: 100%; border: none; background: transparent; outline: none;
    color: var(--text); font-weight: 600; cursor: pointer; padding: 15px 0;
}
.btn-search {
    background: var(--accent); border: none; color: white; width: 60px;
    border-radius: 6px; cursor: pointer; font-size: 1.2rem; transition: 0.3s;
}
.btn-search:hover { background: var(--primary); }

.hero-image { position: relative; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.stat-card {
    position: absolute; bottom: 50px; left: -50px; background: white;
    padding: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.1); border-radius: 12px;
}
.stat-card .number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-card .label { font-size: 0.9rem; font-weight: 600; color: #64748b; }

/* --- PROPIEDADES --- */
.section-pad { padding: 100px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.view-all { color: var(--accent); font-weight: 700; display: flex; align-items: center; gap: 5px; }

.grid-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px;
}

.prop-card {
    border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; transition: 0.3s;
}
.prop-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: transparent; }

.prop-img { height: 250px; position: relative; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; }
.status {
    position: absolute; top: 15px; left: 15px; padding: 5px 12px;
    border-radius: 4px; font-size: 0.75rem; font-weight: 700; color: white;
}
.status.sale { background: var(--primary); }
.status.rent { background: var(--accent); }

.prop-info { padding: 25px; }
.prop-info .price { color: var(--accent); font-weight: 800; font-size: 1.2rem; display: block; margin-bottom: 5px; }
.prop-info h3 { font-size: 1.3rem; margin-bottom: 5px; }
.prop-info .loc { font-size: 0.9rem; color: #64748b; display: flex; align-items: center; gap: 5px; margin-bottom: 20px; }

.specs {
    display: flex; justify-content: space-between; border-top: 1px solid #f1f5f9;
    padding-top: 15px; color: var(--text); font-weight: 600; font-size: 0.9rem;
}
.specs span { display: flex; align-items: center; gap: 5px; }
.specs i { color: #94a3b8; }

/* --- INVERSIÓN (DARK) --- */
.bg-dark { background: var(--primary); color: white; padding: 100px 0; }
.invert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.invert-text h2 { color: white; margin-bottom: 20px; font-size: 2.5rem; }
.invert-text p { color: #94a3b8; margin-bottom: 30px; font-size: 1.1rem; }
.check-list li { list-style: none; display: flex; gap: 10px; align-items: center; margin-bottom: 15px; font-weight: 600; }
.check-list i { color: var(--accent); font-size: 1.3rem; }

.invert-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-box { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); }
.stat-box h3 { color: var(--accent); font-size: 2.5rem; margin-bottom: 5px; }
.stat-box p { font-size: 0.9rem; color: #cbd5e1; }

/* --- CONTACTO --- */
.contact-card {
    background: var(--light); border-radius: 20px; padding: 60px;
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px;
}
.info-row { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; margin-top: 20px; font-weight: 600; }
.info-row i { color: var(--accent); font-size: 1.5rem; }

.c-form { display: flex; flex-direction: column; gap: 15px; }
.c-form input {
    padding: 15px; border: 1px solid #cbd5e1; border-radius: 6px; outline: none; font-family: var(--font-body);
}
.c-form input:focus { border-color: var(--accent); }
.btn-block {
    background: var(--primary); color: white; padding: 15px; border: none;
    border-radius: 6px; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.btn-block:hover { background: var(--accent); }

/* FOOTER */
footer { padding: 40px 0; border-top: 1px solid #e2e8f0; font-size: 0.9rem; }
.footer-flex { display: flex; justify-content: space-between; align-items: center; }
.socials a { font-size: 1.5rem; color: var(--primary); margin-left: 15px; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; padding-top: 60px; min-height: auto; }
    .hero-content { padding: 40px 20px; text-align: center; }
    .content-wrapper { margin: 0 auto; }
    .hero-image { height: 300px; order: -1; }
    .stat-card { display: none; }
    
    .hero-search { flex-direction: column; }
    .input-group { border-right: none; border-bottom: 1px solid #f1f5f9; }
    .btn-search { width: 100%; height: 50px; }
    
    .nav-links {
        position: fixed; top: 60px; right: -100%; width: 100%; height: 100vh;
        background: white; flex-direction: column; padding: 40px; transition: 0.3s;
    }
    .nav-links.active { right: 0; }
    .menu-btn { display: block; }
    
    .invert-grid { grid-template-columns: 1fr; }
    .contact-card { grid-template-columns: 1fr; padding: 30px; }
    
    .hero-content h1 { font-size: 2.5rem; }
}