:root { 
    --blue: #0000FF; 
    --dark: #1e293b;
    --text: #334155; 
    --top-bg: #0f172a;
}

* { margin:0; padding:0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

.top-bar { 
    background: var(--top-bg); 
    color: #cbd5e1; 
    padding: 10px 0; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}
.bar-flex { display: flex; gap: 25px; }
.info-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }

.main-header { 
    background: #fff; 
    border-bottom: 1px solid #e2e8f0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    height: 100px; 
    display: flex; 
    align-items: center; 
}

.nav-container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* --- ESTILOS DEL LOGO (IMAGEN) --- */
.logo { display: flex; align-items: center; }
.logo-img { 
    height: 80px; /* Altura ideal para un header de 80px */
    width: auto; 
    display: block;
    transition: 0.3s;
}

.nav-list { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-link { text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px; transition: 0.3s; }
.nav-link:hover { color: var(--blue); }

.btn-primary { 
    background: var(--blue); 
    color: #fff !important; 
    padding: 12px 24px; 
    border-radius: 8px; 
    font-weight: 700 !important; 
    text-decoration: none;
    transition: 0.3s;
}
.btn-primary:hover { transform: scale(1.05); background: #0000CC; }

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.line {
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 10px;
    transition: 0.3s;
}

.menu-toggle.open .line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open .line:nth-child(2) { opacity: 0; }
.menu-toggle.open .line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 768px) {
    .bar-flex { justify-content: center; font-size: 11px; }
    .logo-img { height: 75px; } /* Un poco más pequeño en móviles */
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed; 
        top: 130px; /* Ajusta según la suma de top-bar + header */
        left: -100%; 
        width: 100%; 
        height: calc(100vh - 115px);
        background: #fff; 
        transition: 0.4s ease-in-out; 
        padding: 40px 5%;
        border-top: 1px solid #eee;
        z-index: 999; /* Para que siempre esté por encima del contenido */
        overflow-y: auto; /* Permite scroll dentro del menú si hay muchos links */
    }
    .nav-menu.active { left: 0; }
    .nav-list { flex-direction: column; gap: 25px; align-items: flex-start; }
    .nav-link { font-size: 18px; width: 100%; }
    .btn-primary { width: 100%; text-align: center; }
}
/* Bloqueo total del scroll cuando el menú está abierto */
body.no-scroll {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed; /* Esto garantiza que en iOS no se mueva nada */
    width: 100%;
}

/* Fin del Header */



/* Comienzo del Footer */

    :root {
        --footer-bg: #0f172a;
        --accent: #2563eb;
        --accent-light: #60a5fa;
        --text-muted: #94a3b8;
    }

    .footer-inmueble { background: var(--footer-bg); color: #cbd5e1; padding: 80px 0 0; font-family: 'Inter', sans-serif; position: relative; }
    
    /* LOGO MEJORADO Y CENTRADO */
    .footer-logo-wrapper { display: block; margin-bottom: 25px; }
    .logo-img { 
        max-height: 75px; 
        width: auto; 
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
        transition: transform 0.3s ease;
    }

    /* CONTENEDORES */
    .footer-container { 
        max-width: 1200px; margin: 0 auto; 
        display: grid; 
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr; 
        gap: 40px; padding: 0 20px; 
    }
    .footer-desc { font-size: 14px; line-height: 1.7; color: var(--text-muted); margin-bottom: 30px; }

    /* REDES SOCIALES */
    .social-links { display: flex; gap: 12px; }
    .social-icon { 
        width: 40px; height: 40px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
        border-radius: 10px; display: flex; align-items: center; justify-content: center; 
        color: white; text-decoration: none; transition: 0.3s;
    }
    .social-icon:hover { background: var(--accent); transform: translateY(-3px); }
    .social-icon svg { width: 18px; height: 18px; }

    /* TITULOS */
    .footer-col h4 { color: white; margin-bottom: 25px; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
    .footer-col h4::after { content: ''; display: block; width: 30px; height: 3px; background: var(--accent); margin-top: 8px; border-radius: 2px; }

    /* LINKS */
    .footer-links { list-style: none; padding: 0; }
    .footer-links li { margin-bottom: 12px; }
    .footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: 0.3s; }
    .footer-links a:hover { color: white; padding-left: 8px; }

    /* SOPORTE Y CONTACTO (HÍBRIDO) */
    .support-box { display: flex; flex-direction: column; gap: 15px; }
    .support-item { border-left: 2px solid rgba(255,255,255,0.1); padding-left: 15px; }
    .support-item small { display: block; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
    .support-item span { color: white; font-size: 14px; font-weight: 600; }

    .contact-pill { 
        display: flex; align-items: center; gap: 12px; 
        padding: 12px; background: rgba(37, 211, 102, 0.05); 
        border: 1px solid rgba(37, 211, 102, 0.2); border-radius: 12px;
        text-decoration: none; color: #cbd5e1; transition: 0.3s;
        font-size: 14px; margin-top: 10px;
    }
    .contact-pill:hover { background: #25d366; color: white; border-color: #25d366; }
    .icon-blob { 
        width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
        background: #25d366; color: white; border-radius: 8px; flex-shrink: 0;
    }
    .icon-blob svg { width: 16px; height: 16px; }

    /* BOTTOM */
    .footer-bottom { text-align: center; margin-top: 60px; padding: 30px 20px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 13px; color: #64748b; }
    .bottom-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
    .legal-links { display: flex; gap: 20px; }
    .legal-links a { color: #64748b; text-decoration: none; }
    .legal-links a:hover { color: white; }

    /* RESPONSIVE CORREGIDO */
    @media (max-width: 1024px) {
        .footer-container { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 580px) {
        .footer-container { grid-template-columns: 1fr; text-align: center; }
        
        .footer-logo-wrapper { display: flex; justify-content: center; margin-bottom: 30px; }
        .logo-img { max-height: 85px; } 
        
        .social-links { justify-content: center; margin-bottom: 20px; }
        
        .support-box { align-items: center; }
        .support-item { border-left: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0 0 10px 0; width: 200px; }
        .contact-pill { justify-content: center; max-width: 280px; margin: 10px auto 0; }
        
        .footer-col h4::after { margin: 8px auto 0; }
        .bottom-container { flex-direction: column; }
    }
/* Fin del Footer */