/* «Frost te guía» (15-11-2026): foco celeste sobre lo que hay que tocar + burbuja corta con el paso. Va sobre todo (también
   sobre las ventanas), pero el foco no atrapa los toques: la persona toca el botón de verdad, debajo. */
:root { --guia-c: #5cc8ff; --guia-velo: rgba(4, 12, 22, .34); --guia-bg: #ffffff; --guia-tx: #0e1a26; --guia-mu: #4b5b6b; --guia-bd: rgba(14, 26, 38, .12); }
:root[data-theme="noche"], html[data-diseno="b"] { --guia-bg: #101b27; --guia-tx: #eef4fa; --guia-mu: #a9b8c7; --guia-bd: rgba(255, 255, 255, .14); --guia-velo: rgba(0, 4, 10, .42); }

.guia-foco { position: fixed; z-index: 4000; pointer-events: none; border-radius: 12px;
  box-shadow: 0 0 0 3px var(--guia-c), 0 0 0 9999px var(--guia-velo);
  transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease; }
.guia-foco::after { content: ''; position: absolute; inset: -3px; border-radius: 14px; border: 3px solid var(--guia-c); animation: guia-late 1.6s ease-out infinite; }
@keyframes guia-late { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.06); } }
.guia-foco.hidden, .guia-burbuja.hidden { display: none !important; }

.guia-burbuja { position: fixed; z-index: 4001; box-sizing: border-box; padding: 14px 16px 12px; border-radius: 14px;
  background: var(--guia-bg); color: var(--guia-tx); border: 1px solid var(--guia-bd); box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
  font: 500 16px/1.4 Inter, system-ui, sans-serif; }
.guia-burbuja .gb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.guia-burbuja .gb-head img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.guia-burbuja .gb-head small { font-size: 13px; color: var(--guia-mu); font-weight: 600; }
.guia-burbuja .gb-txt { margin: 0 0 12px; font-size: 17px; font-weight: 600; }
.guia-burbuja .gb-txt.ok { color: var(--guia-tx); }
.guia-burbuja .gb-acts { display: flex; justify-content: flex-end; gap: 8px; }
.guia-burbuja .gb-acts button { min-height: 44px; min-width: 96px; padding: 0 16px; border-radius: 10px; font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; }
.guia-burbuja .gb-acts .ghost-btn { background: transparent; color: var(--guia-tx); border: 1px solid var(--guia-bd); }
.guia-burbuja .gb-acts .primary { background: var(--guia-c); color: #04121f; border: 0; }
@media (max-width: 699px) { .guia-burbuja { padding: 12px 14px 10px; } .guia-burbuja .gb-acts button { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .guia-foco { transition: none; } .guia-foco::after { animation: none; } }

/* (15-11) «Dímelo» y «o escríbelo»: hablando o escribiendo también se avanza, se rellena o se elige */
.guia-burbuja .gb-hecho { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--guia-c); }
.guia-burbuja .gb-hablar { display: flex; gap: 6px; margin: 0 0 10px; }
.guia-burbuja .gb-hablar button { min-height: 40px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 14px Inter, system-ui, sans-serif; }
.guia-burbuja .gb-hablar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.guia-burbuja .gb-mic { padding: 0 12px; background: transparent; color: var(--guia-tx); border: 1px solid var(--guia-c); flex: none; }
.guia-burbuja .gb-mic.on { background: #e5484d; border-color: #e5484d; color: #fff; animation: guia-oye 1.2s ease-in-out infinite; }
@keyframes guia-oye { 50% { box-shadow: 0 0 0 5px rgba(229, 72, 77, .25); } }
.guia-burbuja .gb-in { flex: 1; min-width: 0; min-height: 40px; box-sizing: border-box; padding: 0 10px; border-radius: 10px; border: 1px solid var(--guia-bd);
  background: transparent; color: var(--guia-tx); font: 500 16px Inter, system-ui, sans-serif; } /* 16 px: el iPhone no hace zoom */
.guia-burbuja .gb-in::placeholder { color: var(--guia-mu); }
.guia-burbuja .gb-env { width: 40px; flex: none; padding: 0; background: transparent; color: var(--guia-tx); border: 1px solid var(--guia-bd); }
@media (prefers-reduced-motion: reduce) { .guia-burbuja .gb-mic.on { animation: none; } }

/* (15-11 noche) Burbuja más chica en el celular (tapaba media pantalla) y que se aparte si se abre algo encima (la cámara) */
.guia-burbuja.apartada, .guia-foco.apartada { display: none !important; }
.guia-burbuja .gb-head { padding-right: 34px; position: relative; min-height: 26px; }
.guia-burbuja .gb-x { position: absolute; top: -8px; right: -8px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent;
  color: var(--guia-mu); font: 600 17px/1 Inter, system-ui, sans-serif; cursor: pointer; display: grid; place-items: center; }
.guia-burbuja .gb-txt { margin-bottom: 10px; }
.guia-burbuja .gb-hablar { display: none; }
.guia-burbuja.con-teclado .gb-hablar { display: flex; }
.guia-burbuja .gb-acts { align-items: center; }
.guia-burbuja .gb-acts .gb-mic, .guia-burbuja .gb-acts .gb-tec { min-height: 44px; min-width: 0; padding: 0 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--guia-tx); border: 1px solid var(--guia-c); font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; flex: none; }
.guia-burbuja .gb-acts .gb-tec { width: 44px; padding: 0; justify-content: center; border-color: var(--guia-bd); }
.guia-burbuja.con-teclado .gb-acts .gb-tec { border-color: var(--guia-c); color: var(--guia-c); }
.guia-burbuja .gb-acts svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.guia-burbuja .gb-acts .primary { margin-left: auto; }
@media (max-width: 699px) {
  .guia-burbuja .gb-acts button.primary { flex: 1 1 auto; }
  .guia-burbuja .gb-acts .gb-mic, .guia-burbuja .gb-acts .gb-tec { flex: none; }
  .guia-burbuja .gb-txt { font-size: 16.5px; line-height: 1.35; }
}
