:root{
    --blanco-logo: #F5F5F5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    background: #ffffff;
    color: #111111;
}

/* ---------- MENÚ ---------- */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.logo img{
    height:80px;
}

.menu{
    display:flex;
    gap:40px;
    list-style:none;
}

.menu a{
    text-decoration:none;
    color:var(--blanco-logo);
    font-weight:600;
    transition:.3s;
}

.menu a:hover{
    color:#666;
}

/* ---------- HERO ---------- */

.hero{
    height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    background:
        linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
        url("../assets/gallery/hero.jpg");

    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}
.hero-content{
    max-width:800px;
}

.hero h1{
    font-size:72px;
    font-weight:800;
    letter-spacing:2px;
    color:var(--blanco-logo);
}

.hero p{
    margin-top:20px;
    font-size:22px;
   color:var(--blanco-logo);
}

.boton{
    display:inline-block;
    margin-top:40px;
    padding:18px 40px;
    background:#111;
   color:var(--blanco-logo);
    text-decoration:none;
    border-radius:50px;
    transition:.3s;
}

.boton:hover{
    .hero-content{
    max-width:800px;
    transform:translateY(-60px);
}
    background:#333;
}

/* -------------------- */
/* PORTFOLIO */
/* -------------------- */

.portfolio{
    padding:120px 8%;
    background:#ffffff;
}

.section-title{
    text-align:center;
    margin-bottom:70px;
}

.section-title span{
    letter-spacing:4px;
    color:#888;
    font-size:14px;
}

.section-title h2{
    margin-top:15px;
    font-size:42px;
}

.gallery{

    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:35px;

}

.card{

    position:relative;

    overflow:hidden;

    border-radius:20px;

    cursor:pointer;

}

.card img{

    width:100%;

    height:520px;

    object-fit:cover;

    transition:.5s;

}

.card:hover img{

    transform:scale(1.08);

}

.overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        transparent,
        rgba(0,0,0,.65)
    );

    display:flex;

    align-items:flex-end;

    padding:30px;

}

.overlay h3{

   color:var(--blanco-logo);

    font-size:30px;

}

/* -------------------- */
/* MENÚ AL HACER SCROLL */
/* -------------------- */

.navbar.scrolled{

    background:rgba(255,255,255,.96);

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    transition:.35s;

}

.navbar.scrolled .menu a{

    color:#111;

}

.navbar.scrolled .logo img{

    filter:none;

}

/* --------- Portfolio Premium -------- */

.gallery{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

}

.card{

    position:relative;

    overflow:hidden;

    border-radius:22px;

    height:400px;

}

.card img{

    width:100%;
    height:100%;

    object-fit:cover;

    transition:.6s;

}

.card:hover img{

    transform:scale(1.08);

}

.card.tall{

    grid-row:span 1;

}

.card.wide{

    grid-column:span 1;

}

.overlay{

    position:absolute;

    inset:0;

    display:flex;

    align-items:flex-end;

    padding:35px;

    background:linear-gradient(
        transparent,
        rgba(0,0,0,.65)
    );

}

.overlay h3{

  color:var(--blanco-logo);

    font-size:34px;

    font-weight:700;

}

/*----------------------*/
/* LIGHTBOX */
/*----------------------*/

.lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.92);

    display:flex;

    justify-content:center;

    align-items:center;

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:9999;

}

.lightbox.activo{

    opacity:1;

    visibility:visible;

}

.lightbox img{

    max-width:90%;

    max-height:90%;

    border-radius:12px;

    transform:scale(.85);

    transition:.35s;

    box-shadow:0 20px 60px rgba(0,0,0,.5);

}

.lightbox.activo img{

    transform:scale(1);

}

.cerrar{

    position:absolute;

    top:30px;

    right:40px;

    font-size:50px;

    color:var(--blanco-logo);

    cursor:pointer;

    user-select:none;

    transition:.3s;

}

.cerrar:hover{

    transform:rotate(90deg);

}

.anterior,
.siguiente{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    color:var(--blanco-logo);

    font-size:55px;

    cursor:pointer;

    user-select:none;

    transition:.3s;

    padding:20px;

}

.anterior{

    left:30px;

}

.siguiente{

    right:30px;

}

.anterior:hover,
.siguiente:hover{

    transform:translateY(-50%) scale(1.2);

}

.reveal{

    opacity:0;

    transform:translateY(70px);

    transition:1s;

}

.reveal.visible{

    opacity:1;

    transform:translateY(0);

}