*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Rubik', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}


:root{
    --text-color: #fff;
    --bg-color: black;
    --second-bg-color: #1E1E1E;
    --main-color: white;
    --other-color: #c3cad5;

    --h1-font: 4.5rem;
    --h2-font: 2.9rem;
    --p-font: 1rem;

    --bg-img: url("/img/foto-principal.png");
    --bg-img2: url("/img/foto-principal-inv.png");
}

body{
    color: var(--text-color);
    background-color: var(--bg-color);

}
header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 16%;
    background-color: transparent;
    transition: all .50s ease;
   
}

.logo{
    font-size: 36px;
    color: var(--text-color);
    font-weight: 600;
}

.logo img{
    width: 40px;
    height: 40px;
}

span{
    color: var(--main-color);
}

.navlist{
    display: flex;
}

.navlist a{
    font-size: var(--p-font);
    font-weight: 500;
    color: var(--other-color);
    margin-left: 40px;
    transition: all .50s ease;
}

.navlist a:hover{

    color: var(--main-color);
    text-shadow: 3px 3px 20px var(--main-color), -2px 1px 30px var(--text-color);

}

#menu-icon{
    font-size: 35px;
    z-index: 1001;
    cursor: pointer;
    display: none;
}



  .h-btn {
    display: inline-block;
    padding: 11px 26px;
    background-color: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.50s ease;
  }
  
  .h-btn i {
    margin-right: 5px; /* Añade espaciado entre el ícono y el texto */
  }


.h-btn:hover{
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: scale(1.1);
}

section{
    padding: 110px 16% 90px;
}


/* SECTION HERO - INICIO */

.hero{
    height: 100vh;
    width: 100%;
    background: var(--bg-img);
    background-position: top right;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.main-content h4{
    font-size: 1.6rem;
}

.main-content h1{
    font-size: var(--h1-font);
    font-weight: 900;
    margin: 20px 0px 20px;
    line-height: 1.2;
}

.main-content p{
    font-size: var(--p-font);
    font-weight: 400;
    width: 620px;
    max-width: 100%;
    color: var(--other-color);
    line-height: 30px;
    margin-bottom: 15px;
}

.social{
    margin-bottom: 40px;
}

.social i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--main-color);
    border-radius: 50%;
    backdrop-filter: brightness(88%);
    font-size: 20px;
    margin-right: 17px;
    box-shadow: 0 0 20px transparent;
    cursor: pointer;
    transition: all 0.50s ease;
}

.social i:hover{
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--main-color);
}

.btn-main{
    display: inline-block;
    padding: 11px 26px;
    background: var(--main-color);
    color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
}

.btn-main i{
    margin-right: 5px;

}

.btn:hover{
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
}

.btn2{
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    margin-left: 15px;
    transition: all .50s ease;
}

.btn2:hover{
    background: var(--main-color);
    color: var(--bg-color);
}

header.sticky{
    background: var(--bg-color);
    box-shadow: 0 .1rem 1rem rgba(0, 0, 0, .2);
    padding: 16px 16%;

}



/* SECTION ACERCA DE MI */

.about{
  background: var(--second-bg-color);

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* align-items: center; */
  gap: 1rem;
  

}

.about img{
    width: 100%;
    height: 530px;
    max-width: 530px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    
    
}

.about-img{
    grid-column: 1;
    grid-row: 2;
}

.about-text{
    grid-column: 1 / span 2;
    grid-row: 1;
    text-align: center;
}

.about-text h2{
    font-size: var(--h2-font);
    line-height: 1.3;
    margin-bottom: 0px;

}



.exp-area{
    margin-bottom:50px;
    grid-column: 2 / span 3;
    grid-row: 2;
    
}

.exp-area p{
    color: var(--text-color);
    font-weight: 600;
    font-size: 19px;
    line-height: 42px;
    
}

.center-text{
    text-align: center;
}

.center-text h2{
    font-size: var(--h2-font);
}



/* PORTFOLIO */

.portfolio{
    background: var(--second-bg-color);
}

.portfolio-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, auto));
    align-items: center;
    gap: 2.3rem;
    margin-top: 4.2rem;
}

.row img, video{
    height: 240px;
    width: 100%;
    border-radius: 28px;
    margin-bottom: 1.4rem;
}

