/* Firma visual: logo 3D. Desde 2026-11-29, centrado bajo la presentación, como paso al trabajo (antes junto al cierre) */
.sig-intro { position: relative; z-index: 4; display: grid; place-items: center; padding: clamp(8px, 2vh, 24px) 0 0; overflow: visible; pointer-events: none; }
.sig-intro .sig { justify-self: center; width: min(62vw, 400px); gap: 4px; pointer-events: auto; }
.sig-intro .sig-stage { aspect-ratio: 1 / .9; }   /* ajustado al logo: casi sin hueco arriba y abajo */
.sig-intro .sig-stage::before { inset: 10%; transition: opacity .6s; }
.sig.is-fallen .sig-stage::before { opacity: 0; }
/* El lienzo es mucho mayor que el logo: ocupa todo el ancho y se sale por arriba y por abajo, así las piezas pueden
   abrirse hasta fuera de la pantalla y pasar por encima del vídeo de Benfica (2026-11-29). No recibe clics. */
.sig-intro .sig-stage canvas { inset: auto; left: calc(50% - 50vw); width: 100vw; top: -60%; height: calc(160% + 100vh); pointer-events: none; }
.sig-intro .sig figcaption { justify-content: center; width: min(100vw - 2 * var(--gutter), 520px); align-self: center; position: relative; z-index: -1; }
.sig-stage { touch-action: pan-y; }
.closing.has-sig { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(28px, 5vw, 96px); }
.sig { margin: 0; justify-self: end; width: min(100%, 480px); display: flex; flex-direction: column; gap: 6px; }
.sig-stage { position: relative; aspect-ratio: 1 / .92; }
.sig-stage::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(181, 0, 15, .16), transparent); filter: blur(24px); pointer-events: none; }
.sig-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sig-fallback { position: absolute; inset: 22%; width: 56%; height: 56%; object-fit: contain; transition: opacity .6s; }
.sig.is-3d .sig-fallback { opacity: 0; }
.sig figcaption { will-change: transform; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 14px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 0 6%; }
.sig-rule { flex: 1; height: 1px; transform-origin: left center; background: linear-gradient(90deg, var(--red), rgba(242, 240, 235, .12)); }
@media (max-width: 760px) {
  .closing.has-sig { grid-template-columns: 1fr; }
  .sig { justify-self: center; width: min(100%, 340px); }
  .sig-intro .sig { width: min(70vw, 300px); }
}
.closing .closing-copy, .closing.has-sig .closing-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; min-width: 0; }
/* Portada: lista de proyectos sin números delante */
.home .card-text { grid-template-columns: minmax(0, 1fr) auto; }
/* Unión cabecera ↔ selección: burbuja que abre el espacio al pasar (ver sig.js). En reposo, invisible. */
.seam { position: relative; z-index: 1; height: clamp(36px, 6vh, 64px); pointer-events: none; }
.seam-clip { position: absolute; left: 0; top: -70px; width: 100%; height: 0; overflow: hidden; }
.seam canvas { position: absolute; left: 0; top: 0; width: 100%; display: block; }
.home .selected { position: relative; z-index: 2; will-change: transform; }
.home .hero { background: #0a0a0a; }
