/* ==========================================================================
   CONFIGURACIÓN MAESTRA - LÓPEZ INMOBILIARIA (VERSIÓN V5 ULTRA PREMIUM)
   ========================================================================== */

:root {
    --azul-logo: #002D5B;
    --dorado: #C5A059;
    --gris-claro: #f4f7f6;
    --gris-oscuro: #333;
    --blanco: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-premium: 0 15px 35px rgba(0,0,0,0.15);
}

/* --- RESET Y PROTECCIÓN DE ESCALA --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--gris-oscuro);
    background-color: var(--blanco);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 80px; /* Espacio para el header fijo */
}

/* --- OVERLAY (FONDO OSCURECIDO) --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 45, 91, 0.6); /* Azul logo traslúcido */
    backdrop-filter: blur(4px); /* Efecto elegante de desenfoque */
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
    z-index: 10000; /* Debajo del header y menú lateral */
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- HEADER PREMIUM --- */
.header-premium {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Glassmorphism */
    z-index: 10001;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img { 
    height: 55px; 
    transition: 0.3s;
    object-fit: contain;
}

/* --- NAVEGACIÓN ESCRITORIO --- */
.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--azul-logo);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
    letter-spacing: 0.5px;
}

.nav-menu a:hover { 
    color: var(--dorado); 
}

/* Botón Hamburguesa */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--azul-logo);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
}

/* --- NAVEGACIÓN RESPONSIVA V5 (MÓVIL) --- */
@media (max-width: 992px) {
    body { padding-top: 80px; }
    
    .menu-toggle {
        display: block !important;
        position: relative;
        z-index: 10003; /* Por encima del menú lateral */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Totalmente oculto a la derecha */
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--azul-logo);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10002;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }

    .nav-menu.active {
        right: 0; /* Entra el Sidebar */
    }

    .nav-menu a {
        color: white !important;
        font-size: 1.2rem;
        font-weight: 600;
        padding: 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: 0.3s;
    }

    .nav-menu a:hover {
        background: rgba(197, 160, 89, 0.2);
        color: var(--dorado) !important;
    }
}

/* --- SPLASH SCREEN --- */
#splash-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--azul-logo);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.splash-logo {
    width: 150px;
    margin-bottom: 25px;
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar {
    width: 140px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    width: 40%; height: 100%;
    background: var(--dorado);
    animation: loading 1.5s infinite ease-in-out;
}

/* --- FOOTER --- */
.footer-simple {
    background-color: var(--azul-logo);
    color: white;
    padding: 50px 0;
    text-align: center;
    margin-top: auto;
    border-top: 3px solid var(--dorado);
}

/* --- ANIMACIONES --- */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}