:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
body { margin: 0; }

/* El hint existe para el JS, pero no se muestra al usuario */
.lus-hint{
  display: none !important;
}

/* Botón enviar como ícono (sin cambiar el HTML ni el JS) */
/* Botón enviar como ícono perfectamente centrado */
#lusSend{
  position: relative;
  font-size: 0;        /* oculta texto */
  line-height: 0;
  width: 46px;
  height: 46px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ícono avión de papel CENTRADO */
#lusSend::before{
  content: "";
  position: absolute;
  inset: 0;            /* ocupa todo el botón */
  margin: auto;

  width: 18px;
  height: 18px;
  background-color: currentColor;

  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.01 21 23 12 2.01 3 2 10l15 2-15 2z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.01 21 23 12 2.01 3 2 10l15 2-15 2z'/%3E%3C/svg%3E") no-repeat center / contain;
}



.lus-chat {
  position: relative;
  margin: 40px auto;
  width: min(600px, 95vw);
  height: 80vh;

  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.15);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);

  display: flex;
  flex-direction: column;
}

.lus-header {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}
.lus-title { font-size: 14px; font-weight: 700; color: #111; text-align:center; }
.lus-sub { font-size: 12px; color: #666; margin-top: 2px; }
.lus-close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 6px 8px;
}

/* Logo de la empresa (header superior) */
.lus-brand{
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 14px; /* espacio pequeño antes del título */
}

.lus-brand img{
  max-width: 180px;   /* 🔑 límite que pediste */
  width: 100%;
  height: auto;
  object-fit: contain;
}


.lus-messages {
  padding: 14px;
  overflow: auto;
  flex: 1;
  background: #fff;
}

.bubble-row { display: flex; margin: 8px 0; }
.bubble-row.user { justify-content: flex-end; }
.bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.bubble.bot { background: #f3f4f6; color: #111; border-top-left-radius: 6px; }
.bubble.user { background: #111; color: #fff; border-top-right-radius: 6px; }

.lus-quick {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px 14px;
  border-top: 1px solid rgba(0,0,0,.05);
  background: #fff;
}
.lus-quick button {
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 13px;
}
.lus-quick button:hover { background: #f7f7f7; }

.lus-inputbar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fafafa;
}
.lus-inputbar input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  outline: none;
  font-size: 14px;
}
.lus-inputbar button {
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.lus-error {
  display: none;
  color: #b00020;
  font-size: 12px;
  padding: 8px 14px;
  background: #fff;
}

.lus-hint {
  font-size: 12px;
  color: #777;
  padding: 0 14px 12px 14px;
  background: #fff;
}

/* ========================================================================== */
/*  LUS "Concierge" skin (solo estilos)
/*
  - No cambia nombres de clases/IDs.
  - No toca el funcionamiento (solo apariencia).
  - Background: se deja como degradado base + variable opcional para imagen.
  - Avatar del agente: variable que reemplazas por tu imagen.

  Personaliza rápido:
    :root { --lus-bg-image: url("tu-fondo.jpg"); }
    :root { --lus-agent-avatar: url("tu-avatar.png"); }
*/

:root{
  /* === BACKGROUND (degradado base) === */
  --lus-bg-1:#05070c;
  --lus-bg-2:#091224;
  --lus-bg-3:#122a44;

  /* Imagen opcional (por defecto none). Tú solo reemplazas el valor. */
  --lus-bg-image: none;

  /* === AVATAR del agente (reemplazable) === */
  --lus-agent-avatar: url("images/agent_avatar.png");
 

  /* === Glass tokens === */
  --lus-glass: rgba(18, 26, 38, .55);
  --lus-glass-2: rgba(18, 26, 38, .35);
  --lus-stroke: rgba(255,255,255,.12);

  --lus-text: rgba(255,255,255,.92);
  --lus-muted: rgba(255,255,255,.68);
}

/* Fondo tipo "hero" similar al screenshot (sin imagen fija) */
body{
  min-height:100vh;
  color: var(--lus-text);
  /* 1) Imagen opcional (si la seteas). 2) Haze radial. 3) Degradado base */
  background-image:
    var(--lus-bg-image),
    radial-gradient(1200px 600px at 62% 35%, rgba(110,165,210,.30), transparent 60%),
    radial-gradient(900px 520px at 30% 68%, rgba(40,75,140,.25), transparent 58%),
    linear-gradient(180deg, var(--lus-bg-1), var(--lus-bg-2) 50%, var(--lus-bg-3));
  background-size: cover;
  background-position:center;
  overflow-x:hidden;
  height: 100dvh;
  min-height: 100dvh;

  /* Layout general: título arriba + panel centrado (no afecta JS) */
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:flex-start;
  padding: 14px 18px 36px;
}

/* FAB: se ve más "premium" sin cambiar interacción */

/* Panel principal: glassmorphism */
.lus-chat{
  width: min(860px, 96vw);
  height: min(530px, 76vh);
  margin: 0 auto; /* mantiene tu intención original */

  background: linear-gradient(180deg, var(--lus-glass), var(--lus-glass-2));
  border: 1px solid var(--lus-stroke);
  border-radius: 22px;
  box-shadow:
    0 35px 120px rgba(0,0,0,.55),
    0 2px 0 rgba(255,255,255,.06) inset;
  backdrop-filter: blur(14px);
}

/* Header más limpio tipo "concierge" */
.lus-header{
  padding: 18px 20px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lus-hero-h1{
  text-align:center;
}

.lus-hero-h2{
  text-align:center;
}

.lus-title{
  color: var(--lus-text);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 12px;
}
.lus-sub{
  color: var(--lus-muted);
  font-size: 13px;
  margin-top: 6px;
}
.lus-close{
  color: var(--lus-muted);
  border-radius: 10px;
}
.lus-close:hover{ color: var(--lus-text); background: rgba(255,255,255,.06); }

/* Mensajes sobre fondo transparente */
.lus-messages{
  background: transparent;
  padding: 18px 20px;
}

/* Burbujas: bot en oscuro con borde suave; user ligeramente más claro */
.bubble{
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
}
.bubble.bot{
  background: rgba(20, 28, 42, .55);
  color: var(--lus-text);
  border-top-left-radius: 10px;
}
.bubble.user{
  background: rgba(255,255,255,.08);
  color: var(--lus-text);
  border-top-right-radius: 10px;
}

/* Avatar del agente (sin tocar HTML): se renderiza antes de burbuja BOT.
   Reemplazo: :root{ --lus-agent-avatar: url('mi-avatar.png'); }
*/
/* Nota: si tu JS no agrega la clase `.bot` a la fila, igual funcionará
   porque la mayoría de implementaciones marca al usuario con `.user` y el bot queda sin esa clase. */
.bubble-row.bot,
.bubble-row:not(.user){
  align-items:flex-start;
  gap: 10px;
}
.bubble-row.bot::before,
.bubble-row:not(.user)::before{
  content:"";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  flex: 0 0 34px;
  background:
    var(--lus-agent-avatar) center/cover no-repeat,
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.20), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* Quick chips tipo "pill" */
.lus-quick{
  background: transparent;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 10px 20px 14px;
}
.lus-quick button{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--lus-text);
  padding: 10px 12px;
  backdrop-filter: blur(10px);
}
.lus-quick button:hover{
  background: rgba(255,255,255,.10);
}

/* Inputbar: “glass” y botón tipo flecha (sin cambiar tu botón real) */
.lus-inputbar{
  background: transparent;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 20px 18px;
}
.lus-inputbar input{
  background: rgba(10, 12, 16, .35);
  color: var(--lus-text);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 12px 14px;
}
.lus-inputbar input::placeholder{ color: rgba(255,255,255,.55); }

/* Botón enviar: mantiene texto, pero con look “icon button” */
.lus-inputbar button{
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--lus-text);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 18px 55px rgba(0,0,0,.25);
}
.lus-inputbar button:hover{ background: rgba(255,255,255,.14); }

/* Error y hint sobre fondo transparente */
.lus-error,
.lus-hint{ background: transparent; }
.lus-hint{ color: rgba(255,255,255,.55); }


/* Indicador de "escribiendo..." */
.lus-typing-bubble{
  padding: 10px 14px;
}

.lus-typing-dots{
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.lus-typing-dots span{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  opacity: .35;
  animation: lusTyping 1.1s infinite ease-in-out;
}

.lus-typing-dots span:nth-child(2){ animation-delay: .15s; }
.lus-typing-dots span:nth-child(3){ animation-delay: .3s; }

@keyframes lusTyping{
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: .9; transform: translateY(-3px); }
}


/* Responsive fino */
/* Responsive fino (SOLO MOBILE) */
@media (max-width: 520px){

  body{
    padding: 14px 14px 16px;
  }
  
  .lus-brand img{
    max-width: 140px;
  }

  /* Título centrado */
  .lus-hero-h1{
    font-size: 20px;
    line-height: 1.2;
    text-align: center !important;
  }

  /* CHAT: alto fijo “bueno” en mobile, sin calc */
  .lus-chat{
    width: 96vw !important;
    margin: 0 auto !important;

    /* esto evita que se pase de pantalla y también evita que quede chiquito */
    height: min(620px, 70vh) !important;

    /* importante: quita el min-height enorme que pusiste */
    min-height: 0 !important;

    border-radius: 18px;
  }

  /* que el scroll pase dentro del chat */
  .lus-messages{
    min-height: 0;
    overflow: auto;
  }

  .lus-header,
  .lus-messages,
  .lus-inputbar,
  .lus-quick{
    padding-left: 14px;
    padding-right: 14px;
  }
  
  /* Evita el auto-zoom de iOS al tocar el input */
    .lus-inputbar input{
      font-size: 16px !important;
    }
}
