/* ============================================================================
   MÓDULO 7: PLANES, CHECKOUT QR, PUBLICIDAD Y ALERTAS DE BÚSQUEDA
   Archivo: public/css/monetization.css
   ============================================================================ */

.sa-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.sa-plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg, 14px);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sa-plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.sa-plan-card.is-highlighted {
  border: 2px solid var(--primary-color);
}

.sa-plan-badge {
  position: absolute;
  top: -11px;
  right: 16px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.sa-plan-price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.sa-plan-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.sa-plan-features {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.sa-plan-features li::before {
  content: "✓ ";
  color: var(--primary-color);
  font-weight: 700;
}

/* Modal de Pago QR */
.sa-qr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 25, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1200;
}

.sa-qr-modal {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.sa-qr-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  margin: 0.9rem 0;
}

.sa-qr-box img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 0.5rem;
  display: block;
}

.sa-qr-ref-pill {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  background: var(--bg-subtle, #f1f5f9);
  color: var(--primary-color);
  border: 1px dashed var(--primary-color);
}

/* Slots Publicitarios */
.sa-ad-slot {
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  position: relative;
}

.sa-ad-tag {
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  pointer-events: none;
}

.sa-ad-banner-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.sa-ad-banner-img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  display: block;
}

.sa-ad-img-mobile {
  display: none;
}

@media (max-width: 680px) {
  .sa-ad-img-desktop {
    display: none;
  }
  .sa-ad-img-mobile {
    display: block;
  }
}

/* Alertas de búsqueda */
.sa-alert-chip-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.sa-alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle, rgba(0, 0, 0, 0.02));
}