.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 72px;
    padding: 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header .logo a,
.header .nav a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header.scrolled .logo a,
.header.scrolled .nav a {
    color: #111111;
}

.logo {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav a {
    margin-left: 32px;
    font-size: 14px;
    font-weight: 400;
}

.hero {
    position: relative;
    height: 100vh;
    background-image: url("../assets/img/hero-arquitectura.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 10%;
    color: #ffffff;
    padding-top: 72px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 400;
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 18px;
    max-width: 480px;
    line-height: 1.5;
    color: #eaeaea;
}

.intro {
    padding: 120px 10%;
}

.intro p {
    max-width: 720px;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.footer {
    padding: 48px;
    text-align: center;
    font-size: 14px;
    color: #777;
}

.projects {
    padding: 120px 10%;
}

.projects h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 64px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.project img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.project-info {
    margin-top: 16px;
}

.project-info h3 {
    font-size: 16px;
    font-weight: 500;
}

.project-info span {
    font-size: 14px;
    color: #777;
}

/* =====================
   MOBILE (<= 768px)
   ===================== */
@media (max-width: 768px) {

    /* HEADER */
    .header {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav a {
        font-size: 0.9rem;
    }

    /* HERO */
    .hero {
        min-height: 70vh;
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }

    /* INTRO */
    .intro {
        padding: 60px 20px;
    }

    .intro p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* PROJECTS */
    .projects {
        padding: 60px 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project-info h3 {
        font-size: 1rem;
    }

    .project-info span {
        font-size: 0.85rem;
    }

    /* FOOTER */
    .footer {
        padding: 32px 20px;
        font-size: 0.85rem;
    }
}
