/* Firma de Bytenauta, común a todas las estéticas: una pegatina pequeña y callada al pie. Su marca real (negro #1A1816,
   naranja #FC4A02, Atkinson Hyperlegible Mono) con un troquel nacarado que apenas se separa del papel. El brillo va en
   color-dodge sobre negro puro y suave: el fondo no cambia y solo se avivan logo y letras, así el contraste nunca baja.
   movimiento-firma.js mueve --holo-* y --tilt-*: un vaivén de menos de 5 s al pegarse o al tocarla, que sale de los
   valores de aquí (el reposo) y vuelve a ellos, y el ratón, el desplazamiento o el giroscopio. */
.firma { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; margin-top: 48px; perspective: 800px; }
.firma-pegatina {
  --holo-x: 30%; --holo-y: 50%; --holo-a: 40deg; --tilt-x: 0deg; --tilt-y: 0deg;
  position: relative; isolation: isolate; display: block; width: max-content; max-width: min(100%, 300px); border-radius: 10px;
  color: #F4F3EA; text-decoration: none; -webkit-tap-highlight-color: transparent;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(-1deg);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.firma-pegatina::before { /* troquel nacarado + canto + sombra corta, como el resto de pegatinas */
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 12px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, 0) 62%)
      var(--holo-x) var(--holo-y) / 300% 300% no-repeat,
    conic-gradient(from var(--holo-a), #F8F4EE, #F1DCE5 14%, #DCEFE8 28%, #F6EBD0 42%, #F8F4EE 56%, #E3DCF4 70%, #F2E1D0 84%, #F8F4EE);
  box-shadow: 0 0 0 1px rgba(42, 23, 51, .3), 0 3px 0 1px rgba(42, 23, 51, .12);
}
.firma-cara {
  position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center;
  padding: 6px 12px; background: #000; border-radius: 8px; /* negro puro: el color-dodge no lo toca */
}
.firma-cara::after { /* devuelve el negro de la marca sin apagar el brillo: screen de #1A1816 sobre #000 = #1A1816 */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: #1A1816; mix-blend-mode: screen;
}
.firma-marca { display: grid; justify-items: center; gap: 2px; text-align: center; }
.firma-hecho { font: 500 9.5px/1.25 "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace; color: #D9D4CD; } /* 12:1 */
.firma-logo { display: block; width: 78px; max-width: 100%; height: auto; } /* naranja sobre negro 5.2:1 */
.firma-web {
  display: inline-flex; align-items: center; gap: 3px; color: #FF7A4D; /* 6.9:1 */
  font: 700 10px/1.25 "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace;
  text-decoration: underline; text-underline-offset: 3px;
}
.firma-web .ico { width: 11px; height: 11px; stroke-width: 2.4; }
.firma-brillo {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: color-dodge;
  background: linear-gradient(115deg, transparent 30%, rgba(250, 189, 0, .45) 42%, rgba(255, 227, 110, .5) 50%,
    rgba(250, 189, 0, .45) 58%, transparent 70%); /* brillo dorado, suave */
  background-size: 300% 300%; background-position: var(--holo-x) var(--holo-y);
}
.firma-pegatina.viva { transition: none; }
.firma-pegatina.pegada { animation: pegar-firma 560ms cubic-bezier(.2, .8, .2, 1); }
@keyframes pegar-firma {
  from { transform: translateY(-14px) rotate(-8deg) scale(1.12); }
  to { transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(-1deg); }
}
.firma-pegatina:focus-visible { outline-offset: 12px; }
@media (prefers-reduced-motion: reduce) {
  .firma-pegatina { transition: none; }
  .firma-pegatina.pegada { animation: none; }
}

/* Los enlaces legales bajo la pegatina (src/legal/enlaces.js): en el color del texto de la página de cada mundo, que ya
   contrasta con su fondo, subrayados y con dianas de 44 px de alto y de ancho (en inglés, «Terms» sola mide 43,4). */
.firma-legales ul { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 20px; margin: 8px 0 0; padding: 0; list-style: none; }
.firma-legales a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: inherit;
  font-size: .9375rem; font-weight: 600; text-underline-offset: 4px;
}
