/* Botón flotante de la ruleta y el cupón sorpresa (js/ruleta_flotante.js). Prefijo .rl-fab ; el CSS de la ventana (ruleta.css) se carga al abrirla.
   Va abajo a la izquierda: a la derecha están los asistentes de Quetzalito. */
.rl-fab { position: fixed; left: 12px; bottom: var(--rl-fab-bottom, 14px); z-index: 39; font-family: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .35s, transform .35s cubic-bezier(.2,1.4,.4,1); pointer-events: none; }
.rl-fab[hidden] { display: none; }
.rl-fab.rl-fab-ok { opacity: 1; transform: none; pointer-events: auto; }
.rl-fab.rl-fab-oculto { opacity: 0; transform: translateY(14px); pointer-events: none; }
.rl-fab-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 52px; min-width: 52px; padding: 0 16px 0 12px; border: 2px solid rgba(255,255,255,.85); border-radius: 999px; cursor: pointer; color: #fff; font: inherit; font-weight: 800; font-size: .85rem; background: linear-gradient(135deg, #FF1F6D, #7C3AED); box-shadow: 0 8px 22px -4px rgba(124,58,237,.7); -webkit-tap-highlight-color: transparent; }
.rl-fab-btn:hover { filter: brightness(1.1); }
.rl-fab-btn:active { transform: scale(.95); }
.rl-fab-btn:focus-visible { outline: 3px solid #00E676; outline-offset: 2px; }
.rl-fab-ico { font-size: 1.5rem; line-height: 1; display: inline-block; }
.rl-fab-listo .rl-fab-ico { animation: rlFabMenea 2.6s ease-in-out infinite; transform-origin: 50% 80%; }
.rl-fab-listo .rl-fab-btn::before { content: ''; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid #FF1F6D; animation: rlFabOnda 1.8s ease-out infinite; pointer-events: none; }
.rl-fab-n { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 900; color: #04210f; background: #00E676; border: 2px solid #fff; border-radius: 999px; }
.rl-fab-n[hidden] { display: none; }
/* Compacto (carrito y ficha de producto): solo el ícono, para no distraer de la compra */
.rl-fab-compacto .rl-fab-txt { display: none; }
.rl-fab-compacto .rl-fab-btn { width: 48px; height: 48px; padding: 0; justify-content: center; }
.rl-fab-burbuja { position: relative; max-width: 230px; padding: 10px 28px 10px 12px; color: #F0F6FC; background: #0D1117; border: 1px solid rgba(0,230,118,.55); border-radius: 14px 14px 14px 4px; box-shadow: 0 10px 26px rgba(0,0,0,.35); font-size: .8rem; line-height: 1.3; animation: rlFabBurbuja .4s cubic-bezier(.2,1.4,.4,1); }
.rl-fab-burbuja[hidden] { display: none; }
.rl-fab-burbuja b { display: block; color: #00E676; font-size: .85rem; }
.rl-fab-bx { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.12); color: #fff; font-size: .9rem; line-height: 1; }
.rl-fab-burbuja-txt { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; text-align: left; }
@keyframes rlFabMenea { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-14deg); } 84% { transform: rotate(12deg); } 92% { transform: rotate(-8deg); } }
@keyframes rlFabOnda { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes rlFabBurbuja { from { opacity: 0; transform: translateY(8px) scale(.9); } }
@media (min-width: 768px) { .rl-fab { left: 18px; bottom: 18px; } }
@media print { .rl-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .rl-fab, .rl-fab * { animation: none !important; transition: none !important; } }
