body {
    margin: 0;
    overflow: hidden;
    background: #000319;
}
/*LOADER*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #090118;
    z-index: 99999;
}
#status {
    width: 100vw;
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    background-image: url('../assets/img/logo_animation.gif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
/*MENU*/
.logo {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 315px;
    height: 50px;
    z-index: 3;
}
.logoHover {
    width: 100vw;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #E7F20F;
    z-index: 2;
    transition: opacity 4s ease-out;
    opacity: 0;
}
.logo:hover + .logoHover {
    opacity: 1;
    display: block;
}
.logo:hover ~ .text3, .logo:hover ~ .text4 , .logo:hover ~ .text5, .logo:hover ~ .text6, .logo:hover ~ .text2, .logo:hover ~ .text7 , .logo:hover ~ .text8 {
    opacity: 0;
    display: none;
}
.logo:hover img {
    filter: invert(100%);
}
.logoHover p, .text5Hov p, .text7Hov p {
    font-family: 'OT Bulb Monoline 900';
    font-style: normal;
    font-weight: 900;
    font-size: 125px;
    line-height: 125px;
    display: flex;
    align-items: flex-end;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #000319;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
}
.text2, .text3, .text4, .text5, .text6, .text7, .text8, .text9 {
    font-family: 'Shreck Mono';
    color: #E4E8D6;
    font-size: 55px;
    line-height: 50px;8F17EB
    text-transform: uppercase;
    z-index: 3;
    opacity: 1;
    display: block;
}
.text2 a, .text3 a, .text4 a, .text5 a, .text6 a, .text7 a, .text8 a, .text9 a  {
    color: #E4E8D6;
    text-decoration: none;
}
.text3Hov, .text4Hov, .text5Hov, .text7Hov{
    width: 100vw;
    height: 100vh;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #E7F20F;
    z-index: 2;
}
body:has(.text3:hover) .logoimg, body:has(.text5:hover) .logoimg  {
    filter: invert(100%);
}
body:has(.text6:hover) .text4Hov,
body.projects-menu-open .text4Hov{
    opacity: 1;
    display: block;
}
.text2 {
    position: fixed;
    bottom: 0;
    transform: translateX(100%);
    right: 33.3%;
    text-transform: uppercase;
}
.text2 a:hover{
    text-decoration: underline;
    color: #E7F20F;
}
.text2 p{
    margin: 0;
    display: block;
}
.text2 p a{
    margin-left: 70px;
}
.text2 p:first-child a{
    margin-left: 50px;
}
.text2 p:nth-child(2) a{
    margin-left: 42px;
}
.text3 {
    position: fixed;
    left: 50%;
    top: 0;
}
.text3:hover + .text3Hov{
    opacity: 1;
    display: block;
}
.text3:hover  a{
    color: #000319;
}
.text4 {
    position: fixed;
    left: calc(50% + 170px);
    top: 0;
}
.text4Hov{
    background-color: #D258FF;
}
.text4:hover + .text4Hov{
    opacity: 1;
    display: block;
}
.text5 {
    position: fixed;
    right: 0;
    bottom: 100px;
    z-index: 3;
}
.text5Hov{
    background-color: #E4E8D6;
}
.text5Hov p {
    color: #000319;
}
.text5:hover + .text5Hov{
    opacity: 1;
    display: block;
}
.text5:hover  a{
    color: #000319;
}
.text6 {
    position: fixed;
    right: 0;
    top: 0;
}
.text7 {
    position: fixed;
    top: 50%;
    right: 0;
    text-align: right;
    transform: translateY(-100%);
}
.text7Hov{
    background-color: #8F17EB;
}
.text7:hover + .text7Hov{
    opacity: 1;
    display: block;
}
.text7Hov p{
    bottom: 50% ;
    color: #E4E8D6;
}
.text8 {
    position: fixed;
    right: 0;
    top: 100px;
}
.text8one{
    cursor: pointer;
}
body:has(.text8:hover) .text3, body:has(.text8:hover) .text4, body:has(.text8:hover) .text4, body:has(.text8:hover) .text5, body:has(.text8:hover) .text6, body:has(.text8:hover) .text2, body:has(.text8:hover) .text7,
body:has(.text7:hover) .text3, body:has(.text7:hover) .text4, body:has(.text3:hover) .text4, body:has(.text7:hover) .text5, body:has(.text7:hover) .text6, body:has(.text7:hover) .text2, body:has(.text7:hover) .text8,
body:has(.text5:hover) .text3, body:has(.text5:hover) .text4, body:has(.text5:hover) .text4, body:has(.text5:hover) .text6, body:has(.text5:hover) .text2, body:has(.text5:hover) .text8, body:has(.text5:hover) .text7,
body:has(.text3:hover) .text5, body:has(.text3:hover) .text6, body:has(.text3:hover) .text2, body:has(.text3:hover) .text7, body:has(.text3:hover) .text8,
body:has(.text4:hover) .text3,  body:has(.text4:hover) .text5, body:has(.text4:hover) .text6, body:has(.text4:hover) .text2, body:has(.text4:hover) .text7, body:has(.text4:hover) .text8,
body:has(.text6:hover) .text3, body:has(.text6:hover) .text4, body:has(.text6:hover) .text5,  body:has(.text6:hover) .text2, body:has(.text6:hover) .text7, body:has(.text6:hover) .text8 {
    opacity: 0;
    display: none;
}
.menuMobile, .menuMobileClose{
    display: none;
}
/*MODAL*/
.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 0;
    border-top-left-radius: calc(.3rem - 1px);
    border-top-right-radius: calc(.3rem - 1px);
}
.modal-content {
    background-color: #000319;
}
.btn-close {
    filter: invert(1);
}
/*DIV SCROLL*/
div.block {
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    position: fixed;
    margin: 0 !important;
}
div.block::-webkit-scrollbar {
    display: none;
}
div.block ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.homeProyectCont {
    margin-bottom: 2rem;
}
.homeProyectCont img, .logo img {
    width: 100%;
    height: auto;
}
.homeProyectHov {
    position: absolute;
    top: 50%;
    left: 0;
    background-color: #E7F20F;
    font-family: 'OT Bulb Monoline 900';
    font-style: normal;
    font-weight: 900;
    font-size: 20px;
    line-height: 20px;
    text-transform: uppercase;
    color: #000319;
    padding-left: 1rem;
    padding-right: 1rem;
    display: none;
    z-index: 2;
}
.homeProyectHovTitle {
    font-family: 'OT Bulb Monoline 900';
    font-style: normal;
    font-weight: 900;
    font-size: 75px;
    line-height: 65px;
    text-align: right;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #000319;
    padding-left: 5rem;
    padding-right: 1rem;
    background-color: #E7F20F;
    position: absolute;
    top: 50%;
    right: 0;
    max-width: 650px;
    z-index: 2;
    display: none;
}
.homeProyectHovTitle span{
    font-size: 35px;
    line-height: 25px !important
}
.hoverImgSI {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    padding-left: 24px;
    padding-right: 24px;
    display: none;
}
.homeProyectCont:hover .homeProyectHov,
.homeProyectCont:hover .homeProyectHovTitle,
.homeProyectCont:hover .hoverImgSI {
    display: block;
}

