.logo {
  width: 90px;
  height: auto;
  object-fit: contain;
  margin-bottom: 2px;
}




* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
nav {
  position: sticky;
  top: 0;
  background-color: #0f172a;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}
nav ul li a {
  color: #f3f4f6;
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}
nav ul li a:hover {
  background-color: #1e293b;
}



body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #111827, #1f2937);
  color: #f3f4f6;
  line-height: 1.6;
  
}

header {
  padding: 2rem;
  text-align: center;
  background-color: #111827;
}
header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #22d3ee;
}
header p {
  font-size: 1.2rem;
  color: #94a3b8;
}
.section {
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;

}
.projects {
  margin-top: 2%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  
}
.card {
  background-color: #1e293b;
  padding: 1.5rem;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
}
.card h3 {
  color: #22d3ee;
  margin-bottom: 0.5rem;
}
.card p {
  color: #cbd5e1;
  font-size: 0.95rem;
}
footer {
  text-align: center;
  padding: 2rem;
  color: #64748b;
}
a {
  color: #38bdf8;
  text-decoration: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

form input,
form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

form button {
  background-color: #333;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background-color: #555;
}

.whatsapp-button {
  display: inline-block;
  background-color: #25D366;
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-family: inherit;
  position: fixed;
  bottom: 20px;
  right: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  z-index: 999;
}

.whatsapp-button:hover {
  transform: scale(1.05);
}






/* ------------------- Responsive Design ------------------- */
/* ----- RESPONSIVE DESIGN PARA MÓVILES ----- */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    padding: 0 1rem;
  }

  nav ul {
    flex-direction: flex;
    gap: 1rem;
    text-align: center;
  }

  .header{
    font-size: 100%;
  }

  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 1rem;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .card {
    text-align: center;
  }

  footer {
    font-size: 0.9rem;
    padding: 2rem 1rem;
  }
}
