@font-face { font-family: Inter; src: url("../fonts/inter-normal.woff2"); }
@font-face { font-family: Inter; font-style: italic; src: url("../fonts/inter-italic.woff2"); }

body { margin: 0; padding: 32px; display: flex; align-items: flex-start; gap: 200px;
       font: 15px/1.5 Inter, sans-serif; color: #000; background: #fff; margin-bottom: 2rem;}
nav { flex: 0 0 260px; display: flex; flex-direction: column; gap: 28px; }
main { flex: 1; min-width: 0; }

a { color: inherit; }
.cabecera a, .proceso a, .archivo a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
a[aria-current="page"] { text-decoration: underline; font-style: italic;}
.cabecera { font-size: 19px; }
.volver { display: none; }
.menu { display: flex; gap: 14px; margin-top: -28px; }
.proceso { color: #5c5c5c; font-size: 12.5px; margin-bottom: -10px}
.proceso a { font-style: italic; }
.anio { color: #6b6b6b; margin-top: 10px; }
h1 { margin: 0; font-size: 18px; font-weight: 600; }
.gris { color: #5c5c5c; }
.texto { max-width: 42em; margin-top: 28px; }

/* móvil */
@media (max-width: 700px) {
  body { flex-direction: column; padding: 20px; gap: 28px; font-size: 15px; }
  nav { flex: none; width: 100%; }
  .archivo a { display: block; padding: 8px 0; }
  .entrada nav > :not(.cabecera) { display: none; }
  .entrada .volver { display: block; font-size: 15px; margin-top: 16px; }
}
/* Efecto del nombre */
.cabecera .glitch {
  position: relative; display: inline-block; white-space: nowrap;
  font-size: 1.35rem; /* TAMAÑO */
  line-height: 1.05; color: #0a0a0a; text-decoration: none;
  text-shadow: -0.04em 0 #7a7a7a, 0.04em 0 #c2c2c2;
}
.glitch::before, .glitch::after,
.glitch span::before, .glitch span::after {
  content: attr(data-text); position: absolute; inset: 0;
  background: #fff; pointer-events: none;
  clip-path: inset(var(--corte)); transform: translateX(var(--mover));
}
/* cortes: arriba, derecha, abajo, izquierda */
.glitch::before               { --corte: 28% 81% 54% 2%;  --mover: 0.055em; }
.glitch span:nth-of-type(1)::before { --corte: 30% 54% 52% 33%; --mover: 0.055em; }
.glitch span:nth-of-type(2)::before { --corte: 27% 16% 54% 70%; --mover: 0.055em; }
.glitch::after                { --corte: 74% 87% 16% 2%;  --mover: 0.04em; }
.glitch span:nth-of-type(1)::after  { --corte: 67% 41% 23% 45%; --mover: -0.04em; }
.glitch span:nth-of-type(2)::after  { --corte: 76% 4% 14% 79%;  --mover: -0.055em; }
/* Filtro */
[hidden] { display: none !important; }
.filtro button { font: inherit; background: none; border: 0; padding: 0; color: #000; cursor: pointer; margin-top: 8px;}
.etiquetas { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 8px; }
.etiquetas button { --c: #000; }
.filtro .etiquetas button { font-size: 12px; line-height: 1.5; border: 1px solid #b0b0b0; border-radius: 20px; padding: 2px 10px; margin: 0; }
.filtro .etiquetas button[aria-pressed="true"] { color: var(--c); border-color: var(--c); text-decoration: underline; }
.archivo { margin-top: -14px; }
.archivo div:not(.anio) { margin-bottom: 6px; }
.archivo.filtrando a { color: var(--activo); }
.archivo.filtrando a.fuera { color: #bdbdbd; pointer-events: none; }

/* COLORES: una línea por etiqueta */
.etiquetas button[data-e="crítica"]      { --c: #1100ff; }
.etiquetas button[data-e="publicación impresa"]      { --c: #ff1e00; }
.etiquetas button[data-e="taller"]     { --c: #16da00; }
.etiquetas button[data-e="ponencia"]   { --c: #ba5a00; }
.etiquetas button[data-e="proyecto digital"] { --c: #e100ff; }
.etiquetas button[data-e="obra visual"] { --c: #aeae00; }
.galeria { display: grid; gap: 2rem; margin-top: 2rem; }
.galeria img { display: block; width: 100%; height: auto; }
.galeria.reticula {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  align-items: start;
}
:root { --ancho-texto: 38rem; }

:has(> .galeria) > p,
.galeria { max-width: var(--ancho-texto); }

.galeria:not(.reticula) img {
  width: 100%;
  height: auto;
  max-height: none;
}
.galeria { margin-bottom: 2rem; margin-top: 2rem;}
.video { display: block; width: 100%; max-width: var(--ancho-texto); height: auto; border: 0; margin: 1.5rem 0; }
.video-yt { aspect-ratio: 16 / 9; }
.pdf img { display: block; width: min(100%, 38rem); height: auto; margin-bottom: .5rem; border: 2px solid #727272}
.imagen-enlace { display: block; max-width: var(--ancho-texto); margin: 1.5rem 0; }
.imagen-enlace img { display: block; max-width: 100%; height: auto; }
.galeria .abrir,
.ampliada button {
  padding: 0;
  border: 0;
  background: none;
}
.galeria .abrir { display: block; cursor: zoom-in; }
.abrir img { display: block; max-width: 100%; }

.ampliada {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent; /* usa el color de fondo de tu web */
}
.ampliada::backdrop {
  background: rgb(255 255 255 / 0.75); /* velo claro */
}
.ampliada button {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  cursor: zoom-out;
}
.galeria .ampliada img {
  width: auto;
  height: auto;
  max-width: 60vw;
  max-height: 60vh;
  margin: 0;
  aspect-ratio: auto;
  object-fit: contain;
}