html{scroll-behavior: smooth;}
*{margin: 0; padding: 0; box-sizing: border-box;}
/****************************************/

body{
    font-family: "Inter", sans-serif;
    background-image: url(../img/fondo3.jpg);
    background-position: top left;
    background-repeat:no-repeat;
    background-color: rgb(0, 0, 0);
    background-attachment: fixed ;
}

/****COLORES***********----------------------------------*******/
:root {--main: #7525e2; --mainOscuro: #961C4D; --Azul: #003E59; --azulMail: #0575A5; --GRIS: #2a2c29; --verde: #4D961C;}
/****COLORES********-------------------------------------********/


/*******************LOGO****************-------****/

.logo{
    position: fixed;
    top: 14px;
    left: 20px;
    z-index: 6;
    width: 18px;
}

.logo a{
    color: var(--verde);
    text-decoration: none;
}

.logo img{
    width: 100%;
}

.logo img:hover{
    transform: scale(1.2);
    filter: drop-shadow(rgb(255, 255, 255) 0px 0px 8px)
}


/*********************HOME***************************************/

.contenedor-inicio{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 600px;
    margin-top: 20px;
    animation: fondo 2s ease infinite;
}


.contenedor-textos{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
}

.texto1{
    opacity: 0;
    animation: entrada .3s ease forwards;
    animation-delay: 1s;
}

.texto1 h1{
    font-size: 4rem;
    color: #D2D2D2;
    line-height: 54px;
    font-weight: bold;
}

.texto1 h3, h2{
    color: #4D961C;
}

.texto1 h3{
font-weight: 300;
font-size: 2rem;
letter-spacing: 5px;
}

.texto2{
     text-align: right;     
     animation: loop 6s infinite;
}

.texto2 h2{
     color: #454545;
     font-size: 45px;
     line-height: 35px;
     font-weight: bold;
}

.wsap{
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    z-index: 4;
    cursor: pointer;

    display: none;
}

.wsap:hover{
    transform: scale(1.1);
}

.wsap img{
    width: 100%;
}



/*******SERVICIOS----------------------------------------------------------------***/


.servicios{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    border-top: #4D961C dashed .5px;
    
}


.contenedorServicios{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 70%;
    padding: 5% 0;
    opacity: 0;
   
}

.contenedorServiciosAparece{
    animation: aparece 1s ease forwards;
    animation-delay: 1s;
}

.item{
    padding: 25px;
    border: 1px solid rgb(80, 80, 80);
    border-radius: 5%;
    background: rgba(0, 0, 0, 0.8);
}

.item h2{
    font-size: 2rem;
    color: var(--verde);
    margin-bottom: 10px;
    line-height: 35px;

}

.item p{
    color: rgb(223, 223, 223);
    letter-spacing: 3px;
}

.item img{
    width: 100%;
    max-width: 100px;
    border-radius: 50%;
    box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--GRIS);
}

#servicios{
    scroll-margin-top: 50px;
}

/****SOLUCIONES*****************/

.contenedor-soluciones{
    text-align: center;
    padding: 120px 20px 120px 20px;
    background: rgba(0, 0, 0, 0.8);
}

.contenedor-soluciones h2{
    color: #bebebe;
}

.soluciones{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 80%;
    margin: auto;
    color: rgb(223, 223, 223);  
    opacity: 0;
}

.solucionesAparece{
    animation: aparece forwards 2s;
}


.soluciones-item{
    padding: 40px 20px;
    border-radius: 20px;
    transition: transform .1s;
     border: 1px solid rgb(80, 80, 80);
   
}

.soluciones-item h4{
    color: var(--verde);
}

.soluciones-item:hover{
    transform: scale(1.05);
}


/***************TRABAJOS------------------------------**********************************/


#trabajos{
    scroll-margin-top:50px;
}

.trabajos{
    padding: 0;
    color: var(--Azul);
    opacity: 0;
}

.trabajos a{
    text-decoration: none;
}

.trabajos > h2{
    text-align: center;
    margin: 20px;
    
}

.contenedor-trabajos{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    height: auto;
    border-bottom: 3px solid var(--verde);
}

.item-trabajos{
    position: relative;
    justify-content: center;
    width: 100%;
    height: 600px;
    cursor: pointer;
    overflow: hidden;
    
}

