 * {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
 }

 body {
   font-family: 'Segoe UI', sans-serif;
   background-color: #f7f7f7;
   color: #333;
 }

 /* 🔝 Menú navegacion  */
/* Estilos generales */  
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #222;
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.2rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.nav-links li a:hover {
  color: #00bfff;
}

.btn {
  background-color: #007bff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  color: white;
}

.btn:hover {
  background-color: #0056b3;
}

/* Menú hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  transition: 0.3s ease;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: 0.3s;
}

/* Animación para convertir en "X" */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: #222;
    flex-direction: column;
    width: 200px;
    height: 100vh;
    padding-top: 2rem;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }
}

/* end menu navegacion */

 /* 🖼️ Cabecera */
 header {
   background-image: url('../images/cabecera.jpg');
   background-size: cover;
   background-position: center;
   padding: 5em 1em;
   text-align: center;
   color: white;
   position: relative;
 }

 header::after {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, 0.5);
   z-index: 1;
 }

 .texto-cabecera {
   position: relative;
   z-index: 2;
 }

 .texto-cabecera h1 {
   font-size: 2.5em;
   margin-bottom: 0.5em;
 }

 /* 💼 Proyectos */
 .container {
   max-width: 1200px;
   margin: auto;
   padding: 2em 1em;
 }

 .grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 1.5em;
 }

 .proyecto {
   background: white;
   border-radius: 8px;
   overflow: hidden;
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
   transition: transform 0.3s;
 }

 .proyecto:hover {
   transform: scale(1.02);
 }

 .proyecto img {
   width: 100%;
   height: auto;
 }

 .proyecto .contenido {
   padding: 1em;
 }

 .proyecto h3 {
   margin-bottom: 0.5em;
 }

 .proyecto p {
   font-size: 0.9em;
   color: #555;
 }

 /* habilidades y conocimientos*/
 .habilidades {
   color: #0077b5;
 }

 /* 📞 Footer */
 footer {
   background-color: #2c3e50;
   color: white;
   text-align: center;
   padding: 1.5em 1em;
   margin-top: 3em;
   font-size: 0.9em;
 }

 /* 💬 WhatsApp Button */
 .whatsapp-float {
   position: fixed;
   bottom: 20px;
   right: 20px;
   width: 60px;
   height: 60px;
   background-color: #25D366;
   border-radius: 50%;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: 999;
   transition: transform 0.3s;
 }

 .whatsapp-float:hover {
   transform: scale(1.1);
 }

 .whatsapp-float img {
   width: 30px;
   height: 30px;
 }

 /* Estilos para la sección redes sociales */
 .redes-sociales {
   text-align: center;
   padding: 20px;
   background: #f3f3f3;
 }

 .redes-sociales .iconos a {
   margin: 0 10px;
   font-size: 24px;
   color: #333;
   text-decoration: none;
 }

 .redes-sociales .iconos a:hover {
   color: #0077b5;
   /* ejemplo: color LinkedIn */
 }

 .siguenos-redes {
   color: #0078d4;
 }

 .sobre-mi {
   color: #0078d4;
 }

 .clientes-dicen {
   color: #0078d4;
 }

 /* comentarios */

 .comentarios-auto {
   max-width: 100%;
   padding: 20px;
   font-family: 'Segoe UI', sans-serif;

 }

 .comentarios-auto h3 {
   text-align: center;
   margin-bottom: 30px;
 }

 .contenedor-comentarios {
   display: flex;
   flex-wrap: wrap;
   gap: 20px;
   justify-content: space-between;
 }

 .comentario {
   flex: 1 1 calc(25% - 20px);
   /* 4 por fila */
   min-width: 250px;
   box-sizing: border-box;
   background: #fff;
   border-left: 4px solid #0078d4;
   padding: 15px;
   box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
 }

 .comentario strong {
   font-size: 16px;
   color: #333;
 }

 .comentario p {
   font-size: 14px;
   margin: 10px 0;
 }

 .comentario small {
   font-size: 12px;
   color: #777;
 }

 /* sobre mi*/
  .profile-img {
      max-width: 250px;
    }
    .skill-card {
      background: white;
      border: 1px solid #dee2e6;
      padding: 1rem;
      border-radius: 0.75rem;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    }

    .container sobre mi{
      background-color: blue;
      background: red;

    }