/* =========================================================
   ACADEMY FX — mismas animaciones que la web principal,
   adaptadas a academy.html (usa también motion.css y experience.css)
   ========================================================= */

/* Hero: entrada en cascada (solo si JS está activo: html.m-fx) */
html.m-fx .m-ac-in { opacity: 0; transform: translateY(28px); filter: blur(10px); }
html.m-fx .m-ac-in.m-in, html.m-fx-done .m-ac-in {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 1.1s cubic-bezier(.22,1,.36,1), transform 1.1s cubic-bezier(.22,1,.36,1), filter 1.1s ease;
}
/* Vídeo del hero: zoom con el scroll + profundidad con el ratón */
.m-ac-hero video { transform-origin: 50% 40%; will-change: transform;
  transform: translate3d(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -12px), 0) scale(calc(1.06 + var(--hs, 0) * 0.15)); }
.m-ac-hero .m-ac-content { will-change: transform, opacity; }
.m-ac-hero h1 { transform: translate3d(calc(var(--mx, 0) * 12px), calc(var(--my, 0) * 8px), 0); }

/* Títulos de sección letra a letra (igual que la web principal) */
.split-title { overflow: visible; overflow-y: clip; overflow-clip-margin: 0.1em; padding-right: 0.12em; }
.split-title .letter { display: inline-block; opacity: 0; transform: translateY(60%) rotate(4deg);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1); }
.split-title.active .letter { opacity: 1; transform: none; }
html.m-fx-done .split-title .letter { opacity: 1; transform: none; }

/* Tarjetas flotantes del hero de la Academy */
.m-ac-hero .m-float-1 { top: 22%; right: 4%; left: auto; }
.m-ac-hero .m-float-2 { bottom: 12%; left: 4%; right: auto; top: auto; }
.m-avatars { display: flex; flex-shrink: 0; }
.m-avatars img { width: 34px !important; height: 34px !important; border-radius: 50% !important; border: 2px solid #0A0A0F; margin-left: -10px; object-fit: cover; }
.m-avatars img:first-child { margin-left: 0; }
.m-float .m-icon { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(143,182,255,.15); border: 1px solid rgba(143,182,255,.4); color: #8FB6FF; }
.m-stars { color: #8FB6FF; letter-spacing: 2px; font-size: 10px; }

/* Tilt en tarjetas de programas: necesitan ser contenedor del brillo */
.m-tilt { position: relative; }

/* Viñetas estilo tarjeta flotante: cristal redondeado en cajas, botones y pestañas */
html .glass {
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.18);
}
html .glass:not([class*="border-[#8FB6FF]"]) { border-color: rgba(255,255,255,.18); }
html .glass .glass { border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
html .m-tilt, html .m-tilt .m-glare { border-radius: 18px; }

html a.font-heading[class*="border"], html button.font-heading[class*="border"] {
  border-radius: 14px;
  background-color: rgba(255,255,255,.06);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 14px 34px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.22);
}
html a.font-heading.text-played-gold[class*="border"], html button.font-heading.text-played-gold[class*="border"] {
  background-color: rgba(143,182,255,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.35), 0 0 24px rgba(143,182,255,.12), inset 0 1px 0 rgba(143,182,255,.3);
}
html a.font-heading[class*="border"]:hover, html button.font-heading.text-played-gold[class*="border"]:hover { background-color: #8FB6FF; color: #000; border-color: #8FB6FF; }
html a.font-heading.border-white:hover, html button.font-heading.border-white:hover { background-color: #fff; color: #000; border-color: #fff; }

html .branch-tab { border-radius: 18px; backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  background-color: rgba(255,255,255,.06); }
html .branch-tab.active { background-color: #8FB6FF;
  box-shadow: 0 0 40px rgba(143,182,255,.4), 0 20px 50px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.5); }

html input.border, html select.border, html textarea.border { border-radius: 12px; }
html a[href="#inscripcion"].border, html a.font-heading[class*="bg-[#8FB6FF]"], html button[type="submit"] { border-radius: 14px; }
html a.font-heading[class*="bg-[#8FB6FF]"] { box-shadow: 0 10px 26px rgba(0,0,0,.35), 0 0 22px rgba(143,182,255,.25), inset 0 1px 0 rgba(255,255,255,.45); }
html a.font-heading[class*="bg-[#8FB6FF]"]:hover { background-color: #fff; color: #000; }
