/* Luna: botón orbe, panel de chat y estado de pantalla completa (app) */
.luna-float { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.lu-fab {
  position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; isolation: isolate;
  background: radial-gradient(circle at 32% 24%, #e6e9fa, var(--aqua) 36%, var(--aqua3) 100%);
  box-shadow: inset 0 3px 3px rgba(255,255,255,.85), inset 0 -8px 14px rgba(26,31,62,.6), 0 16px 34px -8px rgba(112,124,172,.8), 0 0 0 1px rgba(255,255,255,.18), 0 40px 70px -20px rgba(166,176,224,.7);
  transition: transform .4s var(--ease);
}
.lu-fab:hover { transform: translateY(-4px) scale(1.06); }
.lu-fab:active { transform: scale(.95); }
.lu-ring { position: absolute; inset: -7px; border-radius: 50%; padding: 2px; z-index: -1; background: conic-gradient(from var(--a), transparent 0 55%, var(--aqua) 78%, #fff 88%, transparent 96%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 3.2s linear infinite; }
.lu-fab::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--aqua); animation: pulse 2.6s ease-out infinite; z-index: -2; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
.lu-core { display: flex; gap: 3px; align-items: center; height: 26px; }
.lu-core i { width: 4px; border-radius: 4px; background: #151932; animation: wave 1.1s ease-in-out infinite; height: 8px; }
.lu-core i:nth-child(2) { animation-delay: -.2s; } .lu-core i:nth-child(3) { animation-delay: -.4s; } .lu-core i:nth-child(4) { animation-delay: -.6s; } .lu-core i:nth-child(5) { animation-delay: -.8s; }
.lu-core.sm { height: 18px; } .lu-core.sm i { width: 3px; }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 24px; } }
.lu-core.sm i { animation-name: wave2; } @keyframes wave2 { 0%, 100% { height: 5px; } 50% { height: 17px; } }
.lu-fab em { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 2px 9px; border-radius: 99px; background: var(--ink); color: var(--aqua); border: 1px solid var(--line2); }
.lu-hint { position: absolute; right: 0; bottom: 100px; width: max-content; max-width: 230px; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: linear-gradient(160deg, #25283f, #171927); border: 1px solid var(--line2); font-size: .86rem; box-shadow: 0 20px 40px -14px #000; opacity: 0; transform: translateX(14px) scale(.95); pointer-events: none; transition: all .5s var(--ease); }
.luna.hint .lu-hint { opacity: 1; transform: none; }
.lu-panel { width: min(400px, calc(100vw - 28px)); height: min(640px, calc(100dvh - 130px)); display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: linear-gradient(170deg, rgba(29,31,48,.97), rgba(8,8,12,.98)); border: 1px solid var(--line2); box-shadow: 0 50px 100px -30px #000, 0 0 80px -30px var(--glow), inset 0 1px 0 rgba(255,255,255,.14); opacity: 0; transform: translateY(26px) scale(.94); transform-origin: bottom right; pointer-events: none; transition: all .5s var(--ease); position: absolute; right: 0; bottom: 92px; }
.luna.open .lu-panel { opacity: 1; transform: none; pointer-events: auto; }
.lu-panel header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(166,176,224,.12), transparent); }
.lu-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, #e6e9fa, var(--aqua) 40%, var(--aqua3)); box-shadow: inset 0 2px 2px rgba(255,255,255,.8), 0 0 20px -4px var(--glow); }
.lu-av .lu-core i { background: #151932; }
.lu-panel header b { display: block; font-size: 1rem; line-height: 1.1; }
.lu-panel header small { color: var(--mute); font-size: .72rem; display: flex; align-items: center; gap: 6px; }
.lu-panel header small s { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); text-decoration: none; }
.lu-x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); transition: .3s; }
.lu-x:hover { background: rgba(255,255,255,.14); transform: rotate(90deg); }
.lu-x svg { width: 16px; height: 16px; }
.lu-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.lu-m { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: .9rem; line-height: 1.5; animation: msgIn .5s var(--ease) both; }
.lu-m b { color: #fff; }
.lu-m.bot { align-self: flex-start; background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.04)); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.lu-m.me { align-self: flex-end; color: #0b0d18; font-weight: 600; background: linear-gradient(180deg, #e6e9fa, var(--aqua)); border-bottom-right-radius: 5px; box-shadow: 0 8px 20px -8px var(--glow); }
.lu-m.ty { display: flex; gap: 5px; padding: 14px 16px; }
.lu-m.ty i { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); animation: ty 1s infinite; }
.lu-m.ty i:nth-child(2) { animation-delay: .15s; } .lu-m.ty i:nth-child(3) { animation-delay: .3s; }
@keyframes ty { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.lu-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 10px; max-height: 132px; overflow-y: auto; }
.lu-chips .chip { font-size: .8rem; padding: .45rem .85rem; animation: msgIn .5s var(--ease) both; }
.lu-form { display: flex; gap: 10px; padding: 12px 14px 16px; border-top: 1px solid var(--line); }
.lu-in { flex: 1; height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.05); outline: none; box-shadow: inset 0 2px 5px rgba(0,0,0,.4); }
.lu-in:focus { border-color: var(--aqua); box-shadow: inset 0 2px 5px rgba(0,0,0,.4), 0 0 0 4px rgba(166,176,224,.14); }
.lu-send { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #0b0d18; background: linear-gradient(180deg, #e6e9fa, var(--aqua2)); box-shadow: inset 0 1.5px 0 rgba(255,255,255,.8), 0 8px 18px -6px var(--glow); transition: .3s var(--ease); }
.lu-send:hover { transform: scale(1.08) rotate(-8deg); }
.lu-send svg { width: 20px; height: 20px; }
.lu-tk { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(166,176,224,.2), rgba(166,176,224,.04)); border: 1px dashed var(--aqua); }
.lu-tk small { font-size: .62rem; letter-spacing: .2em; color: var(--aqua); }
.lu-tk b { display: block; text-transform: capitalize; font-size: 1.02rem; }
.lu-tk span { font-size: .8rem; color: var(--mute); }
.lu-ok { width: 40px; height: 40px; border-radius: 50%; background: var(--ok); color: #03281a; display: grid; place-items: center; box-shadow: 0 0 24px -2px var(--ok); animation: pop .7s var(--ease) both; flex: none; }
.lu-ok svg { width: 20px; height: 20px; }
@keyframes pop { from { transform: scale(0) rotate(-90deg); } }
.lu-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lu-m .btn.lu-wa { margin-top: 4px; }
/* pantalla completa (app) */
.luna-full { height: 100%; }
.luna-full .lu-panel { position: static; width: 100%; height: 100%; opacity: 1; transform: none; pointer-events: auto; border-radius: 0; border: 0; box-shadow: none; background: transparent; }
@media (max-width: 560px) {
  .luna-float { right: 14px; bottom: 14px; }
  .lu-panel { position: fixed; inset: 0; width: 100%; height: 100dvh; border-radius: 0; transform: translateY(100%); }
  .luna.open .lu-panel { transform: none; }
  .luna.open .lu-fab { opacity: 0; pointer-events: none; }
  .lu-hint { right: 0; bottom: 92px; max-width: 190px; }
}
