/* Vista previa interactiva: mini sitio + chat (abrir / minimizar / cerrar) */

.hero-widget-host {
  position: relative;
  max-width: 400px;
  width: 100%;
  min-height: 420px;
  aspect-ratio: 10 / 12;
  margin-inline: auto;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 44px -18px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.hero-site-mock {
  position: absolute;
  inset: 0;
  padding: 1rem 1.15rem 5.5rem;
}

.hero-site-mock__chrome {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.hero-site-mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.12);
}

.hero-site-mock__hero {
  height: 72px;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(124, 58, 237, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.hero-site-mock__line {
  height: 10px;
  border-radius: 999px;
  margin-bottom: 0.55rem;
  background: rgba(15, 23, 42, 0.07);
  width: 88%;
}

.hero-site-mock__line--wide {
  width: 100%;
}

.hero-site-mock__line--short {
  width: 58%;
}

.hero-widget-host #multch-style-preview {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  --maicb-z-base: 2;
  --maicb-offset: 0.5rem;
  --maicb-panel-width: min(300px, calc(100% - 1.25rem));
  --maicb-radius: 0.875rem;
  font-size: 13px;
  line-height: 1.45;
  pointer-events: auto;
}

.hero-widget-host #multch-style-preview[data-panel-open="false"] {
  align-items: flex-end;
  justify-content: flex-end;
  padding: var(--maicb-offset, 0.5rem);
}

.hero-widget-host #multch-style-preview .maicb-launcher {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  flex-shrink: 0;
  margin: 0;
  max-width: calc(100% - 0.5rem);
  cursor: pointer;
  pointer-events: auto;
  font-size: 0.8125rem;
}

.hero-widget-host #multch-style-preview .maicb-launcher-icon-wrap,
.hero-widget-host #multch-style-preview .maicb-launcher-icon {
  width: 2.25rem;
  height: 2.25rem;
}

.hero-widget-host #multch-style-preview .maicb-launcher-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.hero-widget-host #multch-style-preview .maicb-launcher-text {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9rem;
}

.hero-widget-host #multch-style-preview .maicb-launcher[hidden] {
  display: none !important;
}

.hero-widget-host #multch-style-preview .maicb-panel[hidden] {
  display: none !important;
}

/* Anular section { padding: 4rem 0 } de la landing (el panel es <section>) */
.hero-widget-host #multch-style-preview .maicb-panel {
  position: relative !important;
  display: flex !important;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 3;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: var(--maicb-panel-width, 300px) !important;
  max-width: calc(100% - 1.25rem) !important;
  height: min(100%, calc(100% - 1rem)) !important;
  max-height: calc(100% - 1rem) !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: var(--maicb-radius) !important;
  overflow: hidden;
}

.hero-widget-host #multch-style-preview .maicb-messages {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.55rem 0.65rem 0.5rem;
  gap: 0.6rem;
  scroll-behavior: smooth;
}

.hero-widget-host #multch-style-preview .maicb-input {
  pointer-events: none;
  caret-color: transparent;
}

.hero-widget-host #multch-style-preview .maicb-input.maicb-hero-input-typing {
  color: var(--maicb-fg);
}

.hero-widget-host #multch-style-preview .maicb-composer-inner.maicb-hero-composer-active,
.hero-widget-host #multch-style-preview .maicb-input.maicb-hero-input-typing {
  border-color: color-mix(in srgb, var(--maicb-primary) 42%, transparent);
}

.hero-widget-host #multch-style-preview.maicb-hero-preview--demo-busy .maicb-reset {
  opacity: 0.55;
  cursor: wait;
}

