/* ===== ABBA AI Widget (clean) ===== */

.abba-ai-widget{
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 9999999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Launcher button */
.abba-ai-launcher{
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #0b5a2a;
  box-shadow: 0 10px 26px rgba(0,0,0,.20);
  display: grid;
  place-items: center;
}

.abba-ai-launcher img{
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

/* Panel (hidden by default) */
.abba-ai-panel{
  position: fixed;
  left: 18px;
  bottom: 94px; /* encima del botón */
  width: 360px;
  max-width: calc(100vw - 36px);
  height: 520px;
  max-height: calc(100vh - 140px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.22);
  overflow: hidden;
  display: none;
  z-index: 9999998;
}

.abba-ai-panel.is-open{
  display: flex;
  flex-direction: column;
}

/* Header */
.abba-ai-header{
  background: #0b5a2a;
  color: #fff;
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.abba-ai-title{
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .2px;
}

.abba-ai-close{
  background: rgba(255,255,255,.14);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
}

/* Log */
.abba-ai-log{
  flex: 1;
  padding: 14px;
  overflow: auto;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.abba-ai-line{
  margin: 0 0 10px 0;
  font-size: 13px;
  line-height: 1.35;
}

/* CTA button inside chat */
.abba-ai-cta-wrap{ margin: 6px 0 14px 0; }

.abba-ai-cta{
  display: inline-block;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  background: #0b5a2a;
  color: #ffffff;
  border: none;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.abba-ai-cta:hover{
  background: #08451f;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}

/* Input bar */
.abba-ai-inputbar{
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
}

.abba-ai-input{
  flex: 1;
  padding: 12px 12px;
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 14px;
  outline: none;
}

.abba-ai-send{
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  background: #0b5a2a;
  color: #fff;
}

.abba-ai-send:hover{ background: #08451f; }

/* Mobile */
@media (max-width: 520px){
  .abba-ai-panel{
    width: calc(100vw - 18px);
    height: calc(100vh - 110px);
    max-height: none;
    border-radius: 18px;
  }
}

/* Pulse (optional) */
@keyframes abbaPulse{
  0%   { transform: translateY(0); box-shadow: 0 10px 26px rgba(0,0,0,.20); }
  50%  { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(0,0,0,.24); }
  100% { transform: translateY(0); box-shadow: 0 10px 26px rgba(0,0,0,.20); }
}

.abba-ai-launcher{
  animation: abbaPulse 2.4s ease-in-out infinite;
}