body {
  margin: 0;
  background: #2966cc;
  font-family: 'Segoe UI', sans-serif;
  color: #ffffff;
}

.wrapper {
  max-width: 1240px;
  margin: 2rem auto;
  padding: 2.5rem 2rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

.avatar {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 2px;
}

header p {
  margin-top: 0.25rem;
  color: #fff;
}

/* Redes sociales con Font Awesome */
.social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.social a {
  color: white;
  font-size: 2rem;
  transition: transform 0.2s ease;
}

.social a:hover {
  transform: scale(1.2);
}

.project {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 3rem 0;
}

.project .media {
  background: #fff;
  border-radius: 10px;
  padding: 0.2rem;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.25);
}

.project .media img {
  width: 100%;
  border-radius: 6px;
  display: block;
}

.project .desc h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.project .desc p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #fff;
}

.buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.buttons a {
  display: inline-block;
  text-align: center;
  min-width: 100px;
  padding: 0.5rem 1.2rem;
  border: 2px solid #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.85rem;
  color: #fff;
  background: transparent;
  font-weight: normal;
  transition: background 0.2s, color 0.2s, transform 0.2s ease, font-weight 0.2s;
  transform-origin: center;
}

.buttons a:hover {
  transform: scale(1.1);
  background: #fff;
  color: #2966cc;
  font-weight: bold;
}


footer {
  text-align: center;
  color: #fff;
  font-size: 0.85rem;
  margin-top: 2rem;
}

hr {
  border: none;
  border-top: 2px solid #ffffff50;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .project {
    flex-direction: row;
    align-items: flex-start;
  }

  .project.reverse {
    flex-direction: row-reverse;
  }

  .project .media,
  .project .desc {
    flex: 1;
  }

  .project .media {
    margin-right: 3rem;
  }

  .project.reverse .media {
    margin-right: 0;
    margin-left: 3rem;
  }

  .project.reverse .desc {
    text-align: right;
  }

  .project.reverse .buttons a {
    margin: 0.5rem 0 0 1rem;
  }

  .project:not(.reverse) .buttons a {
    margin: 0.5rem 1rem 0 0;
  }

.project .buttons {
  justify-content: flex-start;
}

.project.reverse .buttons {
  justify-content: flex-end;
}

}

.buttons .btn {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 6px;
  background-color: #ffffff;
  color: #2966cc;
  border-radius: 6px;
  font-weight: normal;
  text-decoration: none;
  font-size: 15px;
  transition: background-color 0.2s, color 0.2s, font-weight 0.2s;
}

.buttons .btn:hover {
  background-color: #e1eaff;
  color: #000;
  font-weight: bold;
}

.btn-alt {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 8px;
  background-color: #ffffff;
  color: #2966cc;
  border-radius: 6px;
  font-weight: normal;
  text-decoration: none;
  font-size: 14px;
  vertical-align: top;
  transition: background-color 0.2s, color 0.2s, font-weight 0.2s;
  border: none;
  font-family: 'Segoe UI', sans-serif;
}

.btn-alt:hover {
  background-color: #e1eaff;
  color: #2966cc;
  font-weight: bold;
}
