/* ════════════════════════════════════════════════════
   mural.css — mural colaborativo
════════════════════════════════════════════════════ */

/* ── Fuente ── */
@font-face { font-family: 'Bellota'; src: url('../../ecoarte&medios/fonts/Bellota-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Bellota'; src: url('../../ecoarte&medios/fonts/Bellota-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Bellota'; src: url('../../ecoarte&medios/fonts/Bellota-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
/* las mayúsculas sin serifas de Bellota (su juego ss01, sólo las mayúsculas: tools/mayusculas.py). Van después de los
   archivos completos y con el unicode-range de las mayúsculas: para ellas, el navegador toma estos */
@font-face { font-family: 'Bellota'; src: url('../../ecoarte&medios/fonts/Bellota-Regular-mayus.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0041-0048, U+004A-004B, U+004D-004E, U+0050, U+0052-005A, U+00C0-00CB, U+00D0-00D1, U+00D9-00DE, U+0100, U+0102, U+0104, U+0106, U+0108, U+010A, U+010C, U+010E, U+0110, U+0112, U+0114, U+0116, U+0118, U+011A, U+011C, U+011E, U+0120, U+0122, U+0124, U+0126, U+0132, U+0134, U+0136, U+0143, U+0145, U+0147, U+014A, U+0154, U+0156, U+0158, U+015A, U+015C, U+015E, U+0160, U+0162, U+0164, U+0166, U+0168, U+016A, U+016C, U+016E, U+0170, U+0172, U+0174, U+0176, U+0178-0179, U+017B, U+017D, U+01AF, U+01C4, U+01C7, U+01CA, U+01CD, U+01D3, U+01D5, U+01D7, U+01D9, U+01DB, U+01DE, U+01E0, U+01E2, U+01E6, U+01E8, U+01F1, U+01F4, U+01F8, U+01FA, U+01FC, U+0200, U+0202, U+0204, U+0206, U+0210, U+0212, U+0214, U+0216, U+0218, U+021A, U+021E, U+0226, U+0228, U+0232, U+0244, U+0400-0402, U+0405, U+0408-0409, U+040B-0410, U+0412, U+0415-0416, U+0418-041D, U+0420-0423, U+0425-0429, U+042C, U+042F, U+04A2, U+04B6, U+04D0, U+04E2, U+04EE, U+1E02, U+1E04, U+1E06, U+1E08, U+1E0A, U+1E0C, U+1E0E, U+1E10, U+1E12, U+1E14, U+1E16, U+1E18, U+1E1C, U+1E1E, U+1E20, U+1E22, U+1E24, U+1E26, U+1E28, U+1E2A, U+1E32, U+1E3E, U+1E40, U+1E42, U+1E44, U+1E46, U+1E48, U+1E4A, U+1E54, U+1E56, U+1E58, U+1E5A, U+1E5C, U+1E5E, U+1E60, U+1E62, U+1E64, U+1E66, U+1E68, U+1E6A, U+1E6C, U+1E6E, U+1E72, U+1E76, U+1E78, U+1E7A, U+1E7C, U+1E7E, U+1E80, U+1E82, U+1E84, U+1E86, U+1E88, U+1E8A, U+1E8C, U+1E8E, U+1E90, U+1E92, U+1E94, U+1EA0, U+1EA2, U+1EA4, U+1EA6, U+1EA8, U+1EAA, U+1EAC, U+1EAE, U+1EB0, U+1EB2, U+1EB4, U+1EB6, U+1EB8, U+1EBA, U+1EBC, U+1EBE, U+1EC0, U+1EC2, U+1EC4, U+1EC6, U+1EE4, U+1EE6, U+1EE8, U+1EEA, U+1EEC, U+1EEE, U+1EF0, U+1EF2, U+1EF4, U+1EF6, U+1EF8; }
@font-face { font-family: 'Bellota'; src: url('../../ecoarte&medios/fonts/Bellota-Medium-mayus.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0041-0048, U+004A-004B, U+004D-004E, U+0050, U+0052-005A, U+00C0-00CB, U+00D0-00D1, U+00D9-00DE, U+0100, U+0102, U+0104, U+0106, U+0108, U+010A, U+010C, U+010E, U+0110, U+0112, U+0114, U+0116, U+0118, U+011A, U+011C, U+011E, U+0120, U+0122, U+0124, U+0126, U+0132, U+0134, U+0136, U+0143, U+0145, U+0147, U+014A, U+0154, U+0156, U+0158, U+015A, U+015C, U+015E, U+0160, U+0162, U+0164, U+0166, U+0168, U+016A, U+016C, U+016E, U+0170, U+0172, U+0174, U+0176, U+0178-0179, U+017B, U+017D, U+01AF, U+01C4, U+01C7, U+01CA, U+01CD, U+01D3, U+01D5, U+01D7, U+01D9, U+01DB, U+01DE, U+01E0, U+01E2, U+01E6, U+01E8, U+01F1, U+01F4, U+01F8, U+01FA, U+01FC, U+0200, U+0202, U+0204, U+0206, U+0210, U+0212, U+0214, U+0216, U+0218, U+021A, U+021E, U+0226, U+0228, U+0232, U+0244, U+0400-0402, U+0405, U+0408-0409, U+040B-0410, U+0412, U+0415-0416, U+0418-041D, U+0420-0423, U+0425-0429, U+042C, U+042F, U+04A2, U+04B6, U+04D0, U+04E2, U+04EE, U+1E02, U+1E04, U+1E06, U+1E08, U+1E0A, U+1E0C, U+1E0E, U+1E10, U+1E12, U+1E14, U+1E16, U+1E18, U+1E1C, U+1E1E, U+1E20, U+1E22, U+1E24, U+1E26, U+1E28, U+1E2A, U+1E32, U+1E3E, U+1E40, U+1E42, U+1E44, U+1E46, U+1E48, U+1E4A, U+1E54, U+1E56, U+1E58, U+1E5A, U+1E5C, U+1E5E, U+1E60, U+1E62, U+1E64, U+1E66, U+1E68, U+1E6A, U+1E6C, U+1E6E, U+1E72, U+1E76, U+1E78, U+1E7A, U+1E7C, U+1E7E, U+1E80, U+1E82, U+1E84, U+1E86, U+1E88, U+1E8A, U+1E8C, U+1E8E, U+1E90, U+1E92, U+1E94, U+1EA0, U+1EA2, U+1EA4, U+1EA6, U+1EA8, U+1EAA, U+1EAC, U+1EAE, U+1EB0, U+1EB2, U+1EB4, U+1EB6, U+1EB8, U+1EBA, U+1EBC, U+1EBE, U+1EC0, U+1EC2, U+1EC4, U+1EC6, U+1EE4, U+1EE6, U+1EE8, U+1EEA, U+1EEC, U+1EEE, U+1EF0, U+1EF2, U+1EF4, U+1EF6, U+1EF8; }
@font-face { font-family: 'Bellota'; src: url('../../ecoarte&medios/fonts/Bellota-Bold-mayus.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0041-0048, U+004A-004B, U+004D-004E, U+0050, U+0052-005A, U+00C0-00CB, U+00D0-00D1, U+00D9-00DE, U+0100, U+0102, U+0104, U+0106, U+0108, U+010A, U+010C, U+010E, U+0110, U+0112, U+0114, U+0116, U+0118, U+011A, U+011C, U+011E, U+0120, U+0122, U+0124, U+0126, U+0132, U+0134, U+0136, U+0143, U+0145, U+0147, U+014A, U+0154, U+0156, U+0158, U+015A, U+015C, U+015E, U+0160, U+0162, U+0164, U+0166, U+0168, U+016A, U+016C, U+016E, U+0170, U+0172, U+0174, U+0176, U+0178-0179, U+017B, U+017D, U+01AF, U+01C4, U+01C7, U+01CA, U+01CD, U+01D3, U+01D5, U+01D7, U+01D9, U+01DB, U+01DE, U+01E0, U+01E2, U+01E6, U+01E8, U+01F1, U+01F4, U+01F8, U+01FA, U+01FC, U+0200, U+0202, U+0204, U+0206, U+0210, U+0212, U+0214, U+0216, U+0218, U+021A, U+021E, U+0226, U+0228, U+0232, U+0244, U+0400-0402, U+0405, U+0408-0409, U+040B-0410, U+0412, U+0415-0416, U+0418-041D, U+0420-0423, U+0425-0429, U+042C, U+042F, U+04A2, U+04B6, U+04D0, U+04E2, U+04EE, U+1E02, U+1E04, U+1E06, U+1E08, U+1E0A, U+1E0C, U+1E0E, U+1E10, U+1E12, U+1E14, U+1E16, U+1E18, U+1E1C, U+1E1E, U+1E20, U+1E22, U+1E24, U+1E26, U+1E28, U+1E2A, U+1E32, U+1E3E, U+1E40, U+1E42, U+1E44, U+1E46, U+1E48, U+1E4A, U+1E54, U+1E56, U+1E58, U+1E5A, U+1E5C, U+1E5E, U+1E60, U+1E62, U+1E64, U+1E66, U+1E68, U+1E6A, U+1E6C, U+1E6E, U+1E72, U+1E76, U+1E78, U+1E7A, U+1E7C, U+1E7E, U+1E80, U+1E82, U+1E84, U+1E86, U+1E88, U+1E8A, U+1E8C, U+1E8E, U+1E90, U+1E92, U+1E94, U+1EA0, U+1EA2, U+1EA4, U+1EA6, U+1EA8, U+1EAA, U+1EAC, U+1EAE, U+1EB0, U+1EB2, U+1EB4, U+1EB6, U+1EB8, U+1EBA, U+1EBC, U+1EBE, U+1EC0, U+1EC2, U+1EC4, U+1EC6, U+1EE4, U+1EE6, U+1EE8, U+1EEA, U+1EEC, U+1EEE, U+1EF0, U+1EF2, U+1EF4, U+1EF6, U+1EF8; }

/* ── Variables ── */
:root {
  --fondo: #0b0c0a;
  --tinta: #f3efe6;
  --tinta-suave: rgba(243, 239, 230, .72);
  --control: 2.9rem;
  --barra-alto: 60px;
  --acento: #b8af49;
  --acento-osc: #877f28;
  --suave: cubic-bezier(.22, .61, .36, 1);
  --marco-fondo: rgba(11, 12, 10, .8);
  --marco-linea: inset 0 0 0 1px rgba(243, 239, 230, .12);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--fondo); color: var(--tinta); }
body { font-family: 'Bellota', system-ui, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }

/* los botones (principal, claro) vienen de ../css/comun.css; aquí, el que no lleva clase de tono */
.boton { padding: .75em 1.5em; background: var(--acento-osc); color: var(--tinta); }
.boton.boton-principal { background: var(--tinta); color: #15140f; }
.boton.boton-claro { background: transparent; }

/* ── Entrada ── */
.entrada { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; background: transparent; }
.entrada-fondo {
  position: fixed; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  --enfoque: 0;
  filter: blur(calc(5px - 3px * var(--enfoque))) brightness(calc(.42 + .14 * var(--enfoque))) saturate(1.15);
  transform: scale(1.08);
  opacity: 0; transition: opacity 1.6s var(--suave), filter .9s var(--suave);
  pointer-events: none;
}
.entrada-fondo.listo { opacity: 1; }
.entrada-caja { width: min(100% - 32px, 74rem); }
.entrada-velo {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 12, 10, .6), rgba(11, 12, 10, .35) 60%, rgba(11, 12, 10, .2));
}
/* una pantalla por obra, con su imagen centrada: su centro cae en el eje del espejo del fondo. El ancho de la imagen
   depende del alto, para que quepa. Proximity: con las indicaciones abiertas, una pantalla puede medir más */
html:has(body.entrada) { scroll-snap-type: y proximity; }
.entrada-pantalla {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(46px + 14px + .6rem) 1rem;
  scroll-snap-align: start;
}
.entrada-pantalla .obra-imagen { width: min(100%, 118dvh); margin-inline: auto; }
.entrada h1 { margin: 0; font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem); line-height: 1.05; }
/* arriba, en las esquinas de la página: ecoarte&medios a la izquierda y el mural a la derecha, alineados arriba */
.entrada-cabeza { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; pointer-events: none; }
.entrada-cabeza > * { pointer-events: auto; }
/* los mismos tamaños que en el lienzo (.acd-marca y .acd-ecoarte) */
.entrada-ecoarte { color: var(--tinta); text-decoration: none; opacity: .75; transition: opacity .25s; }
.entrada-ecoarte svg { display: block; width: auto; height: 22px; filter: drop-shadow(0 0 8px rgba(0, 0, 0, .7)); }
@media (any-hover: hover) { .entrada-ecoarte:hover { opacity: 1; } }
.obra-en-curso .obra-ultimo { margin: 0; color: var(--tinta-suave); }
/* la primera pantalla: la presentación y, debajo, qué obras están en curso (enlaces a su pantalla) */
/* la presentación, encima de la primera obra */
.obra-tarjeta > .entrada-texto { margin-bottom: 1.4rem; }
.entrada-texto .entrada-vigente { margin: .8rem 0 0; }
.marca-titulo svg { display: block; height: 46px; width: auto; filter: drop-shadow(0 0 8px rgba(0, 0, 0, .7)); }
.entrada-cabeza .marca-titulo { opacity: .9; }
/* el idioma, junto al logo del mural */
.entrada-cabeza-der { display: flex; align-items: flex-start; gap: .4rem; }
.entrada-cabeza .idioma {
  display: grid; place-items: center; height: 46px; padding: 0 .5rem;
  color: var(--tinta); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-decoration: none;
  opacity: .7; transition: opacity .3s; filter: drop-shadow(0 0 8px rgba(0, 0, 0, .7));
}
.entrada-cabeza .idioma:is(:hover, :focus-visible) { opacity: 1; }
.entrada-texto { max-width: 65ch; color: var(--tinta-suave); font-size: clamp(.92rem, .88rem + .2vw, 1.02rem); }
.indicaciones strong { color: var(--tinta); font-weight: 700; }
.enlace-indicaciones {
  display: inline-flex; align-items: center; gap: .5em; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--tinta); font: inherit; font-weight: 700;
}
.enlace-indicaciones::before { content: ''; width: .55em; height: .55em; background: var(--acento); clip-path: polygon(0 0, 100% 50%, 0 100%); }
/* el modal: la lista se desplaza; el formulario queda siempre a la vista, abajo */
.modal-indicaciones {
  width: min(100% - 32px, 46rem); max-height: calc(100dvh - 2rem);
  padding: clamp(1.2rem, 3vw, 2rem); border: 0; border-top: 3px solid var(--acento);
  background: #12130f; color: var(--tinta);
}
.modal-indicaciones[open] { display: flex; flex-direction: column; gap: 1rem; }
.entrada-botones:has(> .entrada-participar-abrir[hidden]) { display: none; }
.modal-indicaciones::backdrop { background: rgba(5, 5, 4, .72); backdrop-filter: blur(4px); }
.modal-indicaciones h2 { margin: 0; padding-right: 2.4rem; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); }
.modal-indicaciones-lista { flex: 1 1 auto; min-height: 7rem; overflow-y: auto; color: var(--tinta-suave); font-size: clamp(.92rem, .88rem + .2vw, 1.02rem); }
html:not(.js) .modal-indicaciones { display: block; position: static; margin: 2rem auto; }
.entrada-texto p { margin: 0 0 .8em; }
.logo-en-linea { color: var(--tinta); text-decoration: none; }
.logo-en-linea svg { display: inline; height: 1.32em; width: auto; vertical-align: baseline; }
.indicaciones { margin: 0; padding: 0 0 0 1.3em; list-style: none; }
.indicaciones li { position: relative; margin: 0 0 .55em; }
.indicaciones li::before {
  content: ''; position: absolute; left: -1.25em; top: .55em;
  width: .5em; height: .5em;
  background: var(--acento); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.escuchar { margin: .9rem 0 .7rem; overflow-x: clip; container-type: inline-size; }
.escuchar .frase { font-size: min(calc(100cqw * 9 / 172), 1em); } /* el tamaño del texto de las indicaciones */
.avisame { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .3em; margin: .2rem 0 0 .4rem; vertical-align: baseline; }
.avisame .boton { height: var(--control); padding: 0 1.1em; font-size: inherit; }
.escribirnos { height: var(--control); margin-left: .4rem; padding: 0 1.1em; font-size: inherit; vertical-align: middle; }
.avisame input, .entrada-participar input[type="text"] {
  flex: 0 1 15rem; width: 15rem; min-width: 0;
  height: var(--control); padding: 0 .8em;
  border: 0; border-bottom: 1px solid rgba(243, 239, 230, .35); border-radius: 0;
  background: rgba(243, 239, 230, .06); color: var(--tinta); font: inherit;
}
.entrada-participar input[type="text"]:focus, .avisame input:focus { outline: none; border-bottom-color: var(--acento); }
.avisame-estado { display: block; min-height: 1.2em; font-size: .9rem; }
.avisame-estado:empty { min-height: 0; }
.avisame-estado.ok { color: var(--acento); }
.avisame-estado.error { color: #e48a9e; }
.entrada-acciones { display: grid; gap: 1rem; }
.control { height: var(--control); padding-block: 0; }
.entrada-participar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .9rem 1.6rem; }
.entrada-participar[hidden] { display: none; }
/* rótulos que están dentro del campo y, al escribir, suben encima de él */
/* el campo que sólo llenan los bots (index.php): fuera de la vista, sin display:none (algunos bots lo saltan) */
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.campo-flotante { position: relative; display: block; flex: 0 1 15rem; min-width: 0; margin-top: .9rem; }
.campo-flotante input[type="text"] { display: block; width: 100%; }
.campo-flotante > span {
  position: absolute; left: .8em; top: 50%; translate: 0 -50%;
  color: var(--tinta-suave); pointer-events: none; transform-origin: left center; white-space: nowrap;
  transition: top .25s var(--suave), translate .25s var(--suave), scale .25s var(--suave), color .25s;
}
.campo-flotante input:is(:focus, :not(:placeholder-shown)) + span { top: 0; translate: -.8em -110%; scale: .78; color: var(--tinta); }
.entrada-vigente { margin: 0; color: var(--tinta-suave); font-size: .92rem; }
.entrada-vigente strong { color: var(--tinta); }
.enlace-texto { padding: 0; border: 0; background: none; color: var(--tinta); font: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.entrada-participar input[aria-invalid="true"] { border-bottom-color: #e48a9e; }
.entrada-error { margin: 0; color: #e48a9e; text-align: right; }
.entrada-participar .casilla { flex: 0 0 auto; white-space: nowrap; line-height: 1.3; }
.entrada-botones { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .9rem; }
.entrada .boton-principal { padding-inline: 2.4em; font-size: 1.05rem; }
@media (max-width: 600px) {
  .entrada-participar { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
  .entrada-participar[hidden] { display: none; }
  .entrada-participar input[type="text"] { width: 100%; min-width: 0; font-size: min(1rem, 3.8vw); }
  .campo-flotante > span { font-size: min(1rem, 3.8vw); }
  .entrada-participar .casilla { grid-column: 1 / -1; }
  .entrada-participar .casilla { flex: 0 1 auto; min-width: 0; white-space: normal; font-size: min(1rem, 4.1vw); }
  .entrada-botones { flex-wrap: nowrap; }
  .entrada-botones .boton:not(.boton-icono) { flex: 1; }
}
.entrada-participar .casilla { display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.entrada-participar .casilla input { flex: none; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--acento); }

/* ── Lienzo ── */
.acd { overflow: hidden; height: 100vh; height: 100dvh; touch-action: none; overscroll-behavior: none; }
.acd-principal { display: contents; }
.lienzo { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.lienzo.arrastrando { cursor: grabbing; }

/* ── Barra de herramientas ── */
.herramientas {
  position: fixed; z-index: 10; left: 12px; right: 12px; bottom: 12px;
  display: flex; width: max-content; max-width: calc(100% - 24px); margin-inline: auto;
  background: var(--marco-fondo);
  backdrop-filter: blur(8px);
  box-shadow: var(--marco-linea);
}
.herr {
  flex: 0 1 auto; width: 46px; min-width: 0; height: 46px; padding: 0;
  display: grid; place-items: center;
  border: 0; background: none; cursor: pointer;
  opacity: .75; transition: opacity .25s, background .25s;
}
.herr svg { width: 22px; height: 22px; fill: none; stroke: var(--tinta); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.herr[hidden] { display: none; }

/* ── Cabecera ── */
.acd-esquina { position: fixed; z-index: 10; text-decoration: none; transition: opacity .25s; }
.acd-esquina svg { display: block; width: auto; filter: drop-shadow(0 0 8px rgba(0, 0, 0, .7)); }
.acd-marca { top: 14px; right: 16px; opacity: .9; }
.acd-marca svg { height: 46px; }
.acd-ecoarte { top: 14px; left: 16px; color: var(--tinta); opacity: .75; }
.acd-ecoarte svg { height: 22px; }
.acd-participar { right: 16px; bottom: 16px; padding: .55em 1.1em; }
.linea-tiempo:not([hidden]) ~ .acd-participar { bottom: calc(var(--barra-alto) + 4.4rem); }
@media (max-width: 760px) { .acd-participar { bottom: calc(var(--barra-alto) + .6rem); } }

/* el nombre de la obra, arriba al centro (en pantallas angostas, bajo los logos) */
.acd-nombre-obra {
  position: fixed; z-index: 10; top: 16px; left: 50%; translate: -50% 0; max-width: min(46vw, 34rem); margin: 0;
  color: var(--tinta); font-size: clamp(.9rem, .82rem + .35vw, 1.1rem); line-height: 1.2; text-align: center;
  text-shadow: 0 0 10px rgba(0, 0, 0, .85); pointer-events: none; transition: opacity .9s var(--suave);
}
@media (max-width: 600px) { .acd-nombre-obra { top: 68px; max-width: calc(100% - 24px); } }
.acd-nombre-obra .obra-provisional { display: block; }
.contemplando .acd-nombre-obra, .recortando .acd-nombre-obra { opacity: 0; }
.acd-propuestas-abrir { display: block; margin: .2rem auto 0; padding: 0; border: 0; background: none; color: var(--tinta-suave); font: inherit; font-size: .8em; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; pointer-events: auto; text-shadow: inherit; }
.contemplando .acd-propuestas-abrir, .recortando .acd-propuestas-abrir { pointer-events: none; }

/* ── Las propuestas de nombre: la fila de cada obra en la entrada y el modal ── */
.obra-credito-nombre { margin: 0; color: var(--tinta-suave); font-size: .9rem; }
.obra-propuestas { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; font-size: .92rem; }
.obra-propuestas-rotulo { color: var(--tinta-suave); }
.propuesta-chip { display: inline-flex; align-items: baseline; gap: .4em; padding: 0; border: 0; background: none; color: var(--tinta); font: inherit; cursor: pointer; }
.propuesta-chip span { color: var(--acento); font-size: .85em; font-variant-numeric: tabular-nums; }
@media (any-hover: hover) { .propuesta-chip:hover { text-decoration: underline; text-underline-offset: .2em; } }
.propuesta-nueva { color: var(--acento); }
.modal-propuestas {
  width: min(100% - 24px, 34rem); max-height: min(100dvh - 24px, 44rem); margin: auto; padding: clamp(1.2rem, 4vw, 2rem);
  border: 0; background: #12130f; color: var(--tinta); overflow-y: auto;
}
.modal-propuestas::backdrop { background: rgba(5, 5, 4, .72); backdrop-filter: blur(4px); }
.modal-propuestas h2 { margin: 0; padding-right: 2.4rem; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); }
.propuestas-obra { margin: .2rem 0 0; color: var(--acento); }
.propuestas-nota, .propuestas-vacio { margin: .7rem 0 0; color: var(--tinta-suave); font-size: .92rem; line-height: 1.4; }
.propuestas-mia { margin: .9rem 0 0; font-size: .95rem; }
.propuestas-mia[hidden], .propuestas-vacio[hidden], .propuestas-form[hidden], .propuestas-entrar[hidden] { display: none; }
.propuestas-lista { display: grid; gap: .1rem; margin: .9rem 0 0; padding: 0; list-style: none; }
.propuestas-lista li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 .8rem; padding: .45rem 0; border-top: 1px solid rgba(243, 239, 230, .1); }
.propuesta-texto { font-size: 1.05rem; overflow-wrap: anywhere; }
.propuesta-apodo { grid-row: 2; color: var(--tinta-suave); font-size: .8rem; }
.propuesta-apoyo, .propuesta-cuenta { grid-column: 2; grid-row: 1 / span 2; font-size: .85rem; white-space: nowrap; }
.propuesta-cuenta { color: var(--tinta-suave); font-variant-numeric: tabular-nums; }
.propuesta-apoyo { padding: .4em .7em; border: 0; background: rgba(243, 239, 230, .08); color: var(--tinta); font-family: inherit; cursor: pointer; }
.propuesta-apoyo[aria-pressed="true"] { background: var(--acento); color: #15140f; }
.propuestas-form { display: flex; gap: .5rem; margin-top: 1.1rem; }
.propuestas-form input { flex: 1; min-width: 0; height: 2.8rem; padding: 0 .7em; border: 0; border-bottom: 1px solid rgba(243, 239, 230, .35); background: rgba(243, 239, 230, .06); color: var(--tinta); font: inherit; }
.propuestas-form input:focus { outline: none; border-bottom-color: var(--acento); }
.propuestas-entrar { margin-top: 1.1rem; }
.propuestas-estado { min-height: 1.3em; margin: .7rem 0 0; font-size: .9rem; color: var(--acento); }
.propuestas-estado.error { color: #e48a9e; }

/* ── Pista ── */
.acd-pista {
  position: fixed; z-index: 10; left: 50%; bottom: calc(var(--barra-alto) + 1rem); translate: -50% 0;
  margin: 0; padding: .5em 1em; max-width: calc(100% - 2rem); text-align: center;
  background: rgba(11, 12, 10, .6); font-size: .9rem; color: var(--tinta-suave);
  pointer-events: none; transition: opacity 1.2s var(--suave);
}
.acd-pista.ida { opacity: 0; }
.acd-sinjs { position: fixed; inset: 0; display: grid; place-items: center; margin: 0; }

/* ── Barra: grupos, estados ── */
.grupo { display: flex; justify-content: center; min-width: 0; }
.sep { flex: none; width: 1px; margin: 11px 5px; background: rgba(243, 239, 230, .22); }
@media (max-width: 600px) { .sep { margin-inline: 2px; } }
.grupo[hidden] { display: none; }
.herr:disabled { opacity: .25; cursor: default; }
.herr[aria-pressed="true"], .herr[aria-expanded="true"] { opacity: 1; background: rgba(184, 175, 73, .22); }
.herr-si svg { stroke: var(--acento); stroke-width: 2.2; }
/* «+»: la acción que importa, en blanco; mientras desde este navegador no se haya sumado nada, un aro sale de él */
.herr-agregar { position: relative; opacity: 1; background: var(--tinta); }
.herr-agregar svg { stroke: #15140f; stroke-width: 2.4; }
.herr-agregar:hover, .herr-agregar[aria-expanded="true"] { background: var(--acento); }
.herr-agregar.llamando::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: 0 0 0 2px var(--tinta);
  animation: llamado 2.2s cubic-bezier(.22, .61, .36, 1) infinite;
}
.herr-agregar.llamando[aria-expanded="true"]::after { animation: none; opacity: 0; }
@keyframes llamado {
  0% { transform: scale(1); opacity: .9; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .herr-agregar.llamando::after { animation: none; opacity: 0; } }

/* ── Capa de edición ── */
.capa-edicion { position: fixed; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.capa-borde { fill: none; stroke: #fff; stroke-width: 1.2; stroke-dasharray: 5 4; }
.capa-tirador { fill: var(--fondo); stroke: #fff; stroke-width: 1.6; }
.tirador-giro { fill: var(--acento); }
.tirador-lado { fill: #fff; stroke: var(--fondo); }
.tirador-deformar { fill: var(--acento); stroke: var(--fondo); stroke-width: 1; }
.capa-varilla { stroke: #fff; stroke-width: 1.2; }
.capa-lado.reflejo { opacity: .55; }

/* ── Opacidad y mezcla ── */
.panel-flotante {
  position: fixed; z-index: 11; left: 50%; bottom: calc(var(--barra-alto) + .6rem); translate: -50% 0;
  width: 13rem; max-width: calc(100% - 24px); padding: .9rem;
  background: var(--marco-fondo); backdrop-filter: blur(8px); box-shadow: var(--marco-linea);
  font-size: .9rem;
}
.panel-flotante[hidden] { display: none; }
.panel-flotante::after {
  content: ''; position: absolute; top: 100%; left: var(--flecha, 50%); translate: -50% 0;
  border: 7px solid transparent; border-top-color: var(--marco-fondo); border-bottom: 0;
}
.panel-flotante.sin-flecha::after { display: none; }
.panel-flotante.abajo::after { top: auto; bottom: 100%; border: 7px solid transparent; border-bottom-color: var(--marco-fondo); border-top: 0; }
/* botones de sólo ícono (ver la obra, descargar) */
.boton-icono { width: var(--control); padding: 0; }
.boton-icono svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.entrada .panel-descargar { width: 15rem; }
.panel-texto { margin: 0 0 .7rem; color: var(--tinta-suave); line-height: 1.4; }
.panel-modos .panel-si { background: var(--tinta); color: #15140f; font-weight: 700; }
.panel-confirmar { width: 16rem; }
.panel-campo {
  display: block; width: 100%; height: 2.6rem; margin-bottom: .6rem; padding: 0 .7em;
  border: 0; border-bottom: 1px solid rgba(243, 239, 230, .35); border-radius: 0;
  background: rgba(243, 239, 230, .06); color: var(--tinta); font: inherit;
}
.panel-campo:focus { outline: none; border-bottom-color: var(--acento); }
.panel-fila { display: grid; gap: .3rem; margin-bottom: .8rem; color: var(--tinta-suave); }
.panel-fila input { width: 100%; accent-color: var(--acento); }
.panel-modos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.panel-modos button { padding: .45em .4em; border: 0; background: rgba(243, 239, 230, .08); cursor: pointer; font-size: .85rem; }
.panel-modos button[aria-pressed="true"] { background: var(--acento-osc); }
.panel-una { grid-template-columns: 1fr; }
.panel-modos button:disabled { opacity: .4; cursor: progress; }
.panel-capas { width: 11rem; }
.panel-recortar { width: 13rem; }
.panel-agregar { width: 14rem; }
.panel-agregar .panel-modos button { display: flex; align-items: center; gap: .35em; text-align: start; }
.panel-agregar svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-agregar .panel-modos button[hidden], .panel-nota[hidden] { display: none; }
.panel-ajustes { width: 15rem; }
.panel-ajustes .panel-fila { margin-bottom: .55rem; }
/* soltar una imagen sobre el lienzo */
.soltando .lienzo { outline: 3px dashed var(--acento); outline-offset: -12px; }
.panel-recortar .panel-modos button { display: flex; align-items: center; gap: .35em; text-align: start; }
.panel-recortar svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lazo-circulo { display: inline-flex; align-items: center; gap: .4rem; padding: 0 .6rem; color: var(--tinta-suave); cursor: pointer; }
.lazo-circulo[hidden] { display: none; }
.lazo-circulo input { margin: 0; accent-color: var(--acento); }
/* el suavizado del borde del recorte */
.lazo-suave { display: inline-flex; align-items: center; gap: .5rem; padding: 0 .6rem; color: var(--tinta-suave); font-size: .9rem; }
.lazo-suave[hidden] { display: none; }
.lazo-suave input { width: 7.5rem; accent-color: var(--acento); }
a.ficha-boton { color: inherit; text-decoration: none; }
.ficha-boton[hidden] { display: none; }
.panel-capas .panel-modos button { display: flex; align-items: center; gap: .35em; text-align: start; }
.panel-capas .panel-modos button:disabled { opacity: .3; cursor: default; }
.panel-capas svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-nota { margin: .8rem 0 0; color: var(--tinta-suave); font-size: .78rem; line-height: 1.4; }
.panel-nota a { color: inherit; }

/* ── Recorte: una capa sobre el lienzo (la imagen queda en su lugar) y una barrita arriba ── */
.lazo { position: fixed; inset: 0; z-index: 14; }
.lazo[hidden] { display: none; }
.lazo-lienzo { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.lazo-barra {
  position: absolute; top: 12px; left: 50%; translate: -50% 0;
  display: grid; justify-items: center; gap: .55rem; width: max-content; max-width: calc(100% - 24px); padding: .7rem .9rem;
  background: var(--marco-fondo); backdrop-filter: blur(8px); box-shadow: var(--marco-linea);
}
.lazo-pista { margin: 0; color: var(--tinta-suave); font-size: .9rem; text-align: center; }
.lazo-botones { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.lazo-botones .boton { padding: .55em 1.1em; font-size: .9rem; }
.recortando :is(.herramientas, .capa-edicion, .acd-esquina, .acd-pista, .acd-modo-admin, .acd-aviso:not(.error)) { opacity: 0; pointer-events: none; }

/* ── Ficha de un aporte ── */
.ficha {
  position: fixed; z-index: 15;
  display: grid; gap: .4rem; min-width: 9rem; padding: .7rem .8rem .55rem;
  background: rgba(11, 12, 10, .9); backdrop-filter: blur(6px); font-size: .9rem;
}
.ficha[hidden] { display: none; }
.acd-firma { position: fixed; z-index: 12; margin: 0; padding: .3em .7em; background: rgba(11, 12, 10, .85); color: var(--tinta); font-size: .9rem; white-space: nowrap; pointer-events: none; }
.acd-firma[hidden] { display: none; }
.ficha-fecha { margin: 0 0 .2rem; color: var(--tinta-suave); }
.ficha-boton { padding: .5em .8em; border: 0; background: rgba(243, 239, 230, .08); cursor: pointer; text-align: start; }
.ficha-deshacer { background: var(--acento-osc); }
.ficha-reportar { justify-self: end; padding: .15em 0; background: none; color: var(--tinta-suave); font-size: .72rem; opacity: .55; text-decoration: underline dotted; text-underline-offset: .2em; }

/* ── Avisos ── */
.acd-aviso {
  position: fixed; z-index: 20; left: 50%; bottom: calc(var(--barra-alto) + 1rem); translate: -50% 0;
  margin: 0; padding: .6em 1.1em; max-width: calc(100% - 2rem);
  background: rgba(11, 12, 10, .88); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--suave);
}
.acd-aviso.visible { opacity: 1; }
/* el avance de una subida: una raya bajo el aviso (--progreso, de 0 a 1) */
.acd-aviso::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--progreso, 0) * 100%); background: var(--acento); transition: width .2s linear; }
.acd-aviso.error { color: #e48a9e; }
.acd-aviso.visible { pointer-events: auto; }
.acd-aviso-accion { margin-left: .8em; padding: .3em .8em; border: 0; background: var(--acento-osc); cursor: pointer; }
.acd-aviso-accion[hidden] { display: none; }

/* ── Hover ── */
@media (any-hover: hover) {
  .boton:not(.boton-principal):not(.boton-claro):not(:disabled):hover { background: var(--tinta); color: #15140f; }
  .boton.boton-principal:not(:disabled):hover { background: var(--acento); color: #000; }
  .boton.boton-claro:not(:disabled):hover { background: var(--tinta); color: #15140f; box-shadow: none; }
  .herr:not(:disabled):hover { opacity: 1; background: rgba(243, 239, 230, .08); }
  .panel-modos button:hover, .ficha-boton:hover { background: rgba(243, 239, 230, .18); }
  .ficha-reportar:hover { background: none; opacity: 1; }
  .acd-esquina:hover { opacity: 1; }
}

/* ── Línea de tiempo ── */
.linea-tiempo {
  position: fixed; z-index: 11; left: 16px; right: 16px; bottom: calc(var(--barra-alto) + .6rem);
  display: flex; align-items: center; gap: .8rem;
  padding: .45rem .9rem .45rem .45rem;
  background: rgba(11, 12, 10, .8); backdrop-filter: blur(6px);
}
.linea-tiempo[hidden] { display: none; }
.tiempo-play { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.tiempo-play svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: var(--tinta); stroke: var(--tinta); stroke-width: 1.6; stroke-linejoin: round; }
.tiempo-play svg:last-child { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.tiempo-play svg:last-child, .tiempo-play.andando svg:first-child { display: none; }
.tiempo-play.andando svg:last-child { display: block; }
.tiempo-rango { flex: 1; min-width: 0; accent-color: var(--acento); cursor: pointer; }
.tiempo-fecha { flex: none; min-width: 11.5em; color: var(--tinta-suave); font-size: .85rem; font-variant-numeric: tabular-nums; text-align: right; }
.linea-tiempo:not([hidden]) ~ .acd-pista { display: none; }
.linea-tiempo:not([hidden]) ~ .acd-aviso { bottom: calc(var(--barra-alto) + 5rem); }
.linea-tiempo:not([hidden]) ~ .panel-flotante { bottom: calc(var(--barra-alto) + 4.6rem); }
@media (max-width: 600px) {
  .linea-tiempo { flex-wrap: wrap; gap: .2rem .6rem; }
  .tiempo-fecha { order: 3; flex-basis: 100%; min-width: 0; text-align: center; }
}

/* ── Al sumar: la onda de agua ── */
.onda {
  position: fixed; z-index: 6; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(243, 239, 230, .75);
  box-shadow: 0 0 22px rgba(184, 175, 73, .45), inset 0 0 22px rgba(184, 175, 73, .3);
}

/* ── Contemplar: sin botones ni avisos; cualquier toque vuelve ── */
.acd :is(.herramientas, .acd-esquina, .acd-pista, .acd-modo-admin, .acd-firma, .linea-tiempo, .ficha) { transition: opacity .9s var(--suave); }
.contemplando :is(.herramientas, .acd-esquina, .acd-pista, .acd-modo-admin, .acd-firma, .linea-tiempo, .ficha, .acd-aviso, .panel-flotante) { opacity: 0; pointer-events: none; }
.contemplando .lienzo { cursor: none; }
.contemplando.con-controles .lienzo { cursor: default; }
.contemplar-controles {
  position: fixed; z-index: 12; left: 50%; bottom: 18px; translate: -50% 0;
  display: flex;
  background: var(--marco-fondo); backdrop-filter: blur(8px); box-shadow: var(--marco-linea);
  opacity: 0; pointer-events: none; transition: opacity .6s var(--suave);
}
.contemplar-controles[hidden] { display: none; }
.contemplar-controles .herr[aria-pressed] { background: none; }
.contemplar-controles [data-contemplar="deriva"] svg:last-child, .contemplar-controles [data-contemplar="deriva"][aria-pressed="false"] svg:first-child { display: none; }
.contemplar-controles [data-contemplar="deriva"][aria-pressed="false"] svg:last-child { display: block; fill: var(--tinta); }
.contemplar-controles [data-contemplar="sonido"] svg:last-child, .contemplar-controles [data-contemplar="sonido"][aria-pressed="false"] svg:first-child { display: none; }
.contemplar-controles [data-contemplar="sonido"][aria-pressed="false"] svg:last-child { display: block; }
.con-controles .contemplar-controles { opacity: 1; pointer-events: auto; }

/* ── Atajos de teclado ── */
.pista-teclado { display: none; }
@media (any-pointer: fine) { .pista-teclado { display: inline; } }
.atajos {
  width: min(100% - 32px, 30rem); max-height: calc(100dvh - 2rem); padding: 1.4rem 1.6rem;
  border: 0; background: #12130f; color: var(--tinta); box-shadow: var(--marco-linea);
}
.atajos::backdrop { background: rgba(5, 5, 4, .6); }
.atajos h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.atajos dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.1rem; margin: 0 0 1.2rem; font-size: .92rem; }
.atajos dt { color: var(--acento); font-weight: 700; white-space: nowrap; }
.atajos dd { margin: 0; color: var(--tinta-suave); }
.atajos form { display: flex; justify-content: flex-end; gap: .5rem; }

/* ── Guía de la primera vez: lo señalado queda en un aro y lo demás en penumbra; el globo apunta al aro ── */
.guia-aro {
  position: fixed; z-index: 30; pointer-events: none;
  box-shadow: 0 0 0 200vmax rgba(5, 5, 4, .55), inset 0 0 0 2px var(--acento);
  transition: left .3s var(--suave), top .3s var(--suave), width .3s var(--suave), height .3s var(--suave);
}
.guia-aro.sin-objetivo { left: 50%; top: 50%; width: 0; height: 0; box-shadow: 0 0 0 200vmax rgba(5, 5, 4, .55); }
.guia {
  position: fixed; z-index: 31; width: min(20rem, calc(100% - 24px)); padding: 1rem 1rem .8rem;
  background: var(--marco-fondo); backdrop-filter: blur(8px); box-shadow: var(--marco-linea);
  font-size: .95rem; line-height: 1.45;
}
.guia.centro { translate: -50% -50%; }
.guia.arriba, .guia.debajo-de { translate: -50% 0; }
.guia.arriba-de { translate: -50% -100%; }
.guia:is(.arriba-de, .debajo-de)::after { content: ''; position: absolute; left: var(--flecha, 50%); translate: -50% 0; border: 7px solid transparent; }
.guia.arriba-de::after { top: 100%; border-top-color: var(--marco-fondo); border-bottom: 0; }
.guia.debajo-de::after { bottom: 100%; border-bottom-color: var(--marco-fondo); border-top: 0; }
.guia.entra { animation: guia-entra .28s var(--suave); }
@keyframes guia-entra { from { opacity: 0; scale: .96; } }
.guia-texto { margin: 0 0 .9rem; color: var(--tinta); }
.guia-pie { display: flex; align-items: center; gap: .4rem; }
.guia-cuenta { flex: 1; color: var(--tinta-suave); font-size: .8rem; }
.guia-pie button { border: 0; padding: .5em .95em; font: inherit; font-size: .9rem; cursor: pointer; }
.guia-saltar { background: none; color: var(--tinta-suave); }
.guia-saltar:hover { color: var(--tinta); }
.guia-sigue { background: var(--tinta); color: #15140f; font-weight: 700; }
.guia-sigue:hover { background: var(--acento); }
@media (prefers-reduced-motion: reduce) { .guia-aro { transition: none; } .guia.entra { animation: none; } }

/* ── Galería y obra terminada ── */
.entrada-terminada { margin: 0; color: var(--tinta-suave); }
:root:has(body.galeria) { scroll-snap-type: y mandatory; }
.galeria-cabeza { position: fixed; z-index: 5; top: 14px; left: 16px; display: flex; align-items: center; gap: 1rem; }
.galeria-marca svg { display: block; height: 46px; width: auto; filter: drop-shadow(0 0 8px rgba(0, 0, 0, .7)); }
.galeria-sub { margin: 0; color: var(--acento); font-size: 1rem; font-weight: 500; }
.galeria-indice { position: fixed; z-index: 5; right: 14px; top: 50%; translate: 0 -50%; }
.galeria-indice ol { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.galeria-indice a { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; color: var(--tinta-suave); font-size: .9rem; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(243, 239, 230, .25); transition: background .3s, color .3s; }
.galeria-indice a.actual { background: var(--tinta); color: #15140f; }
.obra { min-height: 100vh; min-height: 100dvh; scroll-snap-align: start; display: grid; place-items: center; align-content: center; gap: 2.2rem; padding: 5.5rem 3.5rem 3rem 1rem; }
.cilindro {
  --alto: min(36vh, 30vw); --prop: 4; --radio: calc(var(--alto) * var(--prop) / 6.2832);
  display: grid; place-items: center;
  width: min(100%, calc(var(--radio) * 2.3)); height: calc(var(--alto) * 1.4);
  perspective: calc(var(--radio) * 5);
  cursor: grab; touch-action: pan-y;
}
.cilindro.arrastrando { cursor: grabbing; }
.cilindro-giro { position: relative; width: 0; height: var(--alto); transform-style: preserve-3d; }
.franja {
  position: absolute; top: 0; left: calc(var(--alto) * var(--prop) / -2 / var(--franjas));
  width: calc(var(--alto) * var(--prop) / var(--franjas) + 1px); height: 100%;
  background-color: #1d1c17; background-repeat: no-repeat;
  background-size: calc(var(--franjas) * 100%) 100%;
  background-position: calc(var(--i) / (var(--franjas) - 1) * 100%) 0;
  transform: rotateY(calc(var(--i) * 360deg / var(--franjas))) translateZ(var(--radio));
}
.obra-datos { display: grid; justify-items: center; gap: .6rem; text-align: center; }
.obra-datos h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); line-height: 1.05; }
.obra-datos p { margin: 0 0 .4rem; color: var(--tinta-suave); }
/* ── Las obras en la entrada ── */
.entrada-obras { margin-top: 3.2rem; }
.entrada-obras h2 { margin: 0 0 1.2rem; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); font-weight: 700; }
.obra-tarjeta { gap: .8rem; }
.obra-tarjeta .entrada-acciones { margin: 0; gap: .8rem; }
.obra-tarjeta .entrada-botones { justify-content: flex-start; }
.obra-fechas { margin: -.5rem 0 0; color: var(--tinta-suave); font-size: .9rem; }
/* las cifras, en una sola fila también en el celular */
.obra-tarjeta .obra-cifras { flex-wrap: nowrap; justify-content: flex-start; gap: 0 clamp(.7rem, 3.2vw, 1.8rem); margin: 0; }
.obra-tarjeta .obra-cifras div { min-width: 0; align-items: flex-start; }
.obra-tarjeta .obra-cifras dd { font-size: clamp(1rem, .82rem + 1.1vw, 1.35rem); }
.obra-tarjeta .obra-cifras dt { font-size: clamp(.62rem, .56rem + .35vw, .8rem); line-height: 1.15; }
.obra-vista { display: block; text-decoration: none; }
.obra-vista[hidden] { display: none; }
.obra-tarjeta .obra-datos { justify-items: start; text-align: start; }
.obra-tarjeta h2 { margin: 0; font-size: clamp(1.15rem, 1rem + .8vw, 1.4rem); }
/* la imagen lleva sus botones adentro, abajo a la derecha */
.obra-imagen { position: relative; }
/* los botones, justo debajo de la imagen */
.obra-sobre { display: flex; justify-content: flex-end; gap: .4rem; margin-top: .5rem; }
.obra-sobre .control { height: 2.5rem; }
.obra-sobre .boton-icono { width: 2.5rem; }
.obra-sobre .boton-claro { background: var(--marco-fondo); backdrop-filter: blur(6px); }
.obra-sobre .boton-principal { padding-inline: 1.2em; font-size: .95rem; }
/* pie */
.entrada-pie { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.4rem; padding-block: 1.2rem; border-top: 1px solid rgba(243, 239, 230, .15); color: var(--tinta-suave); font-size: .9rem; scroll-snap-align: end; }
.entrada-pie p { margin: 0; }
.entrada-pie a { color: var(--tinta-suave); }
.entrada-pie .escribirnos { height: 2.4rem; margin-left: .4rem; }
.entrada-datos { display: grid; gap: 1rem; margin-top: .4rem; }
.js .entrada-datos:not(.abierta) { display: none; }
.obra-estado { margin-left: .4rem; color: var(--acento); font-size: .85rem; font-weight: 500; }
.obra-ultimo { color: var(--tinta-suave); font-size: .8rem; font-weight: 500; }
.obra-tarjeta .obra-cifras, .obra-tarjeta .obra-botones { justify-content: flex-start; }
/* tocar la obra también la abre: se ilumina al pasar */
.obra-vista .tira { transition: filter .3s, box-shadow .3s; }
.obra-vista:focus-visible { outline: none; }
.obra-vista:focus-visible .tira { box-shadow: inset 0 0 0 2px var(--acento); }
@media (any-hover: hover) {
  .obra-vista:hover .tira { filter: brightness(1.12); box-shadow: inset 0 0 0 1px rgba(243, 239, 230, .5); }
}
.obra-tarjeta .obra-cifras div { align-items: flex-start; }
.obra-cifras { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.6rem; margin: 0 0 .9rem; }
.obra-cifras div { display: flex; flex-direction: column-reverse; align-items: center; }
.obra-cifras dt { color: var(--tinta-suave); font-size: .8rem; }
.obra-cifras dd { margin: 0; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.obra-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.obra:fullscreen { background: var(--fondo); padding: 2rem; }
.obra:fullscreen .cilindro { --alto: min(58vh, 40vw); }
@media (max-width: 600px) { .obra:fullscreen .cilindro { --alto: min(40vh, 48vw); } }

/* ── Confirmar el aviso ── */
.confirmar { width: min(100% - 32px, 34rem); }
.entrada-caja.confirmar { display: block; }
.confirmar p { color: var(--tinta-suave); line-height: 1.6; }
.confirmar strong { color: var(--tinta); }
.confirmar-pie { margin-top: 2rem; font-size: .9rem; }
.galeria-vacia { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 1.2rem; padding: 1rem; text-align: center; color: var(--tinta-suave); }
.galeria-vacia a:not(.boton) { color: var(--tinta); }
@media (max-width: 600px) {
  .cilindro { --alto: min(30vh, 36vw); }
  .obra { padding-right: 3.2rem; }
}
@media (any-hover: hover) {
  .galeria-indice a:not(.actual):hover { color: var(--tinta); box-shadow: inset 0 0 0 1px rgba(243, 239, 230, .6); }
}

/* ── Modo admin: un aviso pequeño y discreto, bajo los logos ── */
.acd-modo-admin {
  position: fixed; z-index: 10; top: 72px; left: 50%; translate: -50% 0;
  margin: 0; padding: .2em .7em; max-width: calc(100% - 2rem);
  background: rgba(11, 12, 10, .6); color: var(--acento); font-size: .72rem; letter-spacing: .03em; text-align: center;
  box-shadow: inset 0 0 0 1px rgba(184, 175, 73, .35); pointer-events: none;
}
