/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Paleta de Colores Premium */
    --bg-dark: #0f1115;       /* Fondo principal */
    --bg-card: #161b22;       /* Fondo de tarjetas */
    --text-main: #e0e0e0;     /* Texto principal */
    --text-muted: #a0a0a0;    /* Texto secundario */
    --accent-gold: #d4af37;   /* Dorado metálico clásico */
    --accent-gold-hover: #b59020;
    --border-color: #333333;
    
    /* Tipografía */
    --font-serif: 'Playfair Display', serif; /* Títulos */
    --font-sans: 'Montserrat', sans-serif;   /* Cuerpo */
    
    /* Espaciado */
    --container-width: 1200px;
    --section-padding: 80px 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Clases de utilidad */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold {
    color: var(--accent-gold);
}

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin: 15px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* =========================================
   2. BOTONES
   ========================================= */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-gold);
    color: #000;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

.btn-link {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
}

.btn-link:hover {
    border-bottom: 1px solid var(--accent-gold);
    padding-bottom: 2px;
}

/* =========================================
   3. NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(15, 17, 21, 0.95); /* Efecto vidrio oscuro */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo span {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--accent-gold);
    display: block;
    letter-spacing: 2px;
    line-height: 0.8;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

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

.btn-nav {
    border: 1px solid var(--text-main);
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-nav:hover {
    background: var(--text-main);
    color: #000;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    width: 100%;
    /* Usamos nexo1.jpg como fondo principal */
    background-image: url('nexo1.jpg'); 
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente oscuro para asegurar legibilidad */
    background: linear-gradient(rgba(15, 17, 21, 0.7), rgba(15, 17, 21, 0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeIn Up 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #ddd;
    font-weight: 300;
}

/* =========================================
   5. ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 4px;
    box-shadow: 20px 20px 0px rgba(212, 175, 55, 0.1); /* Sombra dorada sutil */
    height: 500px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.stats-grid {
    display: flex;
    gap: 40px;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* =========================================
   6. SERVICES
   ========================================= */
.services-section {
    background-color: #121418; /* Ligeramente diferente al body */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--accent-gold);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   7. PROPIEDADES (CARDS)
   ========================================= */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.prop-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.prop-img-wrapper img {
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
}

.property-card:hover .prop-img-wrapper img {
    transform: scale(1.05);
}

.tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prop-details {
    padding: 25px;
}

.prop-details h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.prop-details .location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.prop-details .price {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* =========================================
   8. DESARROLLO (GALLERY)
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.gallery-item img {
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* =========================================
   9. CONTACTO Y FORMULARIO
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-list {
    margin-top: 2rem;
}

.info-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.info-list i {
    color: var(--accent-gold);
    width: 30px;
    font-size: 1.2rem;
}

/* Estilo del Formulario Minimalista */
.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input, select, textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
}

select {
    color: var(--text-main);
}
select option {
    background-color: var(--bg-card);
}

.btn-submit {
    background-color: var(--accent-gold);
    color: #000;
    border: none;
    padding: 15px 30px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--accent-gold-hover);
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials a {
    color: var(--text-muted);
    margin-left: 20px;
    font-size: 1.2rem;
}

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

/* =========================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .gallery-item.large {
        grid-column: span 2;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    
    .navbar {
        flex-direction: column;
        padding: 15px;
    }
    
    .nav-links {
        margin: 15px 0;
        gap: 15px;
    }
    
    .form-grid-2 { grid-template-columns: 1fr; }
    
    .section-title { font-size: 2rem; }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}