/* ==========================
   Reset y estilos base generales
========================== */

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

body {
  font-family: sans-serif;
  background-color: #ffffff;

}

a {
  color: #091c54;
}

/* ==========================
   Grid Layout Principal
========================== */

.grid-layout {
  display: grid;
  grid-template-areas:
    "header"
    "main"
    "footer";
  grid-template-rows: auto 1fr auto;
}

header {
  grid-area: header;
}

main {
  grid-area: main;
}

footer {
  grid-area: footer;
  width: 100%;
  padding: 2rem;
  font-family: sans-serif;
  color: #6e96fbe1;
  margin: auto;
}

/* ==========================
   Header
========================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background-color: #091C54;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 0rem;
}


.nav-buttons a {
  text-decoration: none;
font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 150px;
  color: #091c54;
  background-color: #c0d1e1;
  text-transform: uppercase;
  transition: background-color 0.3s;
}

.nav-buttons a:hover {
  background-color: #4872ce;
}
/* A PARTIR DE 500PX (GRANDE) */
@media (min-width: 500px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap:2rem;
  }

  .nav-buttons {
    margin-top: 0rem;
  }
}

@media (max-width: 500px) {
  .nav-buttons {
    flex-wrap: wrap;
    justify-content: center;
    
  }
.nav-buttons {
    margin-top: 1rem;
  }
}

/* ==========================
   Hero con fondo
========================== */

.hero {
  background-image: url("../imagenes/imagen .jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  color: white;
  padding: 1rem 2rem;
font-size: clamp(2rem, 6vw, 3rem);
  font-weight: bold;
  border-radius: 0.5rem;
  text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

/* ==========================
   Títulos normales
========================== */

h2 {
  font-size: 1.8rem;
  margin-top: 0.2rem;
  color: #091c54;
  font-weight: normal;
  border-bottom: 2px solid #091C54;
  padding-bottom: 0.5rem;
}

/* ==========================
   Texto general
========================== */

p {
  font-weight: lighter;
  margin-top: 1rem;
}

/* ==========================
   Secciones base
========================== */

section.presentacion,
section.introduccion,
section.integrantes,
section.datos-academicos {
  padding: 2rem;
  font-family: sans-serif;
}

section.introduccion,
section.integrantes {
  margin: auto;
}

.contenido-texto {
  /* padding: 1rem; */
}

/* ==========================
   Integrantes
========================== */

.contenedora {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
  width: 100%;
}

.integrantes article {
  background-color: #c0d1e1;
  padding: 3rem;
  border-radius: 0.55rem;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.integrantes img {
  border: solid 0.4rem #091c54;
  box-shadow: 0 4px 4px hsl(0 0% 0% / 25%);
  width: 12rem;
  aspect-ratio: 1;
  border-radius: 10px;
  display: block;
  margin: 1rem auto;
}

.integrante_texto a {
  text-decoration: none;
  background-color: #091c54;
  border-radius: 0.25rem;
  color: #ffffff;
  padding: 0.5em 1em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.integrante_texto a:hover,
.integrante_texto a:focus-visible {
  background-color: #6e96fb;
  color: #ffffff;
}

.integrante_texto p {
  margin: 0 0 2rem 0;
}

.integrante_texto h3 {
  margin: 0 0 0.4rem 0;
}

/* ==========================
   Datos académicos
========================== */

.datos-academicos h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: #091c54;
  text-align: center;
  border-bottom: 2px solid #091c54;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

.datos-academicos ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0;
  margin: 0 1rem;
  list-style: none;
}

.datos-academicos li {
  background-color: #fafdff;
  padding: 2rem;
  border-radius: 0.55rem;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
}

.datos-academicos img {
  display: block;
  margin: 3rem auto;
  height: 3rem;
  border-radius: 10px;
}

.datos-academicos .textos {
  width: 100%;
}

.datos-academicos h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #091c54;
}

.datos-academicos p {
  margin: 0;
  line-height: 1.5;
}

/* ==========================
   Footer
========================== */
footer {
  background-color: #c0d1e1;
  text-align: center;
  color: #091c54;
  font-size: clamp(0.85rem, 1vw, 0.9rem);
  padding: 20px;
  border-top: 2px solid #091c54;
  margin-top: 3rem;
  border-radius: 0 0 12px 12px;
}

/* --- Columna única en pantallas pequeñas --- */
@media (max-width: 800px) {
  .datos-academicos ul {
    grid-template-columns: 1fr;
  }
}

/* ==========================
   Responsive: transición temprana a columna única para tarjetas
========================== */
@media (max-width: 1000px) {
  .contenedora,
  .datos-academicos {
    grid-template-columns: 1fr;
  }
}

/* ==========================
   Página: mapa.html
========================== */

body.mapa section:first-of-type article {
  padding: 2rem;
  margin-block: 2rem;
  background-color: #fafdff;
  border-radius: 0.5rem;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
}

body.mapa section:nth-of-type(2) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  margin-inline: auto;
}

body.mapa section:nth-of-type(2) article,
body.mapa section:nth-of-type(2) ul {
  background-color: #f3f7fc;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 1px 3px 6px rgba(0, 0, 0, 0.1);
}

body.mapa section:nth-of-type(2) h3 {
  font-family: serif;
  font-size: 1.2rem;
  color: #091c54;
  border-bottom: 1px solid #c0d1e1;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  text-align: center;
}

body.mapa section:nth-of-type(2) ul {
  list-style: disc;
  padding-left: 1.5rem;
  text-align: left;
}

.introduccion-mapa {
  font-size: 0.9em;
  color: #091c54;
  text-align: center;
  background-color: #c0d1e1;
  padding: 20px;
  margin-top: 40px;
}

/* Imagen expandida */
.imagen-mapa-expandida {
  width: 100vw;
  height: auto;
  display: block;
  margin-left: calc(-50vw + 50%);
  margin-top: 2rem;
  margin-bottom: 2rem;
  object-fit: cover;
}

/* Grilla para secciones internas */
.estructura-grilla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 0 2rem 3rem 2rem;
  margin: 0 auto 3rem auto;
}

