:root {
    --bg: #ffffff;
    --text: #0a0a0a;
    --accent: #d4af37;
    --grey: #f9f9f9;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
    height: 90px; 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo-img {
    height: 50px !important;
    width: auto;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

/* Botón Hamburguesa */
.menu-toggle {
    display: none; /* Oculto en PC */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text);
    transition: 0.3s;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

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

/* --- HERO & SECTIONS --- */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; padding-top: 90px; }
.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; width: 90%; }
.hero-logo-img { max-width: 450px; width: 100%; height: auto; mix-blend-mode: multiply; }
.hero-content h1 { font-size: 3.5rem; font-weight: 300; letter-spacing: -1px; line-height: 1.1; }

.services { padding: 120px 8%; background-color: var(--grey); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { padding: 50px; background: white; border: 1px solid #eee; transition: 0.5s; }
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }

.expertise-modern { padding: 140px 8%; }
.expertise-container { display: flex; gap: 100px; }
.expertise-header { flex: 1; position: sticky; top: 120px; }
.expertise-header h2 { font-size: 3.5rem; font-weight: 200; margin: 20px 0; }
.expertise-image-container { margin-top: 50px; width: 100%; max-width: 350px; }
.expertise-image { width: 100%; object-fit: cover; }
.expertise-list { flex: 1.5; }
.expertise-item { padding: 60px 0; border-bottom: 1px solid #eee; }

/* --- SECCIÓN DE CONTACTO AJUSTADA --- */
.contact-section { padding: 140px 8%; border-top: 1px solid #f0f0f0; }
.contact-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 120px; }

.contact-info h2 { 
    font-size: 3.5rem; 
    font-weight: 200; 
    margin-top: 20px; 
    margin-bottom: 30px; 
    line-height: 1.2; 
}

.contact-info p { 
    margin-bottom: 40px; 
    line-height: 1.6; 
    color: #444; 
}

.direct-contact p { 
    margin-bottom: 15px; 
    font-size: 0.9rem; 
    letter-spacing: 0.5px; 
}

.contact-form { display: flex; flex-direction: column; gap: 30px; }
.form-group { margin-bottom: 10px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px 0; border: none; border-bottom: 1px solid #e0e0e0; background: transparent; font-family: inherit; }
.btn-submit { padding: 18px 50px; background: #000; color: #fff; border: 1px solid #000; cursor: pointer; text-transform: uppercase; letter-spacing: 2px; transition: 0.3s; }
.btn-submit:hover { background: var(--accent); border-color: var(--accent); }

footer { padding: 80px 8%; text-align: center; border-top: 1px solid #f9f9f9; }

/* --- AJUSTE TOTAL PARA TABLETS Y MÓVILES (992px hacia abajo) --- */
@media (max-width: 992px) {
    .expertise-container, 
    .contact-container { 
        display: flex !important;
        flex-direction: column !important; 
        gap: 40px; 
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden; 
    }

    .expertise-header, 
    .contact-info, 
    .contact-form-container { 
        position: static; 
        width: 100% !important;
        max-width: 100% !important;
        text-align: left;
    }

    .expertise-header h2, 
    .contact-info h2 { 
        font-size: 2.4rem; 
        line-height: 1.2;
    }

    .contact-section {
        padding: 60px 5%; 
    }

    .form-group input, 
    .form-group textarea {
        width: 100% !important;
        box-sizing: border-box; 
    }
}

/* --- AJUSTE ESPECÍFICO PARA CELULARES (768px hacia abajo) --- */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
    }

    .nav-links.active { right: 0; }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-logo-img { max-width: 260px; }
    
    .grid { 
        display: flex;
        flex-direction: column;
        gap: 20px; 
    }
}