/* css/layout.css
   Plantilla compartida de las páginas de contenido "tipo resumen"
   (nosotros, investigacion, publicaciones, etc.): el <main> centrado
   al 60%, su cabecera, y la fila "sup". hero.css sobrescribe .main-full
   a propósito para las páginas con hero de ancho completo. */

main {
  width: 60%;
  height: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  margin-top: 102px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 48px;
  color: #201a1b;
}

/* Utilidad reutilizable: <main> a todo el ancho, sin el width:60%
   ni el margin-top:102px genéricos. Úsala en cualquier página cuyo
   <main> empiece con un hero/banner a todo lo ancho. */
.main-full {
  width: 100%;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  align-items: stretch;
}


.cabecera-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 24px;
}

.titulo-pagina {
  width: 100%;
  margin-top: 32px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 28px !important;
}

.texto-cabecera {
  margin-top: 16px;
  margin-bottom: 16px;
  text-align: justify;
}

.logos-main {
  width: 100%;
  height: 120px;
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 16px;
}

/* NOTA: esta clase la genera logocontainer.js (el widget de logos), no
   es parte de la plantilla en sí. La dejo aquí por ahora porque solo
   tiene sentido junto a .logos-main, pero si mueves logocontainer.js
   a widgets/, probablemente convenga que su CSS viva junto a él
   (ej. widgets/logo.css) en vez de en layout.css. */
.contenedor-logo-main {
  width: 200px;
  height: 100%;
}

.opcion-informacion {
  display: flex;
  align-items: flex-start;
  margin-top: 12px;
  margin-bottom: 12px;
  text-align: justify;
}

.opcion-informacion div {
  font-size: 16px;
}

.opcion-informacion span {
  margin-right: 12px;
}

.opcion-informacion a {
  display: flex;
  align-items: flex-start;
  color: #201a1b;
}

.opcion-informacion a svg {
  fill: #201a1b;
  margin-right: 12px;
  height: 100%;
}

.contenido-main {
  width: 100%;
  height: auto;
}

.sup {
  width: 60%;
  display: flex;
  justify-content: space-between;
  margin-left: auto;
  margin-right: auto;
  margin-top: 96px;
  margin-bottom: 16px;
}

.sup div {
  max-width: 250px;
}

.main-resumen {
  width: 100%;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  align-items: stretch;
}

/* ============================================================ */

@media (max-width: 1024px) {
  main {
    width: auto;
    margin-left: 0px;
    margin-right: 0px;
  }

  .sup {
    width: auto;
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 768px) {
  .logos-main {
    flex-wrap: wrap;
    justify-content: space-around;
    height: auto;
  }

  .contenedor-logo-main {
    height: 100px;
  }

  .sup {
    flex-direction: column;
  }

  .sup div,
  .opcion-informacion {
    max-width: 100%;
  }
}