/* NeuronUs website agent inside the «Talk mode» layer (#cvOv). Uses the
   site's own layer, orb and buttons; only adds what the agent needs.
   Colours come from the site's own tokens (v14.1: `--film-acc`, `--film-grn`),
   with the v12.1 colours as fallback. The title carries their `cv-h` class
   (v14.1 styles `.cv-box .cv-h`; v12.1 styled `.cv-box h2`). */
.nu-ag { width: min(640px, 100%); }
.nu-ag [hidden] { display: none !important; }
.nu-ag .cv-k { margin-top: 22px; }
.nu-ag h2, .nu-ag .cv-h { font-size: clamp(28px, 4.2vw, 44px); }
.nu-ag-acts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.nu-ag .btn.nu-ag-btn2 { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); box-shadow: none; }
.nu-ag .btn.nu-ag-btn2:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.nu-ag-link { background: none; border: 0; color: var(--film-acc, #7FA2FF); font: inherit; font-size: 14px; cursor: pointer; padding: 6px 4px; }
.nu-ag-link:hover { text-decoration: underline; }
.nu-ag button:focus-visible, .nu-ag input:focus-visible { outline: 2px solid var(--film-acc, #7FA2FF); outline-offset: 2px; }
.nu-ag-state { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--film-grn, #F4C22B); margin-top: 18px; min-height: 16px; }
.nu-ag-caps { margin: 14px auto 0; max-width: 56ch; max-height: 34vh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 2px 6px 2px 2px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.nu-ag-caps::-webkit-scrollbar { width: 6px; }
.nu-ag-caps::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 6px; }
.nu-ag-cap { line-height: 1.5; }
.nu-ag-cap.user { align-self: flex-end; text-align: right; color: rgba(255,255,255,.6); font-size: 15px; }
.nu-ag-cap.bot { align-self: flex-start; color: #fff; font-size: 19px; }
.nu-ag-cap.pending { opacity: .65; }
.nu-ag-err { color: #ffb4b4; font-size: 14px; min-height: 18px; margin-top: 10px; }
.nu-ag-note { font-size: 12px !important; color: rgba(255,255,255,.5) !important; margin-top: 22px !important; }
.nu-ag .cv-bars.live b { animation: none; transition: height .08s linear; }

/* Chat inside the layer */
.nu-ag-chat { margin-top: 18px; text-align: left; }
.nu-ag-msgs { height: min(46vh, 420px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 6px 4px 2px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.nu-ag-msgs::-webkit-scrollbar { width: 6px; }
.nu-ag-msgs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 6px; }
.nu-ag-msg { max-width: 86%; padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 1.55; }
.nu-ag-msg.bot { align-self: flex-start; background: color-mix(in srgb, var(--film-acc, #7FA2FF) 16%, transparent); color: #fff; border-top-left-radius: 4px; }
.nu-ag-msg.user { align-self: flex-end; background: rgba(255,255,255,.1); color: #fff; border-top-right-radius: 4px; }
.nu-ag-msg.typing { color: rgba(255,255,255,.55); font-style: italic; }
.nu-ag-msg.from-voice { opacity: .7; }
.nu-ag-msg p { margin: 0 0 6px; font-size: inherit !important; color: inherit !important; max-width: none !important; line-height: inherit !important; }
.nu-ag-msg p:last-child { margin-bottom: 0; }
.nu-ag-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.nu-ag-sys { align-self: center; color: rgba(255,255,255,.45); font-size: 12px; font-family: 'JetBrains Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
.nu-ag-form { display: flex; gap: 8px; margin-top: 12px; }
.nu-ag-form input { flex: 1; min-width: 0; height: 46px; border-radius: 4px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; padding: 0 14px; font: inherit; font-size: 15px; outline: none; }
.nu-ag-form input::placeholder { color: rgba(255,255,255,.45); }
.nu-ag-form input:focus { border-color: var(--film-acc, #7FA2FF); }
.nu-ag-form button { height: 46px; }
.nu-ag-chat .nu-ag-acts { margin-top: 12px; }
@media (max-width: 600px) {
  .nu-ag .cv-orb { width: 96px; height: 96px; }
  .nu-ag .cv-bars { width: 62px; height: 62px; }
  .nu-ag-cap.bot { font-size: 17px; }
  .nu-ag-msgs { height: 52vh; }
}

/* Microphone and speaker (INC-XFM6KJ): folded under the call buttons. The
   bar moves only with the visitor's own microphone, unlike the orb. */
.nu-ag .nu-ag-acts-sm { margin-top: 10px; }
/* The settings button carries a gear; the live level sits under the state
   from the start of the call (Chus, 14-nov: see that the agent hears you). */
.nu-ag-link[data-ag="devices"] { display: inline-flex; align-items: center; gap: 6px; }
.nu-ag-gear { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nu-ag-lvl { width: 120px; height: 3px; margin: 8px auto 0; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.nu-ag-lvl i { display: block; height: 100%; background: var(--film-grn, #F4C22B); transform: scaleX(0); transform-origin: left center; transition: transform .08s linear; }
.nu-ag-err .nu-ag-link { font-size: 14px; padding: 0 2px; }
.nu-ag-dev { margin: 6px auto 0; max-width: 440px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.nu-ag-dev-row { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: rgba(255,255,255,.7); }
.nu-ag-dev-row > span { flex: 0 0 96px; }
.nu-ag-dev select { flex: 1; min-width: 0; height: 36px; border-radius: 4px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; padding: 0 10px; font: inherit; font-size: 13px; cursor: pointer; }
.nu-ag-dev select:focus-visible { outline: 2px solid var(--film-acc, #7FA2FF); outline-offset: 2px; }
.nu-ag-dev option { background: #0d1424; color: #fff; }
.nu-ag-meter { margin-left: 106px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.nu-ag-meter i { display: block; height: 100%; background: var(--film-grn, #F4C22B); transform: scaleX(0); transform-origin: left center; transition: transform .08s linear; }
.nu-ag p.nu-ag-hint { font-size: 12px !important; line-height: 1.4 !important; color: rgba(255,255,255,.55) !important; margin: 2px 0 0 !important; max-width: none !important; text-align: center; }
.nu-ag p.nu-ag-hint.warn { color: var(--film-grn, #F4C22B) !important; }
@media (max-width: 600px) {
  .nu-ag-dev-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .nu-ag-dev-row > span { flex: none; }
  .nu-ag-meter { margin-left: 0; }
}

/* reCAPTCHA (ADR _global/0117): the badge is hidden and Google's notice goes
   under the agent and the demo form instead, as Google allows. */
.grecaptcha-badge { visibility: hidden !important; }
/* Subtle: present but small. !important because the site's own form and
   paragraph styles are more specific. */
p.nu-recaptcha-note,
.demo-form p.nu-recaptcha-note,
.nu-ag p.nu-recaptcha-note {
  font-size: 9.5px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  opacity: .5 !important;
  margin: 6px 0 0 !important;
  max-width: 46em;
}
p.nu-recaptcha-note a { color: inherit !important; text-decoration: underline; font-size: inherit !important; }
/* In the agent window it sits under its note: centred like it. */
.nu-ag p.nu-recaptcha-note { text-align: center !important; margin: 6px auto 0 !important; }

/* Their hero title (INC-WFQZ5F, demo): each line is `overflow: hidden` for its
   reveal animation, and with their line-height of 1.06 the descenders (the "g"
   of "llegando", the "y" of "ya") were cut flat, as if stuck to the next line.
   A little more leading, and each line's box reaches below the descenders
   without moving anything (the padding is given back by the margin). */
.hero h1 { line-height: 1.12; }
.hero h1 .ln { padding-bottom: .14em; margin-bottom: -.14em; }
