/* Widget flotante "vidreum bot": launcher + panel de chat + tarjeta PROMPT_FINAL.
   Estética "consola de IA": bordes con degradado giratorio, halos de pulso,
   textura de rejilla sutil y cursor de streaming en vivo. */


.vbot {
  --vbot-cyan: #7fd4ff;
  --vbot-blue: #4a9dff;
  --vbot-violet: #8f7bff;
  --vbot-ink: #04101f;
  --vbot-bg-0: #060810;
  --vbot-bg-1: #0a0c13;
  --vbot-bg-2: #10141d;
  --vbot-line: rgba(255, 255, 255, .08);
  --vbot-text: #eef3fa;
  --vbot-muted: #8892a3;
  position: fixed;
  z-index: 20000;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

.vbot svg { display: block; }

/* ------------------------------------------------------------------ */
/* Launcher                                                           */
/* ------------------------------------------------------------------ */

.vbot-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 18px 0 12px;
  color: #eaf4ff;
  border: 1px solid rgba(96, 178, 255, .55);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--vbot-bg-0) 0%, #0d1420 60%, #0e1626 100%);
  box-shadow:
    0 0 0 1px rgba(96, 178, 255, .18),
    0 0 22px rgba(64, 156, 255, .38),
    0 10px 26px rgba(0, 0, 0, .45);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.vbot-launcher::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -8px;
  border-radius: inherit;
  background: radial-gradient(ellipse at center, rgba(74, 157, 255, .5), transparent 70%);
  filter: blur(6px);
  opacity: .55;
  animation: vbot-breathe 3.2s ease-in-out infinite;
}

.vbot-launcher:hover,
.vbot-launcher:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(130, 200, 255, .85);
  box-shadow:
    0 0 0 1px rgba(130, 200, 255, .3),
    0 0 32px rgba(80, 172, 255, .55),
    0 14px 30px rgba(0, 0, 0, .5);
}

@keyframes vbot-breathe {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.08); }
}

.vbot-launcher-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--vbot-cyan) 0%, var(--vbot-blue) 55%, #123a70 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 12px rgba(80, 172, 255, .55);
  color: #fff;
}

.vbot-launcher-avatar svg {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .5));
}

