html.ias-ai-enabled #root .fixed.bottom-6.right-6.z-50 {
  display: none !important;
}

.ias-ai,
.ias-ai * {
  box-sizing: border-box;
}

.ias-ai {
  --ias-navy: #0b2545;
  --ias-navy-light: #163a6b;
  --ias-orange: #f97316;
  --ias-slate: #334155;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ias-ai button,
.ias-ai textarea {
  font: inherit;
}

.ias-ai__launcher {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 18px;
  color: #fff;
  background: var(--ias-orange);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.38);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ias-ai__launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(249, 115, 22, 0.48);
}

.ias-ai__launcher svg,
.ias-ai__send svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ias-ai__panel {
  width: min(390px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 48px));
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe3ec;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(11, 37, 69, 0.28);
}

.ias-ai__panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  animation: ias-ai-open 180ms ease-out;
}

.ias-ai__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 14px 14px 14px 16px;
  color: #fff;
  background: var(--ias-navy);
  border-bottom: 3px solid var(--ias-orange);
}

.ias-ai__identity,
.ias-ai__header-actions {
  display: flex;
  align-items: center;
}

.ias-ai__identity {
  min-width: 0;
  gap: 11px;
}

.ias-ai__header-actions {
  gap: 4px;
}

.ias-ai__avatar {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  color: var(--ias-navy);
  background: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.ias-ai__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ias-ai__title,
.ias-ai__status {
  display: block;
}

.ias-ai__title {
  font-size: 15px;
  line-height: 1.25;
}

.ias-ai__status {
  margin-top: 3px;
  color: #bfdbfe;
  font-size: 12px;
  line-height: 1.25;
}

.ias-ai__status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: #4ade80;
  border-radius: 50%;
}

.ias-ai__icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.ias-ai__icon-button:hover,
.ias-ai__icon-button:focus-visible {
  background: var(--ias-navy-light);
}

.ias-ai__messages {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 11px;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  overscroll-behavior: contain;
}

.ias-ai__row {
  display: flex;
  width: 100%;
}

.ias-ai__row--user {
  justify-content: flex-end;
}

.ias-ai__bubble {
  max-width: 85%;
  padding: 11px 14px;
  border-radius: 17px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ias-ai__bubble--bot {
  color: var(--ias-slate);
  background: #fff;
  border: 1px solid #e5eaf0;
  border-bottom-left-radius: 5px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
}

.ias-ai__bubble--user {
  color: #fff;
  background: var(--ias-orange);
  border-bottom-right-radius: 5px;
}

.ias-ai__typing {
  display: flex;
  gap: 5px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid #e5eaf0;
  border-radius: 17px 17px 17px 5px;
}

.ias-ai__typing i {
  width: 7px;
  height: 7px;
  background: #94a3b8;
  border-radius: 50%;
  animation: ias-ai-typing 1s infinite ease-in-out;
}

.ias-ai__typing i:nth-child(2) {
  animation-delay: 120ms;
}

.ias-ai__typing i:nth-child(3) {
  animation-delay: 240ms;
}

.ias-ai__suggestions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 7px;
  padding: 11px 13px 4px;
  background: #fff;
  border-top: 1px solid #eef2f6;
}

.ias-ai__suggestions[hidden] {
  display: none;
}

.ias-ai__suggestion {
  padding: 7px 10px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #dbe3ec;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.2;
}

.ias-ai__suggestion:hover {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fdba74;
}

.ias-ai__notice {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 14px 4px;
  color: #64748b;
  background: #fff;
  font-size: 12px;
  line-height: 1.35;
}

.ias-ai__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 12px 12px;
  background: #fff;
}

.ias-ai__input {
  flex: 1 1 auto;
  min-height: 44px;
  max-height: 96px;
  resize: none;
  padding: 11px 14px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  outline: none;
  font-size: 16px;
  line-height: 1.3;
}

.ias-ai__input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.ias-ai__send {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff;
  background: var(--ias-navy);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.ias-ai__send:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.ias-ai__whatsapp {
  align-self: flex-start;
  margin: -2px 0 4px;
  padding: 8px 12px;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.ias-ai button:focus-visible,
.ias-ai a:focus-visible {
  outline: 3px solid rgba(249, 115, 22, 0.4);
  outline-offset: 2px;
}

@keyframes ias-ai-open {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ias-ai-typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .ias-ai {
    right: 12px;
    bottom: 12px;
  }

  .ias-ai__launcher {
    width: 58px;
    padding: 0;
    justify-content: center;
  }

  .ias-ai__launcher span {
    display: none;
  }

  .ias-ai__panel {
    width: calc(100vw - 24px);
    height: min(640px, calc(100dvh - 24px));
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ias-ai__panel:not([hidden]),
  .ias-ai__typing i,
  .ias-ai__launcher {
    animation: none;
    transition: none;
  }
}

.ias-hero-features {
  display: grid;
  gap: 8px;
}

.ias-hero-features + div {
  display: none !important;
}

.ias-hero-feature {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
}

.ias-hero-feature__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: #f97316;
  border-radius: 50%;
}

.ias-hero-feature--bilingual .ias-hero-feature__icon {
  color: #0b2545;
  background: #fff;
}

.ias-hero-feature--robotics .ias-hero-feature__icon {
  color: #fff;
  background: #2563eb;
}

.ias-hero-feature__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ias-hero-feature__label,
.ias-hero-feature__title {
  margin: 0;
}

.ias-hero-feature__label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ias-hero-feature--bilingual .ias-hero-feature__label {
  color: #fdba74;
}

.ias-hero-feature--robotics .ias-hero-feature__label {
  color: #bfdbfe;
}

.ias-hero-feature__title {
  margin-top: 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

@media (max-width: 640px) {
  .ias-hero-features {
    gap: 7px;
  }

  .ias-hero-feature {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 56px;
    padding: 7px 12px;
  }

  .ias-hero-feature__icon {
    width: 36px;
    height: 36px;
  }

  .ias-hero-feature__icon svg {
    width: 20px;
    height: 20px;
  }
}
