/* ===================================
   INMOBILIARIA RETA - ESTILOS PRINCIPALES
   ===================================*/

/* Variables de colores modernos para inmobiliaria */
:root {
    /* Colores principales - Elegante y profesional */
    --primary-navy: #1a365d;
    --primary-blue: #2c5aa0;
    --primary-teal: #0891b2;
    --primary-cyan: #06b6d4;
    
    /* Colores de acento - Calidez y confianza */
    --accent-gold: #f59e0b;
    --accent-amber: #fbbf24;
    --accent-orange: #fb923c;
    --accent-coral: #ff7f50;
    
    /* Neutros elegantes */
    --gray-dark: #1f2937;
    --gray-medium: #6b7280;
    --gray-light: #f3f4f6;
    --gray-lighter: #f9fafb;
    --white: #ffffff;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #1a365d 0%, #2c5aa0 50%, #0891b2 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fb923c 100%);
    --gradient-soft: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.2);
}

/* Reset y configuración base */
* {
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===================================
   NAVBAR STYLES - Elegante y Moderno
   ===================================*/
.navbar {
    padding: 0.8rem 0;
    background: var(--gradient-primary) !important;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--white) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand:hover {
    color: var(--accent-amber) !important;
    transform: scale(1.03);
}

.navbar-brand i {
    margin-right: 10px;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
    margin: 0 6px;
    padding: 10px 20px !important;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.navbar-nav .nav-link i {
    margin-right: 6px;
    font-size: 0.9rem;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--accent-amber);
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.navbar-nav .nav-link.active {
    color: var(--gray-dark) !important;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.navbar-nav .nav-link.active::before {
    display: none;
}

.navbar-nav .nav-link.active:hover {
    background: var(--accent-amber);
    color: var(--white) !important;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    border-color: var(--white);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    transition: all 0.3s ease;
}

/* Mobile navbar improvements */
@media (max-width: 991.98px) {
    .navbar-nav {
        background: rgba(248, 249, 250, 0.2);
        border-radius: 15px;
        padding: 15px;
        margin-top: 15px;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(22, 160, 133, 0.1);
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
        text-align: center;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* ===================================
   DROPDOWN STYLES
   ===================================*/
.dropdown-menu {
    
    backdrop-filter: blur(20px);
    border: 1px solid rgba(22, 160, 133, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    margin-top: 10px;
    min-width: 200px;
}

.dropdown-item {
    color: #2c3e50;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 2px 8px;
    display: flex;
    align-items: center;
}

.dropdown-item:hover {
    background: rgba(22, 160, 133, 0.1);
    color: #16a085;
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    border-color: rgba(22, 160, 133, 0.2);
    margin: 8px 15px;
}

/* ===================================
   UTILIDADES GENERALES
   ===================================*/
.back-button {
    position: fixed;
    top: 90px;
    left: 20px;
    z-index: 1000;
    background-color: white;
    border: 2px solid #16a085;
    color: #16a085;
    border-radius: 50px;
    padding: 10px 20px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #16a085;
    color: white;
    text-decoration: none;
}

.btn-custom {
    background-color: #16a085;
    border-color: #16a085;
    color: white;
    padding: 12px 30px;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background-color: #138d75;
    border-color: #138d75;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(22, 160, 133, 0.3);
}
