/* =========================================================
   RESET
========================================================= */
html,
body,
a,
button,
input,
textarea,
select,
[role="button"] {
    cursor: none !important;
}
* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}

@font-face {
    font-family: "MiFuente";
    src: url("FUENTES/NeueMontreal-Regular.otf") format("woff2");
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: "MiFuente";
    src: url("FUENTES/NeueMontreal-Medium.otf") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "MiFuente";
    src: url("FUENTES/AlteHaasGroteskRegular.ttf") format("woff2");
    font-weight: 300;
    font-style: normal;
}



html,
body {

    width: 100%;
    min-height: 100%;



    background: linear-gradient(
        180deg,
        #fefefe 0%,
     
    );

    color: #ebe8ed;




    font-family:
        "MiFuente", "MiFuente", 
        sans-serif;

    overflow-x: hidden;

}



/* =========================================================
   HEADER
========================================================= */

.header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 65px;

    padding:
        8px
        7px;

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    z-index: 1000;

}


.header-left {

    display: flex;

    align-items: flex-start;

    gap: 10px;

}


.home-dot {
   width: 60px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50px;

    overflow: hidden;

    background: #d6d6d6;

}
.home-dot img {
    width: auto;
    height: 10px;

    object-fit: auto;

    display: block;
}


.home-dot:hover {

    background: #747175;

}


.header-info {

    display: flex;

  

    gap: 10px;

    padding-top: 2px;

}


.based {

    font-size: 12px;

    line-height: 16px;

    font-weight: 400;

    color: #acabab;

}


.clock {

    font-size: 12px;

    line-height: 16px;

    font-weight: 200;

    color: #cccbcd;

}


.header-right {

    display: flex;

    gap: 6px;

}


.header-pill {

    min-width: 20px;

    height: 20px;

    padding:
        0 20px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 30px;

    background: #eaeaea;

    color: #989898;

    font-size: 12px;

    font-weight: 200;

    text-decoration: none;

    transition:
        transform 0.25s ease;

}


.header-pill:hover {
    background: #393939;

    color: #ffffff;

}



/* =========================================================
   HOME
========================================================= */

.home {

    position: relative;

    width: 100%;

    height: 100vh;

    min-height: 700px;

    overflow: hidden;
font-weight: 300;
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 10px;
}



/* =========================================================
   TEXTO DAVID ORTIZ
========================================================= */

.central-title {

    position: absolute;
    left: 50%;
    top: 50%;

    transform:
        translate(
            -50%,
            -50%
        );

    z-index: 2;

    pointer-events: none;

    white-space: nowrap;

}


.central-title span {

    display: block;

    font-size:
        clamp(
            70px,
            14vw,
            80px
        );

    line-height: 0.8;

   letter-spacing: -0.15em; 

    font-weight: 300;

    color: #acabab;

    filter:
        blur(0px);

    opacity: 0.4;

}



/* =========================================================
   GALERÍA
========================================================= */

.gallery-stage {

    position: absolute;

    left: 50%;
    top: 50%;

    width: 500px;
    height: 500px;

    transform:
        translate(
            -50%,
            -50%
        );

    z-index: 10;

}


.gallery {

    position: relative;

    width: 100%;
    height: 100%;

    animation:
        galleryRotation
        200s
        linear
        infinite;

}


@keyframes galleryRotation {

    from {

        transform:
            rotate(0deg);

    }

    to {

        transform:
            rotate(360deg);

    }

}



/* =========================================================
   TARJETAS
========================================================= */

.gallery-card {
    --hover-distance: 0px;
    --gallery-scale: 1;
    --radial-x-base: 0px;
    --radial-y-base: 0px;
    --radial-x: 0px;
    --radial-y: 0px;

    position: absolute;

    left: 50%;
    top: 50%;

    width: 90px;
    height: 125px;

    padding: 0;

    border: none;

    border-radius: 3px;

    overflow: hidden;

    background: #ddd;

    cursor: pointer;

    appearance: none;

    transform:
        translate(-50%, -50%)
        translate(
            calc(var(--x) * var(--gallery-scale)),
            calc(var(--y) * var(--gallery-scale))
        )
        rotate(var(--rotation));

    transition:
        transform 0.35s ease,
        filter 0.3s ease,
        box-shadow 0.3s ease;
}


