/* --- VARIABLES Y CONFIGURACIÓN GLOBAL --- */
:root {
    --primary-blue: #0F3460;    /* Azul Corporativo (Seriedad/Confianza) */
    --accent-gold: #D4AF37;     /* Dorado para botones y destaques */
    --soft-green: #2E7D32;      /* Verde para sección Terreno */
    --text-dark: #1A1A1A;
    --text-gray: #555555;
    --bg-light: #F4F6F8;
    --bg-white: #FFFFFF;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* --- CLASES DE UTILIDAD --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }

.mt-20 { margin-top: 20px; }

/* --- NAVEGACIÓN --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 52, 96, 0.95); /* Azul con transparencia */
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.btn-nav {
    border: 1px solid white;
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-nav:hover {
    background: white;
    color: var(--primary-blue) !important;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax suave */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.slogan {
    font-size: 1.3rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- BOTONES --- */
.btn-primary {
    background-color: var(--accent-gold);
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    transition: var(--transition);
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold);
    /* En fondos claros (secciones) el hover debe oscurecer el texto */
}

/* Ajuste para botón primario en fondo blanco */
.section-container .btn-primary:hover {
    color: #bfa15f; 
    border-color: #bfa15f;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid white;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-blue);
}

/* --- SECCIONES GENERALES --- */
.section-container {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin: 10px 0;
}

.tag {
    display: inline-block;
    background-color: var(--soft-green);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag.housing {
    background-color: var(--primary-blue);
}

/* --- LAYOUTS DE CONTENIDO --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Clase para invertir el orden en la sección de casa (Texto a la derecha) */
.split-layout.reverse .info-block {
    order: 2;
}
.split-layout.reverse .gallery-grid {
    order: 1;
}

.info-block p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.price-tag {
    font-size: 2rem;
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 5px;
}

.financing-text {
    color: var(--soft-green) !important;
    font-weight: 600;
    font-size: 0.9rem !important;
    margin-bottom: 25px !important;
}

.details-list {
    list-style: none;
    margin: 20px 0;
}

.details-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    color: var(--text-dark);
}

.details-list li i {
    width: 25px;
    color: var(--primary-blue);
    margin-right: 10px;
}

/* --- GALERÍAS (Grid 2x2) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Imágenes extra abajo de la casa */
.extra-images {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}
.extra-images img {
    width: calc(50% - 10px);
    height: 250px;
    object-fit: cover;
}

/* --- SEPARADOR --- */
.separator-banner {
    background-color: var(--primary-blue);
    color: white;
    text-align: center;
    padding: 40px 20px;
}
.separator-banner h3 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- SECCIÓN AGENTE / CONTACTO --- */
.agent-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.agent-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto;
    border-top: 5px solid var(--primary-blue);
}

.agent-card h3 {
    font-size: 2rem;
    color: var(--text-dark);
}

.role {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-style: italic;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
}

.social-btn.tiktok {
    background-color: black;
    color: white;
}

.social-btn.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}

.social-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.contact-cta {
    margin-bottom: 15px;
    font-weight: 600;
}

.whatsapp-big-btn {
    display: block;
    background-color: #25d366;
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-big-btn:hover {
    background-color: #128c7e;
    transform: scale(1.02);
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-blue);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* --- ANIMACIONES --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE (CELULAR) --- */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-links {
        display: none; /* Aquí podrías implementar un menú hamburguesa con JS si quieres */
    }

    /* Mostrar botón de menú en móvil si agregas la lógica JS, por ahora oculto para simplificar */
    
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .split-layout, 
    .split-layout.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* En móvil, el orden siempre es: Imagen primero, Texto después (o al revés, a tu gusto) */
    .split-layout.reverse .info-block { order: initial; }
    .split-layout.reverse .gallery-grid { order: initial; }

    .gallery-grid img {
        height: 150px;
    }
    
    .extra-images {
        flex-direction: column;
    }
    .extra-images img {
        width: 100%;
    }
}