* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #000000;
  background-color: #fafafa;
}

/* Header */
header {
  background: #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 100px 30px;
}

header img {
  height: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #000;
  background-color: #fff;  
}

/* Main */
main {
  max-width: 1400px;
  margin: 100px auto;
}

main h1 {
  font-family: montserrat, inherit,sans-serif;
  font-size: 72px;
  margin-left: 15%;
  margin-right: 15%;
  margin-bottom: 1rem;
  color: #ffffff;
  text-align: center;
  background-color: #000000;
}

main h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #555;
  text-align: center;
}

h3 {font-weight: 100;
    text-align: center;

}

main p {
  margin-left: 15%;
  margin-right: 15%;
  margin-top: 1.5rem;
  text-align: center;
}

/* Equipo */
#equipo {
  margin-top: 3rem;
}

#equipo h2 {
  text-align: center;
  margin-bottom: 1rem;
}

#integrantes {
  margin:2em;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

#integrantes ul {
  list-style: none;
  text-align: center;
  display: inline-block; 
  vertical-align: top;
}

#integrantes img {
  width: 300px;
  height: 500px;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border: 3px solid #000000;
}

#integrantes h4 {
  text-decoration: none;
  margin-top: 0.3rem;
  color: #000000;
  transition: 0.3s ease;
}

#integrantes h4:hover {
  color: #ffffff;
  background-color: #000000;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding: 1rem;
  text-align: center;
  background: #222;
  color: #fff;
  font-size: 0.9rem;
}


@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  #integrantes {
    flex-direction: column;
    align-items: center;
  }
}