:root {
  --nexo-ink: #11172b;
  --nexo-text: #35415a;
  --nexo-muted: #667188;
  --nexo-line: #e4e7ef;
  --nexo-violet: #7047f5;
  --nexo-violet-dark: #4f2ac8;
  --nexo-violet-soft: #f3f0ff;
  --nexo-paper: #ffffff;
  --nexo-shadow: 0 24px 70px rgba(24, 20, 48, .16), 0 3px 12px rgba(24, 20, 48, .06);
}

.tarvos-nexo-widget,
.tarvos-nexo-page {
  font-family: var(--tarvos-font-sans, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  color: var(--nexo-ink);
}

.tarvos-nexo-widget *,
.tarvos-nexo-widget *::before,
.tarvos-nexo-widget *::after,
.tarvos-nexo-page *,
.tarvos-nexo-page *::before,
.tarvos-nexo-page *::after { box-sizing: border-box; }

.tarvos-nexo-widget svg,
.tarvos-nexo-page svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   WIDGET
   ========================================================= */
.tarvos-nexo-widget {
  position: fixed;
  right: clamp(.9rem, 2vw, 1.4rem);
  bottom: clamp(.9rem, 2vw, 1.4rem);
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  transition: bottom .18s ease;
}

.tarvos-nexo-widget.is-footer-visible {
  bottom: max(clamp(.9rem, 2vw, 1.4rem), var(--nexo-footer-clearance, 0px));
}

.tarvos-nexo-widget__toggle {
  display: inline-flex;
  align-items: center;
  min-width: 13.1rem;
  gap: .68rem;
  padding: .54rem .72rem .54rem .56rem;
  border: 1px solid rgba(223, 215, 255, .18);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #17152a 0%, #282049 58%, #33245f 100%);
  box-shadow: 0 16px 38px rgba(19, 17, 38, .24);
  cursor: pointer;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, opacity .16s ease;
}

.tarvos-nexo-widget__toggle:hover,
.tarvos-nexo-widget__toggle:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(19, 17, 38, .3);
}

.tarvos-nexo-widget.is-open .tarvos-nexo-widget__toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tarvos-nexo-widget__toggle-icon,
.tarvos-nexo-widget__avatar,
.tarvos-nexo-chat__avatar,
.tarvos-nexo-chat__message-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--nexo-violet-dark);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(103, 84, 160, .10);
}

.tarvos-nexo-widget__toggle-icon {
  width: 2.38rem;
  height: 2.38rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
}

.tarvos-nexo-widget__toggle-copy {
  display: grid;
  min-width: 0;
  gap: .18rem;
  line-height: 1.05;
}

.tarvos-nexo-widget__toggle-copy strong {
  font-size: .79rem;
  font-weight: 820;
  letter-spacing: -.015em;
}

.tarvos-nexo-widget__toggle-copy small {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.67);
  font-size: .67rem;
}

.tarvos-nexo-widget__toggle-copy small i,
.tarvos-nexo-widget__identity p span,
.tarvos-nexo-chat__eyebrow span,
.tarvos-nexo-workspace__status span,
.tarvos-nexo-hero__notice span {
  display: inline-block;
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: #2bcf91;
  box-shadow: 0 0 0 3px rgba(43,207,145,.12);
}

.tarvos-nexo-widget__toggle-arrow {
  width: 1rem !important;
  height: 1rem !important;
  margin-left: auto;
  color: #cfc4ff;
}

.tarvos-nexo-widget__panel {
  width: min(24rem, calc(100vw - 1.5rem));
  max-height: min(39rem, calc(100svh - 1.5rem));
  overflow: hidden;
  border: 1px solid rgba(83, 65, 139, .16);
  border-radius: 1.35rem;
  color: var(--nexo-ink);
  background: rgba(255,255,255,.98);
  box-shadow: var(--nexo-shadow);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.tarvos-nexo-widget__panel[hidden] { display: none !important; }

.tarvos-nexo-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem .9rem;
  border-bottom: 1px solid var(--nexo-line);
  background: rgba(255,255,255,.96);
}

.tarvos-nexo-widget__identity,
.tarvos-nexo-chat__identity {
  display: flex;
  align-items: center;
  gap: .66rem;
  min-width: 0;
}

.tarvos-nexo-widget__avatar {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: .72rem;
}

.tarvos-nexo-widget__identity p,
.tarvos-nexo-widget__identity h2 { margin: 0; }

.tarvos-nexo-widget__identity p {
  display: flex;
  align-items: center;
  gap: .36rem;
  color: var(--nexo-violet);
  font-size: .56rem;
  font-weight: 850;
  letter-spacing: .11em;
}

.tarvos-nexo-widget__identity h2 {
  margin-top: .12rem;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -.035em;
}

.tarvos-nexo-widget__header-actions {
  display: flex;
  gap: .42rem;
}

.tarvos-nexo-widget__header-actions a,
.tarvos-nexo-widget__header-actions button {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  padding: 0;
  border: 1px solid #e5e1f2;
  border-radius: .68rem;
  color: #413a59;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.tarvos-nexo-widget__header-actions a:hover,
.tarvos-nexo-widget__header-actions a:focus-visible,
.tarvos-nexo-widget__header-actions button:hover,
.tarvos-nexo-widget__header-actions button:focus-visible {
  border-color: #cfc2ff;
  color: var(--nexo-violet-dark);
  background: var(--nexo-violet-soft);
}

.tarvos-nexo-widget__header-actions svg { width: .95rem; height: .95rem; }

/* =========================================================
   CHAT SHARED
   ========================================================= */
.tarvos-nexo-chat {
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--nexo-ink);
  background: #fff;
}

.tarvos-nexo-widget .tarvos-nexo-chat {
  height: min(31.5rem, calc(100svh - 5.5rem));
}

.tarvos-nexo-chat__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--nexo-line);
}

.tarvos-nexo-chat__heading p,
.tarvos-nexo-chat__heading h2 { margin: 0; }

.tarvos-nexo-chat__heading > p {
  color: var(--nexo-muted);
  font-size: .72rem;
}

.tarvos-nexo-chat__avatar {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: .78rem;
}

.tarvos-nexo-chat__eyebrow {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--nexo-violet) !important;
  font-size: .58rem !important;
  font-weight: 850;
  letter-spacing: .11em;
}

.tarvos-nexo-chat__heading h2 {
  margin-top: .1rem;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: -.03em;
}

.tarvos-nexo-chat__messages {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  gap: .75rem;
  align-content: start;
  overflow-y: auto;
  padding: .95rem;
  background:
    radial-gradient(circle at 94% 0, rgba(112,71,245,.055), transparent 34%),
    #fbfbfe;
  scrollbar-color: rgba(112,71,245,.35) transparent;
  scrollbar-width: thin;
}

.tarvos-nexo-chat__messages::-webkit-scrollbar { width: 6px; }
.tarvos-nexo-chat__messages::-webkit-scrollbar-track { background: transparent; }
.tarvos-nexo-chat__messages::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(112,71,245,.32); }

.tarvos-nexo-chat__row {
  display: flex;
  align-items: flex-end;
  gap: .48rem;
  max-width: 92%;
}

.tarvos-nexo-chat__row--user {
  justify-self: end;
  margin-left: auto;
}

