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


    html {
        scroll-behavior: smooth;
    }


    body {
        background: #0b0b0b;
        color: #f1eee8;

        font-family: Arial, Helvetica, sans-serif;

        line-height: 1.5;

        overflow-x: hidden;
    }


    img {
        display: block;
        width: 100%;
    }


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



    :root {

        --background: #0b0b0b;
        --background-soft: #121212;

        --text: #f1eee8;
        --text-soft: #a9a59d;

        --gold: #c9a45c;
        --gold-light: #e0c27b;

        --border: rgba(255, 255, 255, 0.12);

        --max-width: 1200px;
    }



    .projectHeader {

        width: min(var(--max-width), 90%);

        margin: auto;

        padding: 30px 0;

        display: flex;

        align-items: center;

        justify-content: space-between;

        border-bottom: 1px solid var(--border);
    }


    .backLink {

        font-size: 12px;

        text-transform: uppercase;

        letter-spacing: 1.5px;

        color: var(--text-soft);

        transition: color 0.3s ease;
    }


    .backLink:hover {

        color: var(--gold);
    }


    .headerBrand {

        font-size: 11px;

        letter-spacing: 2px;

        color: var(--text-soft);
    }



    .projectHero {

        width: min(var(--max-width), 90%);

        margin: auto;

        min-height: 80vh;

        display: flex;

        flex-direction: column;

        justify-content: center;

        gap: 60px;

        padding: 80px 0;
    }


    .projectHeroContent {

        max-width: 800px;
    }


    .projectCategory {

        display: inline-block;

        margin-bottom: 20px;

        color: var(--gold);

        font-size: 11px;

        letter-spacing: 3px;

        text-transform: uppercase;
    }


    .projectHero h1 {

        font-size: clamp(50px, 10vw, 120px);

        line-height: 0.9;

        font-weight: 400;

        letter-spacing: -4px;

        text-transform: uppercase;
    }


    .projectHero h1 span {

        display: block;

        color: var(--gold);
    }


    .projectIntro {

        max-width: 600px;

        margin-top: 35px;

        color: var(--text-soft);

        font-size: clamp(16px, 2vw, 20px);

        line-height: 1.7;
    }



    .projectHeroImage {

        width: 100%;

        overflow: hidden;

        border: 1px solid var(--border);

        background: #111;
    }


    .projectHeroImage picture {

        display: block;

        width: 100%;
    }


    .projectHeroImage img {

        width: 100%;

        height: auto;

        display: block;

        filter: saturate(0.7);

        transition:
            transform 0.8s ease,
            filter 0.8s ease;
    }


    .projectHeroImage:hover img {

        transform: scale(1.02);

        filter: saturate(1);
    }


    .projectSection {

        width: min(var(--max-width), 90%);

        margin: auto;

        padding: 120px 0;

        border-top: 1px solid var(--border);
    }


    .sectionTitle {

        display: flex;

        align-items: baseline;

        gap: 20px;

        margin-bottom: 60px;
    }


    .sectionTitle h2 {

        font-size: clamp(32px, 5vw, 60px);

        font-weight: 400;

        letter-spacing: -2px;

        text-transform: uppercase;

        color: var(--gold);

    }


    .aboutContent {

        max-width: 850px;

        margin-left: auto;
    }


    .aboutContent p {

        margin-bottom: 30px;

        color: var(--text-soft);

        font-size: clamp(17px, 2vw, 21px);

        line-height: 1.8;
    }


    .techGrid {

        display: grid;

        grid-template-columns: repeat(2, 1fr);

        border-top: 1px solid var(--border);

        border-left: 1px solid var(--border);
    }


    .techItem {

        min-height: 150px;

        padding: 30px;

        display: flex;

        flex-direction: column;

        justify-content: center;

        gap: 8px;

        border-right: 1px solid var(--border);

        border-bottom: 1px solid var(--border);

        transition:
            background 0.3s ease,
            color 0.3s ease;
    }


    .techItem:hover {

        background: var(--background-soft);
    }


    .techItem strong {

        font-size: 22px;

        font-weight: 400;
    }


    .techItem span {

        color: var(--text-soft);

        font-size: 13px;
    }


    .sectionDescription {

        max-width: 600px;

        margin-bottom: 50px;

        color: var(--text-soft);

        font-size: 16px;
    }


    .mobileScreens {

        display: grid;

        grid-template-columns: repeat(4, 1fr);

        gap: 25px;

        align-items: start;
    }


    .mobileScreens .screen {

        overflow: hidden;

        border: 1px solid var(--border);

        background: #111;

        min-width: 0;
    }


    .mobileScreens .screen img {

        width: 100%;

        height: auto;

        display: block;

        filter: saturate(0.7);

        transition:
            transform 0.7s ease,
            filter 0.7s ease;

        cursor: zoom-in;
    }


    .mobileScreens .screen:hover img {

        transform: scale(1.025);

        filter: saturate(1);
    }


    .mobileScreens .screen figcaption {

        padding: 15px 12px;

        color: var(--text-soft);

        font-size: 10px;

        text-transform: uppercase;

        letter-spacing: 1.2px;

        line-height: 1.4;
    }

