@charset "utf-8";
/* CSS Document */
/*======================================
ARCADNOVA
STYLE.CSS
======================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

:root{

    --black:#080808;
    --cream:#FFFEF2;
    --white:#ffffff;

    --pink:#E6007E;
    --blue:#132075;
    --yellow:#F7A715;
    --green:#00C77D;

    --transition:.45s cubic-bezier(.22,.61,.36,1);

}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--black);

    color:white;

    font-family:'Inter',sans-serif;

    overflow-x:hidden;

}


/*======================================
NAVBAR
======================================*/

header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    z-index:9999;

    transition:
    background .45s ease,
    backdrop-filter .45s ease,
    box-shadow .45s ease,
    padding .45s ease;

}


/*======================================
HOME
======================================*/

/* Estado inicial del HOME */

header:not(.inner-page){

    background:transparent;

}


/* HOME cuando haces scroll */

header.scrolled{

    background:rgba(8,8,8,.88);

    backdrop-filter:blur(18px);

    box-shadow:0 8px 35px rgba(0,0,0,.45);

}


/*======================================
PÁGINAS INTERNAS
======================================*/

header.inner-page{

    background:#2a2b2a;

    backdrop-filter:none;

    box-shadow:none;

}


/* Mantener el mismo estado aunque haya scroll */

header.inner-page.scrolled{

    background:#2a2b2a;

    backdrop-filter:none;

    box-shadow:none;

}


.navbar{

    width:min(92%,1450px);

    height:90px;

    margin:auto;

    display:flex;

    justify-content:space-between;

    align-items:center;

}


/*======================================
LOGO
======================================*/

.logo{

    width:180px;

    display:flex;

    align-items:center;

}

.logo img{

    width:100%;

    transition:.5s;

}

.logo:hover img{

    transform:scale(1.03);

}


/*======================================
MENU
======================================*/

nav ul{

    display:flex;

    gap:50px;

    list-style:none;

}

nav a{

    position:relative;

    color:white;

    text-decoration:none;

    font-size:.78rem;

    letter-spacing:.18em;

    transition:var(--transition);

    text-transform:uppercase;

}

nav a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:1px;

    background:white;

    transition:.4s;

}

nav a:hover{

    letter-spacing:.24em;

}

nav a:hover::after{

    width:100%;

}


/*======================================
HAMBURGUESA
======================================*/

.menu{

    width:34px;

    height:24px;

    display:none;

    flex-direction:column;

    justify-content:space-between;

    cursor:pointer;

}

.menu span{

    width:100%;

    height:2px;

    background:white;

    transition:.4s;

}

.menu.active span:nth-child(1){

    transform:
    rotate(45deg)
    translateY(10px);

}

.menu.active span:nth-child(2){

    opacity:0;

}

.menu.active span:nth-child(3){

    transform:
    rotate(-45deg)
    translateY(-10px);

}


/*======================================
MENU MOBILE
======================================*/

@media(max-width:900px){

nav{

    position:fixed;

    top:0;

    right:-100%;

    width:100%;

    height:100vh;

    background:rgba(8,8,8,.97);

    backdrop-filter:blur(30px);

    display:flex;

    justify-content:center;

    align-items:center;

    transition:.6s cubic-bezier(.22,.61,.36,1);

    opacity:0;

}

nav.active{

    right:0;

    opacity:1;

}

nav ul{

    flex-direction:column;

    gap:45px;

}

nav a{

    font-size:1.4rem;

    letter-spacing:.22em;

}

.menu{

    display:flex;

    z-index:10001;

}

.hero-logo{

    width:90%;

}

.subtitle{

    font-size:.72rem;

    letter-spacing:.22em;

}

.categories{

    font-size:.68rem;

    line-height:2;

    gap:12px;

}

}

/*======================================
PORTFOLIO
======================================*/

.portfolio{

    position:relative;

    padding:130px 0;

    background:#FFFEF2;

    /* Puedes cambiarla por cualquier imagen */

    background-image:url("img/fondos/portfolio-bg.jpg");

    background-size:cover;

    background-position:center;

    background-attachment:fixed;

    overflow:hidden;

}

