/* Comparativa terminal — alineación limpia (prompts + respuestas) */

.tc-shell {
  max-width: 820px;
  margin: 1.5rem auto 0;
  background: #0a0a10;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(168, 85, 247, 0.15);
  font-family: var(--font-mono, 'IBM Plex Mono', 'Fira Code', monospace);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #f3f3f7;
}

.tc-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: rgba(168, 85, 247, 0.08);
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
}
.tc-chrome-path {
  font-size: 0.78rem;
  color: #c084fc;
  margin-left: 0.5rem;
  letter-spacing: 0.02em;
}
.tc-chrome-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: transparent;
}
.tc-chrome-dot:nth-child(1) { background: #ff5f57; }
.tc-chrome-dot:nth-child(2) { background: #febc2e; }
.tc-chrome-dot:nth-child(3) { background: #28c840; }

.tc-body {
  padding: 1.1rem 1.4rem 0.4rem 1.4rem;
  display: flex;
  flex-direction: column;
}

.tc-conv {
  padding: 0.65rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tc-conv-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 auto 0.85rem;
  padding: 0.55rem 1.15rem;
  background: rgba(0, 255, 127, 0.06);
  border: 1px solid rgba(0, 255, 127, 0.4);
  border-radius: 4px;
  width: fit-content;
  max-width: 100%;
  font-weight: 600;
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  text-shadow: 0 0 6px rgba(0, 255, 127, 0.4);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  color: #00ff7f;
}
.tc-conv-label:hover {
  background: rgba(0, 255, 127, 0.12);
  border-color: rgba(0, 255, 127, 0.65);
  box-shadow: 0 0 14px rgba(0, 255, 127, 0.25);
}
.tc-conv-label-text {
  color: #00ff7f;
  white-space: normal;
  text-align: center;
}
.tc-conv-label-sub {
  display: block;
  white-space: normal;
  font-size: 0.78rem;
  font-weight: 400;
  color: #8a8a99;
  margin-top: 0.15rem;
  letter-spacing: 0;
  text-transform: none;
}

.tc-line {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0;
}
.tc-line--agent {
  gap: 0.25rem;
  padding: 0.5rem 0;
}

.tc-prompt {
  display: block;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  word-break: break-word;
  padding-left: 1.95rem;
}

.tc-prompt--client .tc-u,
.tc-prompt--client .tc-h {
  color: #22d3ee;
}
.tc-prompt--client .tc-arrow { color: #22d3ee; }

.tc-prompt--trad .tc-arrow,
.tc-prompt--trad .tc-u,
.tc-prompt--trad .tc-a,
.tc-prompt--trad .tc-h {
  color: #ec4899;
}
.tc-prompt--trad .tc-c,
.tc-prompt--trad .tc-p {
  color: #8a8a99;
}

.tc-prompt--hermes .tc-arrow,
.tc-prompt--hermes .tc-u,
.tc-prompt--hermes .tc-a,
.tc-prompt--hermes .tc-h,
.tc-prompt--hermes .tc-c,
.tc-prompt--hermes .tc-p {
  color: #c084fc;
}

.tc-arrow { margin-right: 0.15rem; }
.tc-cmd {
  color: #ec4899;
  font-style: italic;
  margin-left: 0.35rem;
}

.tc-text {
  display: block;
  clear: both;
  padding-left: 1.95rem;
  margin-top: 0.2rem;
  color: #f3f3f7;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}
.tc-text--agent { color: #f3f3f7; }
.tc-text--hermes { color: #f3f3f7; }

.tc-italic { font-style: italic; }
.tc-cursor {
  display: inline-block;
  color: #c084fc;
  margin-left: 0.1rem;
  animation: cursor-blink 1.05s steps(1) infinite;
  font-style: normal;
  vertical-align: middle;
}

.tc-sep {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.35rem 0;
}
.tc-sep-l { flex: 1; height: 1px; background: rgba(168, 85, 247, 0.2); }
.tc-sep-i { color: #a855f7; font-size: 0.9rem; }

.tc-input {
  display: flex;
  align-items: center;
  gap: 0.05rem;
  font-size: 0.8rem;
  padding: 0.6rem 1.4rem 0.85rem 1.4rem;
  border-top: 1px solid rgba(168, 85, 247, 0.18);
  margin-top: 0.4rem;
  color: #8a8a99;
}
.tc-input .tc-arrow { color: #22d3ee; }
.tc-input .tc-u,
.tc-input .tc-h { color: #22d3ee; font-weight: 600; }
.tc-input .tc-a,
.tc-input .tc-c,
.tc-input .tc-d { color: #8a8a99; }
.tc-input .tc-p { color: #f3f3f7; }
.tc-input-field {
  flex: 1;
  display: inline-block;
  min-width: 0;
  margin-left: 0.35rem;
  position: relative;
  height: 1.1rem;
}
.tc-input-cursor {
  display: inline-block;
  color: #c084fc;
  margin-left: 0.25rem;
  animation: cursor-blink 1.05s steps(1) infinite;
}
.tc-input-send {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.6rem;
  padding: 0.32rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3f3f7;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.tc-input-send:hover {
  background: rgba(168, 85, 247, 0.22);
  border-color: rgba(168, 85, 247, 0.8);
  transform: translateX(1px);
}
.tc-input-send:active { transform: translateX(1px) scale(0.97); }
.tc-input-send:focus-visible {
  outline: 2px solid var(--color-snow);
  outline-offset: 2px;
}
.tc-input-send svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

@media (max-width: 720px) {
  .tc-shell { font-size: 0.78rem; }
  .tc-body, .tc-input { padding-left: 0.95rem; padding-right: 0.95rem; }
  .tc-prompt { font-size: 0.72rem; padding-left: 0.9rem; }
  .tc-text { font-size: 0.78rem; padding-left: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-cursor, .tc-input-cursor { animation: none; opacity: 0.6; }
}
