/* Reset */
* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  background: #f5f9ff;
  color: #333;
  line-height: 1.6;
}
header {
  background: #4a90e2;
  color: white;
  padding: 40px 20px;
  text-align: center;
}
header img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
  margin-bottom: 15px;
}
header h1 {
  font-size: 2.8rem;
  margin-bottom: 10px;
}
header p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 500;
}
main {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}
section {
  margin-bottom: 60px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  border-bottom: 3px solid #4a90e2;
  display: inline-block;
  padding-bottom: 5px;
}
/* Proyectos */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}
.project-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgb(74 144 226 / 0.2);
  transition: transform 0.2s ease;
}
.project-card:hover {
  transform: translateY(-5px);
}
.project-card h3 {
  margin-bottom: 10px;
  color: #4a90e2;
}
.project-card p {
  font-size: 0.95rem;
  color: #555;
}
/* Contacto */
form {
  background: white;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgb(74 144 226 / 0.15);
  max-width: 500px;
  margin: 0 auto;
}
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}
form input, form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}
form input:focus, form textarea:focus {
  border-color: #4a90e2;
  outline: none;
}
form button {
  background: #4a90e2;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1.1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
form button:hover {
  background: #357abd;
}
#mensajeConfirmacion {
  text-align: center;
  color: green;
  font-weight: 600;
  margin-top: 15px;
}
.hidden {
  display: none;
}
footer {
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  margin-top: 60px;
}
@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
}
