/* ═══════════════════════════════════════════════════════════════
   chat-full.css · Infinideas AI — Rediseño estilo Claude
═══════════════════════════════════════════════════════════════ */

body.chat-page {
  overflow: hidden;
  height: 100vh;
  font-family: 'Nunito', sans-serif;
}

.chat-app {
  display: flex;
  height: 100vh;
  background: #0a0a0a;
}

/* ─── SIDEBAR ─────────────────────────────────────────────────── */
.chat-sidebar {
  width: 256px;
  min-width: 256px;
  background: #111111;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  height: 100vh;
  z-index: 50;
  transition: transform 0.25s ease;
}

.sidebar-header {
  padding: 1rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-logo {
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
}

.btn-new-chat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-family: 'Nunito', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  width: 100%;
}
.btn-new-chat:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}

.sidebar-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 1rem 1.1rem 0.35rem;
}

.sidebar-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.2rem 0.5rem;
}
.sidebar-list::-webkit-scrollbar { width: 3px; }
.sidebar-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
  gap: 8px;
}
.sidebar-item:hover { background: rgba(255,255,255,0.05); }
.sidebar-item.active { background: rgba(255,255,255,0.08); }

.sidebar-item-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.sidebar-item.active .sidebar-item-text { color: rgba(255,255,255,0.9); }

.sidebar-item-del {
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0;
  transition: all 0.12s;
  flex-shrink: 0;
}
.sidebar-item:hover .sidebar-item-del { opacity: 1; }
.sidebar-item-del:hover { color: #ff6b6b; background: rgba(255,107,107,0.1); }

.sidebar-footer {
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-back {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-back:hover { color: rgba(255,255,255,0.7); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 40;
}

/* ─── MAIN ────────────────────────────────────────────────────── */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: #0a0a0a;
}

/* ─── TOPBAR ──────────────────────────────────────────────────── */
.chat-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.topbar-menu {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  display: none;
  transition: color 0.15s;
}
.topbar-menu:hover { color: rgba(255,255,255,0.8); }

.topbar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.chat-avatar-sm {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(78,236,216,0.12);
  border: 1px solid rgba(78,236,216,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 900; color: var(--cyan);
  letter-spacing: 0.5px;
}

.topbar-name { font-size: 0.88rem; font-weight: 700; color: rgba(255,255,255,0.85); }
.topbar-status { font-size: 0.68rem; color: rgba(255,255,255,0.3); }
.topbar-status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #25d366; margin-right: 4px; }

.topbar-new {
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s;
}
.topbar-new:hover { border-color: rgba(255,255,255,0.22); color: rgba(255,255,255,0.85); }

/* ─── MESSAGES AREA ───────────────────────────────────────────── */
.chat-messages-full {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  align-self: stretch;
}
.chat-messages-full::-webkit-scrollbar { width: 4px; }
.chat-messages-full::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 2px; }

/* ─── EMPTY STATE ─────────────────────────────────────────────── */
.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 1rem;
  padding: 2rem;
}

.empty-logo {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(78,236,216,0.1);
  border: 1px solid rgba(78,236,216,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 900; color: var(--cyan);
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.chat-empty h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.chat-empty p {
  color: rgba(255,255,255,0.35);
  font-size: 0.88rem;
  margin: 0;
  max-width: 380px;
}

.empty-suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 0.75rem;
  width: 100%;
  max-width: 500px;
}

.empty-suggestions button {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  color: rgba(255,255,255,0.5);
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
  line-height: 1.4;
}
.empty-suggestions button:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
}

/* ─── MENSAJES ────────────────────────────────────────────────── */
.msg-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 0.6rem 0;
}
.msg-row.user { flex-direction: row-reverse; }

.msg-avatar {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.58rem; font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
.msg-row.bot .msg-avatar {
  background: rgba(78,236,216,0.1);
  border: 1px solid rgba(78,236,216,0.18);
  color: var(--cyan);
}
.msg-row.user .msg-avatar {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
}

.msg-bubble {
  max-width: 75%;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.65;
}
.msg-row.bot .msg-bubble {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.07);
  border-bottom-left-radius: 4px;
}
.msg-row.user .msg-bubble {
  background: rgba(78,236,216,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(78,236,216,0.2);
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

/* ─── THINKING ANIMATION ─────────────────────────────────────── */
.thinking-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  max-width: 75%;
}

.thinking-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}
.thinking-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(78,236,216,0.5);
  animation: thinkPulse 1.4s ease-in-out infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: 0.2s; }
.thinking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinkPulse {
  0%, 60%, 100% { opacity: 0.25; transform: scale(0.85); }
  30%           { opacity: 1;    transform: scale(1.1);  }
}

.thinking-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
  letter-spacing: 0.2px;
}

