/* ChatAssist24 Sales Tour / Rediseño visual: estilos aislados del recorrido. */
.scha-tour-node {
  margin: 0 0 14px;
}

.scha-tour-card {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.97)),
    radial-gradient(circle at 14% 0%, rgba(37,99,235,.14), transparent 34%);
  color: #111827;
  padding: 0;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}

.scha-tour-card::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #14b8a6, #d4af37);
}

.scha-tour-header {
  padding: 12px 16px 0;
}

.scha-tour-content {
  padding: 9px 16px 2px;
}

.scha-tour-intro .scha-tour-content {
  padding: 14px 22px 2px;
}

.scha-tour-intro .scha-tour-header {
  padding: 20px 22px 0;
}

.scha-tour-intro .scha-tour-main-action {
  margin: 22px 22px 24px;
}

.scha-tour-intro .scha-tour-text {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.65;
}

.scha-tour-intro-active > :not(.scha-tour-node) {
  display: none !important;
}

.scha-tour-kicker,
.scha-tour-progress {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 21px;
  margin: 0 0 7px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 999px;
  background: rgba(37, 99, 235, .08);
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  padding: 0 10px;
  text-transform: uppercase;
}

.scha-tour-progress-bar {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
}

.scha-tour-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
  box-shadow: 0 0 18px rgba(37, 99, 235, .32);
  transition: width .28s ease;
}

.scha-tour-title {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.18;
}

.scha-tour-intro-title {
  font-size: 19px;
}

.scha-tour-text,
.scha-tour-description {
  margin-top: 6px;
  color: #334155;
  font-size: 13px;
  line-height: 1.34;
}

.scha-tour-gif-box {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 106px;
  margin: 10px 16px 0;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, .14);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 10px 24px rgba(15, 23, 42, .06);
}

.scha-tour-gif-image,
.scha-tour-gif-video {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 138px;
  object-fit: contain;
  border-radius: 14px;
}

.scha-tour-gif-video {
  height: auto;
  background: #0f172a;
}

.scha-tour-gif-placeholder {
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  text-align: center;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(20, 184, 166, .06)),
    #f8fafc;
}

.scha-tour-gif-placeholder::before {
  content: "";
  width: 34px;
  height: 26px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, transparent 54%, rgba(37, 99, 235, .18) 55%),
    linear-gradient(135deg, rgba(37, 99, 235, .9), rgba(20, 184, 166, .85));
  box-shadow: 0 8px 18px rgba(37, 99, 235, .16);
}

.scha-tour-gif-label {
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.scha-tour-gif-help {
  max-width: 220px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.scha-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 10px 16px 0;
}

.scha-tour-main-action {
  margin-top: 10px;
}

.scha-tour-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.scha-tour-secondary-actions {
  justify-content: space-between;
  padding: 9px 16px 11px;
  margin: 8px 0 0;
  border-top: 1px solid rgba(15, 23, 42, .08);
  background: rgba(248, 250, 252, .68);
}

.scha-tour-button,
.scha-tour-index-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  min-height: 36px;
  padding: 8px 12px;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

.scha-tour-button:hover,
.scha-tour-index-button:hover {
  transform: translateY(-1px);
}

.scha-tour-button:focus-visible,
.scha-tour-index-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .24);
  outline-offset: 2px;
}

.scha-tour-button:disabled {
  cursor: not-allowed;
  opacity: .44;
  transform: none;
}

.scha-tour-button-primary {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .28);
}

.scha-tour-button-primary:hover {
  box-shadow: 0 16px 32px rgba(37, 99, 235, .34);
}

.scha-tour-button-secondary,
.scha-tour-index-button {
  background: #ffffff;
  border-color: rgba(15, 23, 42, .12);
  color: #0f172a;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

.scha-tour-button-next {
  border-color: rgba(37, 99, 235, .24);
  background: #eff6ff;
  color: #1d4ed8;
}

.scha-tour-button-back {
  color: #475569;
}

.scha-tour-button-index {
  color: #0f766e;
  border-color: rgba(20, 184, 166, .22);
  background: #f0fdfa;
}

.scha-tour-exit {
  color: #9f1239;
  border-color: rgba(225, 29, 72, .18);
  background: #fff1f2;
  box-shadow: none;
}

.scha-tour-persistent-controls {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0 12px 10px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 252, .96));
  box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
}

.scha-tour-persistent-controls::before {
  content: "Tour activo";
  flex: 1 0 100%;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.scha-tour-mini-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .07);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
}

.scha-tour-mini-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 18px rgba(15, 23, 42, .1);
}

.scha-tour-mini-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .24);
  outline-offset: 2px;
}

.scha-tour-mini-button-primary {
  border-color: rgba(37, 99, 235, .22);
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .24);
}

