/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0d0d0d;
    color: #f2f0eb;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(12px);
    mix-blend-mode: normal;
}

/* NOMBRE + REDES */

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    white-space: nowrap;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .header-socials a {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        opacity: 0.6;
        transition: opacity 0.3s ease;
    }

        .header-socials a:hover {
            opacity: 1;
        }

/* MENÚ DE NAVEGACIÓN */

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

    .main-nav a {
        position: relative;
        font-size: 13px;
        letter-spacing: 0.05em;
    }

/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .site-header {
        padding: 0 3vw;
    }

    .header-right {
        gap: 25px;
    }

    .main-nav {
        gap: 20px;
    }

    .header-socials {
        gap: 12px;
    }

        .header-socials a {
            font-size: 10px;
        }
}

/* =========================================
   MÓVIL
========================================= */

@media (max-width: 800px) {

    .site-header {
        height: auto;
        min-height: 80px;
        padding: 15px 5vw;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .logo {
        font-size: 12px;
        text-align: center;
    }

    .header-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        position: static;
        inset: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 25px;
        background: transparent;
        opacity: 1;
        visibility: visible;
    }

        .main-nav a {
            font-size: 12px;
        }

    .header-socials {
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px;
    }

        .header-socials a {
            font-size: 10px;
        }

    .menu-toggle {
        display: none;
    }
}


/* =========================================
   MOBILE MENU
========================================= */

.menu-toggle {
    display: none;
    width: 35px;
    height: 30px;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 1px;
        background: #fff;
        transition: 0.3s ease;
    }


/* =========================================
   TYPOGRAPHY
========================================= */

.eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.6;
}

h1,
h2 {
    font-weight: 400;
    letter-spacing: -0.045em;
}

    h1 em,
    h2 em {
        font-family: Georgia, "Times New Roman", serif;
        font-weight: 400;
    }


/* =========================================
   HERO — VÍDEO CENTRADO Y MÁS PEQUEÑO
========================================= */

.hero {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 30px;
    background: #0d0d0d;
}

.hero-video-container {
    max-height: 95vh;
    max-height: 95svh;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #151515;
}

.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .hero-video-container {
        width: 90%;
        max-height: 85svh;
    }
}

/* =========================================
   MÓVIL
========================================= */

@media (max-width: 600px) {

    .hero {
        min-height: 100svh;
        padding: 80px 15px 30px;
    }

    .hero-video-container {
        width: 95%;
        max-height: 70svh;
        aspect-ratio: 16 / 9;
    }

    .hero-video {
        object-fit: cover;
        object-position: center;
    }
}


/* =========================================
   WORK
========================================= */

.work-section {
    padding: 150px 4vw;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 70px;
}

    .section-header h2 {
        margin-top: 10px;
        font-size: clamp(45px, 6vw, 85px);
    }

.filters {
    display: flex;
    gap: 25px;
}

.filter {
    position: relative;
    background: none;
    color: #f2f0eb;
    opacity: 0.45;
    cursor: pointer;
    font-size: 12px;
    letter-spacing: 0.05em;
}

    .filter.active {
        opacity: 1;
    }

    .filter::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 1px;
        background: currentColor;
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .filter.active::after {
        transform: scaleX(1);
    }


/* =========================================
   PROJECT GRID
========================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3vw;
    row-gap: 100px;
}

.project {
    min-width: 0;
}

    .project img:hover {
        transform: scale(1.06);
    }

.project-large {
    margin-top: 120px;
}

.project-wide {
    grid-column: span 2;
    width: 72%;
}

.project-image {
    position: relative;
    display: block;
    width: 100%;
    background: none;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.project-large .project-image {
    aspect-ratio: 16 / 10;
}

.project-wide .project-image {
    aspect-ratio: 3 / 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s cubic-bezier(.2,.6,.2,1), filter 0.5s ease;
}

.project-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
    transition: transform 1s cubic-bezier(.2,.6,.2,1), filter 0.5s ease;
}

.project-youtube-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.project-youtube-preview {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.project-image:hover .project-video-preview {
    transform: scale(1.035);
    filter: brightness(0.7);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-image:hover .project-overlay {
    opacity: 1;
}

.project-info {
    display: flex;
    justify-content: space-between;
    margin-top: 17px;
    font-size: 11px;
}

    .project-info h3 {
        margin-bottom: 3px;
        font-size: 13px;
        font-weight: 400;
    }

    .project-info p {
        opacity: 0.5;
    }

    .project-info > span {
        opacity: 0.5;
    }


/* =========================================
   FILTER ANIMATION
========================================= */

