/* NEL · Teli chat — componente global. Tokens del sistema; sin colores nuevos. */
.teli-chat-root { position: fixed; inset: 0; z-index: 900; pointer-events: none; font-family: var(--nel-font-sans); }
.teli-chat-root * { box-sizing: border-box; }
.tc-hidden { opacity: 0 !important; pointer-events: none !important; transform: translateY(8px) !important; }
.teli-launcher { transition: opacity var(--nel-t-fast) var(--nel-ease-out), transform var(--nel-t-med) var(--nel-ease-out); }

/* Velo suave: la página sigue visible */
.tc-scrim { position: absolute; inset: 0; background: rgba(15,23,42,.18); opacity: 0; transition: opacity var(--nel-t-med) var(--nel-ease-out); }
.teli-chat-root.is-open .tc-scrim { opacity: 1; pointer-events: auto; }

/* Panel */
.tc-panel {
  position: absolute; right: 24px; bottom: 24px;
  width: 392px; height: min(600px, calc(100vh - 48px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--nel-surface); border: 1px solid var(--nel-line); border-radius: 20px;
  box-shadow: var(--nel-shadow-3);
  opacity: 0; transform: translateY(16px) scale(.98); transform-origin: bottom right;
  transition: opacity var(--nel-t-slow) var(--nel-ease-out), transform var(--nel-t-slow) var(--nel-ease-out);
  pointer-events: none;
}
.teli-chat-root.is-open .tc-panel { opacity: 1; transform: none; pointer-events: auto; }

/* Cabecera */
.tc-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--nel-brand-800); color: #fff; flex-shrink: 0; }
.tc-av { width: 40px; height: 40px; border-radius: 999px; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.tc-av img { width: 88%; height: 88%; object-fit: contain; }
.tc-av.sm { width: 36px; height: 36px; background: var(--nel-brand-50); }
.tc-av.xs { width: 28px; height: 28px; background: var(--nel-brand-50); align-self: flex-end; }
.tc-id { flex: 1; min-width: 0; }
.tc-id h2 { margin: 0; font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: 0; }
.tc-on { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: rgba(255,255,255,.85); margin-top: 2px; }
.tc-on::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: #4ade80; box-shadow: 0 0 0 2px rgba(74,222,128,.25); }
.tc-hbtns { display: flex; gap: 6px; }
.tc-ib { width: 34px; height: 34px; border: none; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background var(--nel-t-fast) var(--nel-ease-out); }
.tc-ib:hover { background: rgba(255,255,255,.26); }
.tc-ib:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.45); }

/* Mensajes */
.tc-body { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--nel-canvas, var(--nel-bg-canvas)); display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.tc-welcome { display: flex; gap: 12px; align-items: center; padding: 14px; background: var(--nel-surface); border: 1px solid var(--nel-line); border-radius: 12px; }
.tc-welcome img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.tc-welcome b { font-size: 14px; color: var(--nel-brand-ink); }
.tc-welcome p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--nel-fg-secondary); }
.tc-row { display: flex; gap: 8px; align-items: flex-end; }
.tc-row.u { justify-content: flex-end; }
.tc-bub { max-width: 84%; padding: 10px 13px 8px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; word-wrap: break-word; }
.tc-bub.u { background: var(--nel-brand-800); color: #fff; border-bottom-right-radius: 4px; }
.tc-bub.b { background: var(--nel-surface); color: var(--nel-fg); border: 1px solid var(--nel-line); border-bottom-left-radius: 4px; }
.tc-bub b { color: inherit; }
.tc-bub.b b { color: var(--nel-brand-ink); }
.tc-bub code { font-family: var(--nel-font-mono); font-size: 12px; background: var(--nel-brand-50); color: var(--nel-brand-800); padding: 1px 5px; border-radius: 4px; }
.tc-ts { display: block; font-size: 10.5px; margin-top: 5px; opacity: .7; }
.tc-bub.u .tc-ts { text-align: right; }
.tc-bub .teli-list { margin: 8px 0 0 18px; padding: 0; }
.tc-bub .teli-list li { margin-bottom: 2px; }
.tc-bub .teli-note { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--nel-line); color: var(--nel-fg-muted); font-size: 12px; line-height: 1.5; }

