/* ============================================================
   masau.xyz gris
   ------------------------------------------------------------
    1. Reset y base
    2. Contenedor
    3. Color bar
    4. Diagramacion de la home (grilla)
    5. Texto narrativo
    6. Titulares
    7. Terminal / respuesta
    8. ASCII art
    9. MenÃƒÂº vertical / lang switch
   10. Formulario
   11. Misc
   12. P5
   14. Responsive
   15. Animaciones
   16. Notas (pÃƒÂ¡ginas internas de Hugo)
   ============================================================ */


/* ============================================================
   1. RESET Y BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  scroll-behavior: smooth;
-webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  font-family: serif;
  background: #e8ebe2;
  color: #111;
  cursor: default;
}


/* ============================================================
   2. CONTENEDOR
   ============================================================ */

/* ============================================================
   3. COLOR BAR
   ============================================================ */
.color-bar {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 4px;
  z-index: 100;
  cursor: pointer;
}

.color-bar div {
  width: 20px;
  height: 20px;
  background-color: #333; /* Todos negros por defecto */
  transition: transform .12s ease;
}

/* El primer cuadrado: Verde consola */
.color-bar div:first-child {
  background-color: #00FF66;
}

.color-bar:hover div {
  transform: translateY(3px);
}


.bar-red {
  background: #22b195;
}

.bar-green {
  background: #2bb78f;
}

.bar-yellow {
  background: #FB6759;
}

.bar-orange {
  background: #ebf346;
}

.bar-blue {
  background: #6BCBD2;
}

.bar-indigo {
  background: #6BCBD2;
}


/* ============================================================
   4. DIAGRAMACION DE LA HOME
   Grilla fija de tres columnas. Sin arrastre, sin absolutos.
   Fila 1: header (cols 1-2) + menu (col 3).
   Fila 2: las dos columnas de texto, con la segunda
   desnivelada respecto de la primera.
   ============================================================ */
.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2vw;
  align-items: start;
  width: 100%;
  min-height: 100vh;
  padding: 5px 20px 100px;
}

.cabecera {
  grid-column: 1 / 3;
  grid-row: 1;
}

.cabecera .bajada {
  display: flex;
  align-items: flex-end;
  gap: 4vw;
  flex-wrap: wrap;
}

.cabecera .grounded-trio {
  position: relative;
  top: 1.5rem;
  left: 0;
  margin-bottom: 0;
}

/* el menu de la home: fila horizontal debajo de la bajada,
   alineado a la izquierda con "laburante del diseno" */
.menu-home {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.1rem;
  padding-left: 2.2vw;
    font-family: Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.menu-home a {
  color: #000;
  text-decoration: none;
}

.menu-home a:hover {
  color: #FB6759;
  text-decoration: underline;
}


.col-manifiesto {
  grid-column: 1;
  grid-row: 2;
  margin-top: 3rem;
}

/* el desnivel de la segunda columna: cambiar aca */
.col-musica {
  grid-column: 2;
  grid-row: 2;
  margin-top: 6.5rem;
}


/* la columna 3. Arranca a la altura de "laburante del diseno":
   el calc es el alto del h1 (su clamp x su line-height) mas el padding.
   justify-self: end la pega al borde derecho, como el right: 20px
   que tenia en el sitio viejo. */
.col-ascii {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  margin-top: calc(clamp(8rem, 14vw, 12rem) * 0.9 + 20px);
}

#ascii-masau,
#tiresult,
#tiresult2 {
  font-family: monospace;
  font-size: clamp(0.24rem, 0.45vw, 0.35rem);
  line-height: 1.15;
  white-space: pre;
  color: #111;
  opacity: 0.8;
  margin: 0;
}

/* el retrato sube y queda debajo de las letras de bloque:
   11 lineas x 1.15em */
#tiresult {
  margin-top: -12.65em;
}

/* cuanto se encima el auto sobre el retrato: subir el numero
   lo sube mas. 1.15em = una linea de ASCII. */
#tiresult2 {
  margin-top: -39em;
}

