* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

/* :root {
  color-scheme:dark light;
} */


/* 
@media (prefers-color-scheme: dark) {
  .Bar-Nav h1 {
    color: black;
  }

  .bx-menu {
    color: black;
  }

  .feature-home {
    color: black;
  }

  div.tech-projects span {
    color: black;
  }

  div.links-projects a {
    color: white;
  }

  i {
    color: white;
  }
} */

/* @media (prefers-color-scheme:light) {
  .Bar-Nav h1 {
    color: black;
  }

  div.links-projects a {
    color: black;
  }

  div.tech-projects span {
    color: white;
  }

 div.links-projects i{
  color: black;
 }
} */

.Cabeza {
  max-width: 100%;
  width: 481px;
  padding: 24px;
  background-color: #e8f1f8;
  /* Azul pastel */
}

.Bar-Nav {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.Nav-Desk {
  display: none;
}



.bx-menu {
  display: block;
}

.head-title {
  font-family: "Poppins", serif;
}

.Bar-Nav i {
  font-size: 32px;
}

/* AREA HOMEE */
.Home {
  max-width: 100%;
  width: 481px;
  padding: 24px;
}

.Home h3 {
  font-family: "Nunito", serif;
  line-height: 30px;
}

.feature-home {
  max-height: 100%;
  height: 530px auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(90deg, #d1e9f8 35%, #a8d6f1 100%);
  /* Gradiente azul */
  align-items: center;
  justify-content: space-around;
  border-radius: 20px;
}

.home-img img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  padding: 5px;
}

.home-description {
  max-width: fit-content;
  font-size: 32px;
  font-family: "Poppins", serif;
  font-weight: 600;
  text-align: center;
  line-height: 38px;

  & .text-azul {
    color: #0461a3;
    /* Azul vibrante */
  }
}

.Home-btn {
  max-width: 100%;
  width: 266px;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.home-btn {
  flex-grow: 1;
  padding: 10px;
  border-radius: 32px;
  border: none;
  font-family: "Poppins", serif;
  background-color: #0461a3;
  /* Azul oscuro */
  color: #f3f8fc;
  /* Contraste claro */
}

.home-btn:nth-child(2) {
  background: none;
  color: #0461a3;
  font-size: large;
}

/* ------Projects----- */

.Projects {
  max-width: 100%;
  width: 481px;
  padding: 24px;
}

.projects-Title {
  font-family: "Poppins", serif;
  font-size: 56px;
  line-height: 50px;
  font-weight: 600;
}

.projects-feature {
  margin-block: 40px;

  transition: 250ms;

  .subtitle-projects {
    font-family: "Poppins", serif;
    font-size: 32px;
    line-height: 38px;
    font-weight: 500;
  }
}

.projects-feature:hover {
  transform: translatey(10px);
}

.tech-projects {
  min-width: fit-content;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;

  span {
    background: #71cef5;
    /* Azul intermedio */
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 20px;
    margin-block: 10px;
    font-family: "Poppins", serif;
    font-weight: 300;
    color: white;
  }
}

.links-projects a:hover {
  color: #0461a3;
  /* Azul vibrante */
  text-decoration: underline;
}

.projects-img {
  max-width: 100%;
  height: 294px;
  background-color: #c8ebf0;
  /* Azul suave */
  margin-block: 10px;
  border-radius: 18px;
}

.projects-img img {
  max-width: 100%;
  width: 700px;
  height: 300px;
   object-fit:contain;
  
}

.links-projects {
  font-family: "Poppins", serif;
  font-size: large;
  display: flex;
  flex-wrap: wrap;

  a {
    text-align: center;
    place-content: center;
    text-decoration: none;
    color: black;
    margin-left: 10px;
  }
}

.links-projects i {
  font-size: 25px;
}

/* ---------About Me----------- */

.Me {
  max-width: 100%;
  width: 481px;
  padding: 24px;
}

.me-title {
  font-family: "Poppins", serif;
  font-size: 56px;
  font-weight: 500;
  line-height: 50px;
}

.img-me {
  margin-block: 15px;

  img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: #0461a3;
    /* Azul profundo */
  }
}

.article-me {
  display: flex;

  hr {
    border: 3px solid #0461a3;
    /* Azul profundo */
    border-radius: 5px;
  }

  .me-description {
    font-family: "Poppins", serif;
    font-size: 16px;
    line-height: 25px;
    font-weight: 300;
    margin-left: 12px;
  }

  .text-azul {
    color: #71cef5;
    /* Azul intermedio */
    font-weight: 400;
  }
}

/* -------Skills------- */

.Skills {
  max-width: 100%;
  width: 481px;
  padding: 24px;

  h1 {
    font-family: "Poppins", serif;
    font-size: 56px;
    line-height: 50px;
    font-weight: 500;
  }
}

.skills-items {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex-flow: wrap;
  gap: 10px;
  margin-block: 20px;
}

.container-img {
  transition: 250ms;
}

.container-img:hover {
  transform: translateY(-10px);
}

.img-skills {
  margin-block: 15px;
  text-align: center;

  img {
    max-width: 100%;
    object-fit: contain;
  }
}



.container-img {
  p {
    font-family: "Poppins", serif;
    font-size: 20px auto;
    text-align: center;
  }
}

/* -----Contact------- */

.Contact {
  max-width: 100%;
  width: 481px;
  padding: 24px;
  background: #0461a3;
  /* Azul profundo */
  color: white;
}

.Contact-title {
  font-family: "Poppins", serif;
  font-size: 56px;
  line-height: 50px;
}

.Contact p {
  font-family: "Poppins", serif;
  font-size: 20px;
  line-height: 30px;
  margin-top: 10px;
}

.cta-me {
  margin-block: 19px;
}

.Redes-Sociales {
  margin-top: 10px;
}

.Foters {
  background: #0461a3;
  /* Azul profundo */
  color: white;
  text-align: center;
  padding: 20px;
  margin-bottom: 0;

  p {
    font-family: "Poppins", serif;
  }
}




@media (min-width: 540px) and (max-width: 900px) {
  /* CSS */
  .Cabeza {
    width: 100%;
    padding-inline: 70px;
  }

  .Nav-Desk {
    display: none;
  }

  .Home {
    max-width: 100%;
    width: 900px;
    padding: 70px;
  }

  .feature-home {
    padding: 70px;
  }

  .Me {
    max-width: 100%;
    width: 900px;
    padding: 70px;
  }

  .container-me {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-block: 10px;
  }

  .Skills {
    max-width: 100%;
    width: 900px;
    padding: 70px;
  }

  .Projects {
    max-width: 100%;
    width: 900px;
    padding: 70px;
  }




  .projects-img img {
    max-width: 100%;
    width: 500px;
    height: 300px;
     object-fit:contain;
    object-fit: scale-down;
  }

  .Contact {
    max-width: 100%;
    width: 900px;
    padding: 70px;
  }
}

@media (min-width: 901px) and (max-width: 1024px) {
  /* CSS */
  .Cabeza {
    max-width: 100%;
    width: 1024px;
    padding-inline: 70px;
  }

  .Nav-Desk {
    display: none;
  }

  .Home {
    max-width: 100%;
    width: 1024px;
    padding: 70px;
  }

  .feature-home {
    padding-inline: 70px;
  }

  .Me {
    max-width: 100%;
    width: 1024px;
    padding: 70px;
  }

  .container-me {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-block: 10px;
  }

  .Skills {
    max-width: 100%;
    width: 1024px;
    padding: 70px;
  }

  .Projects {
    max-width: 100%;
    width: 1024px;
    padding: 70px;
  }

  .projects-img img {
    max-width: 100%;
    width: 500px;
    height: 400px;
    object-fit:contain;
    position: relative;
    left: 150px;
    bottom: 50px;
    
  }


  .Contact {
    max-width: 100%;
    width: 1024px;
    padding: 70px;
  }
}

@media (min-width: 1024px) {
  /* CSS */
  .Cabeza {
    max-width: 100%;
    width: 1900px;
    padding-inline: 100px;
  }

  .Bar-Nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }

  #Nav-Desk{
    border: none;
  }

  .Nav-Desk {
    display: none;
    justify-content: space-around;
    gap: 2rem;

    a {
      font-size: 20px;
      text-decoration: none;
      font-family: "Poppins", serif;
      color: black;
    }

    a:hover {
      color: #0375c7;
      font-weight: 600;
    }
  }

  .bx-menu {
    display: none;
  }

  .bx-menu{
    display: block;
  }

  .Home {
    max-width: 100%;
    width: 1900px;
    padding-inline: 100px;
  }

  .feature-home {
    max-width: 100%;
    width: 1024px;
    margin: auto;

    p {
      width: 500px;
    }
  }

  .Me {
    max-width: 100%;
    width: 1900px;
    padding-inline: 100px;
    text-align: center;
  }

  .article-me {
    flex-direction: column-reverse;

    hr {
      margin: 16px auto;
      width: 100px;
    }
  }

  .container-me {
    max-width: 100%;
    width: 1024px;
    margin: auto;

    margin-block: 10px;

    p {
      align-items: center;
      place-content: center;
    }
  }

  .me-description p {
    font-size: 200px;
    line-height: 1px;
  }

  .Skills {
    max-width: 100%;
    width: 1024px;
    margin: auto;
    padding-inline: 100px;
    text-align: center;
  }

  .skills-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
  }

  .Projects {
    max-width: 100%;
    width: 1900px;
    margin: auto;
    padding-inline: 100px;
  }

  .projects-Title {
    text-align: center;
  }

  .Projects-container {
    max-width: 100%;
    margin: auto;
    width: 1250px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
  }

  .projects-img img {
    max-width: 100%;
    width: 400vw;
    height: 30vh;
    margin-top: 10px;
     object-fit:contain;

  }
  

  .Contact {
    max-width: 100%;
    width: 1900px;
    padding-inline: 100px;
    text-align: center;
  }
}