@media (max-width: 1280px) {
    .logo {
        width: 291px;
        height: 46px;
    }
    .homeProyectHov {
        font-size: 15px;
        line-height: 15px;
    }
    .homeProyectHovTitle {
        font-size: 45px;
        line-height: 40px;
        max-width: 450px;
        padding-left: 3rem;
    }
    .homeProyectHovTitle span{
        font-size: 20px;
        line-height: 15px !important
    }
    .text2meta{
        display: block;
        margin-left: 0 !important;
        margin-bottom: 3rem;
    }
    .text5 {
        bottom: 346px;
    }
    .text7 {
        top: 40%;
    }
    .homeProyectHov {
        display: block;
    }
    .homeProyectHovTitle {
        display: block;
        font-size: 25px;
        line-height: 23px;
        max-width: 260px;
        padding-left: 0;
        display: block;
    }
}

@media (max-width: 850px) {
    #status {
        width: 100vw;
        height: 100vh;
        position: absolute;
        left: 0;
        top: 0;
        background-image: url('../assets/img/logo_animado_mobile.gif');
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }
}

@media (max-width: 767px) {
    .homeProyectCont img {
        object-fit: cover;
        aspect-ratio: 4 / 5;
    }
    .logo {
        width: 248px;
        height: 39px;
    }
    .homeProyectHov {
        display: block;
    }
    .homeProyectHovTitle {
        font-size: 25px;
        line-height: 23px;
        max-width: 186px;
        padding-left: 0;
        display: block;
    }
    .homeProyectHovTitle span{
        font-size: 14px;
        line-height: 9px !important
    }
    .text2, .text3, .text4, .text5, .text6, .text7, .text8{
        display: none;
        font-size: 45px;
        line-height: 40px;
        font-weight: 900;
    }
    .menuMobile, .menuMobileClose{
        position: fixed;
        top: 20px;
        right: 0;
        color:#E4E8D6;
        z-index: 9999;
        text-align: right;
        font-family: 'OT Bulb Monoline 900';
        font-weight: 900;
        font-size: 30px;
        line-height: 20px;
        cursor: pointer;
    }
    .menuMobile{
        display: block;
    }
    .menuMobileClose{
        text-transform: uppercase;
        color: #000319;
    }
    .foo{
        display: none;
        width: 100vw;
        height: 100vh;
        background-color: #E7F20F;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1;
    }
    .fooM{
        display: block;
    }
    .fooLogo img{
        filter: invert(1);
    }
    .fooM2, .fooM3, .fooM4, .fooM5, .fooM6, .fooM7, .fooM8 {
        display: block !important;
        color: #000319;
    }
    .fooM2 {
        right: auto;
        left: 0;
        transform: none;
        color: #000319;
    }
    .fooM2 a, .fooM3 a, .fooM4 a, .fooM5 a, .fooM6 a, .fooM7 a, .fooM8 a{
        color: #000319;
    }
    .fooM3 {
        right: auto;
        top: 90px;
        left: 0;
        transform: none;
    }
    .fooM4 {
        right: auto;
        top: 150px;
        left: 0;
        transform: none;
    }
    .text5{
        bottom: 314px !important;
    }
    .fooM5 {
        right: auto;
        left: 0;
        transform: none;
    }
    .text6 {
        top: 90px;
    }
    .text7 {
        top: 45%;
    }
    .text8 {
        top: 150px;
    }
    .fooM8{
        left: auto;
        right: 0;
        top: 150px;
    }
    .text2meta {
        margin-bottom: 1rem;
    }

    .modal-dialog{
        margin-top: 93px;
    }
    .logoHover p, .text5Hov p, .text7Hov p {
        font-size: 55px;
        line-height: 55px;
    }
}

