

@font-face { font-family: "Instrument Serif"; src: url("../fuentes/InstrumentSerif-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fuentes/InstrumentSerif-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fuentes/InstrumentSans-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  
  --cal: #f3eee5; --cal-2: #ebe3d6; --tinta: #1b1c22; --suave: #4a4743; --linea: rgba(27,28,34,.16);
  --rojo: #772823; --oro: #f6c56a; --ease: cubic-bezier(.2,.7,.2,1);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --franja: 0px; --barra: 60px; --margen: 20px;
  --k: 1px; --paso: 100vh;
}
* { box-sizing: border-box; }
html { background: var(--cal); color: var(--tinta); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 18px/1.5 var(--sans); }
h1, h2, p, dl, dd, ol { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }
.saltar { position: absolute; left: -9999px; top: 0; z-index: 60; background: var(--tinta); color: var(--cal); padding: 12px 16px; }
.saltar:focus { left: 12px; top: 12px; }


.franja { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--franja); display: flex; align-items: center; justify-content: center;
  padding: 0 var(--margen); background: #c9962f; color: #1b1c22; font-size: 15px; text-align: center; }
.franja strong { font-weight: 650; letter-spacing: .02em; }
.franja__extra { display: none; }
@media (min-width: 700px) { .franja__extra { display: inline; } }


.barra { position: fixed; top: var(--franja); left: 0; right: 0; z-index: 30; height: var(--barra); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--margen); background: linear-gradient(rgba(243,238,229,.9), rgba(243,238,229,0)); }
.volver { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--tinta); text-decoration: none; font-weight: 600; font-size: 16px; }
.volver svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.volver span { display: none; }
.barra__nombre { font: 400 26px/1 var(--serif); letter-spacing: -.005em; }
.escuchar { justify-self: end; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--linea); background: rgba(243,238,229,.7); cursor: pointer; font-weight: 600; font-size: 16px; }
.escuchar:hover { border-color: var(--tinta); }
.escuchar__icono { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.escuchar__icono i { width: 3px; height: 5px; background: currentColor; border-radius: 1px; }
.escuchar[aria-pressed="true"] { background: var(--tinta); color: var(--cal); border-color: var(--tinta); }
.escuchar[aria-pressed="true"] .escuchar__icono i { animation: barras 1.1s ease-in-out infinite alternate; }
.escuchar[aria-pressed="true"] .escuchar__icono i:nth-child(2) { animation-delay: -.4s; }
.escuchar[aria-pressed="true"] .escuchar__icono i:nth-child(3) { animation-delay: -.8s; }
@keyframes barras { from { height: 4px; } to { height: 14px; } }
@media (max-width: 520px) { .escuchar__texto { display: none; } .escuchar { padding: 0 14px; } .barra__nombre { font-size: 23px; } }
@media (min-width: 700px) { .volver span { display: inline; } :root { --margen: 32px; } }


.modo-grilla .sala { display: none; }
.modo-sala .grilla { display: none; }
.escenario { position: fixed; inset: 0; overflow: hidden; background: #e9e3d8; perspective: var(--p, 800px); perspective-origin: 50% 50%; }
.camara { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.mundo { position: absolute; left: 0; top: 0; transform-style: preserve-3d; will-change: transform; }
.plano { position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; }
.vineta { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(60,48,34,.16) 100%); }


.pared { background:
  linear-gradient(180deg, #f8f5ef 0%, #f3eee5 38%, #efe9df 82%, #e2dacd 97%, #d6cdbf 100%); }
.pared--fondo { background:
  linear-gradient(180deg, #f6f2eb 0%, #f1ece2 40%, #ece5da 85%, #ddd4c6 100%); }
.jamba { background: #e7e0d4; }
.jamba--dintel { background: #ece6dc; }

.piso { background:
  linear-gradient(90deg, rgba(70,58,44,.16), rgba(70,58,44,0) 7%, rgba(70,58,44,0) 93%, rgba(70,58,44,.16)),
  repeating-linear-gradient(0deg, rgba(90,80,66,.10) 0 2px, transparent 2px 25%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .31 0 0 0 0 .26 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
  linear-gradient(180deg, #d9d3c9, #d3ccc1); }

.techo { background:
  linear-gradient(90deg, transparent 20%, rgba(255,255,255,.95) 20.5%, #fff 23%, #fff 33%, rgba(255,255,255,.95) 35.5%, transparent 36%,
    transparent 64%, rgba(255,255,255,.95) 64.5%, #fff 67%, #fff 77%, rgba(255,255,255,.95) 79.5%, transparent 80%),
  linear-gradient(180deg, #f1ede6, #ece7de); }
.zocalo { background: #e4ddd1; }

.vinilo { color: var(--tinta); font-family: var(--serif); line-height: .9; letter-spacing: -.02em; white-space: nowrap; }
.vinilo small { display: block; font: 600 .2em/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--suave); margin-top: .9em; }

.obra3d { pointer-events: auto; border: 0; padding: 0; background: #ddd; cursor: pointer; overflow: hidden;
  box-shadow: calc(var(--k) * 1.2) calc(var(--k) * 3) calc(var(--k) * 5) rgba(40,30,20,.32), 0 0 calc(var(--k) * .6) rgba(40,30,20,.25); }
.obra3d img { display: block; width: 100%; height: 100%; object-fit: cover; }
.obra3d:focus-visible { outline: calc(var(--k) * 1) solid var(--rojo); }
.luz { background: radial-gradient(50% 50% at 50% 45%, rgba(255,253,248,.7), rgba(255,253,248,0) 100%); }
.cartel { color: var(--tinta); font-family: var(--sans); line-height: 1.3; }
.cartel b { display: block; font: 400 1.32em/1.08 var(--serif); margin-bottom: .3em; }
.cartel span { display: block; color: var(--suave); }


.pasos { position: relative; pointer-events: none; }
.pasos > div { height: var(--paso); }


.control { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  width: min(560px, calc(100% - 24px)); background: rgba(250,247,241,.94); border: 1px solid var(--linea); border-radius: 18px;
  box-shadow: 0 18px 40px -22px rgba(40,30,20,.45); padding: 0 10px 8px; overflow: hidden;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.control__avance { height: 3px; margin: 0 -10px 6px; background: rgba(27,28,34,.08); }
.control__avance span { display: block; height: 100%; width: 0; background: var(--tinta); }
.control__fila { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 6px; min-height: 76px; }
.flecha { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--linea); background: transparent; cursor: pointer; display: grid; place-items: center; }
.flecha:hover:not(:disabled) { border-color: var(--tinta); }
.flecha:disabled { opacity: .3; cursor: default; }
.flecha svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flecha--siguiente { background: var(--tinta); color: var(--cal); border-color: var(--tinta); }
.leyenda { text-align: center; min-width: 0; }
.leyenda__intro { font: 400 26px/1.05 var(--serif); }
.leyenda__ayuda { font-size: 15px; color: var(--suave); margin-top: 2px; }
.leyenda__num { display: block; font-size: 14px; color: var(--suave); }
.leyenda__titulo { display: block; font: 400 24px/1.1 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leyenda__ver { display: block; font-size: 14px; color: var(--suave); }
.leyenda__acciones { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.leyenda .boton { min-height: 46px; padding: 0 18px; font-size: 16px; }
.leyenda__link { border: 0; background: none; padding: 6px 2px; cursor: pointer; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; color: var(--suave); }
.control__pie { display: flex; justify-content: center; align-items: center; gap: 18px; padding-top: 2px; font-size: 14px; color: var(--suave); }
.enlace { border: 0; background: none; padding: 8px 2px; cursor: pointer; color: var(--suave); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.firma { font-size: 13px; letter-spacing: .04em; }

.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--tinta); color: var(--cal); font-weight: 600; text-decoration: none; transition: background .3s var(--ease); }
.boton:hover { background: var(--rojo); }


.grilla { padding: calc(var(--franja) + var(--barra) + 24px) var(--margen) 48px; max-width: 1240px; margin: 0 auto; }
.grilla__cabeza { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: 24px; }
.grilla h1 { font: 400 56px/1 var(--serif); letter-spacing: -.015em; width: 100%; }
.grilla__nota { color: var(--suave); }
.grilla__lista { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 20px; }
.g-obra { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; width: 100%; }
.g-obra img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: var(--cal-2); padding: 10px; }
.g-obra__num { display: block; font-size: 14px; color: var(--suave); margin-top: 8px; }
.g-obra__titulo { display: block; font: 400 21px/1.15 var(--serif); }


.ficha { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: var(--cal); color: var(--tinta); }
.ficha::backdrop { background: rgba(40,32,24,.5); }
.ficha__caja { position: relative; min-height: 100%; display: flex; flex-direction: column; }
.ficha__cerrar { position: absolute; top: 12px; right: 12px; z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: var(--tinta); color: var(--cal); display: grid; place-items: center; }
.ficha__cerrar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ficha__marco { background: radial-gradient(90% 90% at 50% 50%, color-mix(in srgb, var(--c, #ebe3d6) 22%, #f3eee5), #ebe3d6); padding: 72px 24px 28px; display: grid; place-items: center; }
.ficha__marco img { max-height: 52vh; width: auto; height: auto; max-width: 100%; box-shadow: 0 22px 44px -22px rgba(40,30,20,.6); }
.ficha__texto { padding: 24px var(--margen) 32px; display: flex; flex-direction: column; gap: 14px; }
.ficha__num { font-size: 16px; color: var(--suave); }
.ficha h2 { font: 400 40px/1.02 var(--serif); }
.ficha__datos { display: grid; border-top: 1px solid var(--linea); }
.ficha__datos div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.ficha__datos dt { color: var(--suave); }
.ficha__unica { font: italic 400 22px/1.2 var(--serif); }
.ficha .boton { align-self: stretch; }
.ficha__aviso { font-size: 15px; color: var(--suave); }
@media (min-width: 900px) {
  .ficha { width: min(1080px, 92vw); height: auto; max-height: 90vh; margin: auto; border-radius: 10px; overflow: hidden; }
  .ficha[open] { display: flex; }
  .ficha__caja { flex: 1; flex-direction: row; min-height: 0; }
  .ficha__marco { flex: 1.3; padding: 48px; }
  .ficha__marco img { max-height: 70vh; }
  .ficha__texto { flex: 1; padding: 64px 40px 40px; justify-content: center; }
  .ficha .boton { align-self: flex-start; }
}
