/* Recuadro con el reel de cumpleaños (scripts/oslavy.py → reel). Chico con un loop mudo abajo a la derecha;
 * al pasar el mouse (o tocarlo) crece y pasa al reel completo con el botón de reserva. Prefijo rl-. */
.rl {
  --rl-cafe: #3A1F0D;
  --rl-rojo: #D9363F;
  position: fixed; right: 20px; bottom: 20px; z-index: 9990;
  width: 112px; aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden; background: var(--rl-cafe);
  box-shadow: 0 12px 34px rgba(36, 19, 7, .38), 0 0 0 3px #fff;
  transition: width .32s cubic-bezier(.2, .8, .2, 1), border-radius .32s, opacity .25s, transform .25s;
  font-family: "Raleway", system-ui, sans-serif;
}
.rl[hidden] { display: none; }
.rl.rl--oculto { opacity: 0; transform: translateY(20px); pointer-events: none; }
.rl.rl--grande { width: min(300px, calc(100vw - 40px)); border-radius: 22px; }
.rl video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rl__completo { opacity: 0; transition: opacity .2s; }
.rl--grande .rl__completo.rl--listo { opacity: 1; }
/* Toda la superficie abre el video (botón invisible encima del loop) */
.rl .rl__abrir, .rl .rl__abrir:hover, .rl .rl__abrir:focus { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.rl .rl__abrir:focus-visible { outline: 3px solid var(--rl-rojo); outline-offset: -3px; }
.rl--grande .rl__abrir { display: none; }
.rl__play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: rgba(255, 255, 255, .92); pointer-events: none; transition: opacity .2s; }
.rl__play::after { content: ""; position: absolute; left: 15px; top: 11px; border-left: 13px solid var(--rl-cafe); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.rl--grande .rl__play { opacity: 0; }
/* Controles del modo grande */
.rl__barra { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 10px; padding: 46px 14px 14px;
  background: linear-gradient(transparent, rgba(20, 10, 3, .78)); opacity: 0; transform: translateY(12px); transition: opacity .25s .08s, transform .25s .08s; pointer-events: none; }
.rl--grande .rl__barra { opacity: 1; transform: none; pointer-events: auto; }
.rl .rl__cta, .rl .rl__cta:visited, .rl .rl__cta:hover, .rl .rl__cta:focus { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; background: var(--rl-rojo); color: #fff; font: 700 17px/1.2 "Raleway", system-ui, sans-serif; text-decoration: none; }
.rl .rl__cta:hover { background: #B92A33; }
.rl .rl__ic, .rl .rl__ic:hover, .rl .rl__ic:focus { position: absolute; z-index: 3; top: 10px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 10, 3, .55); color: #fff; cursor: pointer; }
.rl .rl__ic:focus-visible { outline: 2px solid #fff; }
.rl .rl__ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rl__cerrar { right: 10px; }
.rl__sonido { left: 10px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.rl--grande .rl__sonido { opacity: 1; pointer-events: auto; }
/* Chico: la × es más chica y está en la esquina */
.rl:not(.rl--grande) .rl__cerrar { top: 5px; right: 5px; width: 24px; height: 24px; }
.rl:not(.rl--grande) .rl__cerrar svg { width: 13px; height: 13px; }
.rl__sonido .rl__on, .rl--sonido .rl__sonido .rl__off { display: none; }
.rl--sonido .rl__sonido .rl__on { display: block; }
@media (max-width: 600px) {
  .rl { right: 12px; bottom: 12px; width: 92px; }
}
/* En celular y tableta las actividades tienen la barra fija con precio y reserva (actividad.css, .pa-barra): encima */
@media (max-width: 860px) {
  body:has(.pa-barra) .rl { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(.pa-barra) .rl.rl--grande { width: min(280px, calc(100vw - 24px)); max-height: calc(100vh - 110px); }
}
@media (prefers-reduced-motion: reduce) { .rl, .rl__barra, .rl__completo { transition: none; } }
