@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;
    background-color: #002a56; /* <<< línea que soluciona el fondo blanco */
  }

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;
}

/* ----------------PORTADA---------------- */
.portada {
  padding: 0;
  background-color: #002a56;
}

.video-wrapper {
  position: relative;
  width: 90%;
  max-width: 600px; /* Limita el tamaño en escritorio */
  margin: 2rem auto;
  aspect-ratio: 16 / 9; /* Mantiene la proporción */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  background-color: #002c5c; /* O tu color de fondo */
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: 16px;
}

/* TEXTO DE LA PORTADA */
.portada-texto {
  padding: 2rem;
  background-color: rgb(0, 42, 86);
  color: #f5f7f9;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.portada-texto h1 {
  font-size: 3rem;
  font-weight: 900;
}

.portada-texto p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.portada-texto a {
  padding: 0.8rem 1rem;
  width: fit-content;
  background-color: transparent;
  border: 1px solid #f5f7f9;
  border-radius: 5rem;
  text-decoration: none;
  color: #f5f7f9;
  transition: all 0.5s;
}

.portada-texto a:hover {
  background-color: #00a6ff;
  color: #002a56;
  transform: translateY(-0.25rem);
}

/* MEDIA QUERY PARA MOBILE */
@media (max-width: 600px) {
  .portada-texto h1 {
    font-size: 2rem;
  }

  .portada-texto p {
    font-size: 1rem;
  }
}
/* ----------------INTEGRANTES---------------- */
.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;
  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;
}

.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;
}

/* ----------------DATOS ACADÉMICOS---------------- */
.datos-academicos {
  padding: 5rem 2rem;
    background-color: #f5f7f9;
    color: #002a56;
  }

.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 {
  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%;
}

.ux-persona article div img:nth-child(4) {
  grid-column: span 2;
  width: 100%;
}