*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Poppins;
}

html {
    overflow-y: scroll;
}
body{
    background-color: black;
}
a{
    text-decoration: none;
}

nav{
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background: black;
    padding-block:1rem;
    padding-inline: clamp(1rem, 5vw ,5rem);
    z-index: 9999;
}


nav .nav_content{
    height: 100%;
    max-width: 3000px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .nav_content .logo{
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
nav .nav_content .logo img{
    height: 2rem;
}
nav .nav_content .logo a{
    font-size:clamp(1.5rem,2vw,2.25rem);
    color: white;
}

nav .nav_content .nav_links{
    display: flex;
    align-items: center;
}

nav .nav_links li{
    list-style: none;
    margin: 0 1rem;
}

nav .nav_links a{
    font-size: clamp(1.25rem,2vw,2rem);
    font-weight: 300;
    color: white;
}
#active{
    text-decoration: underline 2px;
    text-underline-offset: 8px;
}



.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 3100;
    position: relative;
}

.menu-toggle svg {
    fill: white;
}

.line {
    transition: 0.3s;
    transform-origin: center;
}

.is-active .middle {
    opacity: 0;
}

.is-active .top {
    transform: translateY(25px) rotate(45deg);
}

.is-active .bottom {
    transform: translateY(-25px) rotate(-45deg);
}





.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 5000; /* Super alto para que no lo tape nada */
    position: relative;
}

.menu-toggle svg { fill: white; }

/* Estado inicial del menú: invisible y ancho 0 */
.mobile-menu-screen {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 4500;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(15px);
    overflow-x: hidden;
    transition: width 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Clase que activa el JS */
.mobile-menu-screen.is-open {
    width: 100%;
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    text-align: center;
    width: 100%;
}

.mobile-menu-content a {
    padding: 15px;
    text-decoration: none;
    font-size: 3rem;
    font-weight: 300;
    color: white;
    display: block;
    letter-spacing: 3px;
}

/* Animación del Burger a X */
.line { transition: 0.3s; transform-origin: center; }
.is-active .middle { opacity: 0; }
.is-active .top { transform: translateY(35px) rotate(45deg); }
.is-active .bottom { transform: translateY(-35px) rotate(-45deg); }

.content{
    margin-top: 2rem;
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
.splita,.splitb,.splitc{
    position: relative;
    overflow: hidden;
    width: 100%;
}
.splita img,.splitb img,.splitc img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    scale: 1;
    transform: scale(1);
    transition: transform 0.3s ease;
}
.splita:hover img,.splitb:hover img,.splitc:hover img{
    transform: scale(1.2);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    

    display: flex;
    justify-content: center; 
    align-items: center;     
    
    background-color: rgba(0, 0, 0, 0.1); 
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.overlay{
    font-size: clamp(3rem, 12vw, 10rem);
}

.splita:hover .overlay, 
.splitb:hover .overlay, 
.splitc:hover .overlay {
    opacity: 1;
}

.gallery_studio{
    margin-top: 2rem;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    grid-auto-rows: auto;
    background-color: black;
}
.gallery_nightlife{
    margin-top: 2rem;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    grid-auto-rows: auto;
    background-color: black;
}

.gallery_wrapper{
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1.618;
}
.gallery_wrapper a {
    display: block; 
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: zoom-in;
}

.gallery_wrapper img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.3s ease;
}
.gallery_wrapper img:hover{
        transform: scale(1.2);
}

.info{
    background-color: black;
    min-height: 100vh; 
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    padding-block:10rem;
    gap: 5rem;
}

.personal_info{
    color: white;
    font-size: clamp(0.7rem, 3vw ,1.2rem);
    padding-inline: clamp(1rem, 10vw, 15rem);
    white-space: pre-line;
    text-align: center;
    line-height: 1.6;
}

.instagram{
    color: white;
    font-size: clamp(0.8rem, 3vw ,2.1rem);
    padding-inline: clamp(1rem, 10vw, 15rem);
    font-weight: 500;
    white-space: pre-line;
    text-align: center;
    line-height: 1.6;
}

.cl-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.cl-img-container {
    max-width: 85%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
}

.cl-img-container img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}


.cl-close {
    position: absolute; top: 20px; right: 30px;
    color: white; font-size: 50px; cursor: pointer; z-index: 10;
}

.cl-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: white;
    font-size: 60px; cursor: pointer; padding: 20px; z-index: 10;
    transition: 0.3s;
}

.cl-arrow:hover { color: #ccc; }
.cl-prev { left: 10px; }
.cl-next { right: 10px; }


.gallery_wrapper img { cursor: pointer; }


.mobile-menu-screen.is-open .mobile-menu-content a {
    animation: fadeInLinks 0.5s ease forwards;
    opacity: 0;
}

/* Retraso progresivo para cada enlace */
.mobile-menu-content a:nth-child(1) { animation-delay: 0.3s; }
.mobile-menu-content a:nth-child(2) { animation-delay: 0.4s; }
.mobile-menu-content a:nth-child(3) { animation-delay: 0.5s; }
.mobile-menu-content a:nth-child(4) { animation-delay: 0.6s; }


@keyframes fadeInLinks {
    from {
        opacity: 0.2;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0.2;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0.2;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes revealText {
    0% {
        opacity: 0;
        letter-spacing: 8px;
        filter: blur(12px);
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        letter-spacing: normal;
        filter: blur(0);
        transform: translateY(0);
    }
}

nav, .gallery_studio ,.gallery_nightlife,.content,.info{
    opacity: 0;
}

.animate-nav {
    animation: fadeInDown 0.2s ease-out forwards;
}

.animate-content {
    animation: fadeInUp 0.5s ease-out forwards;
}
.animate-content2 {
    animation: fadeInUp 0.5s ease-out forwards;
}
.intro_animated{
    animation: fadeInUp 0.5s ease-out forwards;
}
.animated_info{
    animation: revealText 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@media (max-width: 1020px){
    .gallery_studio, .gallery_nightlife {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: auto;
        height: auto;
    }
}


@media (max-width: 768px){
    nav .nav_content .nav_links {
        display: none;
    }


    .nav_links { display: none; }
    .menu-toggle { display: block; }

    .content{

        height: 100vh;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        
    }

    .overlay {
        opacity: 1; 
        background-color: rgba(0, 0, 0, 0.3); 
    }
    .gallery_studio, .gallery_nightlife {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        height: auto;
    }

    .cl-img-container img {
        max-width: 75% !important; /* La foto solo ocupa el 75% del ancho */
        max-height: 70vh !important; /* Y el 70% de la altura de la pantalla */
    }

    /* Ajustamos las flechas para que sean fáciles de tocar */
    .cl-arrow {
        font-size: 40px; /* Un poco más pequeñas para que no agobien */
        padding: 0 5px;   /* Menos relleno interno */
        width: 50px;      /* Área de toque fija */
        height: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cl-prev { left: 0px; }
    .cl-next { right: 0px; }

    /* Opcional: bajar un poco la X de cerrar para que no choque con la foto */
    .cl-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}