/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background: #f4f4f4;
  color: #333;
}
header {
  background: #333;
  color: #fff;
  padding: 1rem 2rem;
  text-align: center;
}
header h1 {
  font-weight: normal;
}
nav {
  margin-top: 0.5rem;
}
nav a {
  color: #fff;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
nav a:hover {
  color: #f39c12;
}
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
section {
  margin-bottom: 2rem;
}
h2 {
  margin-bottom: 1rem;
  color: #f39c12;
  border-bottom: 2px solid #f39c12;
  padding-bottom: 0.3rem;
}
.about p, .contact p {
  margin-bottom: 1rem;
}
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 1rem;
}
.project {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  transition: box-shadow 0.3s ease;
}
.project:hover {
  box-shadow: 0 0 10px #f39c12;
}
.project h3 {
  margin-bottom: 0.5rem;
}
footer {
  text-align: center;
  padding: 1rem;
  background: #333;
  color: #fff;
  font-size: 0.9rem;
}
/* Botón para mostrar alerta con JS */
button {
  background: #f39c12;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}
button:hover {
  background: #d87e04;
}