/*
 * Mejoras progresivas de experiencia · XAMANA
 * No cambia estructura, contenido, paleta ni tipografias.
 * Si JavaScript no carga, la pagina conserva su estado original.
 */
html.xamana-ux-ready .xamana-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 700ms cubic-bezier(.22,1,.36,1), transform 700ms cubic-bezier(.22,1,.36,1);
  transition-delay: var(--xamana-reveal-delay, 0ms);
}
html.xamana-ux-ready .xamana-reveal.xamana-reveal--visible {
  opacity: 1;
  transform: translate3d(0,0,0);
}
html.xamana-ux-ready #hero-copy-block {
  animation: xamanaHeroEntry 900ms cubic-bezier(.22,1,.36,1) both;
}
@keyframes xamanaHeroEntry {
  from { opacity: 0; transform: translate3d(0,18px,0); }
  to { opacity: 1; transform: translate3d(0,0,0); }
}
a, button, [role="button"] {
  -webkit-tap-highlight-color: rgba(197,160,89,.18);
}
a:focus-visible, button:focus-visible, [role="button"]:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid #E6C881;
  outline-offset: 4px;
}
.btn-primario, .premium-btn {
  will-change: transform;
}
.btn-primario:active, .premium-btn:active {
  transform: translateY(1px) scale(.985);
}
#xamana-back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 88px));
  z-index: 48;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(197,160,89,.38);
  border-radius: 999px;
  background: rgba(22,19,16,.9);
  color: #E6C881;
  box-shadow: 0 12px 30px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease, border-color 220ms ease;
}
#xamana-back-to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#xamana-back-to-top:hover {
  border-color: rgba(230,200,129,.78);
  transform: translateY(-2px);
}
#xamana-back-to-top svg { width: 19px; height: 19px; }
html.xamana-page-leaving body {
  opacity: 0;
  transition: opacity 180ms ease;
}
@media (max-width: 767px) {
  #xamana-back-to-top {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(82px, calc(env(safe-area-inset-bottom) + 82px));
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.xamana-ux-ready .xamana-reveal,
  html.xamana-ux-ready .xamana-reveal.xamana-reveal--visible,
  html.xamana-ux-ready #hero-copy-block,
  html.xamana-page-leaving body,
  #xamana-back-to-top {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
