/* tec-launcher.css — Lanzador flotante de TEO para la landing de Tecniartic.
   Reutiliza el widget del asistente (chat.css) dentro de un panel flotante.
   Hereda las variables --c-* y las fuentes del :root de la landing. */

/* Botón flotante (burbuja TEO), apilado ENCIMA del botón de WhatsApp (#wa-flotante bottom:1.75rem). */
#tec-fab {
  position: fixed;
  right: 1.75rem;
  bottom: 6rem;                 /* por encima del WhatsApp flotante */
  z-index: 155;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0;
  width: 3.5rem;
  height: 3.5rem;
  border: none;
  border-radius: 999px;
  background: var(--c-primary, #0e6fc4);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(14,111,196,.42);
  font-family: var(--font-body, system-ui, sans-serif);
  transition: transform .18s ease, box-shadow .18s ease, width .18s ease;
}
#tec-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 30px rgba(14,111,196,.55); }
#tec-fab .tec-fab-ic { width: 3.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
#tec-fab .tec-fab-ic svg { width: 26px; height: 26px; }
#tec-fab .tec-fab-txt { display: none; font-weight: 700; font-size: .92rem; padding-right: 1rem; white-space: nowrap; }
/* En pantallas anchas, muestra una etiqueta "Asesor virtual" para que se entienda qué es. */
@media (min-width: 600px) {
  #tec-fab { width: auto; }
  #tec-fab .tec-fab-txt { display: inline; }
}
#tec-fab .tec-fab-dot {
  position: absolute; top: 2px; right: 2px; width: 12px; height: 12px;
  background: #2bd576; border: 2px solid #fff; border-radius: 50%;
}

/* Panel flotante que contiene el asistente. */
#tec-panel {
  position: fixed;
  right: 1.75rem;
  bottom: 1.75rem;
  z-index: 200;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 600px;
  max-height: calc(100vh - 3.5rem);
  display: none;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(6,15,26,.28);
  background: #fff;
  animation: tecPanelIn .22s ease;
}
#tec-panel.tec-open { display: flex; }
@keyframes tecPanelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Barra superior del panel con botón de cerrar. */
#tec-panel .tec-panel-close {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; cursor: pointer;
  font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
#tec-panel .tec-panel-close:hover { background: rgba(255,255,255,.32); }

/* El widget ocupa todo el panel (anula el tamaño "inline" de chat.css). */
#tec-panel .tec-chat {
  max-width: none; width: 100%; height: 100%;
  border: 0; border-radius: 0; box-shadow: none; margin: 0;
}

/* Móvil: el panel ocupa casi toda la pantalla. */
@media (max-width: 560px) {
  #tec-panel {
    right: 0; bottom: 0; width: 100vw; max-width: 100vw;
    height: 100dvh; max-height: 100dvh; border-radius: 0;
  }
  #tec-fab { right: 1rem; bottom: 5.25rem; }
}

/* Al abrir el panel se oculta la burbuja para no encimar interfaces. */
body.tec-panel-open #tec-fab { display: none; }