/* ─── INPUT AREA ──────────────────────────────────────────────── */
.chat-input-full {
  padding: 0.85rem 1.5rem 1.1rem;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.logo-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(78,236,216,0.05);
  border: 1px solid rgba(78,236,216,0.18);
  border-radius: 8px;
  padding: 0.25rem 0.65rem;
  margin-bottom: 6px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan);
}
.logo-remove-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0;
  margin-left: auto;
  line-height: 1;
  transition: color 0.12s;
}
.logo-remove-btn:hover { color: #ff6b6b; }

.input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 0.7rem 0.7rem 0.7rem 1.1rem;
  max-width: 760px;
  margin: 0 auto;
  transition: border-color 0.2s;
}
.input-wrapper:focus-within { border-color: rgba(78,236,216,0.35); }

#chat-input-full {
  flex: 1;
  background: none;
  border: none;
  color: rgba(255,255,255,0.88);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  resize: none;
  outline: none;
  max-height: 140px;
  line-height: 1.55;
}
#chat-input-full::placeholder { color: rgba(255,255,255,0.2); }

.logo-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.25);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s;
}
.logo-upload-label:hover {
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.06);
}

#send-btn-full {
  background: var(--cyan);
  border: none;
  border-radius: 9px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #0a0a0a;
  transition: all 0.15s;
  flex-shrink: 0;
}
#send-btn-full:hover { background: var(--cyan2); transform: scale(1.04); }
#send-btn-full:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.input-hint {
  text-align: center;
  font-size: 0.66rem;
  color: rgba(255,255,255,0.15);
  margin-top: 0.5rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── PRODUCT VISUAL CARD ─────────────────────────────────────── */
.pv-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  overflow: hidden;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.pv-card:hover { border-color: rgba(78,236,216,0.25); }

.pv-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0.7rem 1rem 0.3rem;
}

.pv-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.pv-canvas {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pv-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(10,10,10,0.6);
}

/* Spinner de generación de imagen — igual al thinking pero más grande */
.pv-think-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pv-think-dots span {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(78,236,216,0.4);
  animation: thinkPulse 1.4s ease-in-out infinite;
}
.pv-think-dots span:nth-child(2) { animation-delay: 0.2s; }
.pv-think-dots span:nth-child(3) { animation-delay: 0.4s; }

.pv-spin-ring {
  display: none; /* ya no se usa — reemplazado por pv-think-dots */
}

.pv-spinner span {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 0 1rem;
  letter-spacing: 0.2px;
}

.pv-logo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  background: rgba(78,236,216,0.04);
  border-top: 1px solid rgba(78,236,216,0.08);
}
.pv-logo-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(78,236,216,0.7);
}

.pv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0.65rem 1rem 0.85rem;
}

.pv-btn-primary {
  flex: 1;
  background: var(--cyan);
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.pv-btn-primary:hover { background: var(--cyan2); }

.pv-btn-secondary {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.pv-btn-secondary:hover { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); }

.pv-btn-ghost {
  background: none;
  color: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.pv-btn-ghost:hover { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.15); }

/* ─── RPC CARDS (búsqueda de productos) ──────────────────────── */
.rpc-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 85%;
}
.rpc-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.rpc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.rpc-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.15s;
  cursor: pointer;
}
.rpc-card:hover {
  border-color: rgba(78,236,216,0.25);
  transform: translateY(-2px);
}
.rpc-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: rgba(255,255,255,0.03);
}
.rpc-img-ph {
  width: 100%;
  aspect-ratio: 1/1;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.rpc-info { padding: 0.65rem 0.75rem 0.75rem; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rpc-title { font-size: 0.76rem; font-weight: 600; color: rgba(255,255,255,0.8); line-height: 1.4; }
.rpc-btn {
  background: var(--cyan);
  color: #0a0a0a;
  border: none;
  border-radius: 7px;
  padding: 0.42rem 0.65rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.73rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: auto;
}
.rpc-btn:hover { background: var(--cyan2); }

/* ─── HINT MODAL ──────────────────────────────────────────────── */
.hint-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeInOverlay 0.25s ease;
}
.hint-modal {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 28px 32px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  animation: slideUpModal 0.25s ease;
}
.hint-modal-icon { font-size: 1.4rem; display: block; margin-bottom: 10px; }
.hint-modal-title { font-size: 0.92rem; font-weight: 700; color: rgba(255,255,255,0.85); margin: 0 0 8px; }
.hint-modal-text { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin: 0 0 10px; line-height: 1.6; }
.hint-modal-example { font-size: 0.75rem; color: rgba(255,255,255,0.25); margin: 0 0 20px; line-height: 1.6; }
.hint-modal-example strong { color: rgba(78,236,216,0.6); }
.hint-modal-btn {
  background: rgba(78,236,216,0.1);
  border: 1px solid rgba(78,236,216,0.25);
  color: var(--cyan);
  border-radius: 8px;
  padding: 9px 28px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.hint-modal-btn:hover { background: rgba(78,236,216,0.18); }

@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUpModal  { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .chat-sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); }
  .chat-sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .topbar-menu { display: block; }
  .empty-suggestions { grid-template-columns: 1fr; max-width: 340px; }
  .rpc-grid { grid-template-columns: repeat(2, 1fr); }
  .rpc-wrapper { max-width: 95%; }
  .msg-bubble { max-width: 88%; }
  .pv-card { max-width: 96%; }
  .pv-btn-primary { flex: 1 1 100%; }
}

