/* Copia para la Biblioteca de la web (21-10-2026), sacada de prototipos-biblioteca. Si cambia allí, se vuelve a copiar. */
/* Prototipos de la Biblioteca como viaje 3D (20-10-2026). Común a los tres. No es parte de la web todavía. */
html, body { margin: 0; background: #070806; color: #efe6cf; -webkit-tap-highlight-color: transparent; }
canvas, a, button { -webkit-tap-highlight-color: transparent; }
body { font-family: "EB Garamond", Georgia, serif; overflow-x: hidden; }
#lienzo { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 0; }
.recorrido { position: relative; z-index: 1; pointer-events: none; }
.recorrido > section { pointer-events: none; }
/* la barra de arriba de los prototipos (para cambiar de uno a otro) */
.pr-barra { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: linear-gradient(#070806ee, #07080600); }
.pr-barra b { font-family: "Aboreto", serif; font-weight: 400; font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: #efd295; }
.pr-barra nav { display: flex; gap: 6px; }
.pr-barra nav a { font-family: "Aboreto", serif; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #efd295; text-decoration: none; padding: 9px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(239,210,149,.4); }
.pr-barra nav a.aqui { background: linear-gradient(#f1d68d, #c08a3c); color: #1a1206; box-shadow: none; }
@media (max-width: 560px) { .pr-barra b { display: none; } .pr-barra { justify-content: center; } }
/* paneles de texto encima del 3D: aparecen y se van según dónde estás (los mueve cada prototipo con --v, de 0 a 1) */
.capa { position: fixed; z-index: 3; pointer-events: none; opacity: var(--v, 0); transform: translateY(calc((1 - var(--v, 0)) * 18px)); }
.capa.activa { pointer-events: auto; }
.capa.centro { left: 50%; top: 50%; translate: -50% -50%; width: min(620px, calc(100vw - 32px)); text-align: center; }
.capa.izq { left: max(16px, 6vw); top: 50%; translate: 0 -50%; width: min(440px, calc(100vw - 32px)); }
.capa.abajo { left: 50%; bottom: 7vh; translate: -50% 0; width: min(620px, calc(100vw - 32px)); text-align: center; }
.rot { font-family: "Aboreto", serif; font-size: .75rem; letter-spacing: .32em; text-transform: uppercase; color: var(--c, #efd295); margin: 0 0 10px; }
.tit { font-family: "Aboreto", serif; font-weight: 400; font-size: clamp(2rem, 5.4vw, 3.6rem); letter-spacing: .08em; text-transform: uppercase; color: #f6ead0; margin: 0 0 12px; line-height: 1.05; text-shadow: 0 0 30px rgba(0,0,0,.8); }
.capa .lema { font-size: 1.2rem; color: #e8dcc0; margin: 0 0 14px; text-shadow: 0 0 20px rgba(0,0,0,.9); }
.preg { font-size: 1.35rem; line-height: 1.3; color: #f6ead0; margin: 6px 0 12px; text-shadow: 0 0 20px rgba(0,0,0,.9); }
.preg small { display: block; font-family: "Aboreto", serif; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c, #efd295); margin-bottom: 6px; }
/* La barrita de progreso de cada sala se llama igual que la barra de la cabecera (.barra de estilo.css): se anulan aquí su posición fija,
   su relleno y su flex, que la convertían en una banda gris detrás del título (visto el 21-10). */
.capa .barra { position: static; inset: auto; z-index: auto; display: block; gap: 0; padding: 0; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; width: min(320px, 80%); margin: 8px auto; }
.capa.izq .barra { margin-left: 0; }
.capa .barra i { display: block; height: 100%; background: var(--c, #efd295); border-radius: 4px; }
.cuenta { font-size: .95rem; color: #b9b29a; margin: 0 0 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: "Aboreto", serif; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #1a1206; background: linear-gradient(#f1d68d, #c08a3c); border-radius: 999px; padding: 14px 22px; text-decoration: none; pointer-events: auto; }
.btn.fino { background: rgba(7,8,6,.6); color: #efd295; box-shadow: inset 0 0 0 1px rgba(239,210,149,.6); }
.tramos { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 16px; }
.capa.izq .tramos { justify-content: flex-start; }
.tramos a { font-size: 1rem; color: #efe6cf; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: rgba(7,8,6,.7); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #efd295) 60%, transparent); pointer-events: auto; }
.tramos a small { color: #b9b29a; margin-left: 6px; }
.capa .pista { font-family: "Aboreto", serif; font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; color: #b9b29a; }
.nota-pr { position: fixed; z-index: 5; left: 50%; bottom: 14px; translate: -50% 0; font-size: .9rem; color: #b9b29a; background: rgba(7,8,6,.75); padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(239,210,149,.25); white-space: nowrap; }
@media (max-width: 560px) { .nota-pr { display: none; } .preg { font-size: 1.15rem; } .lema { font-size: 1.05rem; } }