.portfolio::before{

    content:"";

    position:absolute;

    inset:0;

    background:rgba(255,254,242,.92);

    backdrop-filter:blur(2px);

}

.portfolio-container{

    position:relative;

    z-index:2;

    width:min(92%,1400px);

    margin:auto;

}

.portfolio-number{

    display:block;

    color:#777;

    letter-spacing:.15em;

    margin-bottom:15px;

}

.portfolio h1{

    font-family:'Cormorant Garamond',serif;

    font-size:5rem;

    font-weight:500;

    text-align:center;

    margin-bottom:60px;

}


/*======================================
FILTROS
======================================*/

.portfolio-filters{

    display:flex;

    justify-content:center;

    gap:50px;

    flex-wrap:wrap;

    margin-bottom:70px;

}

.filter-btn{

    background:none;

    border:none;

    cursor:pointer;

    color:#444;

    font-size:.82rem;

    font-weight:600;

    letter-spacing:.16em;

    text-transform:uppercase;

    position:relative;

    transition:.35s;

}

.filter-btn::after{

    content:"";

    position:absolute;

    left:50%;

    bottom:-10px;

    width:0;

    height:2px;

    background:#E6007E;

    transition:.35s;

    transform:translateX(-50%);

}

.filter-btn:hover{

    color:#E6007E;

}

.filter-btn.active{

    color:#E6007E;

}

.filter-btn.active::after{

    width:100%;

}


/*======================================
GRID
======================================*/

.portfolio-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}


/*======================================
CARD
======================================*/

.portfolio-card{

    transition:
        opacity .35s ease,
        transform .35s ease;

    opacity:1;
    transform:translateY(0) scale(1);

}

.portfolio-card.hide{

    opacity:0;
    transform:translateY(25px) scale(.96);
    pointer-events:none;

}

.portfolio-card.show{

    animation:portfolioFade .45s ease;

}

@keyframes portfolioFade{

    from{

        opacity:0;
        transform:translateY(25px) scale(.96);

    }

    to{

        opacity:1;
        transform:translateY(0) scale(1);

    }

}


.portfolio-card a{

    text-decoration:none;

    color:inherit;

}

.portfolio-card:hover{

    transform:translateY(-10px);

}


/*======================================
IMAGEN
======================================*/

.portfolio-image{

    height:420px;

    overflow:hidden;

    position:relative;

    background:#111;

}

.portfolio-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:transform .8s ease;

}

.portfolio-image::after{

    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(to top,rgba(0,0,0,.45),transparent);

    opacity:0;

    transition:.45s;

}

.portfolio-card:hover img{

    transform:scale(1.08);

}

.portfolio-card:hover .portfolio-image::after{

    opacity:1;

}


/*======================================
INFO
======================================*/

.portfolio-info{

    margin-top:22px;

}

.portfolio-info h3{

    font-size:2rem;

    font-family:'Cormorant Garamond',serif;

    margin-bottom:10px;

    transition:.35s;

}

.portfolio-card:hover h3{

    transform:translateX(8px);

}

.portfolio-info span{

    display:block;

    font-size:.78rem;

    letter-spacing:.16em;

    text-transform:uppercase;


    color:#666;

    margin-bottom:12px;

}

.portfolio-info small{

    color:#888;

}


/*======================================
APARICIÓN
======================================*/

.portfolio-card{

    animation:fadeUp .8s both;

}

.portfolio-card:nth-child(2){

    animation-delay:.1s;

}

.portfolio-card:nth-child(3){

    animation-delay:.2s;

}

.portfolio-card:nth-child(4){

    animation-delay:.3s;

}

.portfolio-card:nth-child(5){

    animation-delay:.4s;

}

.portfolio-card:nth-child(6){

    animation-delay:.5s;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(60px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}


/*======================================
RESPONSIVE
======================================*/

@media(max-width:1000px){

.portfolio-grid{

    grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:700px){

.portfolio{

    padding:90px 0;

}

.portfolio h1{

    font-size:3.2rem;

}

.portfolio-grid{

    grid-template-columns:1fr;

}

.portfolio-image{

    height:340px;

}

.portfolio-filters{

    gap:25px;

}

}