.vbot-launcher-tag {
  padding: 2px 7px;
  color: #8fceff;
  border: 1px solid rgba(143, 206, 255, .4);
  border-radius: 999px;
  background: rgba(80, 172, 255, .12);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.vbot-launcher-badge {
  display: none;
}

.vbot.is-open .vbot-launcher { display: none; }

/* ------------------------------------------------------------------ */
/* Panel: borde con degradado giratorio + rejilla de fondo sutil       */
/* ------------------------------------------------------------------ */

@property --vbot-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.vbot-panel {
  position: relative;
  width: 380px;
  max-width: calc(100vw - 24px);
  height: 550px;
  max-height: calc(100vh - 96px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--vbot-text);
  border: 1px solid transparent;
  border-radius: 18px;
  background-color: var(--vbot-bg-1);
  /* Capas de fondo del panel, de arriba a abajo: degradado oscuro
     translúcido (para que los mensajes se sigan leyendo bien), la textura
     de fondo del chatbot, y el borde giratorio en conic-gradient. La
     textura y el degradado comparten padding-box; el borde sigue en
     border-box, igual que antes. */
  background-image:
    linear-gradient(180deg, rgba(9, 11, 16, .5) 0%, rgba(9, 11, 16, .62) 55%, rgba(8, 9, 13, .72) 100%),
    url('./assets/vidreum-bot-bg.avif?v=1'),
    conic-gradient(from var(--vbot-angle), #2d7eff, var(--vbot-cyan), var(--vbot-violet), #2d7eff);
  background-size: cover, cover, auto;
  background-position: center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-origin: padding-box, padding-box, border-box;
  background-clip: padding-box, padding-box, border-box;
  box-shadow:
    0 0 0 1px rgba(96, 178, 255, .12),
    0 0 40px rgba(50, 130, 230, .22),
    0 24px 60px rgba(0, 0, 0, .55);
  transform-origin: bottom right;
  animation:
    vbot-panel-in .22s cubic-bezier(.2, .9, .3, 1.3),
    vbot-border-spin 7s linear infinite;
}

@keyframes vbot-border-spin {
  to { --vbot-angle: 360deg; }
}

@keyframes vbot-panel-in {
  from { opacity: 0; transform: translateY(16px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Móvil: el launcher se queda como botón compacto en la esquina inferior;
   el panel del chat, en cambio, ocupa toda la pantalla al abrirse. */
@media (max-width: 620px) {
  .vbot { right: 14px; bottom: 14px; }

  .vbot-launcher {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    gap: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .vbot-launcher::before { display: none; }

  .vbot-launcher:hover,
  .vbot-launcher:focus-visible {
    border-color: transparent;
    box-shadow: none;
  }

  .vbot-launcher-avatar {
    width: 44px;
    height: 44px;
  }

  .vbot-launcher-avatar svg {
    width: 22px;
    height: 22px;
  }

  .vbot-launcher-label { display: none; }
  .vbot-launcher-tag { display: none; }

  .vbot-panel {
    position: fixed;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    transform-origin: bottom center;
  }

  .vbot-header {
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .vbot-composer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .vbot-launcher::before,
  .vbot-panel,
  .vbot-avatar::before,
  .vbot-avatar::after,
  .vbot-launcher-avatar::before,
  .vbot-status-dot::after,
  .vbot-final-live {
    animation: none !important;
  }
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.vbot-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--vbot-line);
  background: linear-gradient(180deg, rgba(60, 140, 255, .12), transparent);
}

.vbot-header-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vbot-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--vbot-cyan) 0%, var(--vbot-blue) 55%, #123a70 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 14px rgba(80, 172, 255, .5);
  color: #fff;
}

.vbot-avatar svg {
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, .5));
}

.vbot-avatar::before,
.vbot-avatar::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid rgba(130, 200, 255, .55);
  border-radius: 50%;
  animation: vbot-ping 2.6s ease-out infinite;
}

.vbot-avatar::after { animation-delay: 1.3s; }

@keyframes vbot-ping {
  0% { transform: scale(1); opacity: .65; }
  100% { transform: scale(1.9); opacity: 0; }
}

.vbot-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vbot-header-text strong {
  background: linear-gradient(120deg, #f2f8ff 0%, var(--vbot-cyan) 55%, var(--vbot-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
}

.vbot-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8fceff;
  font-size: 11px;
  font-weight: 650;
}

.vbot-status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ee08a;
  box-shadow: 0 0 6px rgba(62, 224, 138, .85);
}

.vbot-status-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(62, 224, 138, .7);
  border-radius: 50%;
  animation: vbot-ping 1.8s ease-out infinite;
}

.vbot-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.vbot-icon-btn {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #b9c4d4;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transition: .15s ease;
}

.vbot-icon-btn:hover,
.vbot-icon-btn:focus-visible {
  color: #fff;
  border-color: rgba(130, 200, 255, .55);
  background: rgba(80, 172, 255, .12);
}

/* ------------------------------------------------------------------ */
/* Mensajes: rejilla de fondo sutil + burbujas + cursor de streaming   */
/* ------------------------------------------------------------------ */

.vbot-messages {
  position: relative;
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(130, 200, 255, .35) transparent;
  /* Al llegar al final de los mensajes, el gesto de scroll no debe
     "encadenarse" y mover la página de detrás (ver lockBodyScroll en
     vidreum-bot.js, que cubre el caso completo en móvil). */
  overscroll-behavior: contain;
}

.vbot-messages::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.vbot-messages::-webkit-scrollbar { width: 6px; }
.vbot-messages::-webkit-scrollbar-thumb { background: rgba(130, 200, 255, .3); border-radius: 999px; }

.vbot-msg {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 100%;
}

.vbot-msg-assistant { align-self: flex-start; }
.vbot-msg-user { align-self: flex-end; flex-direction: row-reverse; }

.vbot-msg-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--vbot-cyan) 0%, var(--vbot-blue) 55%, #123a70 100%);
  box-shadow: 0 0 8px rgba(80, 172, 255, .45);
  color: #fff;
}

.vbot-msg-avatar svg {
  width: 12px;
  height: 12px;
}

