/* New Uthopia 80 · chat de la web (lanzador walkman + panel). Lo usan index.html y bio/index.html.
   Autónomo: trae sus propios colores y animaciones para funcionar en cualquier página de la web. */
.walk, .chat {
  --magenta-osc: #D1006B; --morado: #7B2CBF; --rosa: #FF4FD8; --cian: #00E5FF; --amarillo: #FFE600; --verde: #39FF88;
  --texto: #F4EDFF; --texto-2: #CDBFE6; --texto-3: #A495C2;
  --f-vhs: 'VT323', ui-monospace, 'Courier New', monospace; --f-body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
.walk .ico, .chat .ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat :focus-visible, .walk:focus-visible { outline: 3px solid #FFE600; outline-offset: 3px; }
@keyframes chat-gira { to { transform: rotate(360deg); } }
@keyframes chat-entra { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes chat-cursor { 50% { opacity: 0; } }
.walk {
  position: fixed; right: 18px; bottom: 18px; z-index: 950; display: inline-flex; align-items: center; gap: 10px;
  padding: 0; border: 0; background: none; color: #fff; cursor: pointer;
}
.walk__casete { position: relative; width: 84px; height: 56px; border-radius: 10px; background: linear-gradient(160deg, #ff4fd8, #7b2cbf 55%, #3c096c); box-shadow: 0 0 0 2px #0c0616, 0 0 0 3.5px rgba(255, 255, 255, .25), 0 10px 30px rgba(255, 46, 151, .5); transition: transform .35s var(--ease), box-shadow .35s; }
.walk:hover .walk__casete, .walk:focus-visible .walk__casete { transform: rotate(-6deg) scale(1.06); box-shadow: 0 0 0 2px #0c0616, 0 0 0 3.5px var(--amarillo), 0 0 34px rgba(255, 46, 151, .8); }
.walk__casete::before { content: ''; position: absolute; left: 8px; right: 8px; top: 6px; height: 12px; border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 22px, rgba(255, 230, 0, .9) 22px 30px); opacity: .9; }
.walk__ventana { position: absolute; left: 14px; right: 14px; bottom: 9px; height: 22px; border-radius: 11px; background: #0c0616; display: flex; align-items: center; justify-content: space-between; padding: 0 5px; }
.walk__bobina { width: 16px; height: 16px; border-radius: 50%; background: repeating-conic-gradient(#fff 0 10deg, #2a2335 10deg 60deg); border: 2px solid #fff; animation: chat-gira 2.6s linear infinite; }
.walk__burbuja { position: absolute; right: 96px; bottom: 10px; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: #fff; color: #1a0b2e; font: 700 .86rem/1.2 var(--f-body); white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transform-origin: right bottom; animation: burbuja .5s var(--ease) both; }
@keyframes burbuja { from { opacity: 0; transform: scale(.6) translateY(10px); } }
.walk__punto { position: absolute; top: -5px; right: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--verde); border: 2px solid #0c0616; box-shadow: 0 0 10px var(--verde); }
.walk[aria-expanded='true'] .walk__burbuja { display: none; }
.chat {
  position: fixed; right: 18px; bottom: 92px; z-index: 960; display: none; flex-direction: column;
  width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 120px));
  border-radius: 22px; overflow: hidden; color: var(--texto);
  background: linear-gradient(180deg, #1d0c35, #0d0619); border: 1px solid rgba(255, 79, 216, .45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(123, 44, 191, .45);
  transform-origin: right bottom;
}
.chat.is-on { display: flex; animation: chat-in .4s var(--ease); }
@keyframes chat-in { from { opacity: 0; transform: translateY(20px) scale(.94); } }
.chat__cab { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(180deg, #2c1452, #1a0b30); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.chat__lcd { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 10px; background: #08140f; border: 1px solid rgba(57, 255, 136, .35); box-shadow: inset 0 0 16px rgba(57, 255, 136, .15); font-family: var(--f-vhs); color: var(--verde); text-shadow: 0 0 6px rgba(57, 255, 136, .7); overflow: hidden; }
.chat__lcd b { display: block; font-weight: 400; font-size: 1.4rem; line-height: 1; letter-spacing: .06em; white-space: nowrap; }
.chat__lcd small { display: block; font-size: 1.02rem; line-height: 1.1; opacity: .8; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__cerrar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .04); color: #fff; flex: none; }
.chat__cerrar:hover { border-color: var(--rosa); color: var(--rosa); }
.chat__log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .015) 0 2px, transparent 2px 4px); overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 79, 216, .5) transparent; }
.chat__m { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: .96rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; animation: chat-entra .3s var(--ease); }
.chat__m--bot { align-self: flex-start; background: rgba(0, 229, 255, .07); border: 1px solid rgba(0, 229, 255, .35); border-bottom-left-radius: 4px; }
.chat__m--yo { align-self: flex-end; background: linear-gradient(135deg, var(--magenta-osc), var(--morado)); border-bottom-right-radius: 4px; color: #fff; }
.chat__m a { color: var(--amarillo); font-weight: 600; }
.chat__enlaces { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chat__enlaces a { display: inline-flex; align-items: center; gap: 6px; padding: .45em .8em; border-radius: 999px; background: rgba(255, 230, 0, .1); border: 1px solid rgba(255, 230, 0, .45); color: var(--amarillo); text-decoration: none; font-size: .85rem; font-weight: 700; }
.chat__enlaces a:hover { background: var(--amarillo); color: #1a0b2e; }
.chat__escribiendo { display: inline-flex; gap: 5px; padding: 14px 16px; }
.chat__escribiendo i { width: 8px; height: 14px; background: var(--cian); animation: chat-cursor .9s steps(1) infinite; }
.chat__escribiendo i:nth-child(2) { animation-delay: .3s; }
.chat__escribiendo i:nth-child(3) { animation-delay: .6s; }
.chat__chips { display: flex; gap: 8px; padding: 10px 14px 4px; overflow-x: auto; scrollbar-width: none; flex: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chat__chip { flex: none; padding: .5em .9em; border-radius: 999px; border: 1px solid rgba(255, 79, 216, .5); background: rgba(255, 79, 216, .08); color: var(--texto); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.chat__chip:hover, .chat__chip:focus-visible { background: var(--rosa); color: #1a0b2e; }
.chat__form { display: flex; gap: 8px; padding: 10px 12px; flex: none; }
.chat__form input { flex: 1; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid rgba(199, 125, 255, .35); background: #0a0613; color: var(--texto); font-size: 1rem; }
.chat__form input:focus { outline: none; border-color: var(--cian); box-shadow: 0 0 0 3px rgba(0, 229, 255, .2); }
.chat__enviar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 0; background: linear-gradient(135deg, var(--magenta-osc), var(--morado)); color: #fff; flex: none; }
.chat__enviar:disabled { opacity: .5; cursor: default; }
.chat__priv { padding: 0 14px 12px; font-size: .74rem; line-height: 1.35; color: var(--texto-3); flex: none; }
.chat__priv a { color: var(--texto-2); }
@media (max-width: 520px) {
  .chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .walk { right: 12px; bottom: 12px; }
  .walk__casete { width: 72px; height: 48px; }
  .walk__burbuja { right: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .walk *, .chat, .chat * { animation: none !important; transition: none !important; }
}
@media print { .walk, .chat { display: none !important; } }
