.landing-chat-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}

.landing-chat-highlights {
  display: grid;
  gap: 14px;
}

.landing-chat-highlight {
  background: linear-gradient(180deg, rgba(26,26,26,0.98), rgba(0,0,0,0.96));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
}

.landing-chat-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.landing-chat-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(255,215,0,0.08);
}

.landing-chat-highlight-title {
  font-size: 19px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.landing-chat-highlight-copy {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text2);
}

/* ── Self-contained chat card: fixed viewport, header / feed / composer ───── */
.landing-chat-shell {
  display: flex;
  flex-direction: column;
  height: 640px;
  background: linear-gradient(180deg, rgba(26,26,26,0.98), rgba(0,0,0,0.96));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 24px 90px rgba(0,0,0,0.24);
  overflow: hidden;
}

.landing-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.landing-chat-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(255,215,0,0.08);
}

.landing-chat-status-dot.is-connected {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(34,197,94,0.12);
  animation: landing-chat-pulse 2.4s ease infinite;
}

.landing-chat-status-dot.is-waiting {
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(59,130,246,0.12);
}

.landing-chat-status-dot.is-warning {
  background: var(--gold);
}

@keyframes landing-chat-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34,197,94,0.16); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,0.06); }
}

.landing-chat-header-copy {
  flex: 1;
  min-width: 0;
}

.landing-chat-status-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-chat-status-subtext {
  font-size: 12px;
  color: var(--text2);
  margin-top: 3px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.landing-chat-status-live {
  display: none;
}

.landing-chat-human {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,0.22);
  background: rgba(34,197,94,0.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.landing-chat-human:hover {
  transform: translateY(-1px);
  border-color: rgba(34,197,94,0.4);
  box-shadow: 0 12px 30px rgba(34,197,94,0.12);
}

.landing-chat-shell.is-live .landing-chat-human {
  border-color: rgba(34,197,94,0.5);
  background: rgba(34,197,94,0.18);
  cursor: default;
}

/* Capability pills collapse automatically once the conversation starts. */
.landing-chat-proof-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 2px 10px;
  max-height: 60px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, margin 0.35s ease;
  flex-shrink: 0;
}

.landing-chat-shell.is-conversing .landing-chat-proof-rail {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}

.landing-chat-proof-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text2);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.35px;
}

.landing-chat-proof-pill.is-live {
  border-color: rgba(34,197,94,0.24);
  background: rgba(34,197,94,0.08);
  color: var(--green);
}

/* Live human support banner */
.landing-chat-live-banner {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  margin: 0 2px 10px;
  border-radius: 12px;
  border: 1px solid rgba(34,197,94,0.28);
  background: rgba(34,197,94,0.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  flex-shrink: 0;
}

.landing-chat-live-banner.is-visible {
  display: flex;
}

.landing-chat-live-banner::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: landing-chat-pulse 2.4s ease infinite;
  flex-shrink: 0;
}

/* Scrollable message feed — the only scrolling region inside the card. */
.landing-chat-messages {
  flex: 1;
  min-height: 200px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 6px 2px 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.16) transparent;
}

.landing-chat-messages::-webkit-scrollbar {
  width: 6px;
}

.landing-chat-messages::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(255,255,255,0.16);
}

.landing-chat-message {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.landing-chat-message.is-support {
  align-self: flex-start;
  border-bottom-left-radius: 8px;
}

.landing-chat-message.is-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(255,215,0,0.18), rgba(255,215,0,0.08));
  border-color: rgba(255,215,0,0.22);
  border-bottom-right-radius: 8px;
}

.landing-chat-message-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 7px;
}

.landing-chat-md-list {
  margin: 6px 0;
  padding-left: 18px;
}

.landing-chat-md-list li {
  margin: 3px 0;
}

.landing-chat-message-copy {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.landing-chat-message-meta {
  font-size: 10.5px;
  color: var(--text3);
  margin-top: 8px;
}

.landing-chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 2px;
  flex-shrink: 0;
}

.landing-chat-quick-reply {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s, border-color 0.2s, box-shadow 0.2s;
}

.landing-chat-quick-reply:hover {
  transform: translateY(-1px);
  border-color: var(--gold-border);
  box-shadow: 0 14px 34px rgba(255,215,0,0.08);
}

/* Attachment chips (preview before send) */
.landing-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 2px 8px;
  flex-shrink: 0;
}

.landing-chat-chips:empty {
  margin: 0;
  padding: 0;
}

.landing-chat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  max-width: 100%;
}

.landing-chat-chip-thumb {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.landing-chat-chip-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,215,0,0.1);
  font-size: 15px;
  flex-shrink: 0;
}

.landing-chat-chip-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-chat-chip-remove {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--text2);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

/* Unified rounded composer: every action lives INSIDE the bar. */
.landing-chat-composer {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  padding: 7px 8px;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-chat-composer:focus-within {
  border-color: rgba(255,215,0,0.32);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.06);
}