@keyframes maicb-hero-reset-click {
  0% {
    transform: scale(1);
    background: color-mix(in srgb, var(--maicb-card) 88%, var(--maicb-primary) 4%);
    color: var(--maicb-muted);
  }

  40% {
    transform: scale(0.9);
    background: color-mix(in srgb, var(--maicb-primary) 22%, transparent);
    border-color: color-mix(in srgb, var(--maicb-primary) 45%, transparent);
    color: var(--maicb-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--maicb-primary) 18%, transparent);
  }

  100% {
    transform: scale(1);
    background: color-mix(in srgb, var(--maicb-card) 88%, var(--maicb-primary) 4%);
    color: var(--maicb-muted);
    box-shadow: none;
  }
}

@keyframes maicb-hero-reset-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

.hero-widget-host #multch-style-preview .maicb-reset.maicb-hero-reset-pulse {
  animation: maicb-hero-reset-click 0.62s ease;
}

.hero-widget-host #multch-style-preview .maicb-reset.maicb-hero-reset-pulse svg {
  animation: maicb-hero-reset-spin 0.62s ease;
}

.hero-widget-host #multch-style-preview .maicb-hero-thinking-row .maicb-thinking {
  min-height: 2.25rem;
}

/* Cabecera y pie más compactos (menos aire en bordes superior e inferior del panel) */
.hero-widget-host #multch-style-preview .maicb-header {
  padding: 0.45rem 0.65rem !important;
  gap: 0.45rem;
  border-radius: var(--maicb-radius) var(--maicb-radius) 0 0;
}

.hero-widget-host #multch-style-preview .maicb-header-brand {
  gap: 0.5rem;
}

.hero-widget-host #multch-style-preview .maicb-header-avatar {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 0.55rem;
}

.hero-widget-host #multch-style-preview .maicb-header-avatar svg {
  width: 0.95rem;
  height: 0.95rem;
}

.hero-widget-host #multch-style-preview .maicb-header .maicb-header-title {
  font-size: 0.8125rem;
  line-height: 1.2;
}

.hero-widget-host #multch-style-preview .maicb-header .maicb-header-sub {
  margin: 0.1rem 0 0;
  font-size: 0.65rem;
  line-height: 1.2;
}

.hero-widget-host #multch-style-preview .maicb-header-actions {
  gap: 0.2rem;
}

.hero-widget-host #multch-style-preview .maicb-icon-btn {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 0.45rem;
}

.hero-widget-host #multch-style-preview .maicb-icon-btn svg {
  width: 0.8rem;
  height: 0.8rem;
}

.hero-widget-host #multch-style-preview .maicb-msg {
  font-size: 0.8125rem;
}

.hero-widget-host #multch-style-preview .maicb-msg-meta {
  font-size: 0.65rem;
}

.hero-widget-host #multch-style-preview .maicb-composer {
  flex-shrink: 0;
  margin: 0 !important;
  padding: 0.4rem 0.6rem 0.42rem !important;
  border-radius: 0 0 var(--maicb-radius) var(--maicb-radius);
  box-shadow: none;
}

.hero-widget-host #multch-style-preview .maicb-composer-inner {
  align-items: center;
  padding: 0.2rem 0.28rem 0.2rem 0.6rem;
  gap: 0.35rem;
}

.hero-widget-host #multch-style-preview .maicb-input {
  min-height: 1.5rem;
  padding: 0.28rem 0 !important;
  margin: 0 !important;
  font-size: 0.75rem;
  line-height: 1.35;
  pointer-events: none;
}

.hero-widget-host #multch-style-preview .maicb-send {
  width: 1.875rem !important;
  height: 1.875rem !important;
  min-height: 1.875rem;
  margin: 0 !important;
}

.hero-widget-host #multch-style-preview .maicb-send svg {
  width: 0.85rem;
  height: 0.85rem;
}

.hero-widget-host #multch-style-preview .maicb-icon-btn {
  pointer-events: auto;
  cursor: pointer;
}

.hero-widget-host #multch-style-preview .maicb-send {
  pointer-events: none;
  cursor: default;
}

.hero-widget-column .hero-widget-note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  text-align: center;
}
