:root {
  --fondo-claro: #f9f5ee;
  --color-primario: #357cb3;

  --nav: #031f76;
  --nav-hover: #55e4eb;

  --text-primary: #2c3238;
  --color-texto: #525d66;

  --action-primary: #1d5a8a;
  --action-hover: #04223a;

  --footer: #03012a;
  --fondo-info: #02243a;

  --blanco: #fafaf7;

  box-sizing: border-box;
}


/* =========================
   CONFIGURACIÓN GENERAL
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--fondo-claro);
  color: var(--text-primary);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}


/* =========================
   HEADER
========================= */

header {
  width: 100%;
  background-color: var(--color-primario);
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 20px;
  padding: 25px 20px;
}


/* Logo DGPC */

#logo {
  display: grid;
  place-items: center;
}

#logo figure {
  margin: 0;
}

#logo img {
  display: block;
  width: 100px;
  height: auto;
}


/* =========================
   NAVEGACIÓN
========================= */

nav {
  width: auto;
  margin: 0;
}

nav ul {
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0;
  padding: 0;
}

nav ul li {
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu li a {
  display: block;
  padding: 10px 16px;
  background-color: var(--nav);
  border-radius: 20px;
  color: var(--blanco);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  text-shadow: none;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.menu li a:hover {
  background-color: var(--nav-hover);
  color: var(--blanco);
  transform: translateY(-2px);
}

.menu li a.menuactivo {
  background-color: var(--nav-hover);
  color: var(--blanco);
}


/* =========================
   CONTENIDO PRINCIPAL
========================= */

main {
  width: 100%;
  margin: 0;
}


/* =========================
   LEXIA
   Imagen arriba + texto abajo
========================= */

.logolexia {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 40px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.logolexia figure {
  width: 100%;
  margin: 0;
  display: grid;
  justify-items: center;
}

.logolexia img {
  display: block;
  width: 100%;
  max-width: 650px;
  height: auto;
  margin: 0 auto;
}

.logolexia p {
  width: 100%;
  max-width: 750px;
  margin: 0;
  color: var(--color-texto);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
  text-shadow: none;
}


/* =========================
   EQUIPO
========================= */

.sect-equipo {
  width: 100%;
  padding: 70px 40px 90px;
  background-color: var(--color-primario);
}

.sect-equipo h1 {
  margin: 0 0 15px;
  color: var(--blanco);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  text-shadow: none;
}

.sect-equipo h2 {
  margin: 0 0 45px;
  color: var(--blanco);
  font-size: 1.2rem;
  font-weight: 400;
  text-align: center;
  text-shadow: none;
}


/* =========================
   TARJETAS DEL EQUIPO
========================= */

.nav-botonesequipo {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.boton-nav {
  width: 100%;
  min-height: 300px;
  padding: 30px 25px;
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-content: center;
  gap: 10px;
  background-color: var(--blanco);
  border-radius: 25px;
  color: var(--text-primary);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.boton-nav:hover {
  transform: translateY(-7px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.boton-nav img {
  width: 145px;
  height: 145px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.boton-nav h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.3;
  text-align: center;
  text-shadow: none;
}

.boton-nav p {
  margin: 0;
  color: var(--color-texto);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  text-shadow: none;
}


/* =========================
   DATOS ACADÉMICOS
========================= */

aside {
  width: 100%;
  background-color: var(--fondo-info);
  color: var(--blanco);
}


/* Título */

.intro {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 30px 25px;
  text-align: left;
}

.intro h3 {
  margin: 0;
  color: var(--blanco);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: left;
  text-shadow: none;
}


/* Contenedor de UBA / FADU / DGPC */

.seccion-info {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 30px 70px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
  text-align: left;
}


/* Cada institución */

.datosacademicos {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: start;
  text-align: left;
}


/* Logos */

.datosacademicos img {
  display: block;
  margin: 0 0 20px;
  max-width: 180px;
  max-height: 70px;
  object-fit: contain;
}

.logo-uba {
  width: 120px;
}

.logo-fadu {
  width: 150px;
}

.logo-dgpc {
  width: 100px;
}


/* Títulos institucionales */

.datosacademicos h4 {
  width: 100%;
  margin: 8px 0;
  color: var(--blanco);
  font-size: 1.1rem;
  text-align: left;
  text-shadow: none;
}

.datosacademicos .institucion-uba,
.datosacademicos .institucion-fadu,
.datosacademicos .catedra-dgpc {
  font-size: 0.9rem;
  font-weight: normal;
  line-height: 1.4;
}


/* Información */

.linea-de-cargo,
.Comitente,
.Integrantes,
.tema {
  width: 100%;
  margin: 10px 0;
  color: var(--blanco);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
  text-shadow: none;
}

.linea-de-cargo strong,
.Comitente strong,
.Integrantes strong,
.tema strong {
  font-weight: 700;
}


/* =========================
   FOOTER
========================= */

footer {
  width: 100%;
  background-color: var(--footer);
}

.legales-footer {
  width: 100%;
}

.legales-contenedor {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 25px;
}

.logo-uba-footer {
  display: block;
  width: auto;
  height: 28px;
  opacity: 0.85;
  filter: brightness(0) invert(1);
}

.legales-contenedor p {
  margin: 0;
  color: var(--blanco);
  font-size: 0.7rem;
  line-height: 1.5;
  text-shadow: none;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

  /* Lexia */

  .logolexia {
    max-width: 750px;
  }

  /* Equipo */

  .nav-botonesequipo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Datos académicos */

  .seccion-info {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .datosacademicos {
    justify-items: start;
  }
}

@media (max-width: 650px) {

  /* Header */

  header {
    padding: 20px 15px;
  }

  /* Navegación */

  nav {
    width: 100%;
  }

  nav ul {
    width: 100%;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  /* Lexia */

  .logolexia {
    padding: 50px 25px;
  }

  /* Equipo */

  .sect-equipo {
    padding: 55px 25px 65px;
  }

  .nav-botonesequipo {
    grid-template-columns: 1fr;
  }

  .boton-nav {
    min-height: 280px;
  }

  /* Datos académicos */

  .intro {
    padding: 45px 25px 20px;
  }

  .seccion-info {
    padding: 20px 25px 55px;
  }

  /* Footer */

  .legales-contenedor {
    grid-template-columns: 1fr;

    justify-items: center;

    text-align: center;
  }
}

@media (max-width: 450px) {

  /* Navegación */

  nav ul {
    grid-template-columns: 1fr 1fr;

    gap: 8px;
  }

  .menu li a {
    padding: 9px 10px;

    font-size: 0.85rem;
  }

  /* Equipo */

  .sect-equipo h1 {
    font-size: 1.5rem;
  }

  .sect-equipo h2 {
    font-size: 1rem;
  }

  /* Datos académicos */

  .intro h3 {
    font-size: 1.4rem;
  }
}