.item-trabajos:hover .imgTrabajo{
    transform: scale(1.2);
}

.item-trabajos:hover .titulo-trabajo{
    background: #000;
}

.item-trabajos:hover .titulo-trabajo h2{
    color: rgb(221, 221, 221);
}


.titulo-trabajo{
    position: relative;
    text-align: left;
    padding: 20px;
    z-index: 2;
    width: 100%;
    font-size: 1rem;
    background: var(--verde);
    z-index: 2;
    transition: all .3s;
}

.titulo-trabajo h2{
    font-size: 1.8rem;
    color: var(--Azul);
    line-height: 30px;
}


.imgTrabajo{
    display: block;
    width: 100%;
    height: 100%;
    transition: transform .4s ease;
    object-fit: cover;
}

.info{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: right;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    color: white;
    padding:30px 20px;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    transition: opacity .5s ease;
    line-height: 1.3rem;
}

.info h2{
    margin: 5px 0;
}

.info p{
    line-height: 1.1rem;
   
    font-size: 1rem;
}

.lenguajes{
    margin-top: 10px;
}

.lenguajes img{
    width: 30px;
}


.lenguajes img:hover{
    transform: scale(1.1);
}


.infoAparece{
    opacity: 1;
}


/*-------------TRABAJOS ANTERIORES---------------------------------------*/

.anteriores{
    height: 300px;
    background: #000;
    border-bottom: 5px solid black;
    display: none;
}

.imgAnterior{
    filter: grayscale(100%);
}

.titulo-anteriores{
    background: black;
}


/******SOBRE****-----------------------------------**********************/


#sobre{
    scroll-margin-top: 50px;
    
}

