/* suscripcion.css v2.3.0 — Textdomain: renacer-suscriptores */

/* Variables base */
:root {
  --rs-anim-speed: 9000ms;
  --rs-marquee-speed: 22s;
  --rs-anim-intensity: 1;
}

#rs-top-bar.rs-anim-mobile-off::before,
#rs-top-bar.rs-anim-mobile-off::after {
  animation: none !important;
  opacity: 0 !important;
}

@media (max-width: 768px) {
  #rs-top-bar.rs-anim-mobile-off::before,
  #rs-top-bar.rs-anim-mobile-off::after {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* Respeta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  #rs-top-bar::before,
  #rs-top-bar::after,
  .rs-free-msg.rs-text-marquee .rs-marquee-inner {
    animation: none !important;
  }
}

/* Contenedor del banner */
.rs-top-bar {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 10px 14px;
  background: var(--rs-bar-bg, #b30000); /* asume paleta existente */
  color: var(--rs-bar-fg, #fff);
}
.rs-fixed-bar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  text-align: center;
}
.rs-open-modal {
  position: relative;
  z-index: 2;
  cursor: pointer;
}

/* Capas de animación (overlays) */
#rs-top-bar::before,
#rs-top-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: calc(0.55 * var(--rs-anim-intensity));
}

/* Mapear intensidades: low=0.6, med=1, high=1.4 (se setea por JS) */

/* ============ MODOS ============ */

/* none: sin animación (no reglas) */

/* gradient-pan */
#rs-top-bar.rs-anim-gradient-pan::before {
  background: linear-gradient( 90deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.15),
    rgba(255,255,255,0.06)
  );
  background-size: 300% 300%;
  animation: rs-gradient-pan var(--rs-anim-speed) linear infinite;
}

/* shine (diagonal) */
#rs-top-bar.rs-anim-shine::after {
  background: linear-gradient( 120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.25) 35%,
    rgba(255,255,255,0) 70%
  );
  transform: translateX(-100%);
  animation: rs-shine calc(var(--rs-anim-speed) * 0.66) linear infinite;
}

/* aurora (luces suaves) */
#rs-top-bar.rs-anim-aurora::before {
  background:
    radial-gradient( 120px 120px at 20% 30%, rgba(255,255,255,0.18), transparent 60% ),
    radial-gradient( 180px 180px at 80% 70%, rgba(255,255,255,0.12), transparent 60% ),
    radial-gradient( 160px 160px at 60% 20%, rgba(255,255,255,0.10), transparent 60% );
  animation: rs-aurora 14s ease-in-out infinite alternate;
}

/* blobs (formas líquidas) */
#rs-top-bar.rs-anim-blobs::before {
  background:
    radial-gradient( 140px 140px at 15% 40%, rgba(255,255,255,0.14), transparent 60% ),
    radial-gradient( 200px 200px at 70% 60%, rgba(255,255,255,0.10), transparent 60% ),
    radial-gradient( 160px 160px at 40% 20%, rgba(255,255,255,0.12), transparent 60% );
  animation: rs-blobs 12s ease-in-out infinite alternate;
  filter: saturate(1.05);
}

/* stripes (franjas diagonales) */
#rs-top-bar.rs-anim-stripes::before {
  background: repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.08) 0px,
    rgba(255,255,255,0.08) 18px,
    rgba(255,255,255,0.0) 18px,
    rgba(255,255,255,0.0) 36px
  );
  background-size: 200% 100%;
  animation: rs-stripes 10s linear infinite;
}

/* glass (glassmorphism + ruido sutil) */
#rs-top-bar.rs-anim-glass::before {
  backdrop-filter: blur(2px);
  background: rgba(255,255,255,0.06);
  animation: rs-glass 12s ease-in-out infinite alternate;
  opacity: calc(0.35 * var(--rs-anim-intensity));
}
#rs-top-bar.rs-anim-glass::after {
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: calc(0.15 * var(--rs-anim-intensity));
  animation: rs-glass-noise 20s linear infinite;
}

/* particles (puntos discretos con parallax leve) */
#rs-top-bar.rs-anim-particles::before {
  background-image:
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 10px 10px;
  animation: rs-particles 16s linear infinite;
}

/* ============ TEXTO CORREDIZO SOLO EN .rs-free-msg ============ */

.rs-free-msg {
  display: inline-block;
  position: relative;
}
.rs-free-msg.rs-text-marquee {
  overflow: hidden;
  white-space: nowrap;
  display: block;
  max-width: 100%;
}
.rs-free-msg.rs-text-marquee .rs-marquee-inner {
  display: inline-block;
  padding-left: 100%;
  will-change: transform;
  animation: rs-marquee var(--rs-marquee-speed, 22s) linear infinite;
}

/* ============ MODAL BASE (mínimo para no romper estilos existentes) ============ */
.rs-modal[hidden] { display: none !important; }
.rs-modal {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
}
.rs-modal-content {
  background: #fff; color: #111; padding: 20px; border-radius: 12px; min-width: 320px;
}

/* ============ KEYFRAMES ============ */

@keyframes rs-gradient-pan {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes rs-shine {
  0% { transform: translateX(-120%) rotate(0.001deg); }
  100% { transform: translateX(120%) rotate(0.001deg); }
}
@keyframes rs-aurora {
  0% { transform: translate(-2%, -2%) scale(1.02); }
  100% { transform: translate(2%, 2%) scale(1.06); }
}
@keyframes rs-blobs {
  0% { transform: translate(-3%, 2%) scale(1); }
  100% { transform: translate(3%, -2%) scale(1.05); }
}
@keyframes rs-stripes {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
@keyframes rs-glass {
  0% { opacity: calc(0.28 * var(--rs-anim-intensity)); }
  100% { opacity: calc(0.42 * var(--rs-anim-intensity)); }
}
@keyframes rs-glass-noise {
  0% { background-position: 0 0; }
  100% { background-position: 100% 100%; }
}
@keyframes rs-particles {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-8px) translateX(8px); }
}
@keyframes rs-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