.landing-chat-shell.is-loading .landing-chat-composer {
  opacity: 0.72;
}

.landing-chat-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  transition: color 0.16s, background 0.16s, transform 0.16s;
}

.landing-chat-icon-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.07);
  transform: translateY(-1px);
}

.landing-chat-icon-btn.is-recording {
  color: #EF4444;
  background: rgba(239,68,68,0.12);
  animation: landing-chat-pulse 1.4s ease infinite;
}

.landing-chat-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  line-height: 1.55;
  padding: 8px 6px;
  outline: none;
  resize: none;
  max-height: 120px;
  overflow-y: auto;
}

.landing-chat-input::placeholder {
  color: var(--text3);
}

.landing-chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  margin-left: 2px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--gold), #D4AF37);
  color: #000;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255,215,0,0.22);
  transition: transform 0.16s, filter 0.2s, opacity 0.2s;
}

.landing-chat-send:hover {
  transform: translateY(-1px) scale(1.04);
  filter: brightness(1.06);
}

.landing-chat-send:active {
  transform: scale(0.94);
}

.landing-chat-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.landing-chat-human:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Emoji popover */
.landing-chat-emoji-pop {
  display: none;
  position: absolute;
  right: 52px;
  bottom: calc(100% + 10px);
  z-index: 30;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(20,20,20,0.98);
  box-shadow: 0 24px 70px rgba(0,0,0,0.5);
  width: min(300px, calc(100vw - 80px));
}

.landing-chat-emoji-pop.is-open {
  display: grid;
}

.landing-chat-emoji-item {
  border: none;
  background: transparent;
  font-size: 21px;
  line-height: 1;
  padding: 5px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.14s, transform 0.14s;
}

.landing-chat-emoji-item:hover {
  background: rgba(255,255,255,0.08);
  transform: scale(1.12);
}

.landing-chat-composer-footnote {
  margin: 8px 4px 0;
  font-size: 11px;
  color: var(--text3);
  flex-shrink: 0;
}

.landing-chat-composer-footnote a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 980px) {
  .landing-chat-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile: the card owns 76dvh of the viewport. */
@media (max-width: 720px) {
  .landing-chat-shell {
    height: 76vh;
    height: 76dvh;
    border-radius: 22px;
    padding: 10px;
  }

  .landing-chat-header {
    padding: 10px 12px;
  }

  .landing-chat-status-subtext {
    display: none;
  }

  .landing-chat-human {
    min-height: 36px;
    padding: 0 11px;
    font-size: 11px;
  }

  .landing-chat-message {
    max-width: 92%;
  }

  .landing-chat-emoji-pop {
    right: 6px;
  }
}

/* ── Chat video attachments (Instagram-style: lazy thumbnail, modal player) ── */
.landing-chat-video {
  position: relative;
  margin-top: 6px;
  border-radius: 12px;
  overflow: hidden;
  max-width: 260px;
}

.landing-chat-video.is-pending,
.landing-chat-video.is-failed {
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.landing-chat-video-state {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-chat-video-hint {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.72;
  word-break: break-word;
}

.landing-chat-video-bar {
  margin-top: 8px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

.landing-chat-video-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--green, #22C55E);
  transition: width 0.2s ease;
}

.landing-chat-video-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: var(--green, #22C55E);
  animation: landing-chat-video-spin 0.9s linear infinite;
  flex-shrink: 0;
}

@keyframes landing-chat-video-spin {
  to { transform: rotate(360deg); }
}

.landing-chat-video.is-failed .landing-chat-video-state {
  color: #EF4444;
}

.landing-chat-video-retry {
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.12);
  color: var(--green, #22C55E);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.landing-chat-video.is-ready {
  cursor: pointer;
  background: #000;
}

.landing-chat-video-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.landing-chat-video-thumb-empty {
  background: rgba(255,255,255,0.08);
}

.landing-chat-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #fff;
  background: rgba(0,0,0,0.28);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  transition: background 0.15s ease;
}

.landing-chat-video.is-ready:hover .landing-chat-video-play {
  background: rgba(0,0,0,0.42);
}

.landing-chat-video-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.landing-chat-video-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.88);
  padding: 20px;
}

.landing-chat-video-modal-inner {
  position: relative;
  width: min(920px, 100%);
}

.landing-chat-video-modal-inner video {
  width: 100%;
  max-height: 82vh;
  border-radius: 14px;
  background: #000;
  display: block;
}

.landing-chat-video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

/* ── Ticker vs chat: mientras el chat es visible, la barra fija del live deal
   se oculta — nunca se superpone a los mensajes ni al composer. ───────────── */
body.ivx-chat-on-screen .live-ticker-bar { display: none !important; }

/* ── Mobile composer: "+" agrupa acciones extra; input >= 65% ────────────── */
.landing-chat-plus { display: none; }
.landing-chat-extra { display: contents; }

