/* Performance-Optimized Minimalist Design System */


:root {
    --primary: #E2EAD3;
    /* Verde Menta Suave */
    --accent: #1A1A1A;
    /* Negro Carbón */
    --text-dark: #1A1A1A;
    --text-body: #333333;
    /* Gris Profundo */
    --bg-main: #FFFFFF;
    /* Blanco Puro */
    --bg-secondary: #F4F4F4;
    /* Gris Ceniza */
    --white: #ffffff;
    --gray: #666666;
    --dark-soft: #F9F9F9;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 70px;
}

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

/* Performance: Prevent layout shifts */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.brand {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--accent);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    contain: layout;
}

.nav-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    border-radius: 4px;
    position: relative;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.brand-icon::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 15%;
    width: 70%;
    height: 2px;
    background: var(--white);
}

.brand-text {
    line-height: 1.1;
}

.brand-title {
    display: block;
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 700;
}

.brand-subtitle {
    display: block;
    font-size: 0.6rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-body);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: var(--transition);
}

/* Hero Section - Optimized */
#hero {
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    /* Hero image is the LCP, we should ensure it loads fast once hosted */
    background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.5)),
        url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&q=60&w=1200');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    contain: content;
}

#hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--accent);
}

.tagline {
    font-size: 1.15rem;
    color: var(--text-body);
    margin: 1.5rem 0 2.5rem 0;
    max-width: 650px;
}

/* Sections */
section {
    padding: 80px 0;
    contain: content;
}

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

/* Services Grid - Fixed to 4 columns on desktop */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--bg-secondary);
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    transform: translateY(-5px);
}

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

/* About Section */
.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-content {
    flex: 1.2;
    min-width: 320px;
}

.about-image {
    flex: 0.8;
    min-width: 320px;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
}

/* Locations */
.locations-pill {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pill {
    padding: 0.6rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

.pill:hover {
    background: var(--primary);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: var(--dark-soft);
    padding: 2rem;
    border-radius: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #333333;
    transform: scale(1.02);
}

/* Footer & WhatsApp */
footer {
    background: var(--accent);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

footer p {
    opacity: 0.6;
    font-size: 0.8rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

/* Performance: Reduce painting for animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

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

    .about-flex {
        flex-direction: column-reverse;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }

    #hero {
        padding-top: 60px;
        text-align: center;
    }

    #hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .tagline {
        margin: 1.5rem auto;
    }

    section {
        padding: 50px 0;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
    }
}