@media screen and (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
    padding: 20px 20px 80px;
  }

  .col-ascii {
    justify-self: start;
    margin-top: 2rem;
  }

  .cabecera,
  .col-manifiesto,
  .col-musica,
  .col-ascii {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
  }

  #ascii-masau,
  #tiresult,
  #tiresult2 {
    font-size: 1.3vw;
  }

  .col-manifiesto,
  .col-musica {
    margin-top: 2rem;
  }
}


/* ============================================================
   5. TEXTO NARRATIVO
   ============================================================ */
.text-block {
  font-family: serif;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: #333;
  text-align: left;
  line-height: 1.8rem;
  padding: 20px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.tlt {
  transform: rotate(2deg);
}

.tlt2 {
  transform: rotate(-3deg);
}

.t2 {
  font-size: clamp(1.8rem, 2vw, 1.8rem);
  line-height: 1.8rem;
}

.t3 {
  font-size: clamp(2rem, 2.2vw, 2.2rem);
  line-height: 2rem;
}

.col1 {
  width: 25vw;
}

.col2 {
  width: 30vw;
}

.col3 {
  width: 55vw;
}

.col4 {
  width: 70vw;
}

.text-block p {
  margin-bottom: 1.1em;
}

.text-block a {
  color: #0000FF;
  text-decoration: underline;
}

.text-block a:hover {
  color: #FB6759;
}

.text-block b  {
  font-weight: bold;
}

.text-block em {
  font-style: italic;
}


/* ============================================================
   6. TITULARES
   ============================================================ */
h1 {
  font-family: 'Times New Roman', serif;
  font-size: clamp(8rem, 14vw, 12rem);
  font-weight: bold;
  color: #333;
  text-align: left;
  line-height: 0.9;
  padding: 20px;
  margin-bottom: -30px;
  opacity: 97%;
}

h2 {
  font-family: 'Times New Roman', serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: bold;
  color: #333;
  text-align: left;
  padding: 1.8vh 2vw;
  margin-top: 0;
  margin-bottom: 10px;
  opacity: 97%;
}

h3 {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(3rem, 3.2vw, 3.2rem);
  line-height: 2rem;
  font-weight: normal;
  color: #333;
  text-align: left;
  padding: 2vh 2.2vw;
  margin-top: 0;
  margin-bottom: 10px;
  opacity: 97%;
}


/* ============================================================
   7. TERMINAL / RESPUESTA
   ============================================================ */
.terminal-wrapper {
  width: 100%;
  display: inline-block;
  padding: 0;
}

.terminal-input {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  padding: 10px;
  border: none;
  border-bottom: 2px solid #FB6759;
  background-color: transparent;
  color: #FB6759;
  width: clamp(20rem, 62vw, 70rem);
  outline: none;
  caret-color: #2bb78f;
  transition: all 0.3s ease;
}

.terminal-input::placeholder {
  color: #FB6759;
  opacity: 0.5;
  font-style: italic;
}

.terminal-input:focus {
  border-bottom-color: #2bb78f;
}

#response {
  display: none;
  margin-top: 30px;
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(0.95rem, 1.1vw, 1.2rem);
  color: #00FF99;
  background-color: transparent;
  border: 1px solid #00FF99;
  max-width: 70%;
  white-space: pre-wrap;
  line-height: 1.6;
  transition: all 0.3s ease;
}

#response.visible {
  display: block;
}


/* ============================================================
   8. ASCII ART
   ============================================================ */


.ascii-art,
.grounded-trio {
  font-family: monospace;
  font-size: 12px;
  white-space: pre;
  color: #111;
  text-align: left;
  margin-left:20px;
  animation: bob 2.5s ease-in-out infinite;
  line-height: 1.2;
}



/* ============================================================
   9. MENÚ VERTICAL / LANG SWITCH
   ============================================================ */
.vertical-menu {
  position: absolute;
  top: 28px;
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 100;
}

.menu-marca {
  margin: 0;
  padding:0;
  font-family: serif;
  font-size: 1.9rem;
  font-weight: bold;
}

