@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");
/* Estilos generales */
body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  margin: 0;
  color: #333;
  background-color: #fdf8f3;
}

h1,
h2,
h3 {
  color: #8c6239;
}

img {
  max-width: 100%;
  border-radius: 10px;
}

/* Encabezado */
.header {
  background-color: #d9b382;
  text-align: center;
  padding: 2rem 0;
  color: #fff;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid #fff;
  margin-bottom: 1rem;
}

.title {
  font-size: 2.5rem;
  margin: 0;
}

.subtitle {
  font-size: 1.2rem;
  margin: 0.5rem 0 0;
}

/* Secciones */
section {
  padding: 2rem;
  margin: 1.5rem auto;
  max-width: 800px;
}

.about {
  background-color: #fef7ea;
  border-radius: 10px;
}
.about p {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.projects {
  background-color: #f5e6d3;
  border-radius: 10px;
  padding: 2rem;
}

.project-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  width: 220px; /* Reduce slightly to make cards smaller */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card img {
  border-bottom: 5px solid #d9b382;
  width: 100%;
  height: 150px; /* Limit height for uniformity */
  object-fit: cover; /* Ensures the image fits nicely */
}

.card h3 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin-left: 4px;
}

.card p {
  font-family: "Roboto", monospace;
  font-size: 12px;
  font-weight: 700;
  margin: 0.5rem 1rem;
  white-space: normal; /* Allow wrapping */
  overflow: visible; /* Ensure all text is visible */
  text-overflow: unset; /* Remove ellipsis */
}

.card:hover {
  transform: translateY(-10px);
}

.card a {
  color: #8c6239;
  text-decoration: none;
  padding: 0rem;
  margin: 0px;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push the link to the bottom */
}

.card a:hover {
  background-color: #d9b382;
  color: #fff;
}

.github {
  background-color: #272624;
  border-radius: 10px;
  padding: 2rem;
}

.github h2 {
  color: #fff;
  margin: 0;
  text-align: center;
}

.github img {
  display: block;
  margin: 0 auto;
  height: 100px;
}

.growth {
  background-color: #f5e6d3;
  border-radius: 10px;
  padding: 2rem;
}
.growth p {
  font-size: 1.1rem;
  font-weight: 200;
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Artículos */
.articles {
  background-color: #fef7ea;
  padding: 2rem;
  border-radius: 10px;
}

.article-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

article {
  flex: 1 1 250px;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

article:hover {
  transform: translateY(-10px);
}

/* Footer */
.footer {
  background-color: #8c6239;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin: 0.5rem 0;
}

.footer a {
  color: #fdf8f3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #d9b382;
}