.estructura-grilla article,
.estructura-grilla h3 {
  background-color: #c0d1e1;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 2px 3px 6px rgb(0 0 0 / 0.25);
  color: #091c54;
}

.estructura-grilla h3 {
  margin-top: 0;
  font-size: 1.4rem;
  text-align: center;
  border-bottom: 2px solid #091c54;
  padding-bottom: 0.5rem;
}

.estructura-grilla article ul {
  list-style: disc inside;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

/* ==========================
   Página: plan.html
========================== */

.pagina-plan section.presentacion {
  padding: 2rem;
  background-color: #e5ecf3;
}

.pagina-plan h1,
.pagina-plan h3 {
  color: #091C54;
  font-weight: 700;
  text-align: center;
  margin-block: 1rem;
  font-family: sans-serif;
}

.pagina-plan p {
  font-size: 1rem;
  line-height: 1.5;
  color: #2E3A59;
  margin: 0.5rem auto 1.5rem auto;
  padding-inline: 1rem;
}

.pagina-plan section.presentacion-del-video h3 {
  background-color: #C0D1E1;
  padding-block: 0.4rem;
  padding-inline: 5rem;
  border-radius: 0.5rem;
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.25);
  font-size: 2rem;
  font-weight: bolder;
  margin: 2rem auto;
  text-align: center;
}

/* ==========================
   Arquetipo
========================== */

.Arqueotipo {
  padding: 2rem;
  background-color: #f3f6fa;
  text-align: center;
}

.galeria-arquetipo {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  margin: 0 auto;
}

.item-arquetipo {
  text-align: center;
}

.item-arquetipo img {
  height: 300px;
  width: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.galeria-arquetipo article:nth-child(1) img,
.galeria-arquetipo article:nth-child(2) img {
  height: 600px;
}