.menu-marca a {
  text-decoration: none;
  color: inherit;
}

.menu-marca a:hover {
  color: #FB6759;
  text-decoration: underline;
}

/* Fila inferior: Globo + MENU / Links */
.menu-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  flex-wrap: wrap;
}

/* Contenedor del globo e idiomas */
.lang-container {
  position: relative;
  display: flex;
  align-items: center;
}

.globe-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  margin-left:0px;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: currentColor;
}

.globe-btn #globe {
  width: 20px;
  height: 20px;
}

/* Selector desplegable de idiomas al hacer click en el globo */
.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: #e8ebe2;
  border: 1px solid #111;
  padding: 6px 10px;
  z-index: 110;
  flex-direction: column;
  gap: 4px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
}

.lang-menu.is-open {
  display: flex;
}

.lang-link {
  color: #333;
  text-decoration: none;
}

.lang-link:hover {
  color: #FB6759;
  text-decoration: underline;
}

/* Botón "MENU" (oculto en Desktop) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: 'Helvetica' sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  cursor: pointer;
  color: inherit;
}

/* Links en Desktop (horizontal) */
.menu-links {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  align-items: center;
}

.menu-links a {
  font-family: Helvetica, Arial, sans-serif;
  text-decoration: none;
  color: inherit;
  font-size: 0.80rem;
}

.menu-links a:hover {
  color: #FB6759;
  text-decoration: underline;
}

/* ============================================================
   COMPORTAMIENTO MOBILE (<= 768px)
   ============================================================ */
@media screen and (max-width: 768px) {
  .vertical-menu {
    position: static;
    margin: 0;
    padding: 24px 20px 0;
  }

  /* Se muestra el texto MENU al lado del globo */
  .mobile-menu-btn {
    display: inline-block;
  }

  /* El menú en mobile se oculta y al abrirse cae verticalmente sin cuadros ni bordes */
  .menu-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.6rem;
    padding-left: 1.8rem; /* Sangría respecto al globo */
    border: none;
    background: none;
    box-shadow: none;
  }

  .menu-links a {
    font-family: 'Helvetica' sans-serif;
    font-size: 0.8rem;
  }

  /* Despliega los links en mobile */
  .menu-links.is-open {
    display: flex;
  }
}


/* ============================================================
   10. FORMULARIO
   ============================================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  margin-top: 3em;
  max-width: clamp(20rem, 62vw, 70rem);
  font-family: 'Courier New', Courier, monospace;
  color: #333;
}

.contact-form label {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid #333;
  color: #333;
  font-family: 'Courier New', Courier, monospace;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: #2bb78f;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #333;
  opacity: 0.5;
  font-style: italic;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.75em 1.5em;
  background-color: #2bb78f;
  color: white;
  font-size: 1em;
  border: none;
  cursor: pointer;
  font-family: 'Courier New', Courier, monospace;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: #6BCBD2;
}


/* ============================================================
   11. MISC
   ============================================================ */
.dots {
  font-size: 16px;
  color: #2bb78f;
  animation: blink 1s step-end infinite;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 10px 20px;
}

.flex-block {
  padding: 20px;
}


.media-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-start;
}


/* ============================================================
   12b. LISTADO DE NOTAS EN LA HOME
   ============================================================ */
.notas-home {
  font-family: 'Courier New', Courier, monospace;
  width: 26vw;
  min-width: 240px;
}

.notas-titulo {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1a8a74;
  border-bottom: 1px solid #376164;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.lista-notas {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lista-notas li {
  margin-bottom: 12px;
  line-height: 1.35;
}