.vbot-msg-error .vbot-msg-avatar {
  background: radial-gradient(circle at 32% 28%, #ff8a9a 0%, #d43f52 55%, #6c1420 100%);
}

.vbot-msg-bubble {
  max-width: 268px;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.vbot-msg-assistant .vbot-msg-bubble {
  color: #e9f1fb;
  border: 1px solid var(--vbot-line);
  border-bottom-left-radius: 4px;
  background: linear-gradient(160deg, #141924, var(--vbot-bg-2) 60%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.vbot-msg-bubble.is-streaming::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--vbot-cyan);
  box-shadow: 0 0 6px rgba(127, 212, 255, .8);
  animation: vbot-caret 1s steps(1) infinite;
}

@keyframes vbot-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.vbot-msg-user .vbot-msg-bubble {
  color: var(--vbot-ink);
  border-bottom-right-radius: 4px;
  background: linear-gradient(135deg, var(--vbot-cyan), var(--vbot-blue) 70%, var(--vbot-violet));
  font-weight: 600;
}

.vbot-msg-error .vbot-msg-bubble {
  color: #ffd7dc;
  border-color: rgba(255, 100, 120, .35);
  background: rgba(90, 20, 30, .4);
}

/* Indicador "pensando": ecualizador animado mientras llega el primer token. */
.vbot-shimmer {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(96, 178, 255, .3);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  background: linear-gradient(160deg, #141924, var(--vbot-bg-2) 60%);
  box-shadow: 0 0 16px rgba(64, 156, 255, .18);
}

.vbot-shimmer span {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--vbot-cyan), var(--vbot-blue));
  box-shadow: 0 0 6px rgba(143, 206, 255, .7);
  animation: vbot-eq 1.1s ease-in-out infinite;
}

.vbot-shimmer span:nth-child(1) { animation-delay: 0s; }
.vbot-shimmer span:nth-child(2) { animation-delay: .12s; }
.vbot-shimmer span:nth-child(3) { animation-delay: .24s; }
.vbot-shimmer span:nth-child(4) { animation-delay: .36s; }

@keyframes vbot-eq {
  0%, 100% { height: 6px; opacity: .55; }
  50% { height: 16px; opacity: 1; }
}

/* ------------------------------------------------------------------ */
/* Tarjeta de elección: modo IMAGEN/VÍDEO y sugerencias rápidas        */
/* ------------------------------------------------------------------ */

.vbot-choice-card {
  position: relative;
  z-index: 1;
  align-self: stretch;
  margin-left: 32px;
  padding: 12px;
  border: 1px solid rgba(96, 178, 255, .3);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--vbot-bg-2) 0%, #0b0d13 100%);
  box-shadow: 0 0 0 1px rgba(96, 178, 255, .08), 0 0 20px rgba(56, 140, 255, .16);
  animation: vbot-panel-in .2s ease;
}

.vbot-choice-title {
  margin-bottom: 9px;
  color: #8fceff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.vbot-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vbot-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 16px 8px;
  color: #d7e6fb;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: .15s ease;
}

.vbot-mode-btn svg { color: var(--vbot-cyan); }

.vbot-mode-btn:hover,
.vbot-mode-btn:focus-visible {
  color: #fff;
  border-color: rgba(130, 200, 255, .55);
  background: rgba(80, 172, 255, .12);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(74, 157, 255, .3);
}

.vbot-suggestion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.vbot-suggestion-chip {
  padding: 7px 12px;
  color: #cfe4ff;
  border: 1px solid rgba(143, 206, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: .15s ease;
}

.vbot-suggestion-chip:hover,
.vbot-suggestion-chip:focus-visible {
  color: #fff;
  border-color: rgba(143, 206, 255, .6);
  background: rgba(80, 172, 255, .12);
  transform: translateY(-1px);
}

/* ------------------------------------------------------------------ */
/* Tarjeta destacada del bloque PROMPT_FINAL                          */
/* ------------------------------------------------------------------ */

.vbot-final-card {
  position: relative;
  z-index: 1;
  align-self: stretch;
  margin-left: 32px;
  padding: 12px;
  border: 1px solid rgba(96, 178, 255, .45);
  border-radius: 14px;
  background: linear-gradient(180deg, #0e1626 0%, #0a0e16 100%);
  box-shadow:
    0 0 0 1px rgba(96, 178, 255, .12),
    0 0 26px rgba(56, 140, 255, .28),
    inset 0 1px 0 rgba(255, 255, 255, .04);
}

.vbot-final-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}

.vbot-final-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ee08a;
  box-shadow: 0 0 6px rgba(62, 224, 138, .85);
  animation: vbot-caret 1.4s steps(1) infinite;
}

.vbot-final-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  color: #8fceff;
  border: 1px solid rgba(143, 206, 255, .4);
  border-radius: 999px;
  background: rgba(80, 172, 255, .1);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vbot-final-text {
  margin: 0 0 12px;
  padding: 10px 11px;
  max-height: 180px;
  overflow-y: auto;
  color: #d3e4fb;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  background: rgba(0, 0, 0, .35);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.vbot-final-actions {
  display: flex;
  gap: 8px;
}

.vbot-final-copy,
.vbot-final-use {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 0;
  height: 34px;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  transition: .15s ease;
}

.vbot-final-copy {
  color: #cfe4ff;
  border: 1px solid rgba(143, 206, 255, .35);
  background: rgba(255, 255, 255, .04);
}

.vbot-final-copy:hover { border-color: rgba(143, 206, 255, .65); background: rgba(80, 172, 255, .12); }
.vbot-final-copy[data-copied="true"] { color: #3ee08a; border-color: rgba(62, 224, 138, .5); background: rgba(62, 224, 138, .1); }

.vbot-final-use {
  color: var(--vbot-ink);
  border: 1px solid rgba(130, 200, 255, .6);
  background: linear-gradient(135deg, var(--vbot-cyan), var(--vbot-blue));
  box-shadow: 0 0 18px rgba(74, 157, 255, .45);
}

.vbot-final-use:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(74, 157, 255, .65); }

/* ------------------------------------------------------------------ */
/* Composer                                                            */
/* ------------------------------------------------------------------ */

.vbot-composer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--vbot-line);
  background: var(--vbot-bg-1);
  transition: box-shadow .18s ease;
}

