/* Anillo 3D de tarjetas (componente compartido, ver anillo.js). Se ve desde adentro; gira solo, con el scroll y arrastrando.
   Uso: <div class="anillo" data-anillo data-forma="16/10" data-alto="70vh"> <div class="an-carta">…</div> × N </div> */
.anillo { position: relative; height: var(--an-alto, clamp(380px, 66vh, 700px)); perspective: 1100px; perspective-origin: 50% 46%; cursor: grab; touch-action: pan-y; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%); }
.anillo.arrastra { cursor: grabbing; }
.an-giro { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.an-carta { position: absolute; width: var(--w); height: calc(var(--w) / var(--forma, 1.6)); left: calc(var(--w) / -2); top: calc(var(--w) / var(--forma, 1.6) / -2);
  border-radius: 18px; overflow: hidden; background: #eef1fb; backface-visibility: hidden; box-shadow: 0 30px 50px -30px rgba(10,20,80,.45), 0 0 0 1px rgba(10,20,80,.06); }
.an-carta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; pointer-events: none; }
.an-carta .an-rotulo { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--tinta); font: 600 12px/1 var(--fb); box-shadow: 0 6px 16px -8px rgba(10,20,80,.4); }
@media (max-width: 760px) { .anillo { height: var(--an-alto-m, clamp(300px, 52vh, 460px)); perspective: 760px; } }
