@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');
/* Guía v2: liviana. Sin backdrop-filter (se recalculaba con la portada animada detrás), sin filtros en lo que se mueve,
   animación solo con transform y que termina sola. El botón de Soporte queda abajo a la derecha. */
.qg { --g: linear-gradient(120deg, #6d3df0 0%, #a63ee8 52%, #e2489b 100%); position: fixed; left: 18px; bottom: 0; z-index: 990; display: flex; align-items: flex-end; gap: 4px; pointer-events: none;
  font-family: 'Plus Jakarta Sans', 'Archivo', system-ui, sans-serif; color: #f4f0ff; transform: translate3d(0, 110%, 0); transition: transform .6s cubic-bezier(.3, 1.3, .4, 1); contain: layout style; }
.qg.qg-dentro { transform: none; }
.qg button, .qg input { font-family: inherit; color: inherit; }
.qg button { cursor: pointer; }

/* avatar: la sombra es un óvalo aparte (no un filtro sobre la imagen que se mueve) */
.qg .qg-ava { pointer-events: auto; position: relative; flex: none; padding: 0 !important; min-height: 0 !important; border: 0; background: none; width: 116px; height: 220px; transition: width .35s, height .35s; }
.qg-som { position: absolute; left: 50%; bottom: 4px; width: 84px; height: 16px; margin-left: -42px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); }
.qg-img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; transform-origin: 50% 100%; will-change: transform; }
.qg-mueve .qg-img { animation: qg-saluda 1.3s ease-in-out 3; }
.qg-pausa .qg-img { animation-play-state: paused; }
@keyframes qg-saluda { 0%, 100% { transform: rotate(0) translate3d(0, 0, 0); } 30% { transform: rotate(-4deg) translate3d(0, -5px, 0); } 65% { transform: rotate(3deg) translate3d(0, 0, 0); } }
.qg-chico .qg-ava { width: 64px; height: 104px; }
.qg-chico:not(.qg-con-tip) .qg-ava::after { content: "💬"; position: absolute; right: -6px; top: 4px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--g); font-size: 14px; }

/* globo */
.qg-globo { order: 2; pointer-events: auto; position: relative; display: flex; flex-direction: column; width: 330px; max-height: min(460px, 70vh); margin: 0 0 110px; padding: 16px 16px 12px; border-radius: 22px 22px 22px 6px;
  background: #171127; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .9);
  opacity: 0; transform: translate3d(0, 12px, 0) scale(.94); transform-origin: 0 100%; visibility: hidden; transition: opacity .25s, transform .35s cubic-bezier(.3, 1.4, .4, 1), visibility 0s .35s; }
