/* Antares 1.44 · «Futuro»: paleta más profunda, paneles de vidrio, un color por asistente y movimiento suave.
   Se carga DESPUÉS de styles.css (y del CSS propio del panel de inteligencias). Para volver al aspecto anterior: quitar el <link> de este archivo.
   Si hay un tema del Modo Creador guardado (tema.js), ese tema manda: sus colores se escriben en línea y ganan a este archivo. */
:root {
  --bg: #03060d; --bg-2: #07101f;
  --panel: #0a1426; --panel-2: #0e1b33;
  --line: rgba(120, 190, 255, 0.30); --line-soft: rgba(93, 244, 255, 0.15);
  --cyan: #5df4ff; --cyan-2: #bdf3ff; --cyan-ink: #02141b;
  --text: #e6f2ff; --muted: #9db3cc; --dim: #8097b3;
  --accent: #ffb457; --accent-2: #ffd09a; --amber: #ffc457; --ok: #6dffa6; --red: #ff5a72;
  --glow: 0 0 14px rgba(93, 244, 255, 0.36), 0 0 2px rgba(93, 244, 255, 0.65);
  /* un color por asistente (castillo, tarjetas y estados) */
  --a-antares: #ffd36b; --a-igris: #7fa8ff; --a-viernes: #ff63d6; --a-beru: #4dffaa; --a-iron: #ff8d4a;
  --vidrio: linear-gradient(180deg, rgba(20, 38, 68, 0.74), rgba(8, 16, 32, 0.80));
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- fondo: aurora lenta sobre la rejilla ---------- */
.app {
  background:
    radial-gradient(560px 420px at 50% 28%, rgba(93, 244, 255, 0.16), transparent 70%),
    radial-gradient(460px 360px at 92% 88%, rgba(150, 110, 255, 0.20), transparent 70%),
    radial-gradient(420px 340px at 4% 66%, rgba(255, 180, 87, 0.10), transparent 70%),
    linear-gradient(rgba(93, 244, 255, 0.03) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(93, 244, 255, 0.03) 1px, transparent 1px) 0 0 / 28px 100%,
    linear-gradient(180deg, var(--bg-2), var(--bg) 62%);
}

/* ---------- paneles de vidrio ---------- */
.hud, .setup-card, .panel, .modal-card, .confirm-card, .group-card, .digest-card, .suggest-box, .perm-box, .trivia-card, .attach-menu, .sticker-menu, .toast, .item-row, .msg.bot .bubble {
  background: var(--vidrio);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 8px 26px rgba(0, 0, 0, 0.45);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .hud, .panel, .modal-card, .attach-menu, .sticker-menu, .toast, .setup-card {
    -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%);
  }
}
.msg.user .bubble, .msg.me .bubble { box-shadow: 0 0 18px rgba(93, 244, 255, 0.18); }

/* ---------- barra inferior y campo de mensaje: vidrio con luz arriba ---------- */
.tabbar { background: linear-gradient(180deg, rgba(14, 28, 54, .78), rgba(4, 9, 20, .94)); border-top: 1px solid rgba(125, 200, 255, .28);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .5), 0 -1px 0 rgba(93, 244, 255, .14) inset; }
.composer input, .composer textarea { background: rgba(8, 16, 32, .72); border-color: rgba(125, 200, 255, .3); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.composer input:focus, .composer textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 22px rgba(93, 244, 255, .28); }
/* borde de luz alrededor de los paneles de vidrio */
.hud, .panel, .modal-card, .setup-card, .confirm-card, .digest-card, .group-card { box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 0 0 1px rgba(125,200,255,.16), 0 10px 30px rgba(0,0,0,.5), 0 0 26px rgba(93,244,255,.08); }

/* ---------- botones: respuesta al toque ---------- */
button { transition: transform .12s var(--ease), box-shadow .2s ease, border-color .2s ease, background-color .2s ease; }
button:active:not(:disabled) { transform: scale(.965); }

/* ---------- movimiento ---------- */
@keyframes f-sube { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes f-msg { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes f-borde { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 8px 26px rgba(0,0,0,.45), 0 0 0 rgba(93,244,255,0); } 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 8px 26px rgba(0,0,0,.45), 0 0 22px rgba(93,244,255,.18); } }
@keyframes f-latido { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
.panel, .modal-card, .setup-card, .confirm-card, .digest-card, .group-card { animation: f-sube .32s var(--ease) both; }
.msg { animation: f-msg .28s var(--ease) both; }
.hud { animation: f-borde 6s ease-in-out infinite; }

/* ---------- panel de inteligencias (usa su propio CSS con otras variables) ---------- */
body.panel-intel { --bg: #03060d; --panel: rgba(10, 20, 38, .72); --line: #2a4a78; --txt: #e4f2ff; --dim: #8fa9c4; --verde: #5df4ff;
  background: radial-gradient(1200px 700px at 50% -10%, #0d2447 0%, #03060d 62%) fixed; }
html:has(body.panel-intel) { background: #03060d; }
body.panel-intel header { background: rgba(3, 6, 13, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: rgba(120, 190, 255, .25); }
body.panel-intel h1 { text-shadow: 0 0 14px rgba(93, 244, 255, .45); }
body.panel-intel .btn, body.panel-intel .chip { background: rgba(14, 30, 56, .8); border-color: #2a4a78; }
body.panel-intel .btn:hover { border-color: #5df4ff; box-shadow: 0 0 14px rgba(93, 244, 255, .3); }
body.panel-intel .conf { background: var(--vidrio); }
body.panel-intel #jefe { border-color: var(--a-antares); background: radial-gradient(circle, #1b2f55 0%, #050b18 72%);
  box-shadow: 0 0 34px rgba(255, 211, 107, .28), inset 0 0 30px rgba(255, 211, 107, .16); }
body.panel-intel #jefe b { color: var(--a-antares); }
body.panel-intel #jefe::before, body.panel-intel #jefe::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid var(--a-antares); opacity: 0; pointer-events: none; animation: f-onda 3.6s ease-out infinite; }
body.panel-intel #jefe::after { animation-delay: 1.8s; }
@keyframes f-onda { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.55); opacity: 0; } }
body.panel-intel .intel { background: var(--vidrio); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .25s var(--ease), box-shadow .25s ease; animation: f-sube .45s var(--ease) both; }
body.panel-intel .intel:nth-of-type(2) { animation-delay: .06s; } body.panel-intel .intel:nth-of-type(3) { animation-delay: .12s; }
body.panel-intel .intel:nth-of-type(4) { animation-delay: .18s; } body.panel-intel .intel:nth-of-type(5) { animation-delay: .24s; }
body.panel-intel .intel:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 22px color-mix(in srgb, var(--c) 35%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .panel, .modal-card, .setup-card, .confirm-card, .digest-card, .group-card, .msg, .hud, body.panel-intel .intel,
  body.panel-intel #jefe::before, body.panel-intel #jefe::after { animation: none !important; }
  body.panel-intel .intel:hover { transform: none; }
}