.lista-notas a {
  font-family: serif;
  font-size: 1.05rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.lista-notas a:hover {
  color: #FB6759;
  border-bottom-color: #FB6759;
}

.nota-temas {
  display: block;
  font-size: 0.65rem;
  color: #376164;
  opacity: 0.75;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.notas-todas {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.7rem;
  color: #FB6759;
  text-decoration: none;
  letter-spacing: 1px;
}

.notas-todas:hover {
  color: #2bb78f;
  text-decoration: underline;
}


/* ============================================================
   14. RESPONSIVE
   ============================================================ */
@media screen and (max-width: 600px) {
  .container {
    padding: 20px;
  }

  .col1 {
    width: 25vw;
  }
  .col2 {
    width: 42vw;
  }
  .col3 {
    width: 70vw;
  }

  h1 {
    font-size: clamp(4.6rem, 9vw, 4rem);
  }
  h2 {
    padding: 2vh 5vw;
  }

  .text-block {
    padding-top: 20px;
    font-size: clamp(0.4rem, 2.8vw, 0.8rem);
    line-height: 1.2rem;
  }

  .t2 {
    font-size: clamp(1.3rem, 1.6vw, 1.4rem);
    line-height: 1.2rem;
  }

  .t3 {
    font-size: clamp(1.5rem, 1.8vw, 1.7rem);
    line-height: 1.6rem;
  }

  .row {
    flex-direction: column;
  }
  .contact-form button {
    width: 100%;
  }


  .notas-home {
    width: 80vw;
  }
}


/* ============================================================
   15. ANIMACIONES
   ============================================================ */
@keyframes bob {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.95;
  }
  50%      {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50%      {
    opacity: 0;
  }
}


/* ============================================================
   16. NOTAS
   PÃƒÂ¡ginas internas de Hugo. Una columna, medida de lectura.
   Nada de esto toca la home.
   ============================================================ */
.nota {
  max-width: 68ch;
  margin: 0 auto;
  padding: 90px 20px 80px;
}

.nota .entry-header {
  margin-bottom: 2.5rem;
}


.nota .entry-title,
.pagina-simple .entry-title {
  font-family: 'Times New Roman', serif;
  font-size: clamp(4.2rem, 2.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.02;
  color: #333;
  padding: 0;
  margin: 0 0 0.6rem;
}


.nota .summary {
  font-family: serif;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: #376164;
  margin-bottom: 1rem;
}

.nota .metadata {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: #376164;
  border-top: 1px solid #376164;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nota .metadata a {
  color: #FB6759;
  text-decoration: none;
  margin-right: 8px;
}

.nota .metadata a:hover {
  color: #2bb78f;
  text-decoration: underline;
}

.nota .entry-content {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
}

.nota .entry-content p {
  margin-bottom: 1.2em;
}

.nota .entry-content h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  padding: 0;
  margin: 2.2rem 0 0.8rem;
}

.nota .entry-content h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.3;
  padding: 0;
  margin: 1.8rem 0 0.6rem;
}

.nota .entry-content a {
  color: #2bb78f;
  text-decoration: underline;
}

.nota .entry-content a:hover {
  color: #FB6759;
}

.nota .entry-content ul,
.nota .entry-content ol {
  margin: 0 0 1.2em 1.4em;
}

.nota .entry-content blockquote {
  border-left: 2px solid #FB6759;
  padding-left: 1em;
  margin: 1.5em 0;
  font-style: italic;
}

.nota .entry-content pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  background: rgba(55, 97, 100, 0.08);
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 1.2em;
}

.figura {
  margin: 2em 0;
}

.figura img {
  display: block;
  width: 100%;
  height: auto;
}

.figura.ancha {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.figura figcaption {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.72rem;
  color: #376164;
  margin-top: 6px;
  line-height: 1.4;
}

.indice .tema-grupo {
  margin-bottom: 2.5rem;
}

.indice .tema-grupo h2 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1a8a74;
  padding: 0 0 4px;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid #376164;
}

.indice .tema-grupo h2 a {
  color: inherit;
  text-decoration: none;
}

.indice ul {
  list-style: none;
}

.indice li {
  margin-bottom: 1rem;
}

.indice li > a {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  text-decoration: none;
}

.indice li > a:hover {
  color: #FB6759;
}

.index-summary {
  display: block;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #444;
}

.relacionadas {
  margin-top: 4rem;
  border-top: 1px solid #376164;
  padding-top: 1rem;
}