.qg-abierto .qg-globo { opacity: 1; transform: none; visibility: visible; transition-delay: .2s, .2s, 0s; }
.qg-globo::before { content: ""; position: absolute; left: -7px; bottom: 18px; width: 14px; height: 14px; background: #171127; border-left: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); transform: rotate(45deg); }
.qg .qg-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; padding: 0 !important; min-height: 0 !important; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 17px !important; line-height: 1; color: #c9c0de !important; z-index: 1; }
.qg .qg-x:hover { background: rgba(255, 255, 255, .16); color: #fff !important; }
.qg-cuerpo { overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; scrollbar-width: thin; }
.qg-t { margin: 0; padding-right: 28px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.qg-t b { color: #e9a6ff; }
.qg-s { margin: 5px 0 0; font-size: 13.5px; font-weight: 500; line-height: 1.45; color: #b9afd2; }
.qg-s b { color: #fff; }
.qg-bts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.qg .qg-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 13px !important; min-height: 0 !important; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px !important; font-weight: 700 !important; line-height: 1 !important; letter-spacing: 0 !important; color: #f4f0ff !important; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s; }
.qg .qg-b img { width: 17px; height: 17px; }
.qg .qg-b1 { background: var(--g); }
.qg .qg-b:hover { background-color: rgba(255, 255, 255, .15); transform: translateY(-1px); }
/* consejo corto (con el globo cerrado) */
.qg-tip { order: 1; pointer-events: auto; cursor: pointer; max-width: 250px; margin: 0 0 70px -6px; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: #171127; border: 1px solid rgba(166, 62, 232, .45);
  font-size: 13px; font-weight: 800; line-height: 1.35; opacity: 0; transform: translate3d(-8px, 6px, 0); visibility: hidden; transition: opacity .25s, transform .3s, visibility 0s .3s; }
.qg-tip span { display: block; margin-top: 3px; font-weight: 500; color: #b9afd2; }
.qg-con-tip:not(.qg-abierto) .qg-tip { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.qg-abierto .qg-tip { display: none; }

@media (max-width: 600px) {
  .qg { left: 8px; right: 8px; }
  .qg .qg-ava { width: 78px; height: 148px; }
  .qg-globo { flex: 1; width: auto; margin-bottom: 78px; padding: 14px 12px 10px; max-height: 62vh; }
  .qg-t { font-size: 15px; }
  .qg-chico { right: auto; }
  .qg-chico .qg-ava { width: 52px; height: 86px; }
  .qg-tip { max-width: 210px; margin-bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) { .qg, .qg-globo, .qg-ava, .qg-tip { transition: none !important; } .qg-img, .qg-piensa i { animation: none !important; } }
.qg-cuerpo > .qg-yo:first-child { margin-right: 32px; }
.qg-tip { max-width: 230px; margin-bottom: 118px; }
.qg-tip span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) { .qg-tip { margin-bottom: 92px; } }

/* recorrido: la página se oscurece salvo la parte que se explica (un recuadro con sombra enorme; sin desenfoque) */
.qg-foco { position: fixed; left: 0; top: 0; z-index: 985; width: 0; height: 0; border-radius: 16px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 9999px rgba(6, 4, 12, .72), 0 0 0 2px #c084fc, 0 0 26px 2px rgba(192, 132, 252, .55);
  transition: transform .45s cubic-bezier(.3, 1, .4, 1), width .45s cubic-bezier(.3, 1, .4, 1), height .45s cubic-bezier(.3, 1, .4, 1), opacity .3s; }
.qg-foco.on { opacity: 1; pointer-events: auto; }
.qg-tour .qg-globo { width: 340px; }
.qg-num { display: inline-block; margin-right: 8px; padding: 3px 8px; border-radius: 999px; background: var(--g); font-size: 11.5px; font-weight: 800; vertical-align: 2px; }
.qg-tour .qg-bts { margin-top: 14px; }
html.qg-en-tour #quantumAssistant, html.qg-en-tour .qa-launch { visibility: hidden; }
@media (max-width: 600px) { .qg-tour .qg-globo { width: auto; } }
@media (prefers-reduced-motion: reduce) { .qg-foco { transition: none; } }

/* apagar / prender */
.qg .qg-apagar { align-self: flex-start; margin-top: 10px; padding: 4px 2px !important; min-height: 0 !important; border: 0; background: none; font-size: 12px !important; font-weight: 700 !important; color: #8e84ab !important; }
.qg .qg-apagar:hover { color: #fff !important; }
.qg-tour .qg-apagar { display: none; }
.qg .qg-prender { display: none; pointer-events: auto; height: 36px; padding: 0 14px !important; min-height: 0 !important; margin: 0 0 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: #171127; font-size: 13px !important; font-weight: 800 !important; color: #f4f0ff !important; }
.qg .qg-prender:hover { border-color: #a63ee8; }
.qg-off .qg-ava, .qg-off .qg-globo, .qg-off .qg-tip { display: none; }
.qg-off .qg-prender { display: inline-flex; align-items: center; }

/* ===== celular y tablet: chico y sin tapar (Dario: «tapa todo en celular») ===== */
@media (max-width: 700px) {
  .qg { left: 6px; right: auto; max-width: calc(100vw - 12px); gap: 2px; }
  .qg .qg-ava, .qg-chico .qg-ava { width: 50px; height: 84px; }
  .qg-chico:not(.qg-con-tip) .qg-ava::after { width: 24px; height: 24px; right: -8px; top: 0; font-size: 12px; }
  .qg-globo { flex: none; width: min(300px, calc(100vw - 70px)); max-height: 46vh; margin-bottom: 64px; padding: 12px 12px 8px; border-radius: 18px 18px 18px 6px; }
  .qg-globo::before { bottom: 12px; }
  .qg-t { font-size: 14px; padding-right: 26px; }
  .qg-s { font-size: 12.5px; margin-top: 3px; }
  .qg-bts { gap: 5px; margin-top: 8px; }
  .qg .qg-b { height: 32px; padding: 0 10px !important; font-size: 12px !important; }
  .qg .qg-b img { width: 14px; height: 14px; }
  .qg .qg-x { width: 24px; height: 24px; top: 6px; right: 6px; font-size: 15px !important; }
  .qg .qg-apagar { margin-top: 6px; font-size: 11.5px !important; }
  .qg-tip { max-width: min(220px, calc(100vw - 80px)); margin: 0 0 54px; padding: 8px 11px; font-size: 12.5px; border-radius: 14px 14px 14px 4px; }
  .qg-tip span { font-size: 12px; }
  .qg .qg-prender { height: 32px; margin-bottom: 12px; font-size: 12px !important; }
  .qg-num { font-size: 11px; padding: 2px 7px; }
  /* encima de las barras fijas de compra de abajo */
  /* la altura sobre la barra de compra la pone guia.js midiéndola */
}
@media (max-width: 380px) {
  .qg-globo { width: calc(100vw - 64px); }
  .qg .qg-b { padding: 0 8px !important; }
}
@media (max-width: 700px) {
  /* el globo y el mensajito flotan al lado del avatar sin ocupar lugar en la fila (si no, el globo cerrado aplastaba al mensajito) */
  .qg-globo, .qg-tip { position: absolute; left: 54px; bottom: 0; }
  .qg-globo { margin-bottom: 62px; }
  .qg-tip { width: max-content; margin-bottom: 58px; }
}