.scha-tour-restart-button,
[data-scha-tour-menu-button="1"] {
  border-color: rgba(37, 99, 235, .22) !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-weight: 900 !important;
}

#scha-menu > .scha-tour-node ~ .scha-tour-restart-button,
#scha-menu > .scha-tour-node ~ [data-scha-tour-menu-button="1"] {
  margin-top: 30px !important;
  margin-bottom: 14px !important;
}

#scha-panel.scha-tour-demo-active #scha-menu > :not(.scha-tour-node),
#scha-menu.scha-tour-demo-active > :not(.scha-tour-node) {
  display: none !important;
}

#scha-panel.scha-tour-demo-active .scha-tour-restart-button,
#scha-panel.scha-tour-demo-active [data-scha-tour-menu-button="1"] {
  display: none !important;
}

.scha-tour-index-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 14px 18px 4px;
}

.scha-tour-index-button {
  position: relative;
  width: 100%;
  min-height: 42px;
  padding-left: 16px;
  text-align: left;
}

.scha-tour-index-button::after {
  content: "›";
  position: absolute;
  right: 14px;
  color: #2563eb;
  font-size: 18px;
  line-height: 1;
}

.scha-tour-placeholder,
.scha-tour-action-result {
  box-sizing: border-box;
  margin: 14px 18px 0;
  border: 1px solid rgba(37, 99, 235, .16);
  border-left: 4px solid #2563eb;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
  padding: 13px 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.scha-tour-action-success {
  border-color: rgba(22, 163, 74, .18);
  border-left-color: #16a34a;
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
  color: #14532d;
}

.scha-tour-action-warning,
.scha-tour-action-fallback {
  border-color: rgba(245, 158, 11, .24);
  border-left-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb, #ffffff);
  color: #78350f;
}

.scha-tour-action-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 5px;
}

.scha-tour-action-copy {
  font-size: 13px;
  line-height: 1.55;
}

.scha-tour-action-copy + .scha-tour-actions,
.scha-tour-continue {
  margin-top: 12px;
}

.scha-tour-advanced-action,
.scha-tour-action-panel {
  border-color: rgba(37, 99, 235, .16);
  border-left-color: #2563eb;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  color: #1e3a8a;
}

.scha-tour-demo-mode,
.scha-tour-recommender,
.scha-tour-survey,
.scha-tour-lead-capture {
  display: block;
}