/* ─── VIA LOGO & BRANDING ─────────────────────────────────────── */

/* Sidebar logo VIA */
.sidebar-via-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0 0.25rem;
}

.via-logo-img {
  width: 90px;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
}

/* Crédito inferior sidebar */
.sidebar-via-credit {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.2);
  margin-top: 8px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.sidebar-via-credit span {
  color: rgba(255,255,255,0.12);
  font-weight: 400;
  font-size: 0.62rem;
}

/* Avatar VIA en topbar */
.chat-avatar-sm.via-avatar {
  background: #0a0a0a;
  border: none;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  width: 34px;
  height: 34px;
}
.chat-avatar-sm.via-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Empty state logo VIA */
.empty-logo.via-empty-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: #0a0a0a;
  border: 1px solid rgba(78,236,216,0.15);
  padding: 0;
  overflow: hidden;
}
.empty-logo.via-empty-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* Avatar VIA en mensajes bot */
.msg-row.bot .msg-avatar.via-msg-avatar {
  background: #0a0a0a;
  border: 1px solid rgba(78,236,216,0.15);
  border-radius: 7px;
  padding: 0;
  overflow: hidden;
  width: 28px;
  height: 28px;
}
.msg-row.bot .msg-avatar.via-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── CHAT MÁS ANCHO ──────────────────────────────────────────── */

/* Sidebar más estrecho para dar más espacio al chat */
.chat-sidebar {
  width: 220px;
  min-width: 220px;
}

/* Área de mensajes más ancha */
.chat-messages-full {
  max-width: 900px;
  padding: 2.5rem 2rem 1.5rem;
}

/* Input más ancho */
.input-wrapper {
  max-width: 900px;
}

.input-hint {
  max-width: 900px;
}

.logo-indicator {
  max-width: 900px;
}

/* Burbujas más anchas */
.msg-bubble {
  max-width: 82%;
}

/* Product card más ancha */
.pv-card {
  max-width: 460px;
}

@media (max-width: 768px) {
  .chat-sidebar { width: 260px; min-width: 260px; }
  .chat-messages-full { padding: 1.5rem 1rem 1rem; }
}

/* ─── VIA credit arriba del sidebar ─── */
.sidebar-via-credit--top {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.5;
  padding: 0.4rem 0.25rem 0;
  margin: 0;
}
.sidebar-via-credit--top span {
  font-size: 0.66rem;
  color: rgba(255,255,255,0.25);
  font-weight: 400;
}

/* ─── EMPTY STATE REDISEÑADO ──────────────────────────────────── */

.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 1rem;
  padding: 0 2rem;
}

.empty-greeting {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: rgba(255,255,255,0.88);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -1px;
}

.empty-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
  max-width: 420px;
  line-height: 1.6;
}

/* ─── CHAT OCUPA TODO EL ANCHO ────────────────────────────────── */

/* Sin max-width — llega hasta los bordes de chat-main */
.chat-messages-full {
  max-width: 100%;
  padding: 2.5rem 3rem 1.5rem;
  margin: 0;
}

.input-wrapper {
  max-width: 100%;
}

.input-hint {
  max-width: 100%;
}

.logo-indicator {
  max-width: 100%;
}

/* Burbujas con límite razonable pero más anchas */
.msg-bubble {
  max-width: 78%;
}

.pv-card {
  max-width: 480px;
}

@media (max-width: 768px) {
  .chat-messages-full { padding: 1.5rem 1rem 1rem; }
  .empty-greeting {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: rgba(255,255,255,0.88);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -1px;
}
}

/* ─── AJUSTES FINALES ─────────────────────────────────────────── */

/* Topbar más alto */
.chat-topbar {
  padding: 1.2rem 1.8rem;
}

/* Logo VIA en topbar más grande */
.chat-avatar-sm.via-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}
.chat-avatar-sm.via-avatar img {
  border-radius: 10px;
}

/* Nombre VIA más grande en topbar */
.topbar-name {
  font-size: 1.05rem;
  font-weight: 800;
}
.topbar-status {
  font-size: 0.74rem;
}

/* Burbujas de mensaje más grandes */
.msg-bubble {
  font-size: 0.95rem;
  padding: 0.9rem 1.2rem;
  line-height: 1.7;
}

/* Avatar VIA en mensajes más grande */
.msg-row.bot .msg-avatar.via-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  margin-top: 3px;
  flex-shrink: 0;
}
.msg-row.bot .msg-avatar.via-msg-avatar img {
  border-radius: 9px;
}

/* Avatar TÚ también más grande para equilibrio */
.msg-row.user .msg-avatar {
  width: 36px;
  height: 36px;
  font-size: 0.65rem;
  border-radius: 9px;
}
