
body {
  background: #f0f0f0;
  color: #333;
  line-height: 1.6;
}

/* Header con degradado */
header {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: white;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  animation: fadeIn 2s ease;
}

/* Navegación */
nav {
  background: #222;
  padding: 15px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}

nav a:hover {
  color: #ffcc00;
  transform: scale(1.1);
}

/* Secciones */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #2575fc;
}

/* Grid de proyectos */
.proyectos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}

/* Contacto */
#contacto a {
  color: #2575fc;
  text-decoration: none;
  font-weight: bold;
}

#contacto a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  color: white;
  text-align: center;
  padding: 25px;
  margin-top: 40px;
  font-size: 0.9rem;
}

/* Animación fadeIn */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}