@media (max-width: 480px) {
  .landing-chat-shell {
    height: min(640px, calc(var(--ivx-vvh, 100dvh) - 88px));
    padding: 10px;
    border-radius: 20px;
    /* Full-bleed: anula el padding de 24px de la seccion para ganar ancho real */
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
  }
  .landing-chat-header { padding: 8px 10px; margin-bottom: 8px; }
  .landing-chat-status-subtext { display: none; }
  .landing-chat-proof-rail { display: none; }
  .landing-chat-composer-footnote { display: none; }

  /* FIX overlap (reporte Owner 2026-11-20): min-height fijo desbordaba el
     shell con el teclado abierto — el composer y el disclaimer se recortaban
     y se pisaban. El feed cede espacio con flex real. */
  .landing-chat-messages { min-height: 0; padding: 2px 2px; }

  .landing-chat-quick-replies {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 8px 0;
    scrollbar-width: none;
  }
  .landing-chat-quick-replies::-webkit-scrollbar { display: none; }
  .landing-chat-quick-reply { flex-shrink: 0; min-height: 30px; font-size: 11px; padding: 0 10px; }

  .landing-chat-composer { padding: 6px; gap: 1px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .landing-chat-icon-btn { width: 28px; height: 28px; min-width: 28px; }
  .landing-chat-icon-btn svg { width: 16px; height: 16px; }
  .landing-chat-send { width: 32px; height: 32px; min-width: 32px; font-size: 16px; margin-left: 2px; }
  /* 16px evita el zoom automatico de iOS al enfocar el input */
  .landing-chat-input { font-size: 16px; padding: 6px 4px; }

  .landing-chat-plus { display: inline-flex; }
  .landing-chat-extra {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    justify-content: space-around;
    background: #141414;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 6px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  }
  .landing-chat-extra .landing-chat-icon-btn { width: 38px; height: 38px; min-width: 38px; }
  .landing-chat-composer.show-extra .landing-chat-extra { display: flex; }
}

/* ── Indicador "IVX AI está analizando" (typing) ─────────────────────── */
.landing-chat-message.is-typing {
  animation: landing-chat-fade-in 0.25s ease-out;
}

.landing-chat-typing-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-chat-typing-text {
  font-size: 12.5px;
  color: var(--text3);
  font-style: italic;
}

.landing-chat-typing-dots {
  display: inline-flex;
  gap: 4px;
}

.landing-chat-typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, #FFD700);
  animation: landing-chat-typing-bounce 1.2s infinite ease-in-out;
}

.landing-chat-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.landing-chat-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes landing-chat-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

@keyframes landing-chat-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-chat-typing-dot { animation: none; opacity: 0.7; }
  .landing-chat-message.is-typing { animation: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   2026-11-20 — CORPORATE REDESIGN (mandato Owner) + razonamiento abierto
   Estética IVX: navy profundo, filete dorado, monogramas, micro-animaciones.
   ══════════════════════════════════════════════════════════════════════════ */

/* Medallón corporativo en la cabecera del chat */
.landing-chat-medallion {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FFD700, #B8860B);
  color: #0b0b0b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Entrada de mensajes: slide + fade con easing corporativo */
.landing-chat-message {
  animation: landing-chat-enter 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes landing-chat-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Burbuja IA: superficie carbón con filete dorado a la izquierda */
.landing-chat-message.is-support {
  background: linear-gradient(180deg, rgba(40, 38, 31, 0.94), rgba(25, 24, 20, 0.96));
  border-left: 2px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* Burbuja visitante: navy profundo con acento dorado, alineada a la derecha */
.landing-chat-message.is-user {
  background: linear-gradient(135deg, #1e2a3d, #131b29);
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

/* Cabecera de burbuja: monograma + etiqueta en fila */
.landing-chat-msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.landing-chat-message-label { margin-bottom: 0; }

.landing-chat-avatar {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.landing-chat-avatar.is-ai {
  background: linear-gradient(135deg, #FFD700, #B8860B);
  color: #0b0b0b;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.landing-chat-avatar.is-user {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text2);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Razonamiento abierto: línea ⓘ colapsable bajo cada respuesta IA */
.landing-chat-reasoning { margin-top: 8px; }

.landing-chat-reasoning-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  font-family: inherit;
}

.landing-chat-reasoning-toggle:hover { text-decoration: underline; }

.landing-chat-reasoning-body {
  display: none;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px dashed rgba(255, 215, 0, 0.28);
  border-radius: 10px;
  background: rgba(255, 215, 0, 0.04);
  font-size: 11px;
  line-height: 1.7;
  color: var(--text2);
}

.landing-chat-reasoning.is-open .landing-chat-reasoning-body { display: block; }
.landing-chat-reasoning-body b { color: var(--text); }

/* Quick replies como píldoras corporativas (estado activo táctil) */
.landing-chat-quick-reply:active {
  transform: scale(0.96);
  border-color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .landing-chat-message { animation: none; }
}
