/* Chat de la web tech. Usa las variables de tech.css (--accent, --line, --display, --mono…). */
.t-chat { scroll-margin-top: 56px; padding: clamp(40px, 6vw, 72px) var(--gutter); border-top: 1px solid var(--line); background: linear-gradient(var(--bg), var(--bg)); }
.c-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 20px; }
.c-title { font: 400 clamp(32px, 5vw, 56px)/0.95 var(--display); text-transform: uppercase; }
.c-sub { font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }

.c-box { max-width: 820px; border: 1px solid var(--line); border-radius: 2px; background: rgba(15, 20, 24, 0.92); }
.c-log { height: min(52vh, 440px); min-height: 260px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.c-msg { max-width: 88%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: #d6dcd9; }
.c-msg--bot { align-self: flex-start; }
.c-msg--user { align-self: flex-end; background: var(--accent); border-color: var(--accent); color: var(--ink); }
.c-msg--error { border-color: #f87171; color: #fca5a5; }
.c-msg--wait { color: var(--muted); }
.c-msg--wait::after { content: "▍"; animation: blink 1s steps(1) infinite; }

.c-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.c-chip { font: 400 12px/1.3 var(--mono); padding: 8px 12px; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--fg); cursor: pointer; text-align: left; transition: border-color 0.25s, color 0.25s; }
.c-chip:hover { border-color: var(--accent); color: var(--accent); }

.c-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.c-input { flex: 1; min-width: 0; font: 400 16px/1.4 var(--mono); padding: 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--fg); }
.c-input::placeholder { color: var(--muted); }
.c-send { flex: none; font: 700 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; padding: 0 18px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: var(--ink); cursor: pointer; transition: background 0.25s, color 0.25s; }
.c-send:hover:not(:disabled) { background: transparent; color: var(--accent); }
.c-send:disabled { opacity: 0.5; cursor: default; }
.c-input:focus-visible, .c-send:focus-visible, .c-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.c-note { max-width: 820px; margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.c-note a { color: var(--accent); }

@media (max-width: 480px) { .c-msg { max-width: 94%; } .c-send { padding: 0 14px; } }
@media (prefers-reduced-motion: reduce) { .c-msg--wait::after { animation: none; } }
