@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", sans-serif;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

img {
  max-width: 100%;
}

/* ----------------NAV---------------- */
header {
  position: sticky;
  top: 0;
  overflow: hidden;
}

nav {
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background-color: #002a56;
}

nav figure {
  width: 80px;
}

nav figure img {
  width: 100%;
  object-fit: cover;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

nav ul li a {
  font-size: 1.2rem;
  font-weight: 500;
  color: #f5f7f9;
  text-decoration: none;
}

nav ul li a:hover {
  color: #00a6ff;
}

/* ----------------SECTION 1----------------*/
.portada {
  padding: 1.2rem 2rem;
  height: 40rem;
  display: flex;
  align-items: center;
  background: linear-gradient(#002a5600, #002a56),
    url("../Imagenes/fotobuqueargentino.jpg") center / cover no-repeat;
}

.portada article div {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: #f5f7f9;
}

.portada article div h1 {
  font-size: 5rem;
  font-weight: 900;
}

.portada article div p {
  width: 80%;
  font-size: 1.2rem;
}

.portada article div a {
  padding: 0.8rem 1rem;
  margin-inline-end: auto;
  background-color: transparent;
  border: 1px solid #f5f7f9;
  border-radius: 5rem;
  transition: all 0.5s;
  text-decoration: none;
  color: #f5f7f9;
  font-size: 1.2rem;
}
.portada article div a:hover {
  background-color: #00a6ff;
  color: #002a56;
  transform: translate(0, -0.25rem);
}

/* ----------------SECTION 2----------------*/
.integrantes {
  padding: 5rem 2rem;
  background-color: #002a56;
}

.integrantes h2 {
  padding-bottom: 20px;
  color: #f5f7f9;
  font-size: 1.6rem;
}

.integrantes article {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  /* display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  /* grid-template-columns: fit-content(50ch) fit-content(50ch) fit-content(50ch); */
  /* grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); */
  gap: 2rem;
}

.integrantes article a {
  flex: 0 1 250px;
  text-decoration: none;
  color: inherit;
  display: block;
}

.integrantes article a > div {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid #00a6ff;
  text-decoration: none;
}

.integrantes article a > div:hover {
  transform: scale(1.04);
  transition: 0.5s;
}

.integrantes article a > div > div {
  display: flex;
  justify-content: space-between;
  padding: 8px;
}

.integrantes article a svg {
  transform: rotate(-45deg);
  fill: #00a6ff;
}

.integrantes article a h3 {
  color: #f5f7f9;
  font-size: 1.3rem;
}

.integrantes article a p {
  color: #00a6ff;
  font-size: 0.9rem;
  font-weight: 100;
}

/* ----------------SECTION 3----------------*/
.datos-academicos {
  padding: 5rem 2rem;
}

.datos-academicos article > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1.5rem;
}

.datos-academicos article > div > div {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 2rem;
  padding: 1rem;
  border: 1px solid #002a56;
}

.datos-academicos article img {
  width: 12rem;
  aspect-ratio: 1;
  object-fit: contain;
  background-color: #ffffff;
  border-radius: 1.2rem;
}

.datos-academicos article ul,
.equipo article ul {
  list-style: none;
}

.datos-academicos article a {
  padding: 0.8rem 1rem;
  margin-inline-end: auto;
  color: #002a56;
  border: 1px solid #002a56;
  border-radius: 5rem;
  text-decoration: none;
  transition: all 0.5s;
}

.datos-academicos article a:hover {
  background-color: #00a6ff;
  color: #002a56;
  transform: translate(0, -0.25rem);
}

/* ----------------FOOTER---------------- */
footer {
  padding: 2rem;
  color: #f5f7f9;
  background-color: #002a56;
  font-size: 0.9rem;
  font-weight: 100;
  text-align: center;
}

/* ----------------MAPA Y PLAN---------------- */
.ux-persona,
.mapa-contenido {
  padding: 2rem;
  background-color: #00a6ff;
}

.ux-persona article div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ux-persona article div img:nth-child(3) {
  grid-column: span 2;
  width: 100%;
}