.relacionadas h2 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1a8a74;
  padding: 0;
  margin-bottom: 0.6rem;
}

.relacionadas ul {
  list-style: none;
}

.relacionadas li {
  margin-bottom: 0.4rem;
}

.relacionadas a {
  color: #2bb78f;
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  .nota {
    padding: 70px 20px 60px;
  }
}

/* ============================================================
   17. FOOTER & BADGES
   ============================================================ */
.site-footer {
  position: absolute;
  top: 150vh;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0 60px 0;
  z-index: 10;
}

.site-footer img {
  display: block;
  image-rendering: pixelated;
  transition: transform 0.2s ease;
}

.site-footer img:hover {
  transform: scale(1.08);
}

/* ============================================================
   18. MOBILE: dos columnas + grilla de videos
   ============================================================ */
@media screen and (max-width: 768px) {

  .vertical-menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    padding: 24px 20px 0;
  }

.cabecera {
    order: 1;
  }

  .col-ascii {
    order: 3;
    margin-top: 4.5rem; /* Ajustá este margen si querés pegarlo más o menos a la cabecera */
    margin-left:20px;
  }

  .col-manifiesto {
    order: 2;
  }

  .col-musica {
    order: 4;
  }

.menu-home {
  margin-left:2vw;
  position: relative;
  z-index: 10;
}

.cabecera {
    display: flex;
    flex-direction: column;
  }

  .cabecera .bajada {
    display: contents; /* Expone h2 y grounded-trio a la grilla/flex de cabecera */
  }

  .cabecera h1 { order: 1; }
  .cabecera h2 { order: 2; }
  .menu-home { 
    order: 3; 
    margin-bottom: 1rem;
  }


  .cabecera .grounded-trio { order: 4; }

  .site-footer {
    top: 158vh;
  }
}


/* ============================================================
   16. INDICE DE NOTAS
   Grilla de fichas. Sin fechas ni orden cronologico.
   ============================================================ */
.indice-grilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 48px 32px;
  margin-top: 8.5rem;
}

.ficha a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ficha-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 14px;
}

.ficha-img-vacia {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-bottom: 14px;
  border: 1px solid #376164;
  opacity: 0.3;
}

.ficha h2 {
  font-family: serif;
  font-size: 1.35rem;
  font-weight: normal;
  line-height: 1.15;
  padding: 0;
  margin: 0 0 8px;
}

.ficha a:hover h2 {
  color: #FB6759;
}

.ficha p {
  font-size: 1.1rem;
  line-height: 1.45;
  margin: 0;
}

.ficha-temas {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: #376164;
  margin-top: 10px;
}

