/* Quantum · /grupos: «Avísame cuando haya stock nuevo». 2026-11-04 (r1 de esta carpeta).
   Antes (20261021) era una notificación FIJA arriba y en celular tapaba el título «Nuestros grupos».
   Ahora va DENTRO de la página: empuja el contenido hacia abajo y no tapa nada.
   Lugar según <html data-qga-pos>: «titulo» (por defecto, debajo del título) o «arriba» (antes de «Volver a Comprar»). */
#qnAvisoGrupos { --qga-accent: #a855f7; box-sizing: border-box; position: relative; width: 100%; margin: 0 0 1.25rem;
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 32px; align-items: center; gap: 4px 12px; padding: 12px 10px 12px 14px;
  border: 1px solid rgba(168, 85, 247, .30); border-radius: 16px; background: rgba(21, 18, 30, .92); color: #f2f0f6;
  font-family: inherit; line-height: 1.4; text-align: left; animation: qga-in .28s cubic-bezier(.2, .8, .2, 1); }
html[data-qga-pos="arriba"] #qnAvisoGrupos { margin: 0 0 1rem; }
#qnAvisoGrupos *, #qnAvisoGrupos *::before { box-sizing: border-box; }
/* styles.css pone min 44×44 a TODO botón en ≤768 px: aquí cada botón tiene su tamaño propio. */
#qnAvisoGrupos button { min-width: 0; min-height: 0; }
#qnAvisoGrupos.qga-out { animation: qga-out .2s ease-in forwards; }
#qnAvisoGrupos .qga-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--qga-accent);
  background: rgba(168, 85, 247, .14); border: 1px solid rgba(168, 85, 247, .35); }
#qnAvisoGrupos .qga-ic svg { width: 20px; height: 20px; }
#qnAvisoGrupos .qga-copy { min-width: 0; }
#qnAvisoGrupos .qga-title { display: block; margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; color: #fff; letter-spacing: -.01em; }
#qnAvisoGrupos .qga-sub { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: #b8b2c4; }
#qnAvisoGrupos .qga-sub-movil { display: none; }
#qnAvisoGrupos .qga-cta { height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: #fff; color: #120f18; font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
#qnAvisoGrupos .qga-cta:hover { background: #ece8f3; }
#qnAvisoGrupos .qga-x { width: 32px; height: 32px; display: grid; place-items: center; align-self: start; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #a39cb0; cursor: pointer; }
#qnAvisoGrupos .qga-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
#qnAvisoGrupos .qga-x svg { width: 18px; height: 18px; }
#qnAvisoGrupos .qga-cta:focus-visible, #qnAvisoGrupos .qga-x:focus-visible { outline: 2px solid var(--qga-accent); outline-offset: 2px; }
/* Formulario (lo dibuja QuantumNovedades). Su título se reemplaza por el del aviso. */
#qnAvisoGrupos .qga-form { grid-column: 1 / -1; padding: 2px 4px 2px 0; }
#qnAvisoGrupos .qga-form[hidden] { display: none; }
#qnAvisoGrupos .qga-form.qn-card { margin: 0; padding: 2px 4px 2px 0; border: 0; border-radius: 0; background: none; }
#qnAvisoGrupos .qn-head { display: none; }
#qnAvisoGrupos .qn-form { margin-top: 4px; }
#qnAvisoGrupos .qn-row input, #qnAvisoGrupos .qn-btn { height: 44px; }
#qnAvisoGrupos .qn-check { margin-top: 8px; }
#qnAvisoGrupos .qn-msg { margin-top: 6px; }
#qnAvisoGrupos .qn-msg:empty { display: none; }
#qnAvisoGrupos.qga-open .qga-cta { display: none; }
#qnAvisoGrupos.qga-open { grid-template-columns: 38px minmax(0, 1fr) 32px; }
@keyframes qga-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes qga-out { to { opacity: 0; transform: translateY(-6px); } }
/* Celular: texto corto, botón compacto bajo el texto y × de 40 px para el dedo. */
@media (max-width: 620px) {
  #qnAvisoGrupos, #qnAvisoGrupos.qga-open { grid-template-columns: 32px minmax(0, 1fr) 40px; gap: 2px 10px; padding: 10px 6px 12px 12px; border-radius: 15px; }
  #qnAvisoGrupos .qga-ic { width: 32px; height: 32px; border-radius: 10px; align-self: start; margin-top: 2px; }
  #qnAvisoGrupos .qga-ic svg { width: 18px; height: 18px; }
  #qnAvisoGrupos .qga-copy { grid-column: 2; grid-row: 1; padding-top: 2px; }
  #qnAvisoGrupos .qga-title { font-size: 14.5px; }
  #qnAvisoGrupos .qga-sub { font-size: 13px; }
  #qnAvisoGrupos .qga-sub-pc { display: none; }
  #qnAvisoGrupos .qga-sub-movil { display: block; }
  #qnAvisoGrupos .qga-x { grid-column: 3; grid-row: 1; width: 40px; height: 40px; margin-top: -4px; }
  #qnAvisoGrupos .qga-cta { grid-column: 2; grid-row: 2; justify-self: start; height: 36px; margin-top: 8px; padding: 0 18px; font-size: 13.5px; }
  #qnAvisoGrupos .qga-form { grid-column: 1 / -1; grid-row: 2; padding-right: 6px; }
}
@media (max-width: 340px) {
  #qnAvisoGrupos, #qnAvisoGrupos.qga-open { grid-template-columns: minmax(0, 1fr) 40px; padding-left: 14px; }
  #qnAvisoGrupos .qga-ic { display: none; }
  #qnAvisoGrupos .qga-copy, #qnAvisoGrupos .qga-cta { grid-column: 1; }
  #qnAvisoGrupos .qga-x { grid-column: 2; }
}
@media (max-width: 420px) { #qnAvisoGrupos .qn-row { flex-direction: column; } #qnAvisoGrupos .qn-row input { flex: none; width: 100%; } #qnAvisoGrupos .qn-btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { #qnAvisoGrupos, #qnAvisoGrupos.qga-out { animation: none; } }
@media print { #qnAvisoGrupos { display: none; } }