.project.hidden {
    display: none;
}


/* =========================================
   ABOUT
========================================= */

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10vw;
    padding: 180px 4vw;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.about-title h2 {
    max-width: 600px;
    margin-top: 20px;
    font-size: clamp(55px, 7vw, 100px);
    line-height: 0.92;
}

.about-content {
    max-width: 500px;
    padding-top: 40px;
}

    .about-content p {
        margin-bottom: 30px;
        color: rgba(242,240,235,0.65);
        font-size: 15px;
        line-height: 1.8;
    }

    .about-content .about-lead {
        color: #f2f0eb;
        font-size: 22px;
        line-height: 1.4;
    }

.text-link {
    display: inline-block;
    margin-top: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.5);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =========================================
   ABOUT PHOTO
========================================= */

.about-photo {
    width: 100%;
    margin-bottom: 45px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

    .about-photo img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(10%);
        transition: transform 1s cubic-bezier(.2,.6,.2,1), filter 0.4s ease;
    }

    .about-photo:hover img {
        transform: scale(1.025);
        filter: grayscale(0%);
    }


/* =========================================
   CONTACT
========================================= */

.contact-section {
    min-height: 80vh;
    padding: 150px 4vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .contact-section h2 {
        max-width: 900px;
        margin: 25px 0 50px;
        font-size: clamp(60px, 10vw, 150px);
        line-height: 0.85;
    }

.email-link {
    width: fit-content;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 45px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    transition: opacity 0.3s ease;
}

    .email-link:hover {
        opacity: 0.5;
    }

.social-links {
    display: flex;
    gap: 30px;
    margin-top: 70px;
}

    .social-links a {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        opacity: 0.55;
        transition: opacity 0.3s ease;
    }

        .social-links a:hover {
            opacity: 1;
        }


/* =========================================
   FOOTER
========================================= */

.site-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 30px 4vw;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: rgba(242,240,235,0.45);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

    .site-footer span:nth-child(2) {
        text-align: center;
    }

    .site-footer a {
        text-align: right;
    }


/* =========================================
   LIGHTBOX
========================================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5vw;
    background: rgba(5,5,5,0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

    .lightbox.active {
        opacity: 1;
        visibility: visible;
    }

.lightbox-content {
    max-width: 1200px;
    max-height: 90vh;
    text-align: center;
}

    .lightbox-content img {
        display: block;
        max-width: 100%;
        max-height: 80vh;
        object-fit: contain;
    }

#lightbox-title {
    margin-top: 15px;
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    width: 40px;
    height: 40px;
    background: none;
    color: white;
    font-size: 35px;
    font-weight: 200;
    cursor: pointer;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 800px) {

    .site-header {
        height: 70px;
    }

    .menu-toggle {
        display: flex;
        z-index: 101;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 35px;
        background: #0d0d0d;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

        .main-nav.active {
            opacity: 1;
            visibility: visible;
        }

        .main-nav a {
            font-size: 28px;
        }


    /* HERO */

    .hero {
        width: 100%;
        height: 100svh;
        min-height: 0;
        padding: 0;
    }

    .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    /* WORK */

    .work-section {
        padding: 100px 5vw;
    }

    .section-header {
        display: block;
        margin-bottom: 50px;
    }

        .section-header h2 {
            font-size: 55px;
        }

    .filters {
        margin-top: 35px;
        gap: 20px;
    }

    .projects-grid {
        display: block;
    }

    .project,
    .project-large,
    .project-wide {
        width: 100%;
        margin-top: 0;
        margin-bottom: 65px;
    }

        .project-image,
        .project-large .project-image,
        .project-wide .project-image {
            aspect-ratio: 4 / 5;
        }


    /* ABOUT */

    .about-section {
        display: block;
        padding: 110px 5vw;
    }

    .about-title h2 {
        font-size: 65px;
        margin-bottom: 70px;
    }

    .about-content {
        padding-top: 0;
    }

    .about-photo {
        margin-bottom: 40px;
        aspect-ratio: 4 / 5;
    }


    /* CONTACT */

    .contact-section {
        min-height: 70vh;
        padding: 100px 5vw;
    }

        .contact-section h2 {
            font-size: 70px;
        }

    .social-links {
        flex-wrap: wrap;
        margin-top: 50px;
    }


    /* FOOTER */

    .site-footer {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 30px 5vw;
    }

        .site-footer span:nth-child(2),
        .site-footer a {
            text-align: left;
        }
}