.gallery-card img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

}


.gallery-card:hover {
    transform:
        translate(-50%, -50%)
        translate(
            var(--x),
            var(--y)
        )
        rotate(var(--rotation))
        translateY(-20px);

    transition:
        transform 0.35s ease;
}



/* =========================================================
   FOOTER
========================================================= */

.footer {

    position: fixed;

    left: 0;
    bottom: 0;

    width: 100%;

    padding:
        0
        10px
        17px
        10px;

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    z-index: 100;

}


.copyright {

    color: #acabab;

    font-size: 12px;

    font-weight: 200;

}



#contact .footer-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#contact .footer-right a {
    display: block;
    width: 100%;
    text-align: left;
}



.footer-column {

    display: flex;

    flex-direction: column;

    gap: 2px;

    color: #acabab;

    font-size: 12px;

    font-weight: 200;

}


.footer-row {

    display: grid;

    grid-template-columns:
        1fr
        80px;

    gap:10px;

}


.footer-row span:first-child {

    color: #acabab;

    font-weight: 200;

}


.footer-row span:last-child {

    color: #e5e5e5;

}

.footer-right {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

#contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

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

#contact a:hover {
    color: #09080b;
}

/* =========================================================
   =========================================================
   FULLSCREEN POPUP / SLIDESHOW
   =========================================================
========================================================= */

.modal {

    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100vh;

    z-index: 5000;

    background: #000000;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    overflow: hidden;

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

}


.modal.active {

    visibility: visible;

    opacity: 1;

    pointer-events: auto;

}



/* =========================================================
   FONDO
========================================================= */

.modal-overlay {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background: #000000;

}



/* =========================================================
   IMAGEN FULLSCREEN
========================================================= */

.modal-full-image {

    position: absolute;

    inset: 0;

    width: 100vw;
    height: 100vh;

    object-fit: cover;

    z-index: 2;

}

#modalVideo {
    display: none;

    position: absolute;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    object-fit: cover;

    z-index: 2;

    display: none;

    background: #09080b;

}


/* =========================================================
   DEGRADADO SOBRE LA PARTE INFERIOR
========================================================= */

.modal-gradient {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 45%;

    z-index: 3;

    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.128) 0%,
            rgba(0, 0, 0, 0.138) 45%,
            rgba(
                0,
                0,
                0,
                0
            ) 100%
        );

}



/* =========================================================
   TEXTO
   PARTE INFERIOR IZQUIERDA
========================================================= */

.modal-content {

    position: absolute;

    left: 20px;
    bottom: 20px;

    z-index: 10;

    max-width: 600px;

    color: white;

}


.modal-content h2 {

    font-size:
        clamp(
            30px,
            3vw,
            42px
        );

    line-height: 1;

    font-weight: 400;

    letter-spacing: -0.04em;

}


.modal-content p {

    margin-top: 0px;

    color: rgba(
        255,
        255,
        255,
        0.72
    );

    font-size: 13px;

    line-height: 1.5;

}


.modal-content span {

    display: block;

    margin-top: 0px;

    color: rgba(
        255,
        255,
        255,
        0.55
    );

    font-size: 12px;

}

.modal-project-header {

    display: flex;

    justify-content: space-between;

    align-items: baseline;
gap: 10px;

    width: 100%;

}


#modalTitle {

    margin: 0;

}


#modalYear {

    margin: 0;

}

/* =========================================================
   CONTADOR
========================================================= */

.modal-number {

    position: absolute;

    left: 10px;
    top: 10px;

    z-index: 10;

    color:
        rgba(
            255,
            255,
            255,
            0.85
        );

    font-size: 12px;

    font-weight: 200;

}



/* =========================================================
   BOTÓN X
========================================================= */

