@charset "utf-8";

* {
  box-sizing: border-box;
}

body {
  font-family: Afacad Flux;
  margin: 0;
  color: hsl(0, 0, 2);
  background-color:hsl(291, 45%, 94%);
}

p {
  line-height: 1.6;
}

p,
li,
figcaption {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: hsl(251, 30, 26);
  line-height: 1.1;
  text-wrap: balance;
}

img {
  max-width: 100%;
  border-radius: 10px 10px 10px 10px;
}

figure {
  margin: 0;      
}

figure img {
  display: block;
}

a {
  text-decoration: none;
  color: hsl(250, 31, 50);
  font-weight: bold;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

.contenedor {
  width: min(65rem, calc(100% - 3rem));
  margin-inline: auto;
}

.sombra-amplia {
  border: 3px solid hsl(275, 86%, 20%);
  border-radius: 10px 10px 10px 10px;
}

.bordes {
  border: 0px solid transparent; 
  box-shadow: 0 0 8px hsl(275, 86%, 20%); 
  padding: 10px;
  border-radius: 10px 10px 10px 10px;
}

.sombra-chica {
  border: 2px solid hsl(275, 86%, 20%);
  border-radius: 10px 10px 10px 10px;
}

.titulo-con-linea {
  font-size: 24px;
  color: hsl(275, 48%, 33%); 
  text-align: left;
  position: relative;
  padding-bottom: 10px; 
}

.titulo-con-linea::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px; 
  background-color: hsl(275, 48%, 33%); 
  bottom: 0;
  left: 0;
}

header,
footer {
  background-color: hsl(250, 53%, 64%);
  color: rgb(26, 0, 41);
  padding: 1rem;
}


/* menú de navegación */ 

header nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  gap: .5rem;
  width: min(100%, 30rem);
  margin-inline-start: auto;
  padding: 5px;
}


header nav a {
  background-color:hsl(251, 70%, 84%);
  color:hsl(251, 30, 26);
  display: block;
  padding-block: 0.25em .35em;
  text-align: center;
  border-radius: 50vw;
}

.header_contenedora {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    text-align: justify;
    max-width: 60rem;
    margin-inline: auto;
  }

  .navegador {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;
    align-items: center;
  
  }

  #imagenlogo {
    width: 8em;
  }
  

  .footer {
    display: grid;
    gap: 1rem;
    align-items: center;
  
  }


header nav a:hover,
header nav a:focus-visible,

.index nav li:first-of-type
.plan nav li:nth-of-type(2) a,
.mapa nav li:nth-of-type(3) a {
  background-color: hsl(250, 31, 50);
  color: hsl(275, 86%, 20%);
  border-color: hsl(251, 30, 26);
  box-shadow: .25rem .25rem hsl(251, 30, 26);
  outline: none;
}


/* Componente central */ 

section {
  padding-block: 2rem 4rem;
}

section > h1
section > h2
section > h3 {
  margin-block-end: 2em;
  padding: .5em 1em;
}

/* Sección comitente */

.comitente {
  font-size: 1.25em;
}

.comitente h1 {
  display: grid;
  align-items: center;
  gap: 1em;
  text-align: start;
}


.comitente img {
  width: 100%;
}

/* Sección equipo */

.equipo {
  background: hsl(251, 70%, 84%);
}

.equipo article,
.academicos > ul > li {
  background-color: hsl(0 0 95);
  padding: 1em;
}

.equipo figure,
.academicos figure {
  background-color: white;
  width: min(100%, 10em);
  aspect-ratio: 1;
}

.equipo h3 {
  margin-block-start: 0;
}

.equipo a,
.academicos a {
  background-color: hsl(0 0% 95%);
  color: hsl(278, 99%, 30%);
  font-size: .85em;
  padding-block: .125em .25em;
  padding-inline: 1em .75em;
  border-radius: 100vw;
}

:is(.equipo, .academicos) a:hover,
:is(.equipo, .academicos) a:focus-visible {
  color: hsl(0 0% 95%);
  background-color: hsl(278, 99%, 30%);
  outline: none;
  border-color: hsl(278, 100%, 9%);
  box-shadow: .25rem .25rem hsl(278, 100%, 9%);
}

/* seccion datos academicos */

.academicos figure {
  aspect-ratio: 2;
  padding: .5rem;
}

.academicos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
} 

body {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}

/* header */

header {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: center;
}

header *,
header nav ul li {
  margin: 0;
}

header nav ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minimax(5rem, 1fr));
  gap: .5rem;
  width: min(100%, 30rem);
  margin-inline-start: auto;
}


/* grid y esas cositas */

.equipo > div,
.academicos > ul {
  display: grid;
  grid-template-columns: repeat(autofit, minmax (min(20rem, 100%), fr));
  gap: 1rem;
}

.equipo article {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
}

.equipo article > div {
  display:grid;
  grid-template-rows: auto auto 1fr;
}

.equipo article > div a,
.academicos > ul > li a {
  margin-inline-start: auto;
}

.academicos > ul > li {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}


/* mapa, plan */

.contenedortexto {
  display: grid;
  grid-template-columns: 1fr; 
  justify-items: center; 
  text-align: center; 
  margin: 10px; 
}

.texto {
  background-color: #f4f4f4; 
  padding: 20px; 
  max-width: 600px; 
  border-radius: 10px; 
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); 
  text-align: justify; 
}