/* ============================
   RESET
============================ */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    scroll-padding-top:0;
}

body{
    background:#000;
    color:#fff;
    font-family:Arial, Helvetica, sans-serif;
    overflow-x:hidden;
}


/* ============================
   PORTADA
============================ */

.hero{

    position:relative;

    width:100%;

    height:100vh;

    overflow:hidden;

    background:#000;

}


.slide{

    position:absolute;

    inset:0;

    width:100%;

    height:100%;

    object-fit:cover;

    opacity:0;

    transition:opacity 1.5s ease;

}


.slide.active{

    opacity:1;

}


.hero::after{

    content:"";

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.35);

}



/* ============================
   FIRMA Y TEXTO
============================ */


.overlay{

    position:absolute;

    z-index:5;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

}


.firma{

    width:420px;

    max-width:80%;

    opacity:.78;

}


.overlay p{

    margin-top:8px;

    font-size:14px;

    letter-spacing:6px;

    text-transform:uppercase;

    color:#ddd;

}



/* ============================
   BOTON PORTFOLIO
============================ */


.boton{

    margin-top:35px;

    padding:14px 45px;

    border:1px solid rgba(255,255,255,.7);

    color:white;

    text-decoration:none;

    font-size:12px;

    letter-spacing:5px;

    text-transform:uppercase;

    transition:.5s ease;

}


.boton:hover{

    background:white;

    color:#000;

}



/* ============================
   PORTFOLIO
============================ */


.portfolio{

    background:#f7f7f5;

    color:#111;

    padding:120px 60px 100px;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:30px;

}



/* ============================
   TITULO PORTFOLIO
============================ */


.titulo-portfolio{

    grid-column:1 / -1;

    text-align:center;

    margin-bottom:20px;

}


.titulo-portfolio h2{

    font-size:55px;

    font-weight:300;

    letter-spacing:15px;

}


.titulo-portfolio p{

    margin-top:15px;

    font-size:13px;

    letter-spacing:6px;

    text-transform:uppercase;

}



/* ============================
   CATEGORIAS
============================ */


.categoria{

    position:relative;

    overflow:hidden;

    cursor:pointer;

}


.categoria img{

    width: 100%;

    height: 400px;

    object-fit:cover;

    display:block;

    transition:transform .8s ease;

}


.categoria:hover img{

    transform:scale(1.08);

}



.categoria::after{

    content:"";

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.15);

    transition:.5s;

}


.categoria:hover::after{

    background:rgba(0,0,0,.45);

}



.titulo{

    position:absolute;

    top:50%;

    left:50%;

    transform:translate(-50%,-50%);

    color:white;

    font-size:24px;

    letter-spacing:6px;

    text-transform:uppercase;

    opacity:0;

    transition:.5s;

    z-index:2;

}


.categoria:hover .titulo{

    opacity:1;

}



/* ============================
   ANIMACION SIMPLE
============================ */


@keyframes aparecer{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}



/* ============================
   MOVIL
============================ */


@media(max-width:1100px){

    .portfolio{

        grid-template-columns:repeat(2,1fr);

    }

}



@media(max-width:700px){


    .portfolio{

        grid-template-columns:1fr;

        padding:80px 25px;

    }


    .titulo-portfolio h2{

        font-size:35px;

        letter-spacing:8px;

    }


    .categoria img{

        height:420px;

    }


    .firma{

        width:300px;

    }


    .overlay p{

        font-size:11px;

        letter-spacing:3px;

    }

.categoria{

    text-decoration:none;

    color:inherit;

}

}

/* ============================
   GALERIAS
============================ */


.galeria-page{

    background:#f7f7f5;

    color:#111;

}



.galeria-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:30px 60px;

}



.volver{

    text-decoration:none;

    color:#111;

    letter-spacing:3px;

    font-size:12px;

}



.firma-galeria{

    width:180px;

    opacity:.7;

}



.galeria{

    padding:20px 60px 100px;

}



.galeria h1{

    text-align:center;

    font-size:55px;

    font-weight:300;

    letter-spacing:15px;

    margin-bottom:80px;

}



.grid-galeria{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

    max-width:1200px;

    margin:auto;

}


.grid-galeria img{

    width:100%;

    aspect-ratio:4 / 5;

    object-fit:cover;

    display:block;

    cursor:pointer;

    opacity:0;

    transform:translateY(30px);

    animation:entradaFoto .8s ease forwards;

    transition:transform .6s ease;

}



.grid-galeria img:hover{

    transform:scale(1.04);

}




@keyframes entradaFoto{


    from{

        opacity:0;

        transform:translateY(30px);

    }


    to{

        opacity:1;

        transform:translateY(0);

    }


}

/* ==========================
   LIGHTBOX
========================== */


.lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.95);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.4s ease;

    z-index:9999;

}



.lightbox.activo{

    opacity:1;

    visibility:visible;

}



.lightbox img{

    max-width:90vw;

    max-height:90vh;

    object-fit:contain;

}



.cerrar{

    position:absolute;

    top:25px;

    right:40px;

    color:white;

    font-size:50px;

    cursor:pointer;

}

/* ==========================
   FLECHAS LIGHTBOX
========================== */