/* ALL PROJECTS: persistent overlay and bottom-right category menu */
body.projects-menu-open .text4Hov {
    display: block;
    opacity: 1;
}

.projectsSubmenu {
    display: none;
    position: fixed !important;
    top: auto !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 60px);
    margin: 0 !important;
    padding: 0 !important;
    z-index: 20;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 0;
    text-align: right;
}
body.projects-menu-open .projectsSubmenu {
    display: flex !important;
}
.projectsSubmenu a {
    display: block;
    font-family: 'OT Bulb Monoline 900';
    font-style: normal;
    font-weight: 900;
    font-size: clamp(38px, 7vw, 125px);
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #E4E8D6;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.projectsSubmenu a:hover,
.projectsSubmenu a:focus-visible {
    color: #000319;
    text-decoration: none;
}
@media (max-width: 767px) {
    .projectsSubmenu {
        right: 16px !important;
        bottom: 16px !important;
        max-width: calc(100vw - 32px);
    }
    .projectsSubmenu a {
        font-size: clamp(30px, 8vw, 55px);
    }
}

/* =========================================
   ALL PROJECTS - ESTADO PERMANENTE
========================================= */

/* Ocultar los elementos originales del home */

body.projects-menu-open .text2,
body.projects-menu-open .text3,
body.projects-menu-open .text4,
body.projects-menu-open .text5,
body.projects-menu-open .text7,
body.projects-menu-open .text8 {
    opacity: 0 !important;
    display: none !important;
}

/* Mantener visible ALL PROJECTS */

body.projects-menu-open .text6 {
    opacity: 1 !important;
    display: block !important;
}

/* Mantener visible la pantalla morada */

body.projects-menu-open .text4Hov {
    opacity: 1 !important;
    display: block !important;
}

/* Posicionar el submenú abajo a la derecha */

body.projects-menu-open .projectsSubmenu {
    position: fixed !important;

    top: auto !important;
    bottom: 30px !important;
    right: 30px !important;
    left: auto !important;

    display: flex !important;
    flex-direction: column;
    align-items: flex-end;

    opacity: 1 !important;
    visibility: visible !important;

    text-align: right;
    z-index: 9999;
}

/* =========================================
   ALL PROJECTS - ACTIVACIÓN POR CLICK
========================================= */

/* Evitar que el hover active la pantalla morada */

body:has(.projectsSubmenu) .text6:hover ~ .text4Hov {
    opacity: 0;
    display: none;
}

/* Mostrar la pantalla únicamente cuando el menú esté abierto */

body.projects-menu-open .text4Hov {
    opacity: 1 !important;
    display: block !important;
}

body:has(.projectsSubmenu):not(.projects-menu-open):has(.text6:hover) .text4Hov {
    opacity: 0 !important;
    display: none !important;
}

/* ALL PROJECTS - Navegación entre categorías */

html {
    scroll-behavior: smooth;
}

.category-block {
    scroll-margin-top: 30px;
}


/* =========================================
   ALL PROJECTS - NEW GRID
========================================= */

/* Espaciado de las categorías */

.category-block {
    margin-bottom: 30px;
    scroll-margin-top: 30px;
}

/* Tarjetas */

.project-grid-item {
    margin-bottom: 24px;
}

.project-card {
    display: block;
    width: 100%;

    text-decoration: none;
    color: #E4E8D8;
}

.project-card:hover {
    color: #E4E8D8;
}

/* Imagen */

.project-image {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #D1D1D1;
}

.project-thumbnail {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    position: relative !important;

    top: auto !important;
    left: auto !important;

    transform: none !important;
}

/* Información */

.project-info {
    padding-top: 5px;
}

.project-title {
    font-size: 16px;
    line-height: 1;

    text-transform: uppercase;
    color: #E4E8D8;
}

.project-artist {
    font-size: 13px;
    line-height: 1.1;

    text-transform: uppercase;
    color: #E4E8D8;
}

/* Desktop */

@media (min-width: 992px) {

    .project-grid-item {
        margin-bottom: 30px;
    }

}

/* Mobile */

@media (max-width: 767px) {

    .project-grid-item {
        margin-bottom: 16px;
    }

    .project-title {
        font-size: 12px;
    }

    .project-artist {
        font-size: 10px;
    }

}
