@import url('https://fonts.google.com/specimen/Poppins');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins';
  margin: 0;
  background: linear-gradient(to bottom, #9fe2ff, #ffffff);

}

h1, h2, h3, p, a, ul, li {
    animation: aparecer 2s ease;
}


@keyframes aparecer {
  from {
    opacity: 0;
  } 
  to {
    opacity: 1;
  }
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 1000;
}


.logo img {
  height: 80px;
  width: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 10px 20px;
}

header .navbar ul li a {
  font-weight: bold;
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  background-color: white;
  transition: all 0.3s ease;
  border-radius: 4px;
  font-size: 25px;
}


header .navbar ul li a:hover {
  background: linear-gradient(#74c8ec, #0056b3);
  color: white;
}



header .fa-bars {
  font-size: 40px;
  color: #007bff;
  cursor: pointer;
  display: none;
}

.inicio {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 40px;
  background: linear-gradient(#ffffff, #74c8ec);
}

.contenido-inicio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
  max-width: 1070px;
}

.texto {
  flex: 1;
  min-width: 400px;
}

.texto h1 {
  font-size: 56px;
  margin-bottom: 20px;
  color: #0056b3;
}

.texto p {
  font-size: 18px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background: linear-gradient(#74c8ec, #0056b3);
}

.imagen1 .uno {
  width: 550px;
  height: auto;
  margin-top: -50px;
  max-width: 100%;
  display: block;
}





@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
  }

  header .fa-bars {
    display: block;
    padding-right: 40px;
  }

  header .navbar {
    position: fixed;
    top: -100rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 1100;
    opacity: 0;
  }

  header .navbar ul {
    flex-flow: column;
    padding-top: 50px;
  }

  header .navbar ul li {
    margin: 1rem 0;
    width: 100%;
    text-align: right;
  }

  header .navbar ul li a {
    display: block;
    font-size: 18px;
    text-align: left;
    padding: 10px 15px;
  }

  header .navbar.nav-toggle {
    top: 89px;
    right: 100px;
    width: 200px;
    opacity: 1;
    display: block;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 15px;
    transition: all 0.3s ease;

  }

  .contenido-inicio {
    flex-direction: column;
    text-align: center;
    width: 100%;
    max-width: 100%;

  }

  .imagen1 {
    order: -1;
    padding-right: 0;
    margin-top: 30px;

  }



  .texto {
    max-width: 90%;
  }

  .skills {
    margin-left: 0;
    padding-left: 0;
  }

  .navbar {
    display: none;
    top: 85px;
    margin-left: 85px;
    margin-top: 30px;
    border-radius: 5px;
    padding: 30px;
    z-index: 999;


  }



  .navbar ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    width: 100%;

  }

  .navbar a {
    padding: 10px 20px;
    margin: 0;
    text-decoration: none;


  }

  .navbar ul li a {
    display: block;
    width: 100%;
    padding: 10px 20px;
    text-decoration: none;

    font-size: 16px;
    transition: background-color 0.3s;
  }



  .galeria #prin {
    width: 90%;
  }

  .footer .icons a {
    gap: 20px;
  }


}

.fotodemi img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 25px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 4px solid #cce6ff;
}

#sobremi {
  text-align: center;
}

h2 {
  padding: 20px;
  margin: auto;
  font-size: 40px;
}


.logo {
  font-size: 30px;
  color: #333;
}

span {
  color: #0056b3;
  font-weight: bold;
}

.sobremi {
  padding: 60px 20px;
  background: #f9fbfd;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

}

.sobre-contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: 1000px;
  width: 100%;
}

.historia,
.skills {
  flex: 1;
  min-width: 280px;
  text-align: justify;
}

.historia p {
  line-height: 1.9;
}

.skills {
  margin-left: 100px;
  max-width: 500px;
}

.skills ul {
  list-style: none;
  padding: 0;
}

.skills li {
  margin-bottom: 10px;
  font-size: 28px;

}

.skills i {
  color: #007bff;
  margin-right: 8px;
  font-size: 20px;
}

.text {
  text-align: center;
  background: linear-gradient(#9fe2ff, #007bff);
  color: #ffffff;
  padding: 50px;

}

.text h3 {
  font-size: 50px;
}

.text p {
  font-size: 30;
}


.contenedor {
  margin: 0 auto;
  margin-top: 40px;

  padding: 50px;
  margin-top: 0px;

}

#prin {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  width: 500px;
  height: 300px;
  border-radius: 30px;
  margin-bottom: 30px;
  object-fit: cover;
  justify-content: center;

}


.galeria {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 30px;
  z-index: -1px;
}

.gale {
  text-align: center;

}

.galery {
  display: inline-block;
  width: 320px;
  height: 220px;
  margin: 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 1s forwards;
}

.galery:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}


.contenedorimagenes {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;

}

#imagenprincipal {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  width: 315px;
  height: 315px;
  max-width: 315px;
  margin: 0 auto;
  display: block;
  border-radius: 300px;
}

.imagen {
  width: 100px;
  height: 100px;
  border-radius: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.activa {
  cursor: pointer;
  border-radius: 300px;
}


.footer {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 2.5rem;
  margin-top: 0px;
  background: linear-gradient(#9fe2ff, #0056b3);
  gap: 10px;
}

.footer .creditos {
  font-size: 2rem;
  color: #eee;
  padding: 20px;
}

.footer .creditos span {
  color: #cce6ff;
}

.footer .icons a {
  font-size: 2rem;
  margin: 0 .5rem;
  height: 4rem;
  width: 4rem;
  line-height: 3.5rem;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
  color: #cce6ff;
  border: .2rem solid #fff;
  transition: .2s linear;
  margin-top: -10px;
}

.footer .icons a:hover {
  background: #0056b3;
}