*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

header {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f4f4f4;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1rem;
  color: #555;
}


.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 900px;
  margin: 2rem auto;
}

.row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 2rem;
}


.member {
  flex: 0 0 30%;
  max-width: 30%;
  margin: 1%;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.member img {
  width: 100%;
  height: 200px;
  border-radius: 10px 10px 0 0;
}

.member h2 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.role {
  font-weight: 600;
  color: #222;
}

.center {
  font-size: 0.9rem;
  color: #666;
  margon-bottom: 0.2rem;
}

.dates {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.8rem;
}

.desc {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}


footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #f4f4f4;
  font-size: 0.9rem;
  color: #555;
}
.back-button {
    text-align: center;
    margin: 30px 0;
}

.back-button button {
    background-color: #0073e6;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
/* Tablets (2 columnas) */
@media (max-width: 1024px) {
  .team-container {
    max-width: 95%;
  }

  .member {
    flex: 0 0 45%;
    max-width: 45%;
    margin: 2%;
  }

  .member img {
    height: 220px;
  }
}

/* Móviles (1 columna) */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.6rem;
  }

  header p {
    font-size: 0.95rem;
  }

  .member {
    flex: 0 0 90%;
    max-width: 90%;
    margin: 5% auto;
  }

  .member img {
    height: 240px;
  }

  .desc {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .back-button button {
    width: 90%;
    font-size: 15px;
  }
}
