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

body {
  background-color: #efe5da;
  color: #0C2D40;
  font-family: "Archivo", sans-serif;
}

img {
  max-width: 100%;
}

header {
  position: sticky;
  top: 0;
  overflow: hidden;
}

nav {
  padding: 1.2rem 2rem;
  margin: 2rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  background-color: #6F9DA6;
  border-radius: 1rem;
  box-shadow: 0px 8px 5px -3px #5C6B73;
}

nav div img {
  width: 5rem;
  margin-bottom: 1rem;
}

nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

nav ul li a {
  font-size: 1.2rem;
  color: #efe5da;
  text-decoration: none;
}

nav ul li a:hover {
  color: #0C2D40;
}

main {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.presentacion article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.presentacion article > div h2 {
  padding-bottom: 1rem;
  font-size: 2.2rem;
  font-weight: 800;
  color: #6F9DA6;
}

.italic {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 800;
}

.presentacion article > div h3 {
  padding-bottom: 1rem;
  font-size: 1.5rem;
}

.resaltado {
  background-color: #efe5da;
}

.presentacion-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.presentacion-btns a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 200px;
  height: 3rem;
  background-color: #efe5da;
  border: 1px solid #6F9DA6;
  border-radius: 100%;
  transition: all 0.5s;
}

.presentacion-btns a:hover {
  background-color: #0C2D40;
  transform: translate(0, -0.25rem);
}

.presentacion-btns svg {
  fill: #6F9DA6;
  width: 1.3rem;
}

.presentacion-btns a:hover svg {
  fill: #efe5da;
}

.materias article {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22em, 100%), 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin-inline: auto;
}

.materias article div {
  padding: 1rem;
  border: 1px solid #4dbfc1;
  border-radius: 18px;
}

h2 {
  padding-bottom: 1rem;
  font-size: 1.5rem;
}

.materias article div ul {
  list-style: none;
}

.equipo article > div > div {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 2rem;
  padding: 1rem;
  border: 1px solid #6F9DA6;
  border-radius: 1.2rem;
  background-color: #4dbfc1;
}

.equipo article a,
.propuesta article a,
.datos-academicos article a {
  padding: 0.8rem 1rem;
  display: inline-block;
  color: #0C2D40;
  border: 1px solid #0C2D40;
  border-radius: 0.8rem;
  text-decoration: none;
  transition: all 0.5s;
  white-space: nowrap;
  width: auto;
}

.equipo article a:hover,
.propuesta article a:hover,
.datos-academicos article a:hover {
  background-color: #4dbfc1;
  color: #efe5da;
  transform: translate(0, -0.25rem);
}

.datos-academicos article > div,
.equipo article > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22em, 100%), 1fr));
  gap: 1.5rem;
}

.datos-academicos article > div > div {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 2rem;
  padding: 1rem;
}

.datos-academicos article img {
  width: 400px;
  max-width: 90%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  background-color: #ffffff;
  border-color: #4dbfc1;
}

.datos-academicos article ul,
.equipo article ul {
  list-style: none;
}

footer {
  padding: 2rem;
  color: #efe5da;
  background-color: #6F9DA6;
  font-weight: 100;
  text-align: center;
}

nav {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  margin: 2rem;
}

nav div {
  margin-bottom: 0;
}

nav ul {
  flex-direction: row;
  gap: 1.5rem;
}

.presentacion article {
  flex-direction: row;
}

.presentacion article > div h2 {
  font-size: 3rem;
}

.presentacion article > div h3 {
  font-size: 2rem;
}

.presentacion img {
  width: 400px;
  max-width: 90%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.datos-academicos li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 430px) {
  .presentacion article {
    flex-direction: column;
  }
  .presentacion img {
    width: 90%;
  }
  .materias article {
    grid-template-columns: 1fr;
  }
  .presentacion-btns {
    flex-wrap: wrap;
    justify-content: center;
  }
}