/* Selector de etiqueta */
body {
  font-family: Arial, sans-serif;
  background-color: #f0f4f8;
  margin: 0;
  padding: 0;
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin: 20px 0;
}

p {
  text-align: justify;
  line-height: 1.5;
}

/* Selector de clase */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 300px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imagen-proyecto {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.tecnologias {
  list-style-type: none;
  padding: 0;
  margin: 10px 0;
}

.tecnologias li {
  background-color: #eaf2f8;
  margin: 5px;
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
}

.enlaces {
  margin-top: 15px;
}

.enlaces a {
  text-decoration: none;
  margin: 5px;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-demo {
  background-color: #27ae60;
  color: white;
}

.btn-demo:hover {
  background-color: #1e8449;
}

.btn-codigo {
  background-color: #2980b9;
  color: white;
}

.btn-codigo:hover {
  background-color: #1c5980;
}

/* Selectores de ID */
#proyecto-web {
  border-top: 5px solid #27ae60;
}

#proyecto-arduino {
  border-top: 5px solid #2980b9;
}