.row{
    background: #2d343f;
    border-radius: 28px;
    border: 1px solid transparent;
    box-shadow: 0 0 5px var(--main-color);
    padding: 20px;
    transition: all .50s ease;
}

.main-row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.row h5{
    font-size: 20px;
    font-weight: 600;
    color: var(--other-color);
}

.row i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    font-size: 27px;
    border-radius: 50%;
    color: var(--text-color);
    background: #075fe4;
}

.row h4{
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.row:hover{
    border: 1px solid var(--main-color);
    transform: translateY(-5px) scale(1.03);
    cursor: pointer;
}

#proyecto-terminado:hover{
    background-color: black;
    transform: scale(1.2);
    color: white;
}




@media (max-width: 1700px){

    .hero{
        height: 100vh;
        width: 100%;
        background: var(--bg-img);
        background-position: top right;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    header{
        padding: 20px 8%;
    }
    header.sticky{
        padding: 14px 8px;
    }
    section{
        padding: 90px 8% 80px;
    }
    .logo{
        font-size: 28px;
    }


    
}

@media (max-width: 1380px){
    .hero{
        height: 100vh;
        width: 100%;
        background: var(--bg-img);
        background-position: top right;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    header{
        padding: 20px 5%;
    }
    header.sticky{
        padding: 14px 5px;
    }
    section{
        padding: 90px 5% 80px;
    }
    .hero{
        height: 90vh;
        background-position:center ;
    }


    .about-img{
        grid-row: 2;
        grid-column: 1;
    }

    .about-text{
        grid-row: 1;
        grid-column: 1;
    }

    .exp-area{
        grid-row: 3;
        grid-column: 1;
        text-align: start;
    }
}

@media (max-width: 1290px){

    .hero{
        height: 100vh;
        width: 100%;
        background: var(--bg-img);
        background-position: top right;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
   .box{
    padding: 40px 40px 46px;
   } 
   .box img{
    width: 100%;
    height: 60px;
    max-width: 60px;
   }
   .box h3{
    font-size: 21px;
   }

   .about-img{
    grid-row: 2;
    grid-column: 1;
}

.about-text{
    grid-row: 1;
    grid-column: 1;
}

.exp-area{
    grid-row: 3;
    grid-column: 1;
    text-align: start;
}
}


@media (max-width: 1240px){
    .hero{
        height: 100vh;
        width: 100%;
        background: var(--bg-img);
        background-position: top right;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .about{
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .about-img img{
        text-align: center;
        width: 100%;
        height: 400px;
        max-width: 400px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
        
    }
    :root{
        --h1-font: 4rem;
        --h2-font: 2.2rem;
        --p-font: 15px;
    }



    .about-img{
        grid-row: 2;
        grid-column: 1;
    }

    .about-text{
        grid-row: 1;
        grid-column: 1;
    }

    .exp-area{
        grid-row: 3;
        grid-column: 1;
        text-align: start;
    }
}

@media (max-width: 950px){
    :root{
        --h1-font: 3.5rem;
    }

    .hero{
        height: 100vh;
        width: 100%;
        background: var(--bg-img);
        background-position: top right;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .social{
        margin-bottom:20px;
    }
    #menu-icon{
        display: block;
    }
    .navlist{
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        transition: all .50s ease;
    }
    .navlist a{
        display: block;
        padding: 17px;
        font-size: 22px
    }

    .navlist.active{
        right: 0;
    }






    .about-img{
        grid-row: 2;
        grid-column: 1;
    }

    .about-text{
        grid-row: 1;
        grid-column: 1;
    }

    .exp-area{
        grid-row: 3;
        grid-column: 1;
        text-align: start;
    }
}


@media (max-width: 680px){
    .main-content{
        width: 100%;
    }

    .hero{
        height: 100vh;
        width: 100%;
        background: var(--bg-img);
        background-position: top right;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .about-img{
        grid-row: 2;
        grid-column: 1;
    }

    .about-text{
        grid-row: 1;
        grid-column: 1;
    }

    .exp-area{
        grid-row: 3;
        grid-column: 1;
        text-align: start;
    }
}
@media (max-width: 470px){
    :root{
        --h1-font: 3rem;
        --h2-font: 3rem;
    }

    .hero{
        height: 100vh;
        width: 100%;
        background: var(--bg-img);
        background-position: top right;
        background-size: cover;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .about-img img{
        text-align: center;
        width: 100%;
        height: 300px;
        max-width: 300px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;

    }


    .about-img{
        grid-row: 2;
        grid-column: 1;
    }

    .about-text{
        grid-row: 1;
        grid-column: 1;
    }

    .exp-area{
        grid-row: 3;
        grid-column: 1;
        text-align: start;
    }
}




/* Seccion "Efecto ruido" */

@-webkit-keyframes noise {
    0% {
        -webkit-transform: translate3d(0, 9rem, 0);
        transform: translate3d(0, 9rem, 0)
    }
    10% {
        -webkit-transform: translate3d(-1rem, -4rem, 0);
        transform: translate3d(-1rem, -4rem, 0)
    }
    20% {
        -webkit-transform: translate3d(-8rem, 2rem, 0);
        transform: translate3d(-8rem, 2rem, 0)
    }
    30% {
        -webkit-transform: translate3d(9rem, -9rem, 0);
        transform: translate3d(9rem, -9rem, 0)
    }
    40% {
        -webkit-transform: translate3d(-2rem, 7rem, 0);
        transform: translate3d(-2rem, 7rem, 0)
    }
    50% {
        -webkit-transform: translate3d(-9rem, -4rem, 0);
        transform: translate3d(-9rem, -4rem, 0)
    }
    60% {
        -webkit-transform: translate3d(2rem, 6rem, 0);
        transform: translate3d(2rem, 6rem, 0)
    }
    70% {
        -webkit-transform: translate3d(7rem, -8rem, 0);
        transform: translate3d(7rem, -8rem, 0)
    }
    80% {
        -webkit-transform: translate3d(-9rem, 1rem, 0);
        transform: translate3d(-9rem, 1rem, 0)
    }
    90% {
        -webkit-transform: translate3d(6rem, -5rem, 0);
        transform: translate3d(6rem, -5rem, 0)
    }
    to {
        -webkit-transform: translate3d(-7rem, 0, 0);
        transform: translate3d(-7rem, 0, 0)
    }
}

@keyframes noise {
    0% {
        -webkit-transform: translate3d(0, 9rem, 0);
        transform: translate3d(0, 9rem, 0)
    }
    10% {
        -webkit-transform: translate3d(-1rem, -4rem, 0);
        transform: translate3d(-1rem, -4rem, 0)
    }
    20% {
        -webkit-transform: translate3d(-8rem, 2rem, 0);
        transform: translate3d(-8rem, 2rem, 0)
    }
    30% {
        -webkit-transform: translate3d(9rem, -9rem, 0);
        transform: translate3d(9rem, -9rem, 0)
    }
    40% {
        -webkit-transform: translate3d(-2rem, 7rem, 0);
        transform: translate3d(-2rem, 7rem, 0)
    }
    50% {
        -webkit-transform: translate3d(-9rem, -4rem, 0);
        transform: translate3d(-9rem, -4rem, 0)
    }
    60% {
        -webkit-transform: translate3d(2rem, 6rem, 0);
        transform: translate3d(2rem, 6rem, 0)
    }
    70% {
        -webkit-transform: translate3d(7rem, -8rem, 0);
        transform: translate3d(7rem, -8rem, 0)
    }
    80% {
        -webkit-transform: translate3d(-9rem, 1rem, 0);
        transform: translate3d(-9rem, 1rem, 0)
    }
    90% {
        -webkit-transform: translate3d(6rem, -5rem, 0);
        transform: translate3d(6rem, -5rem, 0)
    }
    to {
        -webkit-transform: translate3d(-7rem, 0, 0);
        transform: translate3d(-7rem, 0, 0)
    }
}

.noise {
    position: absolute
    
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 5%;
}

.noise:after {
    position: absolute;
    top: -10rem;
    left: -10rem;
    content: "";
    width: calc(100% + 20rem);
    height: calc(100% + 20rem);
    background-image: url('../img/fondo-ruido.jpg');
    background-position: 50%;
    will-change: transform;
    -webkit-animation: noise 1s steps(2) infinite;
    animation: noise 1s steps(2) infinite
}