.sobre{
    display: grid;
    grid-template-columns: 30% auto;
    gap: 20px;
    width: 100%;
    padding: 150px 30px 0 30px;
    margin: auto;
    opacity: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.sobreItem{
    width: 100%;
    color: rgb(201, 201, 201);
    line-height: normal;
    letter-spacing: 3px;
}

.sobreItem h3{
    line-height: 1.3rem;
}

.sobreItem img{
    display: block;
    max-width: 150px;
    margin-left: auto;
    align-items: baseline;
    filter: drop-shadow(15px 0px 4px rgb(0, 0, 0));
}

.sobreItem p{
    line-height: 1.2rem;
    font-style: italic;
}

.foto{
    display: flex;
    align-self: last baseline;
}


.conocimientos{
    position: relative;
    width: 100%;
    margin: auto;
    color: #bebebe;
    border-top: 2px dashed var(--verde);
    padding: 70px 20px;
   
    z-index: 3;
}

.tituloLen{
    opacity: 0;
}

.tituloLenAparece{
    animation: aparece .6s forwards;    
    animation-delay: 1s;
}

.conocimientos ul{
    display: flex;
    flex-wrap: wrap;
    width: fit-content;
    padding: 5px 5px 0 0;
    margin: auto;
}

.conocimientos li{
    list-style: none;
    cursor: pointer;
    padding: 8px;
    margin: 5px 8px 0 0;
}

.conocimientos img{
    width: 45px;
    transition: transform .3s;
    border-radius: 50%;
}

.conocimientos img:hover{
    transform: scale(1.2);
}

.iconos-lenguajes{
  opacity: 0;
}

.iconosAparece{
    animation: aparece 1s forwards;    
    animation-delay: 2s;
}
/*-------------HABLEMOS--------*/

.hablemos{
    display: flex;
    place-items: center;
    text-align: center; 
    background: rgba(0, 0, 0, 0.795);
}

.hablemos img{
  width: 60px;
}

/*****PROYECTO***************/

.proyecto{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    text-align: center;
    line-height: 30px;
    background: rgba(0, 0, 0, 0.699);
    opacity: 0;
    overflow: hidden;
   }

.proyectoAparece{
    animation: entrada2 2s forwards;
    animation-delay: 2s;
}

.contenedor-hablemos{
    border: solid rgb(41, 41, 41) 1px;
    padding: 40px;

    border-radius: 20px;

}

.proyecto h2{
    color: var(--verde);
}

.proyecto h4{
    color: #bebebe;
    font-size: 1.2rem;
}

.proyecto button{
    padding: 15px 20px;
    margin: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #bebebe;
    background:  var(--verde);
    font-weight: bold;
    font-size: 1rem;
    transition: all .2s;
}

button:hover{
    background: black;
    color: var(--verde);
}
/***********FOOTER***------------------------------------------------------**/

footer{
    width: 100%;
    padding: 80px 50px;
    background: black;
    text-align: center;
    color: wheat;
}

footer ul{
    display: flex;
    justify-content: center;
}

footer li{
    list-style: none;
    margin: 8px;
    cursor: pointer;
    transition: transform .1s;
}

footer li:hover{
    transform: scale(1.06);
}

.contactos img{
    width: 25px;
    height: 25px;
    filter: grayscale(100%);
}

.contactos img:hover{
    filter: grayscale(0);
}

/*******ANIMACIONES*****-----------------------------*********/

.infoIn{
    animation: aparece forwards 1s;
    animation-delay: 1s;
}

@keyframes aparece {
    from {
        opacity: 0;
      }
      to{
        opacity: 1;
      }
    }

@keyframes loop {
    0% {
       opacity: 1;
      }
      50%{
        opacity: .5
      }
    100%{
        opacity: 1;
    }
    }

@keyframes fade-in {
    from {
        transform: translateX(100px);
      }
      to{
        transform: translateX(0);
      }
    }

@keyframes entrada{
    0% {
        transform: translateX(-100%);
        opacity: 0;
      }
      40%{
        transform: translateX(8%);
        opacity: 1;
      }
      100%{
        transform: translateX(0);
         opacity: 1;
      }
}

@keyframes entrada2{
    0% {
        transform: translateY(-10px);
        opacity: 0;
      }
      40%{
        transform: translateY(6%);
        opacity: 1;
      }
      100%{
        transform: translateY(0);
        opacity: 1;
      }
}



@keyframes fade-out {
        from {
            opacity: 1;
          }
          to{
            opacity: 0;
          }
        }
        
@keyframes rotar {
        from {
            transform: rotate(0);
          }
          to{
            transform: rotate(360deg);
          }
        }

@keyframes fondo {
        0% {
            background: rgb(0, 0, 0, .5);
          }
          50%{
             background: rgb(0, 0, 0, .2);
          }
          100%{
            background: rgb(0, 0, 0, .5);
          }
        }
    

/***RESPONSIVE************************************************/

@media screen and (max-width:900px){
    .contenedor-trabajos{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width:800px){

    .contenedorServicios{
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        padding: 5% 0
    }

    .sobre{
        grid-template-columns: 1fr;
        padding-bottom: 50px;
    }
    .sobreItem img{
        max-width: 180px;
        margin: auto;
    }
}

@media screen and (max-width:700px){

    .contenedor-textos{
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .texto1{
        font-size: 2rem;
    }

    .texto1 h1{
        font-size: 3rem;
        line-height: 45px;
    }

    .texto2{
        margin-top: 20px;
        text-align: left;
    }

    .servicios{
        padding: 60px 20px;
    }

    .soluciones{
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
       overflow-wrap: break-word;
    }

    .soluciones p{
        font-size: .9rem;
    }

    .contenedor-soluciones{
        padding: 60px 0;
    }

    .sobre{
        display: block;
        padding: 50px 20px;
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .sobreItem{
        width: 100%;
        padding: 20px 0;
    }
}


@media screen and (max-width:500px){

    .logo{
        top: 25px;
    }

    .contenedor-inicio{
        height: 92vh;
        margin-top: 0;
    }

    .contenedor-textos{
        margin-top: 40px;
    }
 
    .contenedor-trabajos{
        grid-template-columns: repeat(1, 1fr);
    }
    .conocimientos{
        margin-top: 20px;
        padding: 70px 25px;
    }

    .conocimientos ul{
        margin: auto;
        justify-content: center;
        align-items: center;
    }

    .contenedor-soluciones h2{
        max-width: 80%;
       margin: auto;
    }

    #sobre{
    scroll-margin-top: 0px;
}

    .sobre{
        padding-top: 100px;
    }
     .sobreItem img{
        max-width: 140px;
        padding: 0;
    }
    .sobreItem{
        padding: 5px 20px;
    }
}

