body {
  overflow-x: hidden;
  overflow-y: auto; 
}

/*NAV*/
.header { position: sticky; top: 0; background-color: #111; border-bottom: 1px solid #333; z-index: 1000; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .navbar { background-color: #111; display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 1.5rem 2rem; } .nav-links { list-style: none; display: flex; margin-left: 0px; gap: 2.5rem; } .nav-links a { text-decoration: none; color: #ccc; font-weight: 500; font-size: 1.1rem; transition: color 0.3s ease, transform 0.3s ease; font-family: 'Montserrat', sans-serif; } .nav-links a:hover { color: greenyellow; transform: translateY(-2px); } .menu-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: #ccc; cursor: pointer; transition: color 0.3s ease; } .menu-toggle:hover { color: #00ffd0; }

/* BOTÓN WHATSAPP */
.float {
  position: fixed;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  bottom: 40px;
  right: 40px;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 3px #999;
  z-index: 999;
}
.fa-whatsapp {
  font-size: 60px;
}
.float:hover {
  background-color: #2beb72;
}


/*perfil*/
.perfil {
  text-align: center;
  color: black;       /* para que se lea bien sobre fondo negro */
  padding: 0px 17px; /* un poco de espacio arriba y abajo */
  background: white; /* quita el fondo blanco */
  font-family: 'Montserrat', sans-serif;
}


.botones {
  display: flex;
  justify-content: center;
  gap: 15px; /* espacio entre botones */
}

.btn-cv, .btn-github {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

/* Botón CV */
.btn-cv {
  background: #16a34a;
  color: black;
}

.btn-cv:hover {
  background: #15803d;
}

/* Botón GitHub */
.btn-github {
  background: black;
  color: white;
  font-size: 20px;
  padding: 10px 14px;
}

.btn-github:hover {
  background: #333;
}


.titulo1, .titulo2, .titulo3, .titulo4 {
  margin-top: 10px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  color: black;
}
.titulo1:hover, .titulo2:hover, .titulo4:hover {
  color: #6dc96e;
}
.titulo3 {
  color: white;
}
.titulo3:hover {
  color: #6dc96e;
}

/* PROYECTOS */
.Proyectos {
  margin-top: 100px;
  background-color: white;
}
.card-padre {
  margin-top: 10px;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.card {
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 70px 10px 30px 10px;
  max-width: 300px;
  width: 90%;
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.card-title {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  color: #16a34a;
}

.logo-git, .logo-web {
  width: 30px;
  display: block;
  margin: 0 auto;
}

/* BOTONES */
.botones {
  margin: 100px auto 200px auto;
  text-align: center;
}

/* FORMULARIO */
form {
  margin-top: 100px;
  background-color: black;
  text-align: center;
  padding: 20px;
}
.form-control {
  background-color: white;
  width: 90%;
  max-width: 400px;
  height: 100px;
  padding: 20px;
  margin: 20px auto;
  display: block;
  color: white;
  border: none;
  border-radius: 5px;
}
.form-control:hover {
  background-color: white;
}
.form-label {
  font-family: 'Montserrat', sans-serif;
}

.btn-enviar {
    background: linear-gradient(45deg, #00ff88, #00cc66);
    border: none;
    border-radius: 12px;
    padding: 12px;
    color: #fff;
    transition: transform 0.2s ease, background 0.3s ease;
  }
  .btn-enviar:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #00cc66, #00ff88);
  }
  .form-control:focus {
    border-color: #00ff88;
    box-shadow: 0 0 8px #00ff88;
  }

.frase{
  color: #2beb72;
  font-family: 'Montserrat', sans-serif;
}

.logo-footer, .logo-footer2 {
  margin-top: 40px;
  width: 30px;
  margin: 20px;
}

/* SERVICIOS */
.servicios {
  margin-top: 50px;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.tarjetas {
  background-color: whitesmoke;
  height: 200px;
  width: 200px;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.tarjetas:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.img-servicios, .img-servicios2, .img-servicios3 {
  margin-top: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.img-servicios {
  height: 80px;
  width: 70px;
}
.img-servicios2 {
  height: 90px;
  width: 80px;
}
.img-servicios3 {
  height: 80px;
  width: 70px;
}
.text-servicios, .text-servicios3 {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  margin-top: 15px;
  color: #16a34a;
}



/*PARTE DE HABILIDADES*/

.skills-section {
  padding: 60px 20px;
  background: white;
  text-align: center;
}

.skills-title {
  font-size: 2rem;
  margin-bottom: 30px;
  font-family: 'Montserrat', sans-serif;
  color: #222;
}

.skills-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.skill-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 120px;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 15px rgba(0,0,0,0.15);
}

.skills-buttons button {
  background: #222;
  color: white;
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.skills-buttons button:hover {
  background: #555;
}


/* Tablets y pantallas medianas */
@media (max-width: 992px) {
  .navbar {
    padding: 1rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .yo {
    width: 250px;
  }

  .titulo1, .titulo2, .titulo3, .titulo4 {
    font-size: 22px;
  }

  .skills-container {
    flex-wrap: wrap;
    gap: 15px;
  }
}

/* Celulares grandes */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 70px;
    right: 0;
    padding: 1rem;
    width: 200px;
    border-radius: 8px;
  }

  .nav-links.active {
    display: flex;
  }

  .yo {
    width: 220px;
  }

  .titulo1, .titulo2, .titulo3, .titulo4 {
    font-size: 20px;
    margin-top: 40px;
  }

  .card {
    max-width: 95%;
    margin: 20px auto;
  }

  .servicios {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .tarjetas {
    width: 160px;
    height: 160px;
  }

  .text-servicios, .text-servicios3 {
    font-size: 14px;
  }

  .skills-container {
    flex-direction: column;
    align-items: center;
  }

  .skill-card {
    width: 80%;
    max-width: 300px;
  }
}

/* Celulares chicos */
@media (max-width: 480px) {
  .float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .fa-whatsapp {
    font-size: 40px;
    line-height: 50px;
  }

  .titulo1, .titulo2, .titulo3, .titulo4 {
    font-size: 18px;
  }

  .form-control {
    width: 95%;
    font-size: 14px;
  }

  .tarjetas {
    width: 130px;
    height: 130px;
  }

  .img-servicios,
  .img-servicios2,
  .img-servicios3 {
    width: 55px;
    height: auto;
  }

  .text-servicios,
  .text-servicios3 {
    font-size: 12px;
    margin-top: 8px;
  }

  .skill-card {
    font-size: 1rem;
    padding: 15px;
  }
}