:root {
    --primary: #1a5276;
    --secondary: #f39c12;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER - DISEÑO OPCIÓN 3 (Degradado Moderno)
   ============================================ */

/* Header principal */
.new-header {
    background: linear-gradient(135deg, #1a5276 0%, #0a1a2a 100%);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Header original (mantener por compatibilidad) */
header {
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo container - NUEVO ESTILO */
.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
}

/* Texto del logo - NUEVO ESTILO */
.logo-text-container {
    border-left: 2px solid #D4AF37;
    padding-left: 20px;
    margin-left: 20px;
}

.logo-main-text {
    color: white;
    font-size: 2.3rem;
    margin: 0;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
}

.logo-sub-text {
    color: #D4AF37;
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-tagline {
    color: #a0c4e0;
    font-size: 0.9rem;
    margin: 8px 0 0 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Logo original (mantener por compatibilidad) */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--secondary);
}

.logo i {
    font-size: 2rem;
    color: var(--secondary);
}

/* Navegación - NUEVO ESTILO */
.nav-menu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 10px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: rgba(212, 175, 55, 0.2);
    color: #D4AF37;
}

/* Botón de inicio de sesión - NUEVO ESTILO */
.login-btn {
    background-color: #D4AF37 !important;
    color: #0a1a2a !important;
    font-weight: 700 !important;
}

.login-btn:hover {
    background-color: #c19b2a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

/* Navegación original (mantener por compatibilidad) */
nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    padding: 5px 0;
    position: relative;
}

nav a:hover {
    color: var(--secondary);
}

nav a.active {
    color: var(--secondary);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
}

/* Botón de menú móvil */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   RESTO DE TUS ESTILOS ORIGINALES
   ============================================ */

/* Hero */
.hero {
    background: linear-gradient(rgba(26, 82, 118, 0.8), rgba(26, 82, 118, 0.9)), url('https://images.unsplash.com/photo-1544551763-46a013bb70d5?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Search & Filters */
.search-section {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.search-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.search-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary);
}

.filter-group select, .filter-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: flex-end;
}

.search-btn:hover {
    background-color: #e67e22;
}

/* Properties Grid */
.properties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.properties-header h2 {
    color: var(--primary);
    font-size: 2rem;
}

.properties-count {
    color: var(--secondary);
    font-weight: 600;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 4rem;
}

.property-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.property-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-bottom: 4px solid var(--secondary);
}

.property-info {
    padding: 1.5rem;
}

.property-price {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.property-location {
    color: #666;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1rem;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
}

.feature i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.property-type {
    position: absolute;
    background-color: var(--secondary);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    top: 0;
    left: 0;
}

/* About Section */
.about-section {
    background-color: white;
    padding: 4rem 0;
    margin: 3rem 0;
}

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-content h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.team-member {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--light);
    border-radius: var(--border-radius);
}

.team-member h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
    background-color: white;
    padding: 4rem 0;
    margin: 3rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info h2, .contact-form h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-detail i {
    color: var(--secondary);
    font-size: 1.2rem;
    min-width: 30px;
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form button {
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #e67e22;
}

.map-container {
    margin-top: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-links h4, .footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Page Content */
.page-content {
    min-height: 60vh;
    padding: 3rem 0;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background-color: #e67e22;
}

/* Save Button (para formularios) */
.save-btn {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-btn:hover {
    background-color: #219653;
}

/* ============================================
   ESTILOS PARA CONTENIDO LEGAL
   ============================================ */

.legal-content {
    background-color: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.legal-content h1 {
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb-container {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-top: 0;
}

/* ============================================
   FORMULARIOS MEJORADOS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

/* ============================================
   RESPONSIVE - PARA EL NUEVO HEADER
   ============================================ */

@media (max-width: 768px) {
    /* Ajustes de texto del logo */
    .logo-main-text {
        font-size: 1.8rem;
    }
    
    .logo-sub-text {
        font-size: 1.6rem;
    }
    
    .logo-text-container {
        padding-left: 15px;
        margin-left: 15px;
    }
    
    /* Navegación */
    .nav-menu a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* Mostrar botón de menú móvil */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Menú móvil desplegable */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1a5276 0%, #0a1a2a 100%);
        display: none;
        padding: 20px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
    }
    
    .nav-menu li {
        margin: 10px 0;
    }
}

/* ============================================
   RESPONSIVE ORIGINAL (tus estilos)
   ============================================ */

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        gap: 15px;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .mobile-menu-btn {
        display: block;
        position: static;
        margin-left: auto;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
    }
    
    .search-container {
        grid-template-columns: 1fr;
    }
    
    .properties-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .search-section {
        padding: 1.5rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container, .about-container {
        grid-template-columns: 1fr;
    }
    
    .page-content {
        padding: 2rem 0;
    }
}