/* open-sans-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/open-sans-v43-latin-regular.woff2') format('woff2');
}
/* open-sans-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/open-sans-v43-latin-600.woff2') format('woff2');
}
/* open-sans-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/open-sans-v43-latin-700.woff2') format('woff2');
}
/* montserrat-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/montserrat-v30-latin-regular.woff2') format('woff2');
}
/* montserrat-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/montserrat-v30-latin-600.woff2') format('woff2');
}
/* montserrat-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/montserrat-v30-latin-700.woff2') format('woff2');
}

/* ============================================
   VARIABLES DE COLORES - NUEVA PALETA
   ============================================ */
:root {
    /* Azul Principal - Profesional y Confiable */
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e3a8a;
    
    /* Naranja Acento - Energía y Calidez */
    --accent-orange: #f97316;
    --accent-orange-light: #fb923c;
    --accent-orange-dark: #ea580c;
    
    /* Colores Complementarios */
    --success-green: #10b981;
    --price-red: #ef4444;
    
    /* Grises Neutros */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0f172a;
    
    /* Fondos */
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
}

/* ============================================
   GENERAL STYLES
   ============================================ */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--gray-700);
    background-color: var(--bg-light);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
}

/* ============================================
   HEADER - AZUL PROFESIONAL
   ============================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .navbar {
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header .navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.navbar-logo {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.main-header .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin-left: 15px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.main-header .navbar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.main-header .navbar-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   HERO SECTION - DEGRADADO AZUL MODERNO
   ============================================ */
.page-hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(59, 130, 246, 0.85) 100%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-hero p.lead {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
}

/* ============================================
   SEARCH BAR SECTION
   ============================================ */
.search-bar-section {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.search-form {
    background-color: var(--bg-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
}

.search-form .form-group label {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.search-form .form-control {
    border-radius: 8px;
    border: 2px solid var(--gray-200);
    padding: 12px;
    transition: all 0.3s ease;
}

.search-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
}

.search-form .btn-primary {
    background: var(--primary-blue);
    border: none;
    font-size: 1.1rem;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.search-form .btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 35px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.15);
    border-color: var(--primary-blue-light);
}

.service-card .service-icon {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 3rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--accent-orange);
    transform: scale(1.1);
}

.service-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.service-card .card-text {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ============================================
   FEATURED PROPERTIES SECTION
   ============================================ */
.featured-properties-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

.property-card {
    background-color: var(--bg-white);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    height: 100%;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.property-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover img {
    transform: scale(1.05);
}

.property-card .card-body {
    padding: 25px;
}

.property-card .badge {
    font-size: 0.85rem;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
}

.property-card .badge-primary {
    background-color: var(--primary-blue);
}

.property-card .badge-success {
    background-color: var(--success-green);
}

.property-card .badge-secondary {
    background-color: var(--gray-600);
}

.property-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 15px;
    margin-bottom: 10px;
    min-height: 60px;
}

.property-card .price-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--price-red);
    margin-top: 10px;
    margin-bottom: 15px;
}

.property-card .btn-details {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.property-card .btn-details:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 64, 175, 0.3);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--primary-blue);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--accent-orange);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-orange-dark);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER - AZUL PROFESIONAL
   ============================================ */
.main-footer {
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
    color: #fff;
    padding: 4rem 0 2rem;
    font-size: 0.95rem;
}

.main-footer h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.main-footer p, .main-footer ul {
    color: rgba(255, 255, 255, 0.85);
}

.main-footer ul {
    list-style: none;
    padding: 0;
}

.main-footer ul li {
    margin-bottom: 10px;
}

.main-footer ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.main-footer ul li a:hover {
    color: #fff;
    transform: translateX(5px);
}

.main-footer .social-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.main-footer .social-links a:hover {
    color: var(--accent-orange);
    transform: translateY(-3px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.bg-light-custom {
    background-color: var(--bg-light);
}

.text-primary-custom {
    color: var(--primary-blue);
}

.text-secondary-custom {
    color: var(--accent-orange);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991.98px) {
    .main-header .navbar-nav .nav-link {
        margin-left: 0;
        margin-bottom: 5px;
        text-align: center;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .page-hero p.lead {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .page-hero {
        padding: 60px 0;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p.lead {
        font-size: 1rem;
    }
    
    .search-form {
        padding: 20px;
    }
    
    .search-form .form-group {
        margin-bottom: 15px;
    }
    
    .search-form .btn-primary {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .property-card .card-title {
        min-height: auto;
    }
}