/* ---------- Home: bloque de Gavi. Texto a la izquierda; a la derecha, una demo que se arma sola en una ventana de chat. */
.jh-sec { padding-top: 0; }
.jh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: 28px; background: rgb(255 255 255 / .6); border: 1px solid rgb(255 255 255 / .8);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: 0 30px 60px -40px rgb(15 30 61 / .45); }
.jh-copy { display: grid; gap: 20px; justify-items: start; }
.jh-copy h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0; text-wrap: balance; }
.jh-copy h2 em { font-style: normal; color: var(--accent-text, #DA5B00); }
.jh-copy > p { margin: 0; color: var(--ink-2); font-size: 1.12rem; max-width: 30em; }
.jh-can { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; width: 100%; max-width: 32em; }
.jh-can li { display: grid; gap: 2px; padding: 14px 16px 14px 46px; position: relative; border-radius: 16px; background: rgb(255 255 255 / .7); border: 1px solid rgb(15 30 61 / .07); }
.jh-can li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 4px, rgb(255 114 0 / .18) 4.5px); }
.jh-can b { font: 700 1.02rem var(--head); color: #0F1E3D; }
.jh-can span { font-size: .95rem; color: var(--ink-2); }
.jh-copy .actions { margin-top: 4px; }

/* la ventana */
.jh-win { position: relative; border-radius: 24px; overflow: hidden; color: #EEF2FA;
  background: radial-gradient(120% 70% at 50% 0%, #1D3A72 0%, #0F2148 55%, #0B1834 100%);
  box-shadow: 0 0 0 1px rgb(170 205 255 / .35), 0 0 40px -8px rgb(110 165 255 / .45), 0 0 110px -30px rgb(255 120 30 / .5), 0 40px 70px -40px rgb(8 18 40 / .8); }
.jh-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.jh-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); flex: none; }
.jh-av svg { width: 24px; height: auto; }
.jh-top b { font: 700 1.02rem var(--head); }
.jh-top span { display: flex; align-items: center; gap: 7px; font-size: .84rem; color: #B7C1D8; }
.jh-top span i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgb(34 197 94 / .22); }
.jh-log { display: flex; flex-direction: column; gap: 9px; padding: 18px 16px 20px; min-height: 392px; justify-content: flex-end; }
.jh-m { margin: 0; max-width: 80%; padding: 10px 14px; border-radius: 6px 16px 16px 16px; font-size: .95rem; line-height: 1.4;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .12); }
.jh-m.me { align-self: flex-end; border-radius: 16px 6px 16px 16px; background: var(--accent); border-color: transparent; color: #0F1E3D; font-weight: 600; }
.jh-qr { display: flex; flex-wrap: wrap; gap: 6px; }
.jh-qr span { padding: 7px 12px; border-radius: 99px; border: 1.5px solid rgb(255 114 0 / .55); color: #FFB27A; font: 700 .84rem var(--head); }
.jh-qr span.on { background: var(--accent); border-color: var(--accent); color: #0F1E3D; }
.jh-res { display: grid; gap: 0; padding: 14px 16px 6px; border-radius: 16px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); }
.jh-res > b { font: 700 1rem var(--head); color: #FFB27A; margin-bottom: 6px; }
.jh-res div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid rgb(255 255 255 / .1); font-size: .9rem; }
.jh-res span { color: #B7C1D8; } .jh-res em { font-style: normal; font-weight: 600; color: #fff; }
.jh-typ { display: none; }

/* la conversación se arma cuando el bloque entra en pantalla, y vuelve a empezar */
.js .jh-log > [style*="--s"] { opacity: 0; translate: 0 10px; }
.jh.play .jh-log > [style*="--s"] { animation: jhIn 13s calc(var(--s) * 1.15s + .3s) cubic-bezier(.16,1,.3,1) infinite both; }
@keyframes jhIn { 0% { opacity: 0; translate: 0 10px; } 4% { opacity: 1; translate: 0 0; } 88% { opacity: 1; translate: 0 0; } 94%, 100% { opacity: 0; translate: 0 -6px; } }
.jh.play .jh-qr span.on { animation: jhPick 13s 1.75s infinite both; }
@keyframes jhPick { 0% { background: transparent; color: #FFB27A; border-color: rgb(255 114 0 / .55); } 4%, 100% { background: var(--accent); color: #0F1E3D; border-color: var(--accent); } }

@media (max-width: 900px) {
  .jh { grid-template-columns: 1fr; }
  .jh-log { min-height: 0; }
}
@media (max-width: 700px) {
  .jh { padding: 22px 16px 16px; border-radius: 24px; }
  .jh-copy .actions { width: 100%; display: grid; gap: 10px; }
  .jh-copy .actions .btn { justify-content: center; }
  .jh-res div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .jh-log > [style*="--s"] { opacity: 1; translate: none; }
  .jh.play .jh-log > [style*="--s"], .jh.play .jh-qr span.on { animation: none; }
}
