/* style.css - 404 Consultoria - VERSIÓN FINAL CON MENÚ RESPONSIVE */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #050505;
    --text: #f0f0f0;
    --text-muted: rgba(240, 240, 240, 0.6);
    --nav-height: 100px;
    --spacing: 4vw;
    --highlight: #FFD700;
}

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

body,
html {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    text-transform: none;
    margin: 0;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

/* ============================================ */
/* MENÚ RESPONSIVE - QUE SE VEA COMPLETO */
/* ============================================ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    padding: 0 var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9000;
    mix-blend-mode: difference;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 3rem;
    font-family: 'Syne', sans-serif;
    font-weight: 400;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    font-family: 'Syne', sans-serif;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

main {
    padding-top: var(--nav-height);
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('img/001.png') center/cover no-repeat;
    filter: brightness(0.5);
    z-index: -1;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 600;
}

.hero p {
    font-size: clamp(1.2rem, 2vw, 2rem);
    margin-top: 1rem;
    font-weight: 300;
}

.home-section {
    padding: 10rem var(--spacing);
}

.section-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

.section-title h2 {
    font-weight: 600;
    text-transform: uppercase;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card:nth-child(1) {
    grid-column: 1 / 8;
    aspect-ratio: 16 / 9;
}

.project-card:nth-child(2) {
    grid-column: 9 / 13;
    aspect-ratio: 3 / 4;
    margin-top: 10rem;
}

.project-card:nth-child(3) {
    grid-column: 2 / 6;
    aspect-ratio: 4 / 5;
}

.project-card:nth-child(4) {
    grid-column: 7 / 13;
    aspect-ratio: 16 / 9;
    margin-top: -5rem;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
    filter: grayscale(100%);
}

.project-card:hover .project-img {
    transform: scale(1);
    filter: grayscale(0%);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
}

.project-info p {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #fff;
    font-weight: 300;
}

.services-list {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.service-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    transition: padding 0.3s ease;
}

.service-item:hover {
    padding-left: 2rem;
    padding-right: 2rem;
    background: rgba(255, 255, 255, 0.03);
}

.service-title {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    width: 40%;
    transition: color 0.3s ease;
    font-weight: 600;
}

.service-desc {
    width: 40%;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    pointer-events: none;
    font-weight: 300;
}

.service-item:hover .service-title {
    color: var(--highlight);
}

.service-item:hover .service-desc {
    opacity: 0.8;
    transform: translateY(0);
}

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

.about-text h2 {
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-weight: 300;
}

.about-img-container {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.8s ease, transform 1s ease;
}

.about-img-container:hover .about-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.hover-target:hover {
    color: var(--highlight);
    transition: color 0.3s ease;
    cursor: pointer;
}

footer {
    padding: 6vh var(--spacing);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 1rem;
    font-weight: 300;
}

/* ============================================ */
/* MÓVIL - Ajustes para que el menú entre completo */
/* ============================================ */

@media (max-width: 900px) {
    :root {
        --spacing: 1.5rem;
        --nav-height: 70px;
    }

    nav {
        padding: 0 1rem;
    }

    .logo {
        font-size: 0.9rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.75rem;
    }

    .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .project-card {
        margin-top: 0 !important;
        aspect-ratio: auto !important;
    }

    .project-img {
        width: 100%;
        height: auto;
    }

    .service-item {
        flex-direction: column;
        gap: 1rem;
    }

    .service-title {
        width: 100%;
        font-size: 1.8rem;
    }

    .service-desc {
        width: 100%;
        opacity: 1;
        transform: translateY(0);
        margin-top: 1rem;
        display: none;
    }

    .service-item:hover .service-desc {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .home-section {
        padding: 5rem var(--spacing);
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 0.8rem;
        font-size: 0.7rem;
    }

    .logo {
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero p {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
    }

    .project-info {
        padding: 1rem;
    }

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

    .project-info p {
        font-size: 0.7rem;
    }

    footer {
        flex-direction: column;
        text-align: center;
        padding: 3rem var(--spacing);
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 0.6rem;
        font-size: 0.65rem;
    }

    .logo {
        font-size: 0.7rem;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-desc {
        font-size: 0.9rem;
    }

    .about-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.4rem;
        font-size: 0.6rem;
    }

    .logo {
        font-size: 0.65rem;
    }
}

img {
    max-width: 100%;
    height: auto;
}