/* =========================================
   PROJECT PAGE
========================================= */

.project-page {
    background: #0d0d0d;
}


/* =========================================
   PROJECT HERO
========================================= */

.project-hero {
    padding: 150px 4vw 100px;
}

.back-link {
    display: inline-block;
    margin-bottom: 120px;
    color: rgba(242,240,235,0.55);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

    .back-link:hover {
        color: #f2f0eb;
    }


.project-header {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 8vw;
    align-items: end;
}

    .project-header h1 {
        margin-top: 20px;
        font-size: clamp(65px, 10vw, 150px);
        line-height: 0.85;
    }

        .project-header h1 em {
            display: block;
        }


.project-description {
    max-width: 400px;
    padding-bottom: 10px;
}

    .project-description > p {
        margin-bottom: 35px;
        color: rgba(242,240,235,0.65);
        font-size: 15px;
        line-height: 1.8;
    }

.project-meta {
    display: flex;
    gap: 40px;
    color: rgba(242,240,235,0.45);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =========================================
   PROJECT GALLERY
========================================= */

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3vw;
    padding: 0 4vw;
}

.gallery-item {
    margin: 0;
    overflow: hidden;
    background: #151515;
}

    .gallery-item img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 1s cubic-bezier(.2,.6,.2,1);
    }

    .gallery-item:hover img {
        transform: scale(1.06);
    }


/* Imagen grande */

.gallery-large {
    grid-column: span 2;
}

    .gallery-large img {
        aspect-ratio: 16 / 10;
    }


/* Imágenes normales */

/*.gallery-item:not(.gallery-large):not(.gallery-video) {
    aspect-ratio: 4 / 5;
}*/


/* =========================================
   VIDEO
========================================= */

.gallery-video {
    grid-column: span 2;
    background: #000;
    aspect-ratio: 16 / 9;
}

    .gallery-video video {
        display: block;
        width: 100%;
        height: 100%;
    }

.gallery-youtube {
    grid-column: span 2;
    background: #000;
    aspect-ratio: 16 / 9;
}

.youtube-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

    .youtube-container iframe {
        width: 100%;
        height: 100%;
        border: none;
        display: block;
    }

height: 100%;
object-fit: cover;
}


/* =========================================
   PROJECT END
========================================= */

.project-end {
    min-height: 60vh;
    padding: 150px 4vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.back-projects {
    margin: 5% 5% 5% 10%;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(35px, 5vw, 70px);
    transition: opacity 0.3s ease;
}

    .back-projects:hover {
        opacity: 0.5;
    }


/* =========================================
   PROJECT PAGE — MOBILE
========================================= */

@media (max-width: 800px) {

    .project-hero {
        padding: 120px 5vw 80px;
    }

    .back-link {
        margin-bottom: 80px;
    }

    .project-header {
        display: block;
    }

        .project-header h1 {
            font-size: clamp(55px, 16vw, 90px);
            margin-bottom: 60px;
        }

    .project-description {
        padding: 0;
    }

    .project-gallery {
        display: block;
        padding: 0 5vw;
    }

    .gallery-item,
    .gallery-large,
    .gallery-video {
        width: 100%;
        margin-bottom: 25px;
    }

        .gallery-large img {
            aspect-ratio: 4 / 5;
        }

    /*        .gallery-item:not(.gallery-large):not(.gallery-video) {
            aspect-ratio: 4 / 5;
        }*/

    .gallery-video {
        aspect-ratio: 16 / 9;
    }

    .project-end {
        min-height: 50vh;
        padding: 100px 5vw;
    }
}

/* =========================================
   HERO — TABLET
========================================= */

@media (max-width: 1024px) {

    .hero {
        min-height: 100svh;
        padding: 100px 0 50px;
    }

    .hero-video-container {
        width: 90%;
        aspect-ratio: 16 / 9;
    }
}

/* =========================================
   HERO — MOBILE
========================================= */

@media (max-width: 600px) {

    .hero {
        min-height: 100svh;
        padding: 90px 0 40px;
    }

    .hero-video-container {
        width: 92%;
        aspect-ratio: 4 / 5;
    }

    .hero-video {
        object-fit: cover;
        object-position: center;
    }
}