/* =========================================
   GALERÍA · LANDSCAPE
========================================= */

.landscapeScreens {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

    align-items: start;
}


.landscapeScreens .screen {

    overflow: hidden;

    border: 1px solid var(--border);

    background: #111;

    min-width: 0;
}


.landscapeScreens .screen img {

    width: 100%;

    height: auto;

    display: block;

    filter: saturate(0.7);

    transition:
        transform 0.7s ease,
        filter 0.7s ease;

    cursor: zoom-in;
}


.landscapeScreens .screen:hover img {

    transform: scale(1.025);

    filter: saturate(1);
}


.landscapeScreens .screen figcaption {

    padding: 15px 12px;

    color: var(--text-soft);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.2px;

    line-height: 1.4;
}


/* =========================================
   GALERÍA · MIXTA
========================================= */

.mixedScreens {

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;

    align-items: start;
}


.mixedScreens .screen {

    overflow: hidden;

    border: 1px solid var(--border);

    background: #111;

    min-width: 0;
}


/* -----------------------------------------
   IMÁGENES
----------------------------------------- */

.mixedScreens .screen img {

    width: 100%;

    height: auto;

    display: block;

    filter: saturate(0.7);

    transition:
        transform 0.7s ease,
        filter 0.7s ease;

    cursor: zoom-in;
}


.mixedScreens .screen:hover img {

    transform: scale(1.025);

    filter: saturate(1);
}


/* -----------------------------------------
   LANDSCAPE
----------------------------------------- */

.mixedScreens .screen.landscape {

    grid-column: span 2;
}


/* -----------------------------------------
   VERTICAL
----------------------------------------- */

.mixedScreens .screen.vertical {

    grid-column: span 1;
}


/* -----------------------------------------
   CAPTION
----------------------------------------- */

