/* La Madriguera, versión recuerdo: papel y tinta, escala de grises. */
:root {
  --papel: #f6f4ef;
  --hoja: #fdfcfa;
  --tinta: #121110;
  --noche: #0e0e10;
  --apagado: #7d786f;
  --linea: #e3ded5;
  --display: 'Anton', Impact, 'Arial Narrow Bold', sans-serif;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --texto: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { background: var(--papel); color: var(--tinta); }
body { margin: 0; font-family: var(--texto); font-size: 17px; line-height: 1.5; }
.cabecera, main, .pie {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
img { max-width: 100%; }

/* ---------- Cabecera ---------- */
.cabecera { padding-block: 32px 8px; text-align: center; }
.volver {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px;
  padding: 9px 16px 9px 12px; border: 2px solid var(--tinta); background: var(--hoja);
  color: var(--tinta); font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none;
}
.volver:hover, .volver:focus-visible { background: var(--tinta); color: var(--hoja); }
.antetitulo, .hora, .quienes-nota, .cifras span {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--apagado);
}
.antetitulo { margin: 0 0 6px; }
h1 {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(56px, 13vw, 150px); line-height: .9; letter-spacing: .01em;
}
.lema {
  margin: 14px auto 0; max-width: 30ch; font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 3.4vw, 32px); line-height: 1.15; text-wrap: balance;
}

/* ---------- Portada: el círculo ---------- */
.portada { padding-block: 28px 56px; }
.circulo {
  position: relative; width: min(560px, 92vw); aspect-ratio: 1; margin: 0 auto;
}
.circulo-mesa {
  position: absolute; inset: 14%; border-radius: 50%; background: var(--tinta);
}
.circulo-centro {
  position: absolute; inset: 0; margin: 0; display: grid; place-content: center; text-align: center;
  color: var(--hoja); font-family: var(--display); text-transform: uppercase;
  font-size: clamp(22px, 4.6vw, 38px); line-height: 1; letter-spacing: .02em;
}
.circulo-centro span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; margin-bottom: 10px; opacity: .7; }
.en-circulo {
  position: absolute; width: 13%; transform: translate(-50%, -62%);
  animation: brinco 3s ease-in-out infinite;
}
.colab { filter: grayscale(1) opacity(.62); }
@keyframes brinco { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6%; } }
@media (prefers-reduced-motion: reduce) { .en-circulo { animation: none !important; } }

.cifras {
  list-style: none; margin: 40px auto 0; padding: 0; max-width: 900px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 2px solid var(--tinta); border-bottom: 2px solid var(--tinta);
}
.cifras li { padding: 18px 14px; text-align: center; }
.cifras li + li { border-left: 1px solid var(--linea); }
.cifras b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 64px); line-height: 1; }
.cifras span { display: block; margin-top: 6px; color: var(--tinta); text-transform: none; letter-spacing: .02em; font-size: 12px; }

/* ---------- Los espacios: como en la convocatoria ---------- */
.recorrido { list-style: none; margin: 0; padding: 0; display: grid; gap: 64px; }
.espacio { display: grid; gap: 14px; min-width: 0; }
.espacio-cabeza { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.espacio-cabeza .hora { margin: 0; flex-basis: 100%; }
.hora { margin: 0 0 6px; }
.espacio h2, .quedo h2, .quienes h2 {
  margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 6.4vw, 72px); line-height: .95; text-wrap: balance;
}
.aforo {
  margin-left: auto; padding: 3px 7px 4px; border: 1.5px solid currentColor; color: var(--apagado);
  font-family: 'Silkscreen', var(--mono); font-size: 12px; line-height: 1; letter-spacing: .04em; white-space: nowrap;
}
.nota { margin: 0; max-width: 62ch; font-size: 18px; }

.escenario {
  position: relative; height: max(400px, min(46vw, 560px));
  background: var(--hoja); border: 2px solid var(--tinta); overflow: hidden; isolation: isolate;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; cursor: crosshair;
}
.escenario.noche { background: var(--noche); }
.fondo, .red, .conejos { position: absolute; inset: 0; width: 100%; height: 100%; }
.red, .conejos { pointer-events: none; }

