/* Modern Styles for Expertos en Marketing Inmobiliario */

:root {
    --primary-color: #283593;
    --primary-dark: #1a237e;
    --secondary-color: #f5f5f5;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --accent-color: #e8eaf6;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --border-radius: 8px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

.section-padding {
    padding: var(--spacing-lg) 0;
}

.section-bg {
    background-color: var(--secondary-color);
}

/* Navbar / Top Bar */
.top-bar {
    background-color: var(--secondary-color);
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
}

.top-bar a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0 4rem;
    background: linear-gradient(to right, #ffffff 50%, #f0f4f8 50%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-content h1 span {
    display: block;
    color: var(--text-light);
    font-size: 2.5rem;
}

.subheadline {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image img {
    box-shadow: var(--shadow);
    border-radius: 20px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* About Section */
.about-emi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.big-stat {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

/* Features/Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.step-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* Personal Shopper & Investment */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.split-image {
    height: 100%;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.split-content {
    background-color: var(--primary-color); /* Fallback */
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffffff 100%);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.split-content h2 {
    color: var(--primary-color);
}

.split-content p {
    margin-bottom: 1.5rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Testimonials */
.testimonials {
    background-color: var(--white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 20px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
}

.testimonial-author {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Final CTA */
.final-cta {
    background-color: var(--accent-color);
    text-align: center;
}

/* Footer */
footer {
    background-color: #f9f9f9;
    padding: 4rem 0 2rem;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.footer-social a {
    color: var(--primary-color);
}

.footer-links {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero .container,
    .about-emi,
    .split-section {
        grid-template-columns: 1fr;
    }
    
    .hero {
        background: var(--white);
        padding-top: 2rem;
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h1 span {
        font-size: 1.8rem;
    }
    
    .split-image {
        height: 300px;
    }
    
    .split-content {
        padding: 2rem;
    }
}
