/*
 * Estilos Profesionales 2026 - Nexus Realty
 * Paleta: Tonos neutros, acentos en azul y dorado
 */

:root {
    --color-bg-light: #f5f5f5; /* Fondo Claro */
    --color-primary: #2c3e50; /* Azul Marino */
    --color-secondary: #d4af37; /* Dorado */
    --color-text-dark: #333333; /* Texto Oscuro */
    --color-text-muted: #777777; /* Texto Secundario */
    --font-family-primary: 'Open Sans', sans-serif; /* Fuente Moderna */
    --spacing-unit: 1rem;
}

/* Base Reset and Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 2) 0;
}

h1, h2, h3, h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-unit);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-secondary);
}

/* Header and Navigation */
.header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
    padding: var(--spacing-unit) 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav a {
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
    left: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    margin: 5px 0;
    transition: 0.4s;
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 5%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* CTA Button Style */
.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s, transform 0.1s;
}

.cta-button:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

/* Properties Section */
.properties {
    padding: calc(var(--spacing-unit) * 4) 0;
    text-align: center;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.property-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tag {
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.tag.exclusive {
    background-color: var(--color-secondary);
    color: #ffffff;
}

.tag.new {
    background-color: var(--color-primary);
    color: #ffffff;
}

.tag.sold {
    background-color: var(--color-text-muted);
    color: #ffffff;
}

.details-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: bold;
}

/* Services Section */
.services {
    background-color: #f9f9f9;
    padding: calc(var(--spacing-unit) * 4) 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    padding: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    transition: background 0.3s, border-color 0.3s;
}

.service-item:hover {
    background: #f0f0f0;
    border-color: var(--color-primary);
}

.service-item .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.service-item h4 {
    color: var(--color-text-dark);
}

/* Contact Section */
.contact {
    padding: calc(var(--spacing-unit) * 4) 0;
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    color: var(--color-text-dark);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(44, 62, 80, 0.1);
}

/* Footer */
.footer {
    background-color: #ffffff;
    padding: var(--spacing-unit) 0;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: var(--spacing-unit) 0;
}

.footer-links a {
    margin-left: 1.5rem;
    color: var(--color-text-muted);
}

/* ==================================================
   RESPONSIVENESS (Mobile First)
   ================================================== */

/* Tablet and Smaller Desktops (Max 900px) */
@media (max-width: 900px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid #e0e0e0;
        padding: 1rem 0;
    }

    .nav.active {
        display: flex;
    }

    .nav ul {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .nav li {
        padding: 0.75rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links a {
        margin: 0 0.75rem;
    }
}

/* Mobile Devices (Max 600px) */
@media (max-width: 600px) {
    .hero {
        height: 80vh;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }

    .property-grid, .service-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}
