@font-face {
  font-family: "Diatype Variable";
  src: local("Diatype Variable"), local("ABC Diatype Variable");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --margen: clamp(8px, .83vw, 18px);
  --barra: 25%;
  color: #262626;
  background: #fff;
  font: 550 clamp(11px, .87vw, 16px)/1.2 "Diatype Variable", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
a:hover, [aria-current="page"] { text-decoration: underline; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }

.salto {
  position: fixed;
  z-index: 2;
  top: var(--margen);
  left: var(--margen);
  padding: 8px;
  background: #fff;
  transform: translateY(-200%);
}
.salto:focus { transform: none; }

.lateral {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--barra);
  flex-direction: column;
  padding: var(--margen);
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.cabecera { display: flex; justify-content: space-between; gap: 12px; }
.marca { display: inline-block; }
.menu { display: none; }
nav { margin-top: 1.2em; }
nav ul { margin: 0; padding: 0; list-style: none; }
nav a { display: inline-block; }
nav .menu-secundario { margin-top: 1.2em; }
.boton-texto, .menu-secundario button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.boton-texto:hover, .menu-secundario button:hover { text-decoration: underline; }
a[aria-disabled="true"] { color: #595959; text-decoration: none; }
.pie { margin-top: auto; padding-top: 2em; font-size: .8em; }

main { margin-left: var(--barra); padding: var(--margen); }
main:focus { outline: none; }
.indice, .fotos { display: grid; gap: var(--margen); }
.indice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portada { display: block; aspect-ratio: 3 / 2; }
.portada .imagen { height: 100%; overflow: hidden; }
.portada img { width: 100%; height: 100%; object-fit: cover; }
.imagen {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  background: #f5f4f1;
  text-align: center;
}
.imagen img { display: block; max-width: 100%; }
.imagen img:not([src]) { visibility: hidden; }
.imagen figcaption { position: absolute; inset: auto 0; padding: 12px; }
.imagen.con-aviso img { visibility: hidden; }
.encabezado-proyecto {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 1.2em;
}
.encabezado-proyecto h1 { margin: 0; font: inherit; overflow-wrap: anywhere; }
.encabezado-proyecto a { white-space: nowrap; }
.fotos img { width: 100%; height: auto; }
.fotos .sin-medidas { min-height: 90px; }
.pie-proyecto {
  margin-top: 1.5rem;
  font-size: .76rem;
  font-weight: 450;
  line-height: 1.2;
}
.ficha, .fila-final {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--margen);
}
.ficha .resena { grid-column: 2; }
.ficha h2 { margin: 0 0 1.2em; font: inherit; }
.ficha p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.fila-final { align-items: baseline; }
.ficha + .fila-final { margin-top: clamp(96px, 9vw, 140px); }
.fila-final a { justify-self: start; text-decoration: underline; }
.estado, .sin-js { margin: 0 0 1.2em; }
.nota { margin: 1.2em 0 0; color: #595959; }

.informacion, .ventana-mail {
  border: 0;
  color: inherit;
  overscroll-behavior: contain;
}
.informacion {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--margen);
  background: rgb(255 255 255 / 94%);
}
.informacion::backdrop { background: transparent; }
.cabecera-informacion { display: flex; justify-content: space-between; gap: 12px; }
.cabecera-informacion h2 { margin: 0; font: inherit; }
.cuerpo-informacion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 50%;
  gap: var(--margen);
  margin-top: 1.2em;
  overflow-wrap: anywhere;
}
.cuerpo-informacion p { margin: 0; white-space: pre-line; }
#texto-informacion p + p { text-indent: 2.6em; }
.datos-contacto { display: grid; align-content: start; justify-items: start; }
.datos-contacto #ubicacion { margin-bottom: 1.2em; }
.datos-contacto button { max-width: 100%; overflow-wrap: anywhere; }

.ventana-mail {
  width: min(410px, calc(100% - 30px));
  height: min(540px, 85dvh);
  max-height: calc(100% - 30px);
  padding: 10px;
  border-radius: 11px 11px 0 0;
  background: #fff;
  box-shadow: 0 14px 46px rgb(0 0 0 / 22%);
  font: 400 14px/1.2 "Diatype Variable", Arial, sans-serif;
}
.ventana-mail::backdrop { background: rgb(0 0 0 / 38%); }
.ventana-mail form {
  display: grid;
  grid-template-rows: auto auto minmax(80px, 1fr) auto auto;
  min-height: 100%;
  height: 100%;
}
.cabecera-mail {
  position: relative;
  display: grid;
  min-height: 36px;
  place-items: start center;
  padding: 5px 32px 8px;
}
.cabecera-mail h2 { margin: 0; font-size: 15px; }
.cerrar-mail {
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #777;
  color: #fff;
  font-size: 19px;
  cursor: pointer;
}
.campo-remitente {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 0;
  border-block: 1px solid #ddd;
}
.campo-remitente input, .ventana-mail textarea {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
}
.campo-remitente input { width: 100%; }
.ventana-mail textarea {
  padding: 12px 0;
  resize: none;
}
.campo-remitente input:focus-visible, .ventana-mail textarea:focus-visible { outline-offset: -1px; }
.aviso-mail { margin: 0 0 10px; color: #595959; font-size: 12px; }
.acciones-mail {
  grid-row: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}
.acciones-mail button {
  min-width: min(130px, 100%);
  padding: 6px 14px;
  border: 0;
  border-radius: 99px;
  background: #e4e4e4;
  cursor: pointer;
}
.acciones-mail button[type="submit"] { color: #fff; background: #262626; }
.acciones-mail button:disabled { color: #595959; background: #e4e4e4; cursor: default; }

@media (max-width: 720px) {
  :root { font-size: 13px; --margen: 8px; }
  .lateral { position: static; width: auto; padding-bottom: 10px; overflow: visible; }
  .cabecera { align-items: flex-start; }
  .menu {
    display: block;
    min-height: 36px;
    padding: 0 0 12px 14px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .menu:hover { text-decoration: underline; }
  .menu[aria-expanded="false"] { align-self: flex-start; }
  .lateral:not(.abierto) nav, .pie { display: none; }
  .lateral nav { margin-top: 10px; }
  nav a, .menu-secundario button { min-height: 27px; padding: 5px 0; }
  main { margin-left: 0; padding-top: 0; }
  .indice { grid-template-columns: minmax(0, 1fr); }
  .pie-proyecto { font-size: .78rem; }
  .ficha { grid-template-columns: minmax(0, 1fr); gap: 1.2em; }
  .ficha .resena { grid-column: 1; }
  .fila-final { grid-template-columns: auto 1fr; }
  .fila-final time { justify-self: end; text-align: right; }
  .cuerpo-informacion { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .ventana-mail { height: 85dvh; }
  .campo-remitente input, .ventana-mail textarea { font-size: 16px; }
}