.modal-close {

    position: absolute;

    top: 0px;
    right: 10px;

    z-index: 30;

    width: 20px;
    height: 20px;

    padding: 0;

    border: none;

    background: transparent;

    color:
        rgba(
            255,
            255,
            255,
            0.75
        );

    font-size: 20px;

    font-weight: 200;

    line-height: 30px;

    cursor: pointer;

    transition:
        color 0.25s ease,
        transform 0.25s ease;

}


.modal-close:hover {

    color: rgb(124, 124, 124);


}



/* =========================================================
   FLECHAS
========================================================= */

.modal-arrow {

    position: absolute;

    top: 50%;

    transform:
        translateY(-50%);

    z-index: 20;

    width: 45px;
    height: 100px;

    border: none;

    background: transparent;

    color:
        rgba(
            255,
            255,
            255,
            0.18
        );

    font-size: 42px;

    font-weight: 200;

    line-height: 1;

    cursor: pointer;

    transition:
        color 0.3s ease,
        transform 0.3s ease;

}


.modal-arrow:hover {

    color:
        rgba(
            255,
            255,
            255,
            0.9
        );

}


.modal-prev {

    left: 15px;

}


.modal-next {

    right: 15px;

}


.modal-prev:hover {

    transform:
        translate(
            -3px,
            -50%
        );

}


.modal-next:hover {

    transform:
        translate(
            3px,
            -50%
        );

}











/* =========================================================
   IMAGEN OCULTA BAJO EL FONDO
========================================================= */

#cursorReveal {
    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 0;

    overflow: hidden;

    opacity: 1;
}


#cursorReveal img {
    position: absolute;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   MÁSCARA DE LA LINTERNA
========================================================= */

#cursorReveal {
    -webkit-mask-image:
        radial-gradient(
            circle 180px at var(--mouse-x) var(--mouse-y),
            black 0%,
            black 35%,
            rgba(0, 0, 0, 0.85) 48%,
            rgba(0, 0, 0, 0.35) 65%,
            transparent 100%
        );

    mask-image:
        radial-gradient(
            circle 180px at var(--mouse-x) var(--mouse-y),
            black 0%,
            black 35%,
            rgba(0, 0, 0, 0.85) 48%,
            rgba(0, 0, 0, 0.35) 65%,
            transparent 100%
        );
}




/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .header {
        padding:
            8px
            5px;
            
    }


    .header-pill {
        min-width: 85px;
font-size: 10px;
        padding:
            0 14px;
    }
    


    /* =============================================
       GALERÍA CIRCULAR
    ============================================= */

    .gallery-stage {

        width: 280px;
        height: 280px;

    }


    .gallery-card {

        width: 75px;
        height: 105px;

    }


    /* =============================================
       MODAL
    ============================================= */

   .modal-content {
    left: 22px;
    right: 22px;
    bottom: 60px;
    max-height: calc(100vh - 100px);
}

.modal-content h2 {
    font-size: 35px;
    line-height: 1.1;
    font-weight: 200;
}


    .modal-number {

        left: 20px;
        top: 20px;

    }


    .modal-close {

        right: 18px;
        top: 17px;

    }


    .modal-arrow {

        width: 35px;

        color:
            rgba(
                255,
                255,
                255,
                0.3
            );

    }


    .modal-prev {

        left: 3px;

    }


    .modal-next {

        right: 3px;

    }


    .footer-right {

        display: none;

    }



#modalImage {
    position: absolute;

    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;

    width: auto;
    height: auto;

    max-width: 150vw;
    max-height: 65vh;

    object-fit: contain;

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



/* EFECTO HOVER MOVIL*/


.gallery-card:hover {
        transform:
            translate(-50%, -50%)
            translate(
                calc(var(--x) * var(--mobile-scale)),
                calc(var(--y) * var(--mobile-scale))
            )
            rotate(var(--rotation));
    }

    .gallery-card:active {
        transform:
            translate(-50%, -50%)
            translate(
                calc(var(--x) * var(--mobile-scale)),
                calc(var(--y) * var(--mobile-scale))
            )
            rotate(var(--rotation))
            translateY(-3px);
    }









    
}
/* =========================================================
   GALERÍA CIRCULAR - MÓVIL
========================================================= */

