/* ByFlow — Trial gratuito del modo Musica.
   El contador tiene que verse sin gritar: informa, y solo se pone urgente
   cuando de verdad queda poco. */

.yt-trial {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
}

.yt-trial-count {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  color: var(--g, #00ff99);
  font-variant-numeric: tabular-nums;
}

.yt-trial-copy { color: var(--sub); }

.yt-trial.poco { border-color: rgba(255, 204, 0, .4); background: rgba(255, 204, 0, .08); }
.yt-trial.poco .yt-trial-count { color: var(--a, #ffcc00); }

.yt-trial.agotado { border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .1); }
.yt-trial.agotado .yt-trial-copy strong { color: #fff; }

.yt-trial-cta {
  margin-left: auto;
  flex: none;
  padding: 6px 12px;
  border: none;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--a, #ffcc00), #ff9900);
  color: #111;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
}

.yt-trial-cta:hover { filter: brightness(1.08); }

/* ── Paywall ──────────────────────────────────────────────────── */

.yt-trial-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 4, 10, .84);
  backdrop-filter: blur(12px);
}

.yt-trial-modal.open { display: flex; }

.yt-trial-sheet {
  position: relative;
  max-width: 440px;
  width: 100%;
  padding: 32px 28px 26px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(255, 204, 0, .16), transparent 62%),
    var(--card, #14141c);
  text-align: center;
}

.yt-trial-badge {
  display: inline-block;
  padding: 5px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 204, 0, .5);
  color: var(--a, #ffcc00);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

.yt-trial-sheet h2 {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 10px;
}

.yt-trial-sheet p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--sub);
  margin: 0 0 22px;
}

.yt-trial-actions { display: flex; flex-direction: column; gap: 8px; }

.yt-trial-primary {
  padding: 13px 20px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--a, #ffcc00), #ff9900);
  color: #111;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease;
}

.yt-trial-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }

.yt-trial-ghost {
  padding: 11px 20px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 11px;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.yt-trial-ghost:hover { background: rgba(255, 255, 255, .06); }

.yt-trial-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: inherit;
  font-size: 18px;
  cursor: pointer;
}

.yt-trial-close:hover { background: rgba(255, 255, 255, .14); }

@media (prefers-reduced-motion: reduce) {
  .yt-trial-primary { transition: none; }
  .yt-trial-primary:hover { transform: none; }
}