.mixedScreens .screen figcaption {

    padding: 15px 12px;

    color: var(--text-soft);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1.2px;

    line-height: 1.4;
}


    .visitProject {

        width: min(var(--max-width), 90%);

        margin: 80px auto 150px;

        padding: 100px 40px;

        text-align: center;

        border: 1px solid var(--border);

        background: var(--background-soft);
    }


    .visitProject h2 {

        max-width: 800px;

        margin: auto;

        font-size: clamp(40px, 7vw, 80px);

        line-height: 0.95;

        font-weight: 400;

        letter-spacing: -3px;

        text-transform: uppercase;
    }


    .visitProject h2 span {

        display: block;

        color: var(--gold);
    }


    .visitProject p {

        max-width: 500px;

        margin: 30px auto 45px;

        color: var(--text-soft);

        font-size: 16px;
    }


    .visitButton {

        display: inline-flex;

        align-items: center;

        gap: 25px;

        padding: 17px 28px;

        background: var(--gold);

        color: #0b0b0b;

        font-size: 12px;

        font-weight: bold;

        letter-spacing: 1.5px;

        text-transform: uppercase;

        transition:
            background 0.3s ease,
            transform 0.3s ease;
    }


    .visitButton span {

        font-size: 18px;

        line-height: 1;
    }


    .visitButton:hover {

        background: var(--gold-light);

        transform: translateY(-3px);
    }


    .visiturl p {

        font-size: 1.3rem;

        color: var(--gold);
    }


    .projectFooter {

        width: min(var(--max-width), 90%);

        margin: auto;

        padding: 30px 0;

        border-top: 1px solid var(--border);

        display: flex;

        justify-content: space-between;

        color: var(--text-soft);

        font-size: 11px;

        text-transform: uppercase;

        letter-spacing: 1.5px;
    }


    .projectFooter a {

        transition: color 0.3s ease;
    }


    .projectFooter a:hover {

        color: var(--gold);
    }


    .lightbox {

        position: fixed;

        inset: 0;

        z-index: 9999;

        display: flex;

        align-items: center;

        justify-content: center;

        padding: 20px 90px;

        background: rgba(5, 5, 5, 0.96);

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transition:
            opacity 0.35s ease,
            visibility 0.35s ease;
    }


    .lightbox.active {

        opacity: 1;

        visibility: visible;

        pointer-events: auto;
    }


    .lightboxContent {

        position: relative;

        display: flex;

        align-items: center;

        justify-content: center;

        width: auto;

        height: 90%;

        max-width: 100%;

        max-height: 100%;
    }


    .lightboxContent img {

        display: block;

        width: auto;

        height: 100%;

        max-width: 100%;

        max-height: 100%;

        object-fit: contain;

        border: 1px solid rgba(255, 255, 255, 0.12);

        box-shadow:
            0 25px 70px rgba(0, 0, 0, 0.7);

        animation:
            lightboxImageIn 0.35s ease;
    }


    @keyframes lightboxImageIn {

        from {

            opacity: 0;

            transform: scale(0.96);
        }


        to {

            opacity: 1;

            transform: scale(1);
        }
    }


    .lightboxCaption {

        position: absolute;

        left: 50%;

        bottom: -28px;

        transform: translateX(-50%);

        width: max-content;

        max-width: 80vw;

        color: var(--text-soft);

        font-size: 10px;

        line-height: 1.4;

        letter-spacing: 1.5px;

        text-align: center;

        text-transform: uppercase;
    }


    .lightboxClose {

        position: absolute;

        top: 25px;

        right: 30px;

        z-index: 10;

        display: flex;

        align-items: center;

        justify-content: center;

        width: 45px;

        height: 45px;

        padding: 0;

        border: 1px solid var(--border);

        background: rgba(0, 0, 0, 0.35);

        color: var(--text);

        font-family: Arial, Helvetica, sans-serif;

        font-size: 30px;

        font-weight: 200;

        line-height: 1;

        cursor: pointer;

        transition:
            color 0.3s ease,
            border-color 0.3s ease,
            background 0.3s ease,
            transform 0.3s ease;
    }


    .lightboxClose:hover {

        color: var(--gold);

        border-color: var(--gold);

        background: rgba(0, 0, 0, 0.7);

        transform: rotate(90deg);
    }


    .lightboxPrev,
    .lightboxNext {

        position: absolute;

        top: 50%;

        z-index: 10;

        display: flex;

        align-items: center;

        justify-content: center;

        width: 52px;

        height: 52px;

        padding: 0;

        border: 1px solid var(--border);

        background: rgba(0, 0, 0, 0.35);

        color: var(--text);

        font-family: Arial, Helvetica, sans-serif;

        font-size: 22px;

        line-height: 1;

        cursor: pointer;

        transform: translateY(-50%);

        transition:
            color 0.3s ease,
            border-color 0.3s ease,
            background 0.3s ease,
            transform 0.3s ease;
    }


    .lightboxPrev {

        left: 25px;
    }


    .lightboxNext {

        right: 25px;
    }


    .lightboxPrev:hover,
    .lightboxNext:hover {

        color: var(--gold);

        border-color: var(--gold);

        background: rgba(0, 0, 0, 0.7);
    }


    .lightboxPrev:hover {

        transform:
            translate(-4px, -50%);
    }


    .lightboxNext:hover {

        transform:
            translate(4px, -50%);
    }

    #contacto {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: larger;
        color: #c9a45c;
    }
    .footerFixed{
        width: 100%;
        padding: 20px 50px;
        position: fixed;
        bottom: 0;
    }


    .contactPage {

        position: relative;

        min-height: 100vh;

        display: flex;

        align-items: center;

        justify-content: center;

        overflow: hidden;

        isolation: isolate;

    }



    .contactGrid {

        position: absolute;

        inset: 0;

        background-image:

            linear-gradient(
                rgba(255,255,255,.03) 1px,
                transparent 1px
            ),

            linear-gradient(
                90deg,
                rgba(255,255,255,.03) 1px,
                transparent 1px
            );

        background-size: 60px 60px;

        mask-image:
            radial-gradient(
                circle,
                black 35%,
                transparent 90%
            );

        -webkit-mask-image:
            radial-gradient(
                circle,
                black 35%,
                transparent 90%
            );

        pointer-events: none;

        z-index: 0;

    }



    .contactMouseGlow {

        position: absolute;

        width: 420px;
        height: 420px;

        border-radius: 50%;

        background:
            radial-gradient(
                circle,
                rgba(214,179,93,.40) 0%,
                rgba(214,179,93,.22) 22%,
                rgba(214,179,93,.10) 45%,
                transparent 75%
            );

        filter: blur(60px);

        pointer-events: none;

        left: 0;
        top: 0;

        opacity: 0;

        transform:
            translate3d(-210px,-210px,0)
            scale(.35);

        transition:
            opacity .45s ease,
            transform .60s cubic-bezier(.22,1,.36,1);

        z-index: 1;

    }



    .contactContent {

        position: relative;

        z-index: 2;

        width: min(900px, 90%);

        text-align: center;

    }


    .contactContent h1 {

        margin: 20px 0 40px;

        font-size: clamp(60px, 10vw, 120px);

        line-height: .9;

        font-weight: 400;

        letter-spacing: -4px;

        text-transform: uppercase;

    }


    .contactContent h1 span {

        color: var(--gold);

    }


    .contactEmail {

        display: inline-block;

        color: var(--text);

        font-size: clamp(16px, 2vw, 22px);

        text-decoration: none;

        border-bottom: 1px solid var(--border);

        padding-bottom: 8px;

        transition:
            color .3s ease,
            border-color .3s ease;

    }


    .contactEmail:hover {

        color: var(--gold);

        border-color: var(--gold);

    }



    .footerFixed {

        position: fixed;

        left: 50%;

        bottom: 0;

        transform: translateX(-50%);

        width: min(var(--max-width), 90%);

        z-index: 20;

    }








    @media (max-width: 600px) {

        .lightbox {

            padding: 15px 35px;
        }


        .lightboxContent {

            width: auto;

            height: 100%;

            max-width: 100%;

            max-height: 100%;
        }


        .lightboxContent img {

            width: auto;

            height: 100%;

            max-width: 100%;

            max-height: 100%;
        }


        .lightboxCaption {

            bottom: -24px;

            max-width: 75vw;

            font-size: 9px;
        }


        .lightboxClose {

            top: 12px;

            right: 12px;

            width: 38px;

            height: 38px;

            font-size: 25px;
        }


        .lightboxPrev,
        .lightboxNext {

            width: 35px;

            height: 50px;

            border: none;

            background: transparent;

            font-size: 20px;
        }


        .lightboxPrev {

            left: 2px;
        }


        .lightboxNext {

            right: 2px;
        }


        .lightboxPrev:hover,
        .lightboxNext:hover {

            background: transparent;
        }

        .mobileScreens {

            grid-template-columns: repeat(2, 1fr);

            gap: 15px;

        }


        .landscapeScreens {

            grid-template-columns: 1fr;

            gap: 20px;

        }


        .mixedScreens {

            display: grid;

            grid-template-columns: repeat(2, 1fr);

            gap: 15px;

        }

        /* LANDSCAPE
        Ocupa las 2 columnas */

        .mixedScreens .screen.landscape {

            grid-column: span 2;

        }

        /* VERTICAL
        Ocupa 1 columna */

        .mixedScreens .screen.vertical {

            grid-column: span 1;

        }

        .screensGrid .screen figcaption {

            padding: 12px 10px;

            font-size: 9px;

            letter-spacing: 1px;

        }

    }


    @media (min-width: 768px) {

        .projectHero {

            gap: 80px;
        }


        .techGrid {

            grid-template-columns: repeat(3, 1fr);
        }

    }


    @media (max-width: 600px) {

        .projectHeader {

            padding: 20px 0;

            flex-direction: column;

            align-items: flex-start;

            gap: 10px;
        }


        .headerBrand {

            font-size: 9px;
        }


        .projectHero {

            min-height: auto;

            padding: 70px 0;
        }


        .projectHero h1 {

            letter-spacing: -2px;
        }


        .projectSection {

            padding: 80px 0;
        }


        .sectionTitle {

            margin-bottom: 40px;
        }


        .techGrid {

            grid-template-columns: 1fr;
        }


        .mobileScreens {

            grid-template-columns: repeat(2, 1fr);

            gap: 15px;
        }


        .mobileScreens .screen figcaption {

            padding: 12px 10px;

            font-size: 9px;

            letter-spacing: 1px;
        }


        .visitProject {

            margin: 40px auto 100px;

            padding: 70px 20px;
        }


        .visitProject h2 {

            letter-spacing: -2px;
        }


        .projectFooter {

            flex-direction: column;

            gap: 15px;
        }

    }