.fondo .trazo { fill: none; stroke: var(--tinta); stroke-width: 1; }
.fondo .trazo.fino { stroke: var(--apagado); stroke-width: .8; }
.fondo .cuadro { fill: var(--hoja); stroke: var(--tinta); stroke-width: 1.5; }
.fondo .cuadro.lleno { fill: #cfcac0; }
.fondo .tinta { fill: var(--tinta); }
.fondo .cojin { fill: var(--tinta); stroke: var(--hoja); stroke-width: 1; stroke-opacity: .45; }
.fondo .cojin.lleno { fill: var(--hoja); stroke-opacity: 1; }
.fondo .cielo { fill: var(--noche); }
.fondo .estrella { fill: var(--hoja); animation: titilar 4s ease-in-out infinite; }
.fondo .luna { fill: var(--hoja); }
.fondo .luna-sombra { fill: var(--noche); }
.fondo .cable { fill: none; stroke: #3a3936; stroke-width: 1; }
.fondo .foco { fill: #f3e7c4; animation: titilar 3.2s ease-in-out infinite; }
.fondo .fachada { fill: #19191b; }
.fondo .ventana { fill: #26262a; }
.fondo .ventana.prendida { fill: #f3e7c4; opacity: .8; }
.fondo .puerta { fill: #f3e7c4; }
.fondo .zapato { fill: #2c2b2e; stroke: #8a857c; stroke-width: 1; }
.fondo .banqueta { stroke: #6a675f; stroke-width: 1.5; }
.fondo .junta { stroke: #232326; stroke-width: 1; }
.fondo .terraza { fill: #1c1c1f; }
.fondo .orilla { fill: none; stroke: #8a857c; stroke-width: 1.5; }
.fondo .mueble { fill: #1c1c1f; stroke: #d6d0c4; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.fondo .mueble .hilo-telar { stroke: #8a857c; stroke-width: 1; }
.fondo .mueble .nudo { fill: #d6d0c4; stroke: none; }
.fondo .letrero { fill: #e8cfc9; }
.fondo .letrero-texto { fill: var(--noche); font-family: 'Silkscreen', var(--mono); letter-spacing: .12em; }
.fondo .toldo { fill: #2a292c; }
.fondo .toldo.rosa { fill: #dcbab3; }
.fondo .neon { fill: none; stroke: #e8b9b0; stroke-width: 2.5; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(232, 185, 176, .7)); }
.fondo .barra { fill: #3a2f30; }
.fondo .trazo-rosa { stroke: #c9a39c; stroke-width: 1.5; }
.fondo .puerta-rosa { fill: #f0d8d2; }
.fondo .chaflan { fill: #141416; }
.fondo .herreria { fill: none; stroke: #4a4744; stroke-width: 1.2; }
.fondo .cortina { fill: #2b2a2d; }
.fondo .lejos { fill: #17171a; }
.fondo .asfalto { fill: #1a1a1d; }
.fondo .banqueta-piso { fill: #232326; }
.fondo .cordon { stroke: #b8a46a; stroke-width: 3; }
.fondo .cebra { fill: #3b3a3d; }
.fondo .raya { stroke: #4a4844; stroke-width: 2; stroke-dasharray: 10 8; }
.fondo .coladera { fill: #111; stroke: #4a4844; stroke-width: 1; }
.fondo .poste { fill: none; stroke: #6a675f; stroke-width: 3; stroke-linecap: round; }
.fondo .halo { fill: #f3e7c4; opacity: .12; }
.fondo .placa { fill: #e9e4da; stroke: #121110; stroke-width: 1; }
.fondo .jardinera { fill: #2b2a2d; stroke: #6a675f; stroke-width: 1; }
.fondo .tronco { stroke: #4a4744; stroke-width: 4; }
.fondo .copa { fill: #26262a; stroke: #3c3b3f; stroke-width: 1; }
.fondo .cocina-luz { fill: #efe5cd; }
.fondo .mostrador { fill: #d9cdb2; }
.fondo .olla { fill: #121110; stroke: #121110; stroke-width: 2; }
.fondo .vapor { fill: none; stroke: #8a857c; stroke-width: 1.2; animation: vapor 2.4s ease-in-out infinite; }
.fondo .marco { fill: none; stroke: var(--tinta); stroke-width: 3; }
.fondo .mueble .tarro { fill: #f3e7c4; stroke: #d6d0c4; }
.fondo .mueble .tapa { fill: #d6d0c4; stroke: none; }
@keyframes vapor { 0%, 100% { opacity: 0; transform: translateY(4px); } 50% { opacity: .9; transform: translateY(-3px); } }

/* La cocina se ve solo a través de la puerta. */
.cocina-ventana { position: absolute; overflow: hidden; pointer-events: none; }

/* Los dos momentos del círculo. */
.modos { display: flex; flex-wrap: wrap; gap: 8px; }
.modo { padding: 6px 12px 7px; border: 1.5px solid var(--tinta); background: var(--hoja); color: var(--tinta); font-family: 'Silkscreen', var(--mono); font-size: 12px; letter-spacing: .04em; cursor: pointer; }
.modo[aria-pressed="true"] { background: var(--tinta); color: var(--hoja); }
.escenario.baile .conejo .salto { animation: bailar .46s ease-in-out infinite alternate; animation-delay: var(--d, 0s); transform-origin: 41% 92%; }
@keyframes bailar { from { rotate: -9deg; translate: 0 0; } to { rotate: 9deg; translate: 0 -5%; } }
.red .nota-musical { fill: var(--hoja); font-size: 18px; animation: nota 2.4s ease-out forwards; }
@keyframes nota { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-46px); } }

/* La charola del té y el café. */
.charola .bandeja, .charola .taza { fill: none; stroke: #121110; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.charola .humo { fill: none; stroke: #8a857c; stroke-width: 8; stroke-linecap: round; }
.conejo.dentro .charola .bandeja, .conejo.dentro .charola .taza { stroke: #fdfcfa; }
@keyframes titilar { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }

.red .hilo { stroke: #a8a399; stroke-width: 1; stroke-dasharray: 2 4; animation: tender .9s ease-out; transition: opacity 1s; }
#esc-circulo .red .hilo { stroke: var(--apagado); }
.red .hilo.suelta { opacity: 0; }
@keyframes tender { from { opacity: 0; } to { opacity: 1; } }
.red .llamado { fill: none; stroke: var(--apagado); stroke-width: 1; animation: llamar 2.6s ease-out forwards; transform-box: fill-box; transform-origin: center; }
@keyframes llamar { 0% { opacity: 1; transform: scale(.3); } 30% { transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }

/* Cada conejo: --tam lo pone el script según el ancho del espacio. */
.conejo {
  position: absolute; left: 0; top: 0; width: var(--tam, 100px); height: var(--tam, 100px);
  padding: 0; border: 0; background: none; color: inherit; font: inherit;
  transform-origin: 0 0; will-change: transform; pointer-events: auto; cursor: zoom-in;
}
span.conejo { pointer-events: none; }
.conejo:focus-visible { outline: 1px dashed var(--apagado); outline-offset: 2px; }
.conejo .sombra { position: absolute; left: 41%; top: 92.8%; width: 46%; height: 7%; margin: -3.5% 0 0 -23%; border-radius: 50%; background: var(--tinta); opacity: .08; }
.conejo.dentro .sombra { background: var(--hoja); opacity: .14; }
.conejo .salto { position: absolute; inset: 0; }
.conejo .cuerpo { position: absolute; inset: 0; transform-origin: 41% 50%; transition: filter .35s; }
.conejo.izq .cuerpo { transform: scaleX(-1); }
.conejo.dentro .cuerpo { filter: invert(1); }
.conejo.ajeno.dentro .cuerpo { filter: invert(1) brightness(.62) sepia(.55) hue-rotate(300deg) saturate(1.3); }
.conejo.ajeno .sombra { opacity: .06; }
.conejo img, .conejo svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ojo .blanco { fill: #fff; }
.ojo .pupila { fill: #000; }
.ojo .parpado { fill: #000; transform-box: fill-box; transform-origin: center; transform: scaleY(0); transition: transform 180ms ease-in-out; }
.cierra .parpado { transform: scaleY(1); }

.conejo .globo {
  position: absolute; left: 66%; bottom: 62%; width: max-content; max-width: 200px;
  font-family: var(--texto); font-weight: 600; font-size: 15px; line-height: 1.25; padding: 6px 11px 7px;
  background: #fff; color: #000; border: 2px solid #000; border-radius: 12px;
  opacity: 0; transform: translateY(6px); transition: opacity .9s ease, transform .9s ease; pointer-events: none;
}
.conejo .globo::before, .conejo .globo::after { content: ''; position: absolute; top: 100%; left: 6px; border-style: solid; border-color: #000 transparent transparent #000; border-width: 7px 9px; }
.conejo .globo::after { left: 8px; top: calc(100% - 3px); border-color: #fff transparent transparent #fff; border-width: 5px 7px; }
.conejo .globo.izq { left: auto; right: 86%; }
.conejo .globo.izq::before { left: auto; right: 6px; border-color: #000 #000 transparent transparent; }
.conejo .globo.izq::after { left: auto; right: 8px; border-color: #fff #fff transparent transparent; }
.conejo.habla { z-index: 9999 !important; }
.conejo.callando { z-index: 9998 !important; }
.conejo.habla .globo { opacity: 1; transform: none; }

.voces { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
blockquote { margin: 0; padding: 18px 20px 16px; background: var(--hoja); border-left: 4px solid var(--tinta); }
blockquote p { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.22; text-wrap: pretty; }
blockquote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--apagado); }

/* ---------- De cerca ---------- */
.cerca {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(246, 244, 239, .95); animation: aparecer .35s ease-out;
}
.cerca[hidden] { display: none; }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
.cerca-caja {
  position: relative; width: min(860px, 100%); max-height: 100%; overflow-y: auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 44px; align-items: center;
  background: var(--hoja); padding: 36px 40px;
}
.c-figura { position: relative; margin: 0; width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center; border-radius: 50%; }
.c-figura.pagado { background: var(--tinta); }
.c-figura.colaborador { background: #a9a59d; }
.figura-gif { position: absolute; inset: 12%; }
.figura-gif img, .figura-gif svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.c-figura.pagado .figura-gif { filter: invert(1); }
.c-cerrar { position: absolute; top: 8px; right: 12px; z-index: 2; width: 40px; height: 40px; background: none; border: 0; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--tinta); cursor: pointer; }
.c-texto { min-width: 0; display: grid; gap: 12px; }
.c-dice { margin: 0; font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.15; }
.c-dice:empty, .c-noche:empty { display: none; }
.c-tipos { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--apagado); }
.c-tipos li { display: inline; }
.c-tipos li + li::before { content: ' · '; }
.c-entrada { margin: 0; color: #4a4741; max-width: 46ch; font-size: 16px; }
.c-noche { margin: 0; padding-top: 10px; border-top: 1px solid var(--linea); font-weight: 600; font-size: 15px; }
.c-despues { margin: 0; padding: 12px 16px; }
.c-despues p { font-size: 19px; }
.c-num { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--apagado); }
.c-texto h2 { margin: 0; font-family: var(--mono); font-weight: 400; font-size: clamp(34px, 5vw, 52px); line-height: 1; letter-spacing: .04em; }
.c-pasar { display: flex; gap: 18px; }
.c-pasar button { background: none; border: 0; padding: 4px 0; font-family: var(--serif); font-size: 26px; color: var(--tinta); cursor: pointer; }

/* ---------- Lo que nos quedó ---------- */
.quedo { margin-top: 96px; padding: 48px 0 8px; border-top: 2px solid var(--tinta); }
.muro { margin-top: 24px; columns: 3 260px; column-gap: 16px; }
.muro blockquote { break-inside: avoid; margin-bottom: 16px; background: var(--tinta); border-left: 0; }
.muro blockquote p { color: var(--hoja); font-size: 24px; }
.muro blockquote cite { color: #b9b4ab; }

/* ---------- Quienes ---------- */
.quienes { margin-top: 80px; }
.quienes-nota { margin: 8px 0 22px; }
.rejilla {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px;
}
.retrato-boton { display: block; width: 100%; background: var(--hoja); border: 1px solid var(--linea); padding: 8px 6px 10px; text-align: center; font: inherit; color: inherit; cursor: zoom-in; transition: border-color .3s, transform .3s; }
.retrato-boton:hover, .retrato-boton:focus-visible { border-color: var(--tinta); transform: translateY(-3px); outline: none; }
.rejilla .retrato { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.rejilla span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.rejilla .es-colab span { color: var(--apagado); }
.rejilla .es-colab .retrato { filter: grayscale(1) opacity(.62); }

/* ---------- Sigue ---------- */
.sigue { margin: 80px 0 0; padding-top: 28px; border-top: 2px solid var(--tinta); }
.boton { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.1; color: var(--tinta); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.boton:hover { text-decoration-thickness: 2px; }

.pie { padding-block: 40px 56px; color: var(--apagado); font-size: 14px; }
.pie a { color: var(--tinta); }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .cerca { place-items: end center; padding: 0; }
  .cerca-caja { grid-template-columns: 1fr; gap: 12px; max-height: 92vh; padding: 44px max(18px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); }
  .c-figura { max-width: min(70vw, 320px); }
  .cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cifras li:nth-child(3) { border-left: 0; }
  .cifras li:nth-child(n+3) { border-top: 1px solid var(--linea); }
  .recorrido { gap: 56px; }
  blockquote p { font-size: 20px; }
}
@media (max-width: 520px) {
  .escenario { height: 440px; }
  .conejo .globo { font-size: 13px; max-width: 150px; padding: 5px 9px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .red .llamado, .fondo .estrella, .fondo .foco, .cerca, .fondo .vapor, .escenario.baile .conejo .salto { animation: none; }
}
.escenario.baile .cocina-ventana .conejo .salto { animation: none; }
