/* =========================================================
   EXPERIENCE — 5 efectos inspirados en el vídeo de referencia
   1 Profundidad con el ratón (hero)
   2 Tarjetas de cristal flotantes (hero, escritorio grande)
   3 Aura que late a 124 BPM (Booking)
   4 Barrido de tinta B/N → color (Galería)
   5 Carrusel 3D en abanico (Supports y Otros eventos)
   ========================================================= */

/* ---------- 1. Profundidad ---------- */
/* Profundidad: el logo sigue al ratón por delante del vídeo */
.m-hero-logo img { transform: translate3d(calc(var(--mx, 0) * 14px), calc(var(--my, 0) * 10px), 0); }

/* ---------- 2. Tarjetas de cristal flotantes ---------- */
#top { position: relative; }
.m-float { position: absolute; z-index: 5; display: none; width: 236px; text-decoration: none; color: #fff;
  transform: translate3d(calc(var(--mx, 0) * var(--d) * 1px), calc(var(--my, 0) * var(--d) * 1px + var(--hs, 0) * var(--d) * -14px), 0);
  opacity: 0; transition: opacity 1.2s ease; }
.m-float.m-in { opacity: 1; }
@media (min-width: 1280px) { .m-float { display: block; } }
.m-float-1 { top: 16%; right: 3.5%; --d: 26; }
.m-float-2 { bottom: 9%; left: 4.5%; --d: 16; }
.m-float .m-card {
  display: flex; gap: 12px; align-items: center; padding: 10px 14px 10px 10px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 16px;
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25);
  animation: mBob 7s ease-in-out infinite; transition: border-color .3s, background-color .3s;
}
.m-float-2 .m-card { animation-duration: 8.5s; animation-delay: -3s; }
.m-float:hover .m-card { border-color: #D9C27E; background: rgba(217,194,126,.12); }
.m-float img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.m-float .k { display: block; font: 700 9px/1.2 'Inter', sans-serif; letter-spacing: .28em; text-transform: uppercase; color: #D9C27E; }
.m-float .t { display: block; font-family: 'Archivo Black', sans-serif; font-size: 13px; text-transform: uppercase; line-height: 1.2; margin-top: 4px; }
.m-float .s { display: block; font: 400 11px/1.3 'Inter', sans-serif; color: rgba(255,255,255,.7); margin-top: 2px; }
@keyframes mBob { 0%,100% { transform: translateY(0) rotate(-.6deg); } 50% { transform: translateY(-10px) rotate(.6deg); } }

/* ---------- 3. Aura de Booking a 124 BPM (1 beat = 0.4839s) ---------- */
#booking { position: relative; isolation: isolate; }
.m-aura { position: absolute; left: 50%; top: 22%; width: min(900px, 100%); aspect-ratio: 1; transform: translate(-50%, -50%);
  z-index: -1; pointer-events: none; }
.m-aura-core, .m-aura-ring { position: absolute; inset: 0; border-radius: 50%; }
.m-aura-core {
  background: radial-gradient(circle at 50% 50%, rgba(217,194,126,.55) 0%, rgba(140,90,220,.35) 28%, rgba(60,30,120,.18) 48%, transparent 66%);
  filter: blur(30px); opacity: .55; transform: scale(.8); transition: opacity .8s ease, transform 1.2s cubic-bezier(.22,1,.36,1);
}
.m-aura-ring { border: 1.5px solid rgba(217,194,126,.55); opacity: 0; transform: scale(.35); }
#booking.m-live .m-aura-core { animation: mKick .4839s cubic-bezier(.2,.8,.3,1) infinite; }
#booking.m-live .m-aura-ring { animation: mRing 1.9355s cubic-bezier(.1,.7,.3,1) infinite; }
#booking.m-open .m-aura-core { opacity: .95; transform: scale(1.12); }
@keyframes mKick { 0% { scale: 1.07; } 35% { scale: 1; } 100% { scale: 1; } }
@keyframes mRing { 0% { opacity: .7; transform: scale(.35); } 100% { opacity: 0; transform: scale(.95); } }
#booking form.glass { background: rgba(0,0,0,.45); }

/* ---------- 4. Galería: barrido de tinta B/N → color ---------- */
.m-ink-ready .m-ink-base { filter: grayscale(1) contrast(1.1) brightness(.85); }
.m-ink-item .m-ink {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none;
  -webkit-mask-image: var(--ink-mask); mask-image: var(--ink-mask);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 1.6s cubic-bezier(.65,0,.25,1), mask-position 1.6s cubic-bezier(.65,0,.25,1), transform .7s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--m-delay, 0s), var(--m-delay, 0s), 0s;
}
.m-ink-item.m-inked .m-ink { -webkit-mask-position: 0 0; mask-position: 0 0; }
.m-ink-item:hover .m-ink { transform: scale(1.05); }

/* ---------- 5. Carrusel 3D en abanico ---------- */
.m-cover { perspective: 1100px; perspective-origin: 50% 50%; }
[data-testi-track].m-cover > * { transform-style: preserve-3d; will-change: transform; transition: transform .15s linear, opacity .2s linear, filter .2s linear, border-color .3s ease; }
#supports-track.m-cover > *, #flyers-track.m-cover > * { background-color: #0a0a0a; transform-style: preserve-3d; will-change: transform; transition: transform .15s linear, opacity .2s linear, filter .2s linear, border-color .3s ease; }
#supports-track.m-cover > .is-center, #flyers-track.m-cover > .is-center, [data-testi-track].m-cover > .is-center { box-shadow: 0 25px 60px rgba(0,0,0,.6), 0 0 30px rgba(217,194,126,.18); }

/* Solo frenamos lo intrusivo: el latido y el flotar */
@media (prefers-reduced-motion: reduce) {
  #booking.m-live .m-aura-core, #booking.m-live .m-aura-ring { animation: none; }
  .m-float .m-card { animation: none; }
}