@media screen and (max-width: 600px) {
  .indice-grilla {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* la pagina de contacto usa .terminal-wrapper y .contact-form,
   que estan en las secciones 7 y 10 */
.pagina-simple {
  max-width: 68ch;
  margin: 0 auto;
  padding: 90px 20px 80px;
}

.pagina-contacto {
  max-width: 900px; /* O la medida que quieras para contacto */
  margin: 0 0;
  padding: 90px 20px 80px;
}

.pagina-contacto .entry-title {
  font-family: 'Times New Roman', serif;
  font-size: clamp(4.2rem, 2.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.02;
  color: #333;
  padding: 0;
  margin: 10vh 0 0.6rem;
}


.entry-content p {
  white-space: pre-line;
}

/* ============================================================
   17. PORTFOLIO — grilla de piezas
   Mismo sistema que la pagina de firmantes de MIGA.
   El tamano de cada pieza lo da un nth-child, salvo que el
   recurso traiga `span` en el front matter.
   ============================================================ */
.espacio-spy {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  grid-auto-rows: 70px;
  grid-auto-flow: dense;
  gap: 0;
  padding: 2.5rem 0;
  margin: 2rem 0;
  align-items: center;
  justify-items: center;
}

.espacio-spy .spy-item {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.espacio-spy .spy-item img,
.espacio-spy .spy-item video {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

/* tamanos: el default y las variaciones */
.espacio-spy .spy-item {
  grid-column: span 2;
  grid-row: span 2;
}

.espacio-spy .spy-item:nth-child(2n) {
  grid-column: span 3;
  grid-row: span 3;
}

.espacio-spy .spy-item:nth-child(3n + 1) {
  grid-column: span 4;
  grid-row: span 4;
}

.espacio-spy .spy-item:nth-child(7n) {
  grid-column: span 5;
  grid-row: span 5;
}

/* span a mano: `span: 4` en los params de ese recurso.
   Va despues de los nth-child para poder pisarlos. */
.espacio-spy .spy-item[data-span] {
  grid-column: span var(--span);
  grid-row: span var(--span);
}

/* las piezas quedan un poco torcidas, alternadas */
.espacio-spy .spy-item:nth-child(odd) img,
.espacio-spy .spy-item:nth-child(odd) video {
  transform: rotate(-4deg);
}

.espacio-spy .spy-item:nth-child(even) img,
.espacio-spy .spy-item:nth-child(even) video {
  transform: rotate(3deg);
}

.espacio-spy .spy-item:nth-child(5n) img,
.espacio-spy .spy-item:nth-child(5n) video {
  transform: rotate(-7deg);
}

.espacio-spy .spy-item:hover {
  transform: scale(1.2);
  z-index: 20;
}

.espacio-spy .spy-item:hover img,
.espacio-spy .spy-item:hover video {
  filter: drop-shadow(6px 6px 0 rgba(251, 103, 89, 0.45));
}

/* triangulo de play sobre los videos */
.espacio-spy .spy-item--video {
  position: relative;
}

.espacio-spy .spy-item--video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-40%, -50%);
  border-left: 18px solid #e8ebe2;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .5));
  pointer-events: none;
}

/* un .txt dentro de items/ se lee en la grilla, no abre modal */
.espacio-spy .spy-item--texto {
  container-type: inline-size;
  cursor: default;
  align-items: flex-start;
  padding: 0 .6rem;
}

.espacio-spy .spy-item--texto:hover {
  transform: none;
  z-index: auto;
}

.spy-texto {
  width: 100%;
  font-family: serif;
  font-size: clamp(12px, 9cqw, 30px);
  line-height: 1.15;
  letter-spacing: .01em;
  color: #111;
  text-align: left;
  text-wrap: balance;
}

.spy-texto p {
  margin: 0 0 .55em;
}

.spy-texto p:last-child {
  margin-bottom: 0;
}

.spy-texto a {
  color: #2bb78f;
}



.portfolio .entry-title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12em;
  font-weight: bold;
  line-height: 1.02;
  color: #333;
  padding: 0;
  margin: 1.5rem 0 0.5rem 1.5rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ------------------------------------------------------------
   Modal de las piezas
   ------------------------------------------------------------ */
.modal-spy {
  max-width: 650px;
  width: 90vw;
  margin: auto;
  padding: 1.5rem;
  background: #e8ebe2;
  color: #111;
  border: 2px solid #111;
  box-shadow: 8px 8px 0 #111;
}

.modal-spy::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
}

.modal-spy__contenido {
  position: relative;
}

.modal-spy__cerrar {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 0;
  border: none;
  background: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.6rem;
  line-height: 1;
  color: #111;
  cursor: pointer;
}

.modal-spy__cerrar:hover {
  color: #FB6759;
}

.modal-spy video,
.modal-spy img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.modal-spy h3 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  line-height: 1.2;
  padding: 0;
  margin: 0 0 .6rem;
}

.modal-spy p {
  font-size: .95rem;
  line-height: 1.5;
  margin: .6rem 0 0;
}

.modal-spy [hidden] {
  display: none;
}

#modal-enlace {
  font-family: 'Courier New', Courier, monospace;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #FB6759;
  text-decoration: none;
}

#modal-enlace:hover {
  text-decoration: underline;
}

.marco-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.marco-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media screen and (max-width: 600px) {
  .espacio-spy {
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
    grid-auto-rows: 52px;
    padding: 1.5rem 0;
  }
}
