/* Base común de las plantillas premium: entrada que se salta con un toque, círculo con la foto real y anillo 3D de fotos.
   Los colores salen siempre de la tienda (--accent, --bg, --ink...), así que cambian cuando el dueño cambia sus colores. */
.intro { display: none; }
.js:not(.intro-off) .intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--bg); overflow: hidden; touch-action: manipulation; cursor: pointer;
  transition: transform .75s var(--ease-in-out, ease-in-out); animation: intro-fuera 0s 5s forwards; }   /* si el JavaScript no llega a quitarla, se va sola a los 5 s */
@keyframes intro-fuera { to { visibility: hidden; pointer-events: none; } }
.js.intro-off .intro { display: grid; position: fixed; inset: 0; z-index: 90; background: var(--bg); transform: translateY(-101%); pointer-events: none; transition: transform .75s var(--ease-in-out, ease-in-out); }
.intro-on { overflow: hidden; }
.intro-in { display: grid; justify-items: center; gap: 22px; padding: 24px; text-align: center; }
.intro-name { font: 500 clamp(1.7rem, 8vw, 3rem)/1 var(--font-display); color: var(--ink); max-width: 14ch; overflow-wrap: anywhere; }
.intro-deco { display: contents; }
.intro-skip { position: absolute; bottom: calc(18px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); min-height: 44px; padding: 0 22px; white-space: nowrap; border-radius: 99px; background: transparent; color: var(--ink-2); font: 600 .8125rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: 0; animation: intro-skip .5s ease-out 1s forwards; cursor: pointer; }
.intro-skip:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; opacity: 1; }
@keyframes intro-skip { to { opacity: .8; } }
/* Círculo con la foto real (o el logo, o la inicial) */
.md, .in-md { display: block; position: relative; border-radius: 50%; overflow: hidden; aspect-ratio: 1; background: var(--soft); }
.md-img, .in-md-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.md-logo .md-img, .in-md-logo .in-md-img { object-fit: contain; padding: 14%; background: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.md-letra, .in-md-letra { display: grid; place-items: center; }
.md-letra b, .in-md-letra b { font: 500 5.5rem/1 var(--font-display); color: var(--accent-text); }
/* Anillo de fotos: sin JavaScript es una tira que se desliza (scroll-snap); con JavaScript (.ring-on) pasa a anillo 3D que gira con el scroll y el dedo (--rot lo mueve premium.js) */
.anillo { padding: 56px 0 24px; text-align: center; overflow: hidden; }
.an-cab { display: grid; gap: 8px; padding: 0 20px; }
.an-cab small { font: 700 .8125rem/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--accent-text); }
.an-cab h2 { font-size: clamp(2rem, 8vw, 3rem); font-weight: 500; }
.an-escena { --w: clamp(150px, 46vw, 220px); margin-top: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.an-ring { display: flex; gap: 12px; padding: 4px 20px 18px; width: max-content; }
.an-item { flex: none; width: var(--w); aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: var(--r-card, 18px); overflow: hidden; background: var(--soft); scroll-snap-align: center; box-shadow: 0 24px 44px -22px rgb(0 0 0 / .8), 0 0 0 1px var(--line); }
.an-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.an-hint { margin-top: 4px; font: 500 .875rem/1.3 var(--font-body); color: var(--ink-2); }
.ring-on .an-escena { position: relative; height: calc(var(--w) * 1.25 + 30px); overflow: visible; perspective: 1000px; touch-action: pan-y; cursor: grab; }
.ring-on .an-ring { position: absolute; inset: 0; display: block; width: auto; padding: 0; transform-style: preserve-3d; transform: rotateY(var(--rot, 0deg)); }
.ring-on .an-item { pointer-events: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotateY(calc(var(--i) * 360deg / var(--n))) translateZ(calc(var(--w) * var(--rk))); backface-visibility: hidden; }
@media (min-width: 900px) { .an-escena { --w: 230px; } }
@media (prefers-reduced-motion: reduce) { .js:not(.intro-off) .intro, .js.intro-off .intro { display: none; } .ring-on .an-ring { transition: none; } }
/* El brillo de carga de las tarjetas (de base.css) en las premium no es infinito: 5 pasadas y se detiene */
.js[data-premium] .card-media:has(img.card-img:not(.is-loaded))::after { animation-iteration-count: 5; }