.scha-tour-campaign-preview {
  margin-top: 12px;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.scha-tour-campaign-image {
  display: block;
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.scha-tour-campaign-title {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 7px;
}

.scha-tour-campaign-message {
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.scha-tour-media-card {
  border-color: rgba(15, 118, 110, .18);
  border-left-color: #0f766e;
  background: linear-gradient(180deg, #f0fdfa, #ffffff);
  color: #134e4a;
}

.scha-tour-media-title {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 6px;
}

.scha-tour-media-description {
  color: #315a56;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 11px;
}

.scha-tour-media-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.scha-tour-media-image,
.scha-tour-media-video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.scha-tour-media-iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.scha-tour-media-fallback {
  border-left-color: #f59e0b;
  background: #fffbeb;
  color: #78350f;
}

#scha-panel.scha-design-demo-running,
#scha-root.scha-design-demo-running #scha-panel {
  transition: background-color .32s ease, color .32s ease, border-radius .32s ease, box-shadow .32s ease;
}

#scha-panel.scha-design-demo-running .scha-head {
  background: var(--scha-accent, #111827);
  color: var(--scha-btn-text, #ffffff);
  transition: background-color .32s ease, color .32s ease;
}

#scha-panel.scha-design-demo-running .scha-body {
  background: var(--scha-bg, #ffffff);
  color: var(--scha-text, #111111);
  font-size: var(--scha-font-size, 15px);
  font-weight: var(--scha-font-weight, 400);
  transition: background-color .32s ease, color .32s ease;
}

#scha-panel.scha-design-demo-running .scha-tour-card,
#scha-panel.scha-design-demo-running .scha-chat-product,
#scha-panel.scha-design-demo-running .scha-lead-box {
  border-radius: var(--scha-demo-border-radius, 14px);
}

#scha-panel.scha-design-demo-running .scha-tour-button-primary,
#scha-panel.scha-design-demo-running .scha-chat-action,
#scha-panel.scha-design-demo-running .scha-chat-add {
  background: var(--scha-btn-bg, #2563eb);
  color: var(--scha-btn-text, #ffffff);
}

.scha-tour-design-status {
  border-color: rgba(124, 58, 237, .18);
  border-left-color: #7c3aed;
  background: linear-gradient(180deg, #faf5ff, #ffffff);
  color: #2e1065;
}

.scha-tour-design-demo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(124, 58, 237, .18);
  border-radius: 999px;
  background: rgba(124, 58, 237, .12);
  color: #581c87;
  font-size: 11px;
  font-weight: 900;
  padding: 0 9px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.scha-tour-design-progress {
  font-size: 13px;
  line-height: 1.55;
}

.scha-tour-design-theme-name {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #4c1d95;
  font-weight: 900;
  padding: 4px 9px;
}

.scha-tour-agents-demo {
  border-color: rgba(37, 99, 235, .18);
  border-left-color: #2563eb;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  color: #1e3a8a;
}

.scha-tour-agent-status {
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.scha-tour-agent-intro {
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  margin-bottom: 12px;
}

.scha-tour-agent-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 16px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.scha-tour-agent-card.is-changing {
  opacity: .76;
  transform: translateY(2px);
}

.scha-tour-agent-card-custom {
  border-color: rgba(100, 116, 139, .22);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.scha-tour-agent-card-custom .scha-tour-agent-avatar {
  width: 74px;
  height: 74px;
  padding: 2px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, .16), 0 14px 28px rgba(15, 23, 42, .12);
}

.scha-tour-agent-avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 auto;
  background: #f8fafc;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12), 0 10px 22px rgba(15, 23, 42, .14);
}

.scha-tour-agent-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.scha-tour-agent-avatar-custom {
  background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
  color: #64748b;
  font-size: 25px;
}

.scha-tour-agent-meta {
  min-width: 0;
}

.scha-tour-agent-name {
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

.scha-tour-agent-role {
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
  margin-top: 3px;
}

.scha-tour-agent-copy,
.scha-tour-agent-description {
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 6px;
}

.scha-tour-agent-custom-message {
  display: inline-flex;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(124, 58, 237, .11);
  color: #5b21b6;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
  padding: 5px 9px;
}

.scha-tour-agent-finish-actions {
  margin-top: 14px;
  justify-content: flex-start;
}

.scha-tour-agent-finish-button {
  min-width: 150px;
}

.scha-tour-agent-progress {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, .1);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 9px;
}

#scha-panel.scha-agents-demo-running .scha-head {
  transition: background-color .25s ease, color .25s ease;
}

.scha-tour-agent-demo-head-avatar {
  transition: opacity .25s ease, transform .25s ease;
}

.scha-tour-agent-demo-head-avatar.scha-tour-agent-avatar-fallback {
  width: 38px;
  height: 38px;
  margin-right: 10px;
  font-size: 15px;
}

.scha-tour-agent-head-title {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0;
}

.scha-tour-media {
  display: block;
  max-width: 100%;
}

.scha-tour-hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .scha-tour-node {
    margin-bottom: 12px;
  }

  .scha-tour-card {
    border-radius: 16px;
  }

  .scha-tour-header {
    padding: 10px 12px 0;
  }

  .scha-tour-content {
    padding: 8px 12px 0;
  }

  .scha-tour-gif-box {
    min-height: 82px;
    margin: 8px 12px 0;
    border-radius: 12px;
  }

  .scha-tour-gif-image,
  .scha-tour-gif-video {
    max-height: 104px;
  }

  .scha-tour-title {
    font-size: 16px;
  }

  .scha-tour-description {
    font-size: 12.5px;
    line-height: 1.3;
  }

  .scha-tour-progress {
    min-height: 20px;
    margin-bottom: 6px;
    padding: 0 9px;
  }

  .scha-tour-intro .scha-tour-header {
    padding: 18px 16px 0;
  }

  .scha-tour-intro .scha-tour-content {
    padding: 13px 16px 0;
  }

  .scha-tour-intro .scha-tour-main-action {
    margin: 20px 16px 20px;
  }

  .scha-tour-actions {
    gap: 6px;
    margin: 8px 12px 0;
  }

  .scha-tour-nav {
    grid-template-columns: 1fr 1fr;
  }

  .scha-tour-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px 12px 10px;
    margin-top: 7px;
  }

  .scha-tour-button,
  .scha-tour-index-button {
    width: 100%;
    min-height: 36px;
    padding: 8px 9px;
    font-size: 12px;
  }

  .scha-tour-persistent-controls {
    margin: 0 10px 10px;
    padding: 10px;
    border-radius: 14px;
  }

  .scha-tour-mini-button {
    flex: 1 1 100%;
    min-height: 40px;
  }

  .scha-tour-action-result,
  .scha-tour-placeholder {
    margin-left: 14px;
    margin-right: 14px;
  }

  .scha-tour-index-list {
    padding-left: 14px;
    padding-right: 14px;
  }

  .scha-tour-agent-card {
    align-items: flex-start;
    gap: 10px;
  }

  .scha-tour-agent-avatar {
    width: 48px;
    height: 48px;
  }
}