@media screen and (max-width: 700px) {

    
    .gallery-stage {

        width: 500px;
        height: 500px;

    }


    /* -----------------------------------------------------
       REDUCIR EL RADIO DEL CÍRCULO
    ----------------------------------------------------- */

    .gallery-card {

        --mobile-scale: 0.69;
        
        --gallery-scale: var(--mobile-scale);
        --radial-x: calc(
            var(--radial-x-base) * var(--mobile-scale)
        );
        --radial-y: calc(
            var(--radial-y-base) * var(--mobile-scale)
        );

    }


    /* -----------------------------------------------------
       TARJETAS UN POCO MÁS GRANDES
    ----------------------------------------------------- */

    .gallery-card {

        width: 65px;
        height: 95px;

    }

    .based,.clock,.copyright{
    font-size: 10px;
  
}

.header-main {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-left {

    display: flex;

    align-items: flex-start;

    gap:8px;

}





}









/* =========================================================
   ANIMACIÓN INICIAL DE LA GALERÍA
========================================================= */

.gallery-card {
    animation: galleryIntro 1.4s cubic-bezier(
        0.22,
        1,
        0.36,
        1
    ) both;
}

.gallery-card.gallery-intro-done {
    animation: none;
}


/* ---------------------------------------------------------
   Cada tarjeta empieza en el centro
--------------------------------------------------------- */

@keyframes galleryIntro {

    0% {

        transform:
            translate(-50%, -50%)
            translate(0, 0)
            rotate(0deg)
            scale(0.7);

        opacity: 0;

    }

    35% {

        opacity: 1;

    }

  100% {

    transform:
        translate(-50%, -50%)
        translate(
            calc(var(--x) * var(--gallery-scale, 1)),
            calc(var(--y) * var(--gallery-scale, 1))
        )
        rotate(var(--rotation))
        scale(1);

    opacity: 1;

}

}













/* =====================================================
   CONTACT POPUP
===================================================== */

.contact-modal {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

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

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

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


.contact-modal.active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


.contact-modal-box {
    position: relative;
    width: min(800px, 85vw);
    min-height: 30vh;
    padding: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: white;
    border-radius: 5px;

    transform: translateY(15px) scale(0.97);
    transition: transform 0.3s ease;
}


.contact-modal.active .contact-modal-box {
    transform:
        translateY(0)
        scale(1);
}


.contact-modal-close {
    position: absolute;
color: #acabab;
    top: 15px;
    right: 18px;

    border: none;
    background: none;

    padding: 0;

    font-size: 28px;
    line-height: 1;

    cursor: pointer;
}

.contact-modal-close:hover {
    color: #393939;
}




.contact-bio {
    max-width: 450px;

    margin: 0 0 30px;

    line-height: 1.5;
}


.contact-modal-content h2 {

    letter-spacing: -0.1em; 

    font-weight: 300;
opacity: 0.4;
    color: #acabab;
   font-size:
        clamp(
            70px,
            14vw,
            80px
        );

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0 0 25px;
}

.contact-links {
    font-weight: 200;
    font-size: 12px;
    color: #acabab;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-links a {
    width: 80px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 30px;

    background: #eaeaea;
    color: #989898;

    text-decoration: none;

    transition: 
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.contact-links a:hover {
    background: #393939;
    color: #ffffff;
   
}


@media (max-width: 700px) {

    .contact-modal-box {
        width: calc(100vw - 40px);

        max-height: 20vh;

        padding: 30px;

    }
.contact-modal-content h2 {
    font-size: 35px;
}
}






/*CURSOR*/

#customCursor {
    position: fixed;

    width: 12px;
    height: 12px;

    background: rgb(102, 102, 102);
    border-radius: 50%;

    pointer-events: none;

    z-index: 999999;

    transform: translate(-50%, -50%);

    left: 0;
    top: 0;
}