/* Entradas de trámite dentro de la respuesta */
.tc-bub .teli-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tc-bub .teli-act {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--nel-line-strong); background: var(--nel-surface); color: var(--nel-brand-800);
  transition: background var(--nel-t-fast) var(--nel-ease-out), border-color var(--nel-t-fast) var(--nel-ease-out);
}
.tc-bub .teli-act:hover { background: var(--nel-brand-50); border-color: var(--nel-brand-600); }
.tc-bub .teli-act.is-primary { background: var(--nel-brand-800); border-color: var(--nel-brand-800); color: #fff; }
.tc-bub .teli-act.is-primary:hover { background: var(--nel-brand-900); border-color: var(--nel-brand-900); }
.tc-bub a:not(.teli-act) { color: var(--nel-brand-800); font-weight: 600; }

/* Escribiendo */
.tc-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.tc-typing i { width: 6px; height: 6px; border-radius: 999px; background: var(--nel-brand-600); opacity: .35; animation: tcDot 1s infinite var(--nel-ease-in-out, ease-in-out); }
.tc-typing i:nth-child(2) { animation-delay: .15s; } .tc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tcDot { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-2px); } }

/* Preguntas rápidas */
.tc-quick { display: flex; flex-direction: column; gap: 6px; }
.tc-quick-l { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nel-fg-muted); margin: 2px 0 2px; }
.tc-quick button, .tc-more button {
  font: inherit; text-align: left; cursor: pointer; border: 1px solid var(--nel-line); background: var(--nel-surface);
  color: var(--nel-brand-800); font-weight: 600; transition: border-color var(--nel-t-fast) var(--nel-ease-out), background var(--nel-t-fast) var(--nel-ease-out);
}
.tc-quick button { padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.tc-quick button:hover, .tc-more button:hover { border-color: var(--nel-brand-600); background: var(--nel-brand-50); }
.tc-more { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.tc-more::-webkit-scrollbar { display: none; }
.tc-more button { flex-shrink: 0; padding: 6px 11px; border-radius: 999px; font-size: 12px; white-space: nowrap; }

/* ===== Flujo por trámite ===== */
/* Barra de contexto: trámite actual + volver */
.tc-ctx { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--nel-surface); border-bottom: 1px solid var(--nel-line); flex-shrink: 0; }
.tc-ctx[hidden] { display: none; }
.tc-back { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px 0 8px; border-radius: 8px; border: 1px solid var(--nel-line); background: var(--nel-surface); color: var(--nel-brand-800); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background var(--nel-t-fast) var(--nel-ease-out), border-color var(--nel-t-fast) var(--nel-ease-out); }
.tc-back:hover { background: var(--nel-brand-50); border-color: var(--nel-brand-600); }
.tc-back:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(30,125,221,.28); }
.tc-ctx-cur { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.tc-ctx-cur img { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.tc-ctx-cur > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.tc-ctx-cur small { white-space: nowrap; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nel-fg-muted); }
.tc-ctx-cur b { font-size: 12.5px; color: var(--nel-brand-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-ctx-st { font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: var(--nel-surface-2, #EEF2F7); color: var(--nel-fg-muted); white-space: nowrap; flex-shrink: 0; }
.tc-ctx-st.on { background: var(--nel-success-50, #E8F7EE); color: var(--nel-success-700, #15803d); }

/* Tarjetas de trámite (paso 1) */
.tc-picks { display: grid; grid-template-columns: 1fr; gap: 8px; padding-left: 36px; }
.tc-pick {
  display: grid; grid-template-columns: 44px 1fr 16px; align-items: center; gap: 10px;
  padding: 10px 12px 10px 10px; text-align: left; font: inherit; cursor: pointer;
  background: var(--nel-surface); border: 1px solid var(--nel-line); border-radius: 12px;
  transition: border-color var(--nel-t-fast) var(--nel-ease-out), background var(--nel-t-fast) var(--nel-ease-out), transform var(--nel-t-fast) var(--nel-ease-out);
}
.tc-pick:hover { border-color: var(--nel-brand-600); background: var(--nel-brand-50); }
.tc-pick:active { transform: scale(.985); }
.tc-pick:focus-visible { outline: none; border-color: var(--nel-brand-600); box-shadow: 0 0 0 3px rgba(30,125,221,.28); }
.tc-pick-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--nel-brand-50); display: inline-flex; align-items: center; justify-content: center; }
.tc-pick-ic img { width: 38px; height: 38px; object-fit: contain; }
.tc-pick-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tc-pick-tx b { font-size: 13px; line-height: 1.3; color: var(--nel-brand-ink); font-weight: 700; }
.tc-pick-tx span { font-size: 11.5px; line-height: 1.4; color: var(--nel-fg-muted); }
.tc-pick-go { color: var(--nel-brand-600); display: inline-flex; }

/* Ficha del trámite dentro de la respuesta */
.tc-tcard { display: grid; grid-template-columns: 40px 1fr; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--nel-brand-50); }
.tc-tcard img { width: 40px; height: 40px; object-fit: contain; }
.tc-tcard b { display: block; font-size: 12.5px; line-height: 1.35; }
.tc-tcard p { margin: 4px 0 6px; font-size: 12px; line-height: 1.5; color: var(--nel-fg-secondary); }
.tc-tcard-m { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--nel-fg-muted); font-weight: 600; }
.tc-tcard-m i { width: 7px; height: 7px; border-radius: 999px; background: var(--nel-warning-500, #d97706); }
.tc-tcard-m i.on { background: #22c55e; }

/* Opciones del trámite (paso 3) */
.tc-opts { display: flex; flex-direction: column; gap: 6px; padding-left: 36px; }
.tc-opts button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left;
  border: 1px solid var(--nel-line-strong, var(--nel-line)); background: var(--nel-surface); color: var(--nel-brand-800);
  transition: background var(--nel-t-fast) var(--nel-ease-out), border-color var(--nel-t-fast) var(--nel-ease-out);
}
.tc-opts button svg { color: var(--nel-brand-600); flex-shrink: 0; }
.tc-opts button:hover { background: var(--nel-brand-50); border-color: var(--nel-brand-600); }
.tc-opts button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(30,125,221,.28); }
.tc-bub button.teli-act { font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }

/* Separador al cambiar de trámite */
.tc-div { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--nel-fg-muted); }
.tc-div::before, .tc-div::after { content: ''; flex: 1; height: 1px; background: var(--nel-line); }
.tc-div span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80%; }

/* Pie */
.tc-foot { display: flex; gap: 8px; padding: 12px 12px 8px; border-top: 1px solid var(--nel-line); background: var(--nel-surface); flex-shrink: 0; }
.tc-foot input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; font: inherit; font-size: 14px; color: var(--nel-brand-ink); border: 1px solid var(--nel-line); border-radius: 10px; background: var(--nel-surface); outline: none; transition: border-color var(--nel-t-fast) var(--nel-ease-out), box-shadow var(--nel-t-fast) var(--nel-ease-out); }
.tc-foot input:hover { border-color: var(--nel-brand-200, var(--nel-line-strong)); }
.tc-foot input:focus { border-color: var(--nel-brand-600); box-shadow: 0 0 0 3px rgba(30,125,221,.28); }
.tc-send { width: 42px; height: 42px; border: none; border-radius: 10px; background: var(--nel-brand-800); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background var(--nel-t-fast) var(--nel-ease-out); }
.tc-send:hover:not(:disabled) { background: var(--nel-brand-900); }
.tc-send:disabled { background: var(--nel-ink-300, #B7C1D1); cursor: not-allowed; }
.tc-legal { font-size: 10.5px; color: var(--nel-fg-muted); text-align: center; padding: 0 12px 10px; background: var(--nel-surface); }

/* Minimizado */
.tc-mini {
  position: absolute; right: 24px; bottom: 24px; display: none; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--nel-line); background: var(--nel-surface);
  box-shadow: var(--nel-shadow-3); cursor: pointer; font: inherit; color: var(--nel-brand-800); pointer-events: auto;
}
.teli-chat-root.is-min .tc-mini { display: inline-flex; }
.tc-mini-tx { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.tc-mini-tx b { font-size: 13.5px; color: var(--nel-brand-ink); }
.tc-mini-tx span { font-size: 11px; color: var(--nel-fg-muted); }
.tc-mini-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--nel-brand-800); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* ===== Móvil / H5: cajón inferior casi a pantalla completa ===== */
.tc-grip { width: 40px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.5); position: absolute; top: 7px; left: 50%; transform: translateX(-50%); z-index: 1; }
.teli-chat-root.is-h5 .tc-head { padding-top: 20px; position: relative; }
@media (max-width: 640px) {
  .tc-panel { left: 0; right: 0; bottom: 0; width: auto; height: 92vh; height: 92dvh; border-radius: 20px 20px 0 0; border-bottom: none; transform: translateY(100%); transform-origin: bottom center; }
  .teli-chat-root.is-open .tc-panel { transform: none; }
  .tc-head { padding-top: 20px; position: relative; }
  .tc-grip { display: block; }
  .tc-foot { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .tc-mini { right: 16px; bottom: 16px; }
  .tc-foot input { font-size: 16px; } /* evita zoom en iOS */
}
@media (min-width: 641px) { .teli-chat-root.is-web .tc-grip { display: none; } }

/* H5: el marco del dispositivo es una columna centrada de 390px (igual que la barra de pestañas) */
.teli-chat-root.is-h5 .tc-scrim { max-width: 390px; margin: 0 auto; }
.teli-chat-root.is-h5 .tc-panel { left: 0; right: 0; margin: 0 auto; bottom: 0; width: auto; max-width: 390px; height: 92vh; height: 92dvh; border-radius: 20px 20px 0 0; border-bottom: none; transform: translateY(100%); transform-origin: bottom center; }
.teli-chat-root.is-h5.is-open .tc-panel { transform: none; }
.teli-chat-root.is-h5 .tc-grip { display: block; }
.teli-chat-root.is-h5 .tc-mini { right: max(12px, calc(50% - 195px + 12px)); bottom: 100px; }
.teli-chat-root.is-h5 .tc-foot { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.teli-chat-root.is-h5 .tc-foot input { font-size: 16px; }
html.tc-lock, html.tc-lock body { overflow: hidden; }

/* ===== H5 · Teli flotante global =====
   Anclado a la columna de 390px, esquina inferior derecha, por encima de la
   barra de pestañas / barra de acciones (--teli-bottom lo calcula el JS). */
.teli-fab-wrap {
  position: fixed; z-index: 45;
  right: max(12px, calc(50% - 195px + 12px));
  bottom: var(--teli-bottom, 104px);
  display: flex; align-items: center; gap: 8px;
  pointer-events: none;
}
.teli-fab {
  pointer-events: auto; position: relative;
  width: 52px; height: 52px; border-radius: 999px; padding: 5px;
  border: 1px solid var(--nel-line); background: var(--nel-surface);
  box-shadow: 0 8px 22px rgba(15,23,42,.16), 0 1px 3px rgba(15,23,42,.08);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--nel-t-med) var(--nel-ease-out), box-shadow var(--nel-t-med) var(--nel-ease-out);
}
.teli-fab img { width: 100%; height: 100%; object-fit: contain; border-radius: 999px; background: var(--nel-brand-50); }
.teli-fab:active { transform: scale(.94); }
.teli-fab-wrap { transition: transform var(--nel-t-med) var(--nel-ease-out), opacity var(--nel-t-med) var(--nel-ease-out); }
.teli-fab-wrap.is-scrolling { transform: translateX(34px); opacity: .55; }
.teli-fab:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(30,125,221,.35), 0 8px 22px rgba(15,23,42,.16); }
.teli-fab-dot { position: absolute; right: 3px; bottom: 3px; width: 11px; height: 11px; border-radius: 999px; background: #22c55e; border: 2px solid var(--nel-surface); }
.teli-fab-hint {
  pointer-events: none; display: inline-flex; align-items: center;
  background: var(--nel-surface); border: 1px solid var(--nel-line); border-radius: 12px 12px 4px 12px;
  box-shadow: var(--nel-shadow-2); padding: 0 4px 0 0;
  opacity: 0; transform: translateX(8px); transition: opacity var(--nel-t-med) var(--nel-ease-out), transform var(--nel-t-med) var(--nel-ease-out);
}
.teli-fab-wrap.show-hint .teli-fab-hint { opacity: 1; transform: none; pointer-events: auto; }
.teli-fab-hint-tx { font: inherit; font-size: 12.5px; font-weight: 600; color: var(--nel-brand-800); background: none; border: none; padding: 8px 4px 8px 12px; cursor: pointer; white-space: nowrap; }
.teli-fab-hint-x { width: 24px; height: 24px; border: none; border-radius: 999px; background: transparent; color: var(--nel-fg-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.teli-fab-hint-x:hover { background: var(--nel-surface-2); }
/* Espacio de seguridad para que el último contenido no quede bajo el botón */
body.has-teli-fab .h5-frame { padding-bottom: 140px; }
.teli-chat-root.is-h5 .tc-mini { display: none !important; }

/* ===== v3 · Flujo unificado (Web = H5) ===== */
/* 1 · Preguntas de ejemplo (el usuario habla primero; no hay menú de trámites) */
.tc-ex { display: flex; flex-direction: column; gap: 6px; padding-left: 36px; }
.tc-ex-l { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nel-fg-muted); margin: 2px 0; }
.tc-ex button {
  display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; text-align: left; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--nel-brand-800);
  background: var(--nel-surface); border: 1px dashed var(--nel-brand-200, var(--nel-line-strong)); border-radius: 12px 12px 12px 4px;
  transition: background var(--nel-t-fast) var(--nel-ease-out), border-color var(--nel-t-fast) var(--nel-ease-out);
}
.tc-ex button svg { flex-shrink: 0; margin-top: 2px; color: var(--nel-brand-600); }
.tc-ex button:hover:not(:disabled) { background: var(--nel-brand-50); border-color: var(--nel-brand-600); border-style: solid; }
.tc-ex button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(30,125,221,.28); }

/* 2 · Confirmación del trámite */
.tc-cq { margin-top: 10px; font-weight: 600; color: var(--nel-brand-ink); }
.tc-bub .teli-actions .teli-act svg { margin-right: 6px; }
.tc-bub button.teli-act:disabled { opacity: .45; cursor: default; }

/* 3 · Cinco opciones del trámite (icono + etiqueta + marca «relacionado») */
.tc-opts button { display: grid; grid-template-columns: 28px minmax(0, 1fr) 14px; gap: 10px; height: auto; min-height: 44px; padding: 8px 12px 8px 8px; }
.tc-opt-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--nel-brand-50); color: var(--nel-brand-800); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tc-opt-ic svg { color: var(--nel-brand-800) !important; }
.tc-opt-tx { display: block; min-width: 0; line-height: 1.3; }
.tc-opt-tx small { display: block; }
.tc-opt-tx > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-opt-tx small { font-size: 10.5px; font-weight: 700; color: var(--nel-brand-600); letter-spacing: .02em; margin-top: 2px; }
.tc-opts button.is-hint { border-color: var(--nel-brand-600); background: var(--nel-brand-50); }
.tc-opts button.is-hint .tc-opt-ic { background: var(--nel-brand-800); }
.tc-opts button.is-hint .tc-opt-ic svg { color: #fff !important; }

/* Elementos inactivos del historial */
.tc-opts button:disabled, .tc-ex button:disabled, .tc-pick:disabled { opacity: .5; cursor: default; pointer-events: none; }

/* 4 · Respuesta */
.tc-ans-h { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nel-brand-600); margin-bottom: 4px; }
.tc-exp-l { margin-top: 8px; font-size: 12px; color: var(--nel-fg-muted); }
.tc-exp { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.tc-bub .tc-exp a { font-family: var(--nel-font-mono); font-size: 12px; font-weight: 500; color: var(--nel-brand-800); background: var(--nel-brand-50); padding: 4px 8px; border-radius: 6px; text-decoration: none; align-self: flex-start; }
.tc-bub .tc-exp a:hover { background: var(--nel-brand-100); }

/* 5 · Navegación: volver al nivel anterior / reelegir trámite */
.tc-nav { display: flex; gap: 6px; padding-left: 36px; flex-wrap: wrap; }
.tc-nav button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--nel-brand-800); background: var(--nel-surface); border: 1px solid var(--nel-line); white-space: nowrap;
  transition: background var(--nel-t-fast) var(--nel-ease-out), border-color var(--nel-t-fast) var(--nel-ease-out);
}
.tc-nav button:hover { background: var(--nel-brand-50); border-color: var(--nel-brand-600); }
.tc-nav button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(30,125,221,.28); }

@media (prefers-reduced-motion: reduce) { .tc-panel, .tc-scrim, .tc-typing i { transition: none !important; animation: none !important; } }
