/* Página de chat: estilos modernos, legibles y súper responsive */

:root{
  /* Espacio seguro para no tapar el contenido con el widget (burbuja) */
  --widget-safe-bottom: 92px;           /* alto aprox. del launcher + margen */
  --widget-safe-right:  24px;
  --radius-2xl: 1.25rem;
  --shadow-soft: 0 10px 30px rgba(0,0,0,.08);
}

@supports (padding: env(safe-area-inset-bottom)) {
  :root{
    --widget-safe-bottom: max(92px, env(safe-area-inset-bottom));
  }
}

*,
*::before,
*::after{ box-sizing: border-box; }

html, .chat-body{
  height: 100%;
}

.chat-body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #111827;
  background: #f8fafc;
}

/* Contenedor principal: deja espacio inferior para el widget */
.chat-page{
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 18px calc(var(--widget-safe-bottom) + 16px);
}

/* Tarjeta central */
.chat-card{
  width: min(720px, 100%);
  background: #ffffff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 3.5vw, 40px);
}

.chat-card h1{
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  line-height: 1.2;
}

.chat-card p{
  margin: 8px 0 0;
  font-size: clamp(.98rem, 2.3vw, 1.05rem);
  color: #374151;
}

/* Acciones */
.chat-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btn{
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  background: #2914e2;
  color: #fff;
  box-shadow: 0 4px 16px rgba(17,24,39,.15);
  transition: transform .08s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); opacity: .9; }

.btn-ghost{
  background: #eef2ff;
  color: #1f2937;
}

/* Texto auxiliar */
.hint{
  margin-top: 10px;
  font-size: .95rem;
  color: #6b7280;
}

/* Si existieran footers/headers fijos en tu layout general, podés
   aplicar esta clase a esos elementos para que no queden debajo del widget */
.avoid-chatwoot{
  margin-bottom: calc(var(--widget-safe-bottom) + 8px);
}

/* Modo oscuro (si tu sitio lo fuerza con prefers-color-scheme) */
@media (prefers-color-scheme: dark){
  .chat-body{ background: #ffffff; color: #2914e2; }
  .chat-card{ background: #ffffff; }
  .chat-card p{ color: #000000; }
  .btn-ghost{ background: #2914e2; color: #e5e7eb; }
}

/* Responsivo */
@media (min-width: 768px){
  .chat-page{
    padding: 32px 24px calc(var(--widget-safe-bottom) + 24px);
  }
}

/*subimos el widget*/
/* === Elevar Chatwoot por encima del menú inferior === */
:root{
  /* alto del menú fijo inferior (ajustá si cambia) */
  --menu-height: 64px;
}

/* Burbuja y ventana del widget */
.woot-widget-holder,
.woot-widget-container,
.woot-widget-bubble,
#woot-widget-holder,
#woot-widget-container {
  bottom: calc(var(--menu-height) + 16px) !important;
  /* (opcional) si tu menú tiene sombra o z-index alto */
  z-index: 2147483001 !important;
}

.logo {
    width: 150px;
    height: auto;
    margin: 0 auto 1.5rem;
  }