@import url('https://fonts.googleapis.com/css?family=Hind');

body{
    font-family: 'Hind', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 16px;
    height: 100%;
    margin: 0;
    padding: 0;
}
.nav-bar a{
    text-decoration: none;
    color: #FFFFCB;
}
/*barra de navegacion principal*/
.nav-bar{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: #393D3F;
    color: #FFFFCB;
    text-transform: uppercase;
    height: 70px;
}

.nav-bar p{
margin-left: 25px;
margin-right: 15px;
transition: border-bottom 0.5s ease;
padding: 2px;
border-bottom: 3px solid transparent;
}

.nav-bar p:hover{
    cursor: pointer;
    padding: 2px;
    border-bottom: 3px solid #FACF0F;
    border-radius: 1px;
}

/*main*/
.main1{
    height: auto;
    padding-top: 125px;
    padding-bottom: 100px;
}
.title{
    text-align: center;
    text-transform: uppercase;
}

.first img{
    height: 320px;
    border-radius: 100%;
    box-shadow: 0 0 10px #393D3F;
    transition: transform 0.5s ease;
}

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

.first{
    display: flex;
    flex-direction: row;
    max-width: 800px;
    height: 350px;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: auto;
}

.btn{
    background-color:#FACF0F;
    border-radius: 5px;
    height: 48px;
    width: 120px;
    text-transform: uppercase;
    border: transparent;
    box-shadow: 0 0 10px #393D3F;
    font-weight: 700;
    transition: background-color 0.5s ease;
    font-size: 17px;
}

.btn:hover{
    cursor: pointer;
    background-color: #BB9E1E;
}

.btn a{
    text-decoration: none;
    color: black;
}
.nav-2{
    display: flex;
    position: absolute;
    top: 360px;
    left: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.links{
    padding: 2px;
    border-right: 4px solid transparent;
    transition: border-right 0.5s ease;
    border-radius: 2px;
}

.links:hover{
    padding: 2px;
    border-right: 4px solid #FACF0F;
    border-radius: 2px;
}
/*main about me*/

.about{
    background-image: url(imagenes/fondoTextura.png);
    box-shadow: 0 0 10px #393D3F;
    background-repeat: no-repeat;
    background-size:cover ;
    height: auto;
    padding-bottom: 140px;
}

.about h2{
    padding-top:70px;
    margin-bottom: 70px;
    text-align: center;
    text-transform: uppercase;
    font-size: 28px;
}

.about-flex{
    display: flex;
    max-width: 950px;
    margin: auto;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.about-contain{
   background-color: #FFFFFF;
   padding: 30px;
   border-radius: 10px;
   box-shadow: 0 0 10px #393D3F;
   width: 450px;
   height: 420px;
   overflow: hidden;
   text-align: center;
   transition: transform 0.5s ease;
}

.about-contain:hover{
    transform: scale(1.1);
}

.about-contain h3{
    text-transform: uppercase;
}

.skils li{
    list-style-type: none;
    padding-left: 0px;
    border-radius: 5px;
    box-shadow: 0 0 2px #393D3F;
    padding: 10px;
    text-transform: uppercase;
}

.skils{
    display: flex;
    flex-wrap: wrap;
    gap:15px;
    justify-content: center;
    padding: 0;
    margin: 0;
}
/*projects*/

.projects{
    height: auto;
    text-align: center;
    padding-bottom: 70px ;
}
.projects h2{
    padding-top:70px;
    text-align: center;
    text-transform: uppercase;
    font-size: 28px;
}

.projects p{
    max-width: 600px;
    text-align: center;
    margin: auto;
    margin-bottom: 70px;
}
.projects ul {
    list-style-type: none;
    padding: 0;
  }
  
  li.item {
    position: relative;
    display: inline-block;
    margin: 10px;
  }
  
  li.item img {
    position: relative;
    z-index: 1;
    width: 500px;
    height: 350px;
  }
  
  li.item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }
  
  li.item:hover::before {
    opacity: 1;
  }
  
  li.item a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }
  
  li.item:hover a {
    opacity: 1;
  }
  .main2{
    margin-top: 100px;
    margin-bottom: 40px;
    text-align: center;
  }
  .card img{
    width: 39vw;
    height: auto;
    box-shadow: 0 0 2px #393D3F;
  }
  .card-container{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    max-width: 90%;
    margin: auto;
    gap: 50px;
    padding-bottom: 100px;
  }

  .card{
    width: 39vw;
    height: 38vw;
    box-shadow: 0 0 5px #393D3F;
    padding: 15px;
    border-radius: 2px;
    transition: transform 0.5s ease;
  }

  .card:hover{
    transform: scale(1.05);
  }

  .card a{
    text-decoration: none;
    color: black;
    font-weight: 800;
    transition: background-color 0.3s ease;
  }
  .card a:hover{
    padding: 5px;
    border-radius: 2px;
    background-color: #FACF0F;
  }
  /* Estilos del formulario */