.tarvos-nexo-chat__message-avatar {
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: .15rem;
  border-radius: .58rem;
}

.tarvos-nexo-chat__message-avatar svg { width: .86rem; height: .86rem; }

.tarvos-nexo-chat__bubble {
  padding: .7rem .78rem;
  border: 1px solid #e3e5ed;
  border-radius: .92rem .92rem .92rem .32rem;
  color: #2a3650;
  background: #fff;
  box-shadow: 0 6px 18px rgba(30,27,58,.035);
  font-size: .82rem;
  line-height: 1.53;
}

.tarvos-nexo-chat__row--user .tarvos-nexo-chat__bubble {
  border-color: var(--nexo-violet);
  border-radius: .92rem .92rem .32rem .92rem;
  color: #fff;
  background: linear-gradient(135deg, #7d58f8, #6841eb);
  box-shadow: 0 9px 22px rgba(112,71,245,.18);
}

.tarvos-nexo-chat__bubble p { margin: 0 0 .55rem; }
.tarvos-nexo-chat__bubble p:last-child { margin-bottom: 0; }
.tarvos-nexo-chat__bubble ul { margin: .45rem 0 .2rem; padding-left: 1.15rem; }
.tarvos-nexo-chat__bubble li + li { margin-top: .32rem; }
.tarvos-nexo-chat__bubble a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.tarvos-nexo-chat__row--assistant .tarvos-nexo-chat__bubble a { color: #4f2ac8; }

.tarvos-nexo-chat__typing {
  display: inline-flex;
  align-items: center;
  gap: .24rem;
  color: var(--nexo-muted);
}

.tarvos-nexo-chat__typing i {
  width: .3rem;
  height: .3rem;
  border-radius: 50%;
  background: var(--nexo-violet);
  animation: nexo-pulse 1.05s infinite ease-in-out;
}
.tarvos-nexo-chat__typing i:nth-child(2) { animation-delay: .12s; }
.tarvos-nexo-chat__typing i:nth-child(3) { animation-delay: .24s; }
.tarvos-nexo-chat__typing span { margin-left: .28rem; }

@keyframes nexo-pulse {
  0%,100% { opacity: .3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.tarvos-nexo-chat__suggestions {
  display: flex;
  gap: .42rem;
  overflow-x: auto;
  padding: .68rem .82rem .3rem;
  scrollbar-width: none;
}
.tarvos-nexo-chat__suggestions::-webkit-scrollbar { display: none; }

.tarvos-nexo-chat__suggestions button {
  flex: 0 0 auto;
  min-height: 2rem;
  padding: .38rem .66rem;
  border: 1px solid #ded6ff;
  border-radius: 999px;
  color: #4d377f;
  background: #f8f6ff;
  font: inherit;
  font-size: .67rem;
  font-weight: 760;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.tarvos-nexo-chat__suggestions button:hover,
.tarvos-nexo-chat__suggestions button:focus-visible {
  border-color: #bba9ff;
  color: var(--nexo-violet-dark);
  background: var(--nexo-violet-soft);
}

.tarvos-nexo-chat__form { padding: .48rem .82rem .68rem; }

.tarvos-nexo-chat__composer {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: .45rem;
  padding: .38rem;
  border: 1px solid #dfe2eb;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(30,27,58,.045);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.tarvos-nexo-chat__composer:focus-within {
  border-color: #a994ff;
  box-shadow: 0 0 0 4px rgba(112,71,245,.09);
}

.tarvos-nexo-chat__textarea,
.tarvos-nexo-chat__textarea:focus,
.tarvos-nexo-chat__textarea:focus-visible {
  width: 100%;
  min-height: 2.45rem;
  max-height: 7.75rem;
  margin: 0;
  padding: .6rem .62rem;
  resize: none;
  border: 0 !important;
  outline: 0 !important;
  color: var(--nexo-ink);
  background: transparent !important;
  box-shadow: none !important;
  font: inherit;
  font-size: .81rem;
  line-height: 1.42;
}

.tarvos-nexo-chat__textarea::placeholder { color: #8b93a5; }

.tarvos-nexo-chat__submit {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  padding: 0 .75rem;
  border: 0;
  border-radius: .78rem;
  color: #fff;
  background: var(--nexo-violet);
  box-shadow: 0 8px 18px rgba(112,71,245,.2);
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 820;
}

.tarvos-nexo-chat__submit:hover { background: var(--nexo-violet-dark); }
.tarvos-nexo-chat__submit:disabled { opacity: .58; cursor: wait; }
.tarvos-nexo-chat__submit svg { width: .95rem; height: .95rem; }
.tarvos-nexo-widget .tarvos-nexo-chat__submit span { display: none; }
.tarvos-nexo-widget .tarvos-nexo-chat__submit { width: 2.5rem; padding: 0; }

.tarvos-nexo-chat__controls { margin-top: .48rem; }
.tarvos-nexo-chat__controls p { margin: 0; color: #7a8395; font-size: .58rem; line-height: 1.4; }
.tarvos-nexo-chat__status { min-height: .9rem; margin: .22rem 0 0; color: #9b332b; font-size: .65rem; }

.tarvos-nexo-chat__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
}

/* =========================================================
   PAGE
   ========================================================= */
body:has(.tarvos-nexo-page),
body:has(.tarvos-nexo-page) :is(#main,.site-main,.content-area,.ct-container-full) {
  background: #fff !important;
}

.tarvos-nexo-page { overflow: hidden; background: #fff; }
.tarvos-nexo-page__shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.tarvos-nexo-hero {
  padding: clamp(4.5rem, 8vw, 7.4rem) 0 clamp(4rem, 7vw, 6.2rem);
  border-bottom: 1px solid var(--nexo-line);
  background:
    radial-gradient(34rem 22rem at 50% 0, rgba(112,71,245,.09), transparent 70%),
    #fff;
}

.tarvos-nexo-hero__inner { max-width: 920px; text-align: center; }

.tarvos-nexo-hero h1 {
  max-width: 12ch;
  margin: 0 auto;
  color: var(--nexo-ink);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 850;
  letter-spacing: -.07em;
  line-height: .95;
  text-wrap: balance;
}

.tarvos-nexo-hero__inner > p:not(.tarvos-nexo-hero__notice) {
  max-width: 760px;
  margin: 1.35rem auto 0;
  color: var(--nexo-text);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.7;
}

.tarvos-nexo-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-top: 1.8rem;
}

.tarvos-nexo-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: .82rem;
  font-size: .86rem;
  font-weight: 820;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, color .16s ease, background .16s ease, box-shadow .16s ease;
}

.tarvos-nexo-button:hover,
.tarvos-nexo-button:focus-visible { transform: translateY(-1px); }

.tarvos-nexo-button--primary {
  color: #fff;
  background: var(--nexo-violet);
  box-shadow: 0 13px 26px rgba(112,71,245,.2);
}
.tarvos-nexo-button--primary:hover,
.tarvos-nexo-button--primary:focus-visible { color: #fff; background: var(--nexo-violet-dark); }

.tarvos-nexo-button--ghost {
  border-color: #dfe2eb;
  color: var(--nexo-ink);
  background: #fff;
}
.tarvos-nexo-button--ghost:hover,
.tarvos-nexo-button--ghost:focus-visible { border-color: #cbbdff; color: var(--nexo-violet-dark); background: var(--nexo-violet-soft); }

.tarvos-nexo-hero__notice {
  display: flex;
  max-width: max-content;
  align-items: center;
  gap: .48rem;
  margin: 1.25rem auto 0;
  color: var(--nexo-muted);
  font-size: .75rem;
}

.tarvos-nexo-conversation { padding: clamp(4.2rem, 8vw, 7rem) 0; background: #fff; }

.tarvos-nexo-section-heading p {
  margin: 0 0 .75rem;
  color: var(--nexo-violet);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.tarvos-nexo-section-heading h2 {
  margin: 0;
  color: var(--nexo-ink);
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 850;
  letter-spacing: -.06em;
  line-height: 1;
  text-wrap: balance;
}

.tarvos-nexo-section-heading > span {
  display: block;
  max-width: 680px;
  margin-top: 1rem;
  color: var(--nexo-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.tarvos-nexo-section-heading--centered { max-width: 760px; margin-inline: auto; text-align: center; }
.tarvos-nexo-section-heading--centered > span { margin-inline: auto; }

.tarvos-nexo-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .65fr);
  gap: 1rem;
  align-items: stretch;
  margin-top: 2.3rem;
}

.tarvos-nexo-workspace__chat {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--nexo-line);
  border-radius: 1.35rem;
  box-shadow: 0 24px 55px rgba(31,27,60,.08);
}

.tarvos-nexo-workspace__chat .tarvos-nexo-chat { min-height: 38rem; }
.tarvos-nexo-workspace__chat .tarvos-nexo-chat__messages { min-height: 22rem; max-height: 31rem; }
.tarvos-nexo-workspace__chat .tarvos-nexo-chat__suggestions { padding-top: .8rem; }
.tarvos-nexo-workspace__chat .tarvos-nexo-chat__form { padding: .6rem 1rem .9rem; }

.tarvos-nexo-workspace__aside {
  padding: 1.5rem;
  border: 1px solid #ded8f4;
  border-radius: 1.35rem;
  color: #fff;
  background:
    radial-gradient(20rem 14rem at 110% -10%, rgba(140,108,255,.4), transparent 65%),
    linear-gradient(155deg, #17152b, #282149 72%, #352565);
  box-shadow: 0 24px 55px rgba(31,27,60,.1);
}

.tarvos-nexo-workspace__status {
  display: flex;
  align-items: center;
  gap: .48rem;
  color: #cfc8e6;
  font-size: .68rem;
  font-weight: 780;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tarvos-nexo-workspace__aside h3 {
  margin: 1.05rem 0 0;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 820;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.tarvos-nexo-workspace__aside ul { margin: 1.55rem 0 0; padding: 0; list-style: none; }
.tarvos-nexo-workspace__aside li { padding: .92rem 0; border-top: 1px solid rgba(255,255,255,.12); }
.tarvos-nexo-workspace__aside li strong { display: block; color: #fff; font-size: .86rem; }
.tarvos-nexo-workspace__aside li span { display: block; margin-top: .3rem; color: #c8c4d9; font-size: .76rem; line-height: 1.5; }
.tarvos-nexo-workspace__aside > a { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.1rem; color: #fff; font-size: .8rem; font-weight: 800; text-decoration: none; }
.tarvos-nexo-workspace__aside > a:hover { color: #d8ceff; }

.tarvos-nexo-guide { padding: clamp(4rem, 8vw, 7rem) 0; border-block: 1px solid var(--nexo-line); background: #fafaff; }
.tarvos-nexo-guide__grid { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: clamp(3rem,7vw,6.5rem); }
.tarvos-nexo-guide__rows article { display: grid; grid-template-columns: 2.4rem minmax(0,1fr); gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--nexo-line); }
.tarvos-nexo-guide__rows article:first-child { border-top: 1px solid var(--nexo-line); }
.tarvos-nexo-guide__rows article > span { color: var(--nexo-violet); font-size: .72rem; font-weight: 850; letter-spacing: .08em; }
.tarvos-nexo-guide__rows h3 { margin: 0; font-size: 1.08rem; font-weight: 820; letter-spacing: -.025em; }
.tarvos-nexo-guide__rows p { margin: .42rem 0 0; color: var(--nexo-muted); font-size: .9rem; line-height: 1.62; }

.tarvos-nexo-faq { padding: clamp(4rem, 8vw, 7rem) 0; background: #fff; }
.tarvos-nexo-faq__grid { display: grid; grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); gap: clamp(3rem,7vw,6rem); }
.tarvos-nexo-faq__items { border-top: 1px solid var(--nexo-line); }
.tarvos-nexo-faq__items details { border-bottom: 1px solid var(--nexo-line); }
.tarvos-nexo-faq__items summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; cursor: pointer; font-size: .98rem; font-weight: 800; list-style: none; }
.tarvos-nexo-faq__items summary::-webkit-details-marker { display: none; }
.tarvos-nexo-faq__items summary span { color: var(--nexo-violet); font-size: 1.35rem; font-weight: 400; transition: transform .16s ease; }
.tarvos-nexo-faq__items details[open] summary span { transform: rotate(45deg); }
.tarvos-nexo-faq__items p { margin: 0 0 1.15rem; color: var(--nexo-muted); line-height: 1.65; }
.tarvos-nexo-faq__items a { color: var(--nexo-violet-dark); font-weight: 800; }

.tarvos-nexo-contact { padding: 0 0 clamp(4rem,8vw,7rem); background: #fff; }
.tarvos-nexo-contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.6rem,4vw,2.5rem); border-radius: 1.35rem; color: #fff; background: linear-gradient(135deg,#18152c,#302253); }
.tarvos-nexo-contact p { margin: 0 0 .55rem; color: #c9bfff; font-size: .67rem; font-weight: 850; letter-spacing: .11em; }
.tarvos-nexo-contact h2 { margin: 0; color: #fff; font-size: clamp(1.8rem,4vw,3rem); letter-spacing: -.055em; line-height: 1; }
.tarvos-nexo-contact div > span { display: block; margin-top: .7rem; color: #d1cde0; line-height: 1.55; }
.tarvos-nexo-button--light { flex: 0 0 auto; color: #1b1730; background: #fff; }
.tarvos-nexo-button--light:hover,
.tarvos-nexo-button--light:focus-visible { color: #fff; background: var(--nexo-violet); }

.tarvos-nexo-page :where(a,button,textarea):focus-visible,
.tarvos-nexo-widget :where(a,button,textarea):focus-visible {
  outline: 3px solid rgba(112,71,245,.36) !important;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .tarvos-nexo-workspace,
  .tarvos-nexo-guide__grid,
  .tarvos-nexo-faq__grid { grid-template-columns: 1fr; }
  .tarvos-nexo-workspace__aside { order: -1; }
  .tarvos-nexo-guide__grid,
  .tarvos-nexo-faq__grid { gap: 2.4rem; }
}

@media (max-width: 640px) {
  .tarvos-nexo-widget { right: .7rem; bottom: .7rem; }
  .tarvos-nexo-widget__toggle { min-width: 0; padding: .48rem; }
  .tarvos-nexo-widget__toggle-copy,
  .tarvos-nexo-widget__toggle-arrow { display: none; }
  .tarvos-nexo-widget__toggle-icon { width: 2.7rem; height: 2.7rem; }
  .tarvos-nexo-widget__panel { width: calc(100vw - 1.4rem); max-height: calc(100svh - 1.4rem); border-radius: 1.15rem; }
  .tarvos-nexo-widget .tarvos-nexo-chat { height: calc(100svh - 5.2rem); max-height: 34rem; }
  .tarvos-nexo-page__shell { width: min(100% - 24px, 1120px); }
  .tarvos-nexo-hero { padding: 3.5rem 0 3.7rem; }
  .tarvos-nexo-hero h1 { font-size: clamp(2.75rem,13vw,4rem); }
  .tarvos-nexo-hero__actions,
  .tarvos-nexo-button { width: 100%; }
  .tarvos-nexo-chat__heading { align-items: flex-start; flex-direction: column; }
  .tarvos-nexo-chat__heading > p { margin-left: 3rem; }
  .tarvos-nexo-workspace__chat .tarvos-nexo-chat { min-height: 34rem; }
  .tarvos-nexo-contact__inner { align-items: flex-start; flex-direction: column; }
  .tarvos-nexo-button--light { width: 100%; }
}


/* =========================================================
   NEXO · WIDGET PREMIUM 20260810
   Rediseño visual del asistente flotante. No altera REST, prompt ni datos.
   ========================================================= */
.tarvos-nexo-widget {
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2vw, 1.5rem);
}

.tarvos-nexo-widget__toggle {
  min-width: 14.2rem;
  gap: .72rem;
  padding: .52rem .58rem .52rem .54rem;
  border: 1px solid rgba(209, 211, 229, .9);
  border-radius: 1rem;
  color: #171a2f;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,249,253,.96));
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 12px 30px rgba(24, 21, 54, .10),
    0 3px 9px rgba(24, 21, 54, .055);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.tarvos-nexo-widget__toggle:hover,
.tarvos-nexo-widget__toggle:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(112, 71, 245, .32);
  box-shadow:
    0 1px 0 rgba(255,255,255,.95) inset,
    0 18px 44px rgba(45, 34, 103, .14),
    0 4px 12px rgba(45, 34, 103, .07);
}

.tarvos-nexo-widget__toggle-icon {
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid rgba(255,255,255,.74);
  border-radius: .78rem;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.34), transparent 34%),
    linear-gradient(145deg, #8d72ff 0%, #7047f5 54%, #4f2ac8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.36),
    0 .45rem 1rem rgba(91, 60, 209, .23);
}

.tarvos-nexo-widget__toggle-copy {
  gap: .2rem;
}

.tarvos-nexo-widget__toggle-copy strong {
  color: #171a2f;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: -.02em;
}

.tarvos-nexo-widget__toggle-copy small {
  color: #6e7588;
  font-size: .62rem;
  font-weight: 620;
}

.tarvos-nexo-widget__toggle-copy small i {
  width: .4rem;
  height: .4rem;
  background: #29c98d;
  box-shadow: 0 0 0 3px rgba(41, 201, 141, .11);
}

.tarvos-nexo-widget__toggle-arrow {
  display: grid;
  width: 1.85rem !important;
  height: 1.85rem !important;
  place-items: center;
  margin-left: auto;
  padding: .45rem;
  border: 1px solid #e5e4ef;
  border-radius: .62rem;
  color: #5e45cb;
  background: #f7f5ff;
}

.tarvos-nexo-widget__panel {
  width: min(25rem, calc(100vw - 1.5rem));
  max-height: min(41rem, calc(100svh - 1.5rem));
  overflow: hidden;
  border: 1px solid rgba(211, 213, 230, .9);
  border-radius: 1.5rem;
  background: #f6f7fb;
  box-shadow:
    0 40px 100px rgba(23, 19, 54, .20),
    0 12px 34px rgba(23, 19, 54, .10),
    0 1px 0 rgba(255,255,255,.92) inset;
  backdrop-filter: blur(26px) saturate(145%);
  -webkit-backdrop-filter: blur(26px) saturate(145%);
}

.tarvos-nexo-widget.is-open .tarvos-nexo-widget__panel {
  animation: tarvos-nexo-premium-open .22s cubic-bezier(.2,.78,.25,1) both;
}

@keyframes tarvos-nexo-premium-open {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tarvos-nexo-widget__header {
  position: relative;
  min-height: 5rem;
  padding: .92rem 1rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  background:
    radial-gradient(16rem 9rem at 88% -40%, rgba(137,108,255,.54), transparent 68%),
    radial-gradient(12rem 8rem at -15% 110%, rgba(88,61,201,.40), transparent 66%),
    linear-gradient(145deg, #15172d 0%, #1d1b3c 54%, #27204d 100%);
}

.tarvos-nexo-widget__header::after {
  content: '';
  position: absolute;
  right: -2rem;
  bottom: -4rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  pointer-events: none;
}

.tarvos-nexo-widget__identity,
.tarvos-nexo-widget__header-actions {
  position: relative;
  z-index: 1;
}

.tarvos-nexo-widget__avatar {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: .84rem;
  color: #fff;
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,.38), transparent 30%),
    linear-gradient(145deg, #8f73ff, #7047f5 58%, #5230cb);
  box-shadow: 0 .65rem 1.5rem rgba(3, 3, 19, .22), inset 0 1px 0 rgba(255,255,255,.32);
}

.tarvos-nexo-widget__identity p {
  color: rgba(226, 222, 255, .78);
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.tarvos-nexo-widget__identity h2 {
  display: flex;
  align-items: center;
  gap: .42rem;
  margin-top: .14rem;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: -.035em;
}

.tarvos-nexo-widget__identity h2 small {
  display: inline-flex;
  min-height: 1.25rem;
  align-items: center;
  padding: .18rem .38rem;
  border: 1px solid rgba(214,205,255,.24);
  border-radius: .4rem;
  color: #d9d0ff;
  background: rgba(255,255,255,.08);
  font-size: .48rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.tarvos-nexo-widget__header-actions {
  gap: .42rem;
}

.tarvos-nexo-widget__header-actions a,
.tarvos-nexo-widget__header-actions button {
  width: 2.05rem;
  height: 2.05rem;
  border-color: rgba(255,255,255,.12);
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.tarvos-nexo-widget__header-actions a:hover,
.tarvos-nexo-widget__header-actions a:focus-visible,
.tarvos-nexo-widget__header-actions button:hover,
.tarvos-nexo-widget__header-actions button:focus-visible {
  border-color: rgba(255,255,255,.25);
  color: #fff;
  background: rgba(255,255,255,.13);
}

.tarvos-nexo-widget .tarvos-nexo-chat {
  height: min(35rem, calc(100svh - 7.1rem));
  max-height: 35rem;
  background:
    radial-gradient(17rem 10rem at 50% -20%, rgba(112,71,245,.055), transparent 70%),
    #f7f8fc;
}

.tarvos-nexo-widget .tarvos-nexo-chat__messages {
  padding: 1.12rem 1rem .9rem;
  background: transparent;
}

.tarvos-nexo-widget .tarvos-nexo-chat__row {
  gap: .55rem;
  margin-bottom: .75rem;
}

.tarvos-nexo-widget .tarvos-nexo-chat__message-avatar {
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid rgba(112,71,245,.15);
  border-radius: .58rem;
  color: #6843df;
  background: #f0ecff;
  box-shadow: none;
}

.tarvos-nexo-widget .tarvos-nexo-chat__bubble {
  max-width: 85%;
  padding: .75rem .88rem;
  border: 1px solid #e4e6ef;
  border-radius: .9rem .9rem .9rem .3rem;
  color: #30394e;
  background: rgba(255,255,255,.98);
  box-shadow: 0 .35rem 1rem rgba(26, 28, 52, .045);
  font-size: .78rem;
  line-height: 1.58;
}

.tarvos-nexo-widget .tarvos-nexo-chat__row--user .tarvos-nexo-chat__bubble {
  border-color: rgba(91, 60, 209, .08);
  border-radius: .9rem .9rem .3rem .9rem;
  color: #fff;
  background: linear-gradient(145deg, #7651f5, #5c35d8);
  box-shadow: 0 .45rem 1rem rgba(83, 51, 196, .14);
}

.tarvos-nexo-widget .tarvos-nexo-chat__suggestions {
  gap: .42rem;
  padding: .72rem 1rem .42rem;
  border-top: 1px solid rgba(224,226,237,.82);
  background: rgba(250,250,253,.88);
}

.tarvos-nexo-widget .tarvos-nexo-chat__suggestions button {
  min-height: 2rem;
  padding: .4rem .62rem;
  border: 1px solid #dfdfeb;
  border-radius: .6rem;
  color: #4c5368;
  background: #fff;
  box-shadow: 0 .15rem .45rem rgba(24,24,46,.03);
  font-size: .61rem;
  font-weight: 740;
}

.tarvos-nexo-widget .tarvos-nexo-chat__suggestions button:hover,
.tarvos-nexo-widget .tarvos-nexo-chat__suggestions button:focus-visible {
  border-color: #cfc3ff;
  color: #5a35ca;
  background: #f5f2ff;
}

.tarvos-nexo-widget .tarvos-nexo-chat__form {
  padding: .58rem 1rem .78rem;
  border-top: 0;
  background: rgba(250,250,253,.96);
}

.tarvos-nexo-widget .tarvos-nexo-chat__composer {
  min-height: 3.25rem;
  padding: .34rem .34rem .34rem .78rem;
  border: 1px solid #dcddea;
  border-radius: .9rem;
  background: #fff;
  box-shadow:
    0 .35rem 1.1rem rgba(24, 24, 52, .055),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.tarvos-nexo-widget .tarvos-nexo-chat__composer:focus-within {
  border-color: rgba(112,71,245,.48);
  box-shadow:
    0 0 0 3px rgba(112,71,245,.09),
    0 .45rem 1.3rem rgba(49, 35, 106, .07);
}

.tarvos-nexo-widget .tarvos-nexo-chat__textarea,
.tarvos-nexo-widget .tarvos-nexo-chat__textarea:focus,
.tarvos-nexo-widget .tarvos-nexo-chat__textarea:focus-visible {
  min-height: 2.45rem;
  max-height: 7.5rem;
  padding: .52rem 0;
  color: #242a3d;
  font-size: .78rem;
  line-height: 1.45;
}

.tarvos-nexo-widget .tarvos-nexo-chat__submit {
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 2.55rem;
  border: 0;
  border-radius: .72rem;
  color: #fff;
  background:
    radial-gradient(circle at 25% 15%, rgba(255,255,255,.28), transparent 30%),
    linear-gradient(145deg, #7b56f6, #5a34d3);
  box-shadow: 0 .45rem 1rem rgba(85,52,201,.22), inset 0 1px 0 rgba(255,255,255,.24);
}

.tarvos-nexo-widget .tarvos-nexo-chat__submit:hover {
  background: linear-gradient(145deg, #6f48ef, #4f2bc5);
  transform: translateY(-1px);
}

.tarvos-nexo-widget .tarvos-nexo-chat__controls {
  margin-top: .45rem;
}

.tarvos-nexo-widget .tarvos-nexo-chat__controls p {
  color: #8a90a2;
  font-size: .55rem;
  line-height: 1.4;
}

.tarvos-nexo-widget .tarvos-nexo-chat__status {
  min-height: .72rem;
  margin-top: .18rem;
  font-size: .58rem;
}

@media (max-width: 640px) {
  .tarvos-nexo-widget {
    right: .7rem;
    bottom: .7rem;
  }

  .tarvos-nexo-widget__toggle {
    min-width: 0;
    padding: .42rem;
    border-radius: .9rem;
  }

  .tarvos-nexo-widget__toggle-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: .75rem;
  }

  .tarvos-nexo-widget__panel {
    width: calc(100vw - 1.4rem);
    max-height: calc(100svh - 1.4rem);
    border-radius: 1.25rem;
  }

  .tarvos-nexo-widget .tarvos-nexo-chat {
    height: calc(100svh - 6.2rem);
    max-height: 35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tarvos-nexo-widget.is-open .tarvos-nexo-widget__panel {
    animation: none;
  }
}

/* Tarvos Nexo plugin refinements */
.tarvos-nexo-widget__panel{width:min(var(--nexo-widget-width,24rem),calc(100vw - 1.5rem));}
.tarvos-nexo-media{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block;}
.tarvos-nexo-chat__bubble a{font-weight:750;text-decoration:underline;text-underline-offset:2px;}
.tarvos-nexo-chat__bubble strong{font-weight:800;}
.tarvos-nexo-chat__bubble ul{margin:.35rem 0 .1rem 1.05rem;padding:0;}
.tarvos-nexo-chat__bubble li{margin:.2rem 0;}
.tarvos-nexo-widget__panel:focus{outline:none;}
@media (max-width: 620px){
  .tarvos-nexo-widget[data-mobile-mode="sheet"].is-open{inset:0;align-items:stretch;justify-content:flex-end;pointer-events:none;}
  .tarvos-nexo-widget[data-mobile-mode="sheet"] .tarvos-nexo-widget__panel{pointer-events:auto;width:100%;max-height:min(86dvh,46rem);border-radius:1.3rem 1.3rem 0 0;margin:0;}
  .tarvos-nexo-widget[data-mobile-mode="sheet"] .tarvos-nexo-chat{height:min(70dvh,38rem);}
}
@media (prefers-reduced-motion: reduce){
  .tarvos-nexo-widget,.tarvos-nexo-widget *, .tarvos-nexo-page *{scroll-behavior:auto!important;animation:none!important;transition:none!important;}
}

/* v1.0.1 — conversation and visual polish */
.tarvos-nexo-chat__messages {
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior: contain;
}
.tarvos-nexo-chat__messages::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.tarvos-nexo-chat__bubble {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.tarvos-nexo-chat__bubble a.tarvos-nexo-chat__link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 1.65rem;
  margin: .12rem .12rem .12rem 0;
  padding: .22rem .5rem;
  border: 1px solid #dedbea;
  border-radius: .5rem;
  color: #4b3a7c;
  background: #f8f7fc;
  text-decoration: none;
  text-underline-offset: 0;
  font-size: .92em;
  font-weight: 760;
  line-height: 1.25;
  vertical-align: middle;
}
.tarvos-nexo-chat__bubble a.tarvos-nexo-chat__link:hover {
  border-color: #cfc8e6;
  color: #34285a;
  background: #f3f1f8;
}
.tarvos-nexo-chat__bubble a.tarvos-nexo-chat__link:focus-visible {
  outline: 2px solid rgba(80, 67, 126, .32) !important;
  outline-offset: 2px;
}

/* Keep the composer calm: no purple halo around the writing area. */
.tarvos-nexo-chat__composer:focus-within,
.tarvos-nexo-widget .tarvos-nexo-chat__composer:focus-within {
  border-color: #cfd2dc;
  box-shadow: 0 .35rem 1.1rem rgba(24, 24, 52, .055), inset 0 1px 0 rgba(255,255,255,.9);
}
.tarvos-nexo-chat__textarea:focus,
.tarvos-nexo-chat__textarea:focus-visible,
.tarvos-nexo-widget .tarvos-nexo-chat__textarea:focus,
.tarvos-nexo-widget .tarvos-nexo-chat__textarea:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
}

/* =========================================================
   v1.0.3 — viewport móvil real, cierre persistente y UX multidispositivo
   ========================================================= */

/* El widget debe quedar por encima del chrome del tema y de barras flotantes. */
.tarvos-nexo-widget {
  z-index: 2147483000;
}

/* Acciones rápidas sin bandas de scroll en escritorio. */
.tarvos-nexo-widget .tarvos-nexo-chat__suggestions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .42rem;
  overflow: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tarvos-nexo-widget .tarvos-nexo-chat__suggestions::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.tarvos-nexo-widget .tarvos-nexo-chat__suggestions button {
  width: 100%;
  min-width: 0;
  min-height: 2.45rem;
  height: auto;
  padding: .42rem .5rem;
  overflow: hidden;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
  text-wrap: balance;
}

/* Indicador de escritura tipo mensajería. */
.tarvos-nexo-chat__row--typing { margin-bottom: 0 !important; }
.tarvos-nexo-chat__bubble--typing {
  width: auto;
  min-width: 3.2rem;
  padding: .7rem .82rem !important;
}
.tarvos-nexo-chat__typing {
  display: inline-flex;
  min-height: .6rem;
  align-items: center;
  gap: .27rem;
}
.tarvos-nexo-chat__typing i {
  width: .36rem;
  height: .36rem;
  border-radius: 50%;
  background: #8b91a2;
  animation: nexo-writing-dot 1.05s infinite ease-in-out;
}
.tarvos-nexo-chat__typing i:nth-child(2) { animation-delay: .13s; }
.tarvos-nexo-chat__typing i:nth-child(3) { animation-delay: .26s; }
@keyframes nexo-writing-dot {
  0%, 60%, 100% { opacity: .32; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

.tarvos-nexo-chat__status:empty { display: none; }

/* El botón X siempre debe ser inequívoco, accesible y fácil de pulsar. */
.tarvos-nexo-widget__header-actions button[data-nexo-close] {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  flex: 0 0 2.75rem;
}
.tarvos-nexo-widget__header-actions button[data-nexo-close] svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2.2;
}

/* Evita que estilos globales del tema conviertan el textarea en un formulario alto. */
.tarvos-nexo-chat__textarea,
.tarvos-nexo-chat__textarea:focus,
.tarvos-nexo-chat__textarea:focus-visible {
  height: auto !important;
  max-width: 100%;
  resize: none !important;
}

/* Colisión con el footer: la variable se calcula solo cuando hace falta. */
.tarvos-nexo-widget.is-footer-visible {
  bottom: max(clamp(.9rem, 2vw, 1.4rem), var(--nexo-footer-clearance, 0px));
}

html.tarvos-nexo-modal-open,
body.tarvos-nexo-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

@media (max-width: 820px) {
  /* Cerrado: un único avatar reconocible y sin ocupar contenido. */
  .tarvos-nexo-widget:not(.is-open) {
    right: .85rem;
    bottom: .85rem;
  }
  .tarvos-nexo-widget__toggle {
    width: 3.2rem;
    min-width: 3.2rem;
    height: 3.2rem;
    min-height: 3.2rem;
    justify-content: center;
    gap: 0;
    padding: .24rem;
    border-radius: 50%;
  }
  .tarvos-nexo-widget__toggle-copy,
  .tarvos-nexo-widget__toggle-arrow {
    display: none !important;
  }
  .tarvos-nexo-widget__toggle-icon {
    width: 2.62rem;
    height: 2.62rem;
    border-radius: 50%;
  }

  /*
   * Abierto: ocupa exactamente el VisualViewport que JS publica. Esto evita
   * que Android/iOS desplacen la cabecera fuera de pantalla al abrir teclado,
   * cambiar la barra del navegador o rotar el dispositivo.
   */
  .tarvos-nexo-widget.is-open,
  .tarvos-nexo-widget[data-mobile-mode="sheet"].is-open,
  .tarvos-nexo-widget[data-mobile-mode="compact"].is-open,
  .tarvos-nexo-widget[data-mobile-mode="fullscreen"].is-open {
    position: fixed;
    top: var(--nexo-visual-top, 0px) !important;
    right: auto !important;
    bottom: auto !important;
    left: var(--nexo-visual-left, 0px) !important;
    width: var(--nexo-visual-width, 100dvw);
    max-width: none;
    height: var(--nexo-visual-height, 100dvh);
    max-height: none;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    overscroll-behavior: none;
    pointer-events: auto;
  }

  .tarvos-nexo-widget.is-open .tarvos-nexo-widget__panel,
  .tarvos-nexo-widget[data-mobile-mode="sheet"].is-open .tarvos-nexo-widget__panel,
  .tarvos-nexo-widget[data-mobile-mode="compact"].is-open .tarvos-nexo-widget__panel,
  .tarvos-nexo-widget[data-mobile-mode="fullscreen"].is-open .tarvos-nexo-widget__panel {
    position: relative !important;
    inset: auto !important;
    display: flex;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none;
    transform: none !important;
  }

  .tarvos-nexo-widget.is-open .tarvos-nexo-widget__header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 4.7rem;
    flex: 0 0 auto;
    padding:
      max(.72rem, env(safe-area-inset-top))
      max(.8rem, env(safe-area-inset-right))
      .72rem
      max(.8rem, env(safe-area-inset-left));
    transform: none !important;
  }

  /* En móvil la X es la única acción de cabecera: nunca queda oculta. */
  .tarvos-nexo-widget.is-open .tarvos-nexo-widget__header-actions a {
    display: none;
  }
  .tarvos-nexo-widget.is-open .tarvos-nexo-widget__header-actions button[data-nexo-close] {
    display: grid !important;
    width: 2.8rem;
    min-width: 2.8rem;
    height: 2.8rem;
    min-height: 2.8rem;
    place-items: center;
    flex: 0 0 2.8rem;
    border-radius: .82rem;
  }

  .tarvos-nexo-widget.is-open .tarvos-nexo-chat,
  .tarvos-nexo-widget[data-mobile-mode="sheet"].is-open .tarvos-nexo-chat,
  .tarvos-nexo-widget[data-mobile-mode="compact"].is-open .tarvos-nexo-chat,
  .tarvos-nexo-widget[data-mobile-mode="fullscreen"].is-open .tarvos-nexo-chat {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    overflow: hidden;
  }

  .tarvos-nexo-widget.is-open .tarvos-nexo-chat__messages {
    min-height: 0;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem .85rem .7rem;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  .tarvos-nexo-widget.is-open .tarvos-nexo-chat__row { max-width: 96%; }
  .tarvos-nexo-widget.is-open .tarvos-nexo-chat__bubble {
    max-width: min(88vw, 32rem);
    font-size: .86rem;
    line-height: 1.5;
  }

  .tarvos-nexo-widget.is-open .tarvos-nexo-chat__suggestions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    flex: 0 0 auto;
    padding: .58rem .7rem .4rem;
  }
  .tarvos-nexo-widget.is-open .tarvos-nexo-chat__suggestions button {
    min-height: 2.7rem;
    padding: .42rem .3rem;
    font-size: .61rem;
  }

  .tarvos-nexo-widget.is-open .tarvos-nexo-chat__form {
    position: relative;
    z-index: 20;
    flex: 0 0 auto;
    padding:
      .5rem
      max(.72rem, env(safe-area-inset-right))
      max(.6rem, env(safe-area-inset-bottom))
      max(.72rem, env(safe-area-inset-left));
    background: rgba(250,250,253,.985);
  }
  .tarvos-nexo-widget.is-open .tarvos-nexo-chat__composer {
    min-height: 3.2rem;
    flex: 0 0 auto;
    transform: none !important;
  }

  /* 16px evita el zoom automático de Safari/Chrome al enfocar. */
  .tarvos-nexo-chat__textarea,
  .tarvos-nexo-chat__textarea:focus,
  .tarvos-nexo-chat__textarea:focus-visible,
  .tarvos-nexo-widget .tarvos-nexo-chat__textarea,
  .tarvos-nexo-widget .tarvos-nexo-chat__textarea:focus,
  .tarvos-nexo-widget .tarvos-nexo-chat__textarea:focus-visible {
    min-height: 2.8rem;
    max-height: 7rem;
    font-size: 16px !important;
    line-height: 1.4;
  }

  .tarvos-nexo-widget.is-open .tarvos-nexo-chat__controls { margin-top: .38rem; }
  .tarvos-nexo-widget.is-open .tarvos-nexo-chat__controls p {
    font-size: .56rem;
    line-height: 1.35;
  }

  /* Con teclado abierto se priorizan cabecera, historial y escritura. */
  .tarvos-nexo-widget.is-open.is-keyboard-open .tarvos-nexo-chat__suggestions {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .42rem .7rem .32rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .tarvos-nexo-widget.is-open.is-keyboard-open .tarvos-nexo-chat__suggestions button {
    width: auto;
    min-width: 8.5rem;
    max-width: 12rem;
    min-height: 2.35rem;
    flex: 0 0 auto;
    padding: .36rem .55rem;
    scroll-snap-align: start;
  }
  .tarvos-nexo-widget.is-open.is-keyboard-open .tarvos-nexo-chat__controls {
    display: none;
  }
  .tarvos-nexo-widget.is-open.is-keyboard-open .tarvos-nexo-chat__form {
    padding-top: .38rem;
    padding-bottom: max(.38rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .tarvos-nexo-widget.is-open:not(.is-keyboard-open) .tarvos-nexo-chat__suggestions {
    gap: .3rem;
    padding-inline: .55rem;
  }
  .tarvos-nexo-widget.is-open:not(.is-keyboard-open) .tarvos-nexo-chat__suggestions button {
    font-size: .57rem;
  }
}

@media (max-width: 820px) and (max-height: 560px) {
  .tarvos-nexo-widget.is-open .tarvos-nexo-widget__header {
    min-height: 4.2rem;
    padding-top: .55rem;
    padding-bottom: .55rem;
  }
  .tarvos-nexo-widget.is-open .tarvos-nexo-chat__suggestions {
    display: flex;
    overflow-x: auto;
    padding-block: .32rem .25rem;
  }
  .tarvos-nexo-widget.is-open .tarvos-nexo-chat__suggestions button {
    width: auto;
    min-width: 8rem;
    min-height: 2.25rem;
    flex: 0 0 auto;
  }
  .tarvos-nexo-widget.is-open .tarvos-nexo-chat__controls { display: none; }
}



/* =========================================================
   NEXO · LANZADOR COMPACTO 1.0.6
   El widget cerrado es solo el avatar. La X secundaria permite ocultarlo
   durante la visita actual sin afectar a los enlaces explícitos que abren Nexo.
   ========================================================= */
.tarvos-nexo-widget__launcher {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.tarvos-nexo-widget.is-open .tarvos-nexo-widget__launcher,
.tarvos-nexo-widget.is-dismissed {
  display: none !important;
}

.tarvos-nexo-widget__toggle {
  width: 3.65rem;
  min-width: 3.65rem;
  height: 3.65rem;
  min-height: 3.65rem;
  justify-content: center;
  gap: 0;
  padding: .28rem;
  border: 1px solid rgba(103, 84, 160, .16);
  border-radius: 50%;
  color: var(--nexo-violet-dark);
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 20, 48, .16), 0 2px 8px rgba(24, 20, 48, .07);
  overflow: visible;
}

.tarvos-nexo-widget__toggle-copy,
.tarvos-nexo-widget__toggle-arrow {
  display: none !important;
}

.tarvos-nexo-widget__toggle-icon {
  width: 3.05rem;
  height: 3.05rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

.tarvos-nexo-widget__dismiss {
  position: absolute;
  top: -.48rem;
  right: -.48rem;
  z-index: 3;
  display: grid;
  width: 1.65rem;
  min-width: 1.65rem;
  height: 1.65rem;
  min-height: 1.65rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(210, 211, 226, .96);
  border-radius: 50%;
  color: #535a6d;
  background: rgba(255,255,255,.98);
  box-shadow: 0 5px 15px rgba(24, 21, 54, .16);
  cursor: pointer;
  transition: transform .16s ease, color .16s ease, border-color .16s ease, background .16s ease;
}

.tarvos-nexo-widget__dismiss:hover,
.tarvos-nexo-widget__dismiss:focus-visible {
  transform: scale(1.06);
  border-color: rgba(112,71,245,.36);
  color: var(--nexo-violet-dark);
  background: #fff;
}

.tarvos-nexo-widget__dismiss svg {
  width: .78rem;
  height: .78rem;
  stroke-width: 2.25;
}

/* Las dos acciones de la cabecera de escritorio comparten exactamente la misma caja. */
.tarvos-nexo-widget__header-actions a,
.tarvos-nexo-widget__header-actions button,
.tarvos-nexo-widget__header-actions button[data-nexo-close] {
  width: 2.55rem;
  min-width: 2.55rem;
  height: 2.55rem;
  min-height: 2.55rem;
  flex: 0 0 2.55rem;
  padding: 0;
  place-items: center;
  border-radius: .78rem;
}

.tarvos-nexo-widget__header-actions a svg,
.tarvos-nexo-widget__header-actions button svg,
.tarvos-nexo-widget__header-actions button[data-nexo-close] svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke-width: 2;
}

@media (max-width: 820px) {
  .tarvos-nexo-widget:not(.is-open) {
    right: 1rem;
    bottom: 1rem;
  }

  .tarvos-nexo-widget__toggle {
    width: 3.45rem;
    min-width: 3.45rem;
    height: 3.45rem;
    min-height: 3.45rem;
    padding: .25rem;
  }

  .tarvos-nexo-widget__toggle-icon {
    width: 2.91rem;
    height: 2.91rem;
  }

  .tarvos-nexo-widget__dismiss {
    top: -.42rem;
    right: -.42rem;
    width: 1.7rem;
    min-width: 1.7rem;
    height: 1.7rem;
    min-height: 1.7rem;
  }

  .tarvos-nexo-widget.is-open .tarvos-nexo-widget__header-actions button[data-nexo-close] {
    width: 2.8rem;
    min-width: 2.8rem;
    height: 2.8rem;
    min-height: 2.8rem;
    flex-basis: 2.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tarvos-nexo-widget,
  .tarvos-nexo-widget *,
  .tarvos-nexo-page * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   NEXO 1.0.7 · ESCALADO HUMANO Y CONTACT FORM 7
   ========================================================= */
.tarvos-nexo-chat__bubble--escalation {
  max-width: min(28rem, 100%);
  border: 1px solid rgba(112, 71, 245, .18);
  background: linear-gradient(180deg, #fff 0%, #faf8ff 100%);
}

.tarvos-nexo-chat__escalation-copy > :first-child { margin-top: 0; }
.tarvos-nexo-chat__escalation-copy > :last-child { margin-bottom: 0; }

.tarvos-nexo-chat__escalation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .8rem;
}

.tarvos-nexo-chat__escalation-button,
.tarvos-nexo-chat__escalation-button:visited {
  display: inline-flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  padding: .58rem .8rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  font: inherit;
  font-size: .76rem;
  font-weight: 780;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.tarvos-nexo-chat__escalation-button:hover,
.tarvos-nexo-chat__escalation-button:focus-visible { transform: translateY(-1px); }

.tarvos-nexo-chat__escalation-button--primary,
.tarvos-nexo-chat__escalation-button--primary:visited {
  color: #fff;
  background: var(--nexo-violet);
  box-shadow: 0 8px 20px rgba(112, 71, 245, .18);
}

.tarvos-nexo-chat__escalation-button--primary:hover,
.tarvos-nexo-chat__escalation-button--primary:focus-visible {
  color: #fff;
  background: var(--nexo-violet-dark);
}

.tarvos-nexo-chat__escalation-button--secondary {
  color: var(--nexo-ink);
  border-color: var(--nexo-line);
  background: #fff;
}

.tarvos-nexo-chat__escalation-button--secondary:hover,
.tarvos-nexo-chat__escalation-button--secondary:focus-visible {
  border-color: #cfc2ff;
  color: var(--nexo-violet-dark);
  background: var(--nexo-violet-soft);
}

html.tarvos-nexo-escalation-open,
body.tarvos-nexo-escalation-open { overflow: hidden !important; }

.tarvos-nexo-escalation,
.tarvos-nexo-escalation *,
.tarvos-nexo-escalation *::before,
.tarvos-nexo-escalation *::after { box-sizing: border-box; }

.tarvos-nexo-escalation {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  font-family: var(--tarvos-font-sans, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  color: var(--nexo-ink);
}

.tarvos-nexo-escalation[hidden] { display: none !important; }

.tarvos-nexo-escalation__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 14, 26, .62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.tarvos-nexo-escalation__dialog {
  position: relative;
  width: min(52rem, 100%);
  max-height: min(92dvh, 58rem);
  overflow: hidden;
  border: 1px solid rgba(102, 87, 151, .16);
  border-radius: 1.35rem;
  outline: none;
  background: #fff;
  box-shadow: 0 32px 90px rgba(15, 15, 35, .28);
}

.tarvos-nexo-escalation__header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--nexo-line);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tarvos-nexo-escalation__header span {
  display: block;
  margin-bottom: .16rem;
  color: var(--nexo-violet);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.tarvos-nexo-escalation__header h2 {
  margin: 0;
  color: var(--nexo-ink);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.15;
}

.tarvos-nexo-escalation__close {
  display: grid;
  width: 2.65rem;
  min-width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--nexo-line);
  border-radius: 50%;
  color: var(--nexo-ink);
  background: #fff;
  cursor: pointer;
}

.tarvos-nexo-escalation__close:hover,
.tarvos-nexo-escalation__close:focus-visible {
  border-color: #cfc2ff;
  color: var(--nexo-violet-dark);
  background: var(--nexo-violet-soft);
}

.tarvos-nexo-escalation__close svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.tarvos-nexo-escalation__body {
  max-height: calc(min(92dvh, 58rem) - 5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.1rem 1.2rem 1.35rem;
  -webkit-overflow-scrolling: touch;
}

.tarvos-nexo-escalation__intro {
  margin: 0 0 1rem;
  color: var(--nexo-muted);
  font-size: .86rem;
  line-height: 1.55;
}

.tarvos-nexo-escalation__transcript {
  display: flex;
  align-items: flex-start;
  gap: .72rem;
  margin: 0 0 .55rem;
  padding: .85rem .9rem;
  border: 1px solid #ddd7f6;
  border-radius: .9rem;
  background: #faf8ff;
  cursor: pointer;
}

.tarvos-nexo-escalation__transcript input {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  margin: .12rem 0 0;
  accent-color: var(--nexo-violet);
}

.tarvos-nexo-escalation__transcript span { display: grid; gap: .2rem; }
.tarvos-nexo-escalation__transcript strong { color: var(--nexo-ink); font-size: .82rem; line-height: 1.35; }
.tarvos-nexo-escalation__transcript small { color: var(--nexo-muted); font-size: .7rem; line-height: 1.45; }

.tarvos-nexo-escalation__ticket-status {
  min-height: 1.1rem;
  margin: 0 0 .55rem;
  color: var(--nexo-muted);
  font-size: .7rem;
  line-height: 1.4;
}

.tarvos-nexo-escalation__ticket-status[data-state="ready"] { color: #147a58; }
.tarvos-nexo-escalation__ticket-status[data-state="error"] { color: #a13a45; }

.tarvos-nexo-escalation__form { min-width: 0; }
.tarvos-nexo-escalation__form .wpcf7 { margin: 0; }
.tarvos-nexo-escalation__form form { margin-bottom: 0; }
.tarvos-nexo-escalation__form input,
.tarvos-nexo-escalation__form select,
.tarvos-nexo-escalation__form textarea { max-width: 100%; }

@media (max-width: 820px) {
  .tarvos-nexo-chat__escalation-actions { display: grid; grid-template-columns: 1fr; }
  .tarvos-nexo-chat__escalation-button { width: 100%; }

  .tarvos-nexo-escalation {
    place-items: stretch;
    padding: 0;
  }
  .tarvos-nexo-escalation__dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .tarvos-nexo-escalation__header {
    min-height: 4.25rem;
    padding:
      max(.75rem, env(safe-area-inset-top))
      max(.85rem, env(safe-area-inset-right))
      .75rem
      max(.85rem, env(safe-area-inset-left));
  }
  .tarvos-nexo-escalation__body {
    max-height: calc(100dvh - 4.25rem);
    padding:
      .9rem
      max(.9rem, env(safe-area-inset-right))
      max(1.2rem, env(safe-area-inset-bottom))
      max(.9rem, env(safe-area-inset-left));
  }
}