.vbot-composer:focus-within {
  box-shadow: inset 0 1px 0 rgba(130, 200, 255, .35);
}

.vbot-composer textarea {
  flex: 1 1 auto;
  max-height: 96px;
  padding: 10px 12px;
  resize: none;
  color: var(--vbot-text);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: var(--vbot-bg-2);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.vbot-composer textarea:focus {
  outline: none;
  border-color: rgba(130, 200, 255, .6);
  box-shadow: 0 0 0 3px rgba(80, 172, 255, .16);
}

.vbot-composer textarea::placeholder { color: #6c7686; }

.vbot-send {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  color: var(--vbot-ink);
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--vbot-cyan), var(--vbot-blue));
  box-shadow: 0 0 14px rgba(74, 157, 255, .4);
  cursor: pointer;
  transition: .15s ease;
}

.vbot-send:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 0 20px rgba(74, 157, 255, .6); }
.vbot-send:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* Un font-size por debajo de 16px hace que iOS/Android hagan zoom automático
   al enfocar el campo de texto; con el panel a pantalla completa en móvil
   ese zoom deja la vista descuadrada. 16px lo evita sin tocar el viewport
   global (que sigue permitiendo el pinch-zoom manual del usuario). Esta
   regla va al final del archivo a propósito: debe ganar por orden de
   cascada a la declaración base de la línea ~717, con la que empata en
   especificidad. */
@media (max-width: 620px) {
  .vbot-composer textarea {
    font-size: 16px;
  }
}

/* La vista de iniciar sesión/registrarse (#authView, solo existe en
   index.html) queda por encima de todo lo demás en pantalla: el botón
   flotante de vidreum bot no debe verse ahí en ningún tamaño de pantalla. */
body:has(#authView:not([hidden])) .vbot {
  display: none;
}

/* El editor de imágenes por capas (#advertisingImageEditor) se abre como
   diálogo modal a pantalla completa sobre el resto de la página: el botón
   flotante del bot quedaría encima del lienzo y de sus controles. */
body:has(#advertisingImageEditor:not([hidden])) .vbot {
  display: none;
}

/* La vista de planes de suscripción (#subscriptionPlans) solo se satura de
   espacio en móvil (a pantalla completa); en escritorio hay hueco de sobra
   y se deja ver el bot con normalidad. */
@media (max-width: 620px) {
  body:has(#subscriptionPlans:not([hidden])) .vbot {
    display: none;
  }
}