.contenedor {
    background-image: url(imagenes/fondoTextura.png);
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
    padding-bottom: 140px;
    box-shadow: 0 0 10px #393D3F;
  }

  .contenedor h2{
    padding-top:70px;
    text-align: center;
    text-transform: uppercase;
    font-size: 28px;
    padding-bottom: 60px;
  }
 
.contenedor p{
    max-width: 500px;
    text-align: center;
    margin: auto;
    margin-bottom: 20px;
    font-size: 18px;
}
  .formulario {
    max-width: 60vw;
    margin: 0 auto;
    background-color: #FFFFFF;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 0 10px #393D3F;
    margin-top: 20px;
    font-size: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
  }
  
  .campo {
    display: flex;
    margin-bottom: 1rem;
    margin-top: 15px;
  }

    input::placeholder,
    textarea::placeholder {
    font-family: 'Century Gothic', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    }

  .campo label {
    flex-basis: 10rem;
  }
  
  .campo textarea {
    margin: auto;
    flex: 1;
    border: 1px solid #e1e1e1;
    padding: 2px;
    font-size: 15px;
    border-radius: 5px;
    max-width: 95%;
  }
  
  .campo select {
    flex: 1;
    border: 1px solid #e1e1e1;
    padding: 1rem;
    font-size: 15px;
    border-radius: 5px;
    background-color: #F5F5F5;
  }

/*footer*/
.social a{
    text-decoration: none;
    color: #FFFFCB;
    transition: font-size 0.3s ease;
}
.social a:hover{
    font-size: 16.15px;
}
.nav-3{
    display: flex;
    flex-direction: row;
    max-width: 300px;
    justify-content: space-around;
    gap: 10px;
}

footer{
    background-color: #393D3F;
    color: #FFFFCB;
}

.foot{
    display: flex;
    max-width: 80%;
    margin: auto;
    justify-content: space-around;
    gap: 300px;
    padding-bottom: 20px;
}

.social{
    margin-top:20px;
}

.social h3{
    text-transform: uppercase;
}

.links2{
    padding: 2px;
    border-top: 4px solid transparent;
    transition: border-top 0.5s ease;
    border-radius: 2px;
}

.links2:hover{
    padding: 2px;
    border-top: 4px solid #FACF0F;
    border-radius: 2px;
}

.rigths{
    font-size: 14px;
}

@media (max-width: 1200px){
    .foot{
        gap: 100px;
    }

      .card{
        height: 43vw;
      }
}


@media (max-width: 1000px ){
    .nav-2{
        display:none;
    }
    .card img{
        width: 45vw;
      }
      .card{
        font-size: 14px;
        width: 45vw;
        height: 47vw;
        box-shadow: 0 0 5px #393D3F;
        padding: 15px;
        border-radius: 2px;
        transition: transform 0.5s ease;
      }
}

@media (max-width: 900px){
/*main*/
.main1{
    padding-top: 50px;
    padding-bottom: 50px;
}

.first img{
    height: 350px;
}
.first{
    text-align: center;
    display: flex;
    flex-direction: column;
    height: auto;
    max-width: 60%;
}
/*projects*/
.projects{
    padding-bottom: 50px ;
}
.projects h2{
    padding-top:50px;
}
/*main about me*/

.about{
    padding-bottom: 100px;
}
.about-flex{
    display: flex;
    flex-direction: column;
}

.about-contain{
   padding: 30px;
   padding-bottom: 50px;
   width: 70%;
   height: auto;
}
  /* Estilos del formulario */
.contenedor{
    padding-bottom: 100px;
}
  .contenedor h2{
    padding-top:50px;
    padding-bottom: 20px;
  }
  .formulario {
    max-width: 75%;
    margin: 0 auto;
  }

  .card img{
    width: 65vw;
  }

  .card{
    width: 65vw;
    height: auto;
  }

  .main2{
    margin-top: 50px;
  }
}


@media (max-width: 600px){
    .foot{
        gap: 30px;
    }

.projects p{
    max-width: auto;
    text-align: center;
    margin: auto;
    margin-bottom: 40px;
}
  li.item img {
    position: relative;
    z-index: 1;
    width: 70vw;
    height: auto;
  }
  
  li.item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }
  
  li.item:hover::before {
    opacity: 1;
  }
  
  li.item a {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease-out;
  }
  
  li.item:hover a {
    opacity: 1;
  }

}