.lightbox button{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    background:none;

    border:none;

    color:white;

    font-size:70px;

    font-weight:200;

    cursor:pointer;

    padding:20px;

    z-index:10000;

    transition:.3s ease;

}



.lightbox button:hover{

    opacity:.5;

}



.anterior{

    left:30px;

}



.siguiente{

    right:30px;

}

/* ==========================
   ABOUT
========================== */


.about{

    background:#000;

    color:white;

    padding:140px 80px;

    display:flex;

    justify-content:center;

    text-align:center;

}



.about-text{

    max-width:800px;

}



.about h2{

    font-size:55px;

    font-weight:300;

    letter-spacing:15px;

    margin-bottom:40px;

}



.about p{

    font-size:18px;

    line-height:2;

    color:#ddd;

    letter-spacing:1px;

}





/* ==========================
   CONTACT
========================== */


.contact{

    background:#f7f7f5;

    color:#111;

    padding:120px 40px;

    text-align:center;

}



.contact h2{

    font-size:55px;

    font-weight:300;

    letter-spacing:15px;

    margin-bottom:30px;

}



.contact p{

    font-size:20px;

    margin-bottom:40px;

}



.contact a{

    display:inline-block;

    padding:15px 45px;

    border:1px solid #111;

    color:#111;

    text-decoration:none;

    letter-spacing:5px;

    font-size:12px;

    transition:.4s;

}



.contact a:hover{

    background:#111;

    color:white;

}





/* ==========================
   FOOTER
========================== */


footer{

    background:#000;

    color:white;

    padding:40px;

    text-align:center;

    font-size:12px;

    letter-spacing:3px;

}



footer p{

    margin:15px;

}





/* ==========================
   MOVIL
========================== */


@media(max-width:700px){


    .about{

        padding:90px 25px;

    }


    .about h2,
    .contact h2{

        font-size:35px;

        letter-spacing:8px;

    }


    .about p{

        font-size:15px;

    }


}

/* ==========================
   FORMULARIO CONTACTO
========================== */


.formulario{

    max-width:600px;

    margin:60px auto 0;

    display:flex;

    flex-direction:column;

    gap:20px;

}



.formulario input,
.formulario textarea{

    width:100%;

    padding:18px;

    border:none;

    border-bottom:1px solid #999;

    background:transparent;

    font-size:15px;

    font-family:Arial, Helvetica, sans-serif;

    outline:none;

}



.formulario textarea{

    height:150px;

    resize:none;

}



.formulario input:focus,
.formulario textarea:focus{

    border-bottom:1px solid #111;

}




.formulario button{

    margin-top:20px;

    padding:16px;

    background:#111;

    color:white;

    border:none;

    cursor:pointer;

    letter-spacing:5px;

    font-size:12px;

    transition:.4s;

}



.formulario button:hover{

    background:#555;

}

/* ==========================
   SERVICES
========================== */


.services{

    background:#000;

    color:white;

    padding:120px 60px;

    text-align:center;

}



.services h2{

    font-size:55px;

    font-weight:300;

    letter-spacing:15px;

    margin-bottom:70px;

}



.services-grid{

    max-width:1200px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:40px;

}



.service{

    border-top:1px solid rgba(255,255,255,.4);

    padding-top:30px;

}



.service h3{

    font-size:18px;

    letter-spacing:6px;

    font-weight:400;

    margin-bottom:25px;

}



.service p{

    color:#ccc;

    line-height:1.8;

    font-size:14px;

}



@media(max-width:1000px){


    .services-grid{

        grid-template-columns:repeat(2,1fr);

    }


}



@media(max-width:700px){


    .services{

        padding:90px 25px;

    }


    .services h2{

        font-size:35px;

        letter-spacing:8px;

    }


    .services-grid{

        grid-template-columns:1fr;

    }


}

/* ==========================
   MENU
========================== */


.menu{

    position:absolute;

    top:0;

    right:0;

    width:100%;

    padding:40px 60px;

    display:flex;

    justify-content:flex-end;

    z-index:100;

}



.menu nav{

    display:flex;

    gap:45px;

}



.menu a{

    color:white;

    text-decoration:none;

    text-transform:uppercase;

    font-size:11px;

    letter-spacing:5px;

    transition:.3s;

}



.menu a:hover{

    opacity:.5;

}

/* ==========================
   MENU MOVIL
========================== */


.hamburguesa{

    display:none;

    width:35px;

    cursor:pointer;

}



.hamburguesa span{

    display:block;

    height:1px;

    background:white;

    margin:8px 0;

    transition:.4s;

}



@media(max-width:700px){


    .menu{

        padding:30px;

    }



    .menu nav{

        position:fixed;

        inset:0;

        background:#000;

        display:flex;

        flex-direction:column;

        justify-content:center;

        align-items:center;

        gap:40px;

        opacity:0;

        visibility:hidden;

        transition:.4s;

    }



    .menu nav.activo{

        opacity:1;

        visibility:visible;

    }



    .hamburguesa{

        display:block;

        position:relative;

        z-index:200;

    }



    .menu a{

        font-size:14px;

        letter-spacing:6px;

    }

}