/* ============================================================
   EONIX Widget (NO transparencia / legible móvil y PC)
   Archivo: eonix-widget.css
   ============================================================ */

:root{
  --eonix-bg: #0B1022;          /* sólido */
  --eonix-panel: #0F1A3E;       /* sólido */
  --eonix-panel2: #0A1026;      /* sólido */
  --eonix-border: rgba(255,255,255,.14);
  --eonix-text: #F2F6FF;
  --eonix-muted: #B9C5EA;

  --eonix-c1: #18E0FF;
  --eonix-c2: #A855F7;
  --eonix-c4: #FF4FD8;

  --eonix-radius: 18px;
  --eonix-shadow: 0 26px 80px rgba(0,0,0,.65);
}

.eonix-widget{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--eonix-text);
}

.eonix-bubble-btn{
  width: 72px;
  height: 72px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.16);
  background: var(--eonix-bg); /* sólido */
  box-shadow:
    0 26px 70px rgba(0,0,0,.70),
    0 0 0 10px rgba(24,224,255,.10),
    0 0 60px rgba(24,224,255,.22),
    0 0 50px rgba(255,79,216,.10);
  position: relative;
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  user-select:none;
}

.eonix-bubble-btn::before{
  content:"";
  position:absolute; inset:-3px;
  background: conic-gradient(from 120deg,
    rgba(24,224,255,.95),
    rgba(168,85,247,.85),
    rgba(255,79,216,.75),
    rgba(24,224,255,.95)
  );
  filter: blur(12px);
  opacity:.65;
  animation: eonixSpin 5.8s linear infinite;
  pointer-events:none;
}
@keyframes eonixSpin{ to{ transform: rotate(360deg);} }

.eonix-bubble-btn::after{
  content:"";
  position:absolute; inset:2px;
  border-radius:999px;
  background:
    radial-gradient(220px 120px at 35% 30%, rgba(24,224,255,.18), transparent 60%),
    radial-gradient(220px 120px at 70% 75%, rgba(255,79,216,.12), transparent 62%),
    var(--eonix-bg);
  pointer-events:none;
}

.eonix-bubble-btn img{
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 14px 26px rgba(24,224,255,.25));
  border-radius: 14px;
}

.eonix-panel{
  width: min(420px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 120px));
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: var(--eonix-bg); /* sólido */
  box-shadow: var(--eonix-shadow);
  overflow: hidden;
  display: none;
}

.eonix-panel.open{ display:block; }

.eonix-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 12px;
  background: linear-gradient(180deg, #121A36, #0B1022);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.eonix-head .left{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.eonix-title{
  font-weight: 1000;
  letter-spacing:.2px;
  font-size: 14px;
  line-height: 1.2;
}

.eonix-sub{
  font-weight: 800;
  font-size: 12px;
  color: rgba(185,197,234,.95);
}

.eonix-actions{
  display:flex; gap:8px; align-items:center;
}

.eonix-btn{
  cursor:pointer;
  border: 1px solid rgba(255,255,255,.14);
  background: #0E1733; /* sólido */
  color: var(--eonix-text);
  font-weight: 950;
  padding: 8px 10px;
  border-radius: 999px;
}
.eonix-btn:hover{ border-color: rgba(24,224,255,.35); }

.eonix-body{
  height: calc(100% - 120px);
  padding: 12px;
  overflow:auto;
  background: var(--eonix-bg); /* sólido */
}

.eonix-msg{
  max-width: 92%;
  padding: 12px 12px;
  border-radius: 16px;
  margin: 0 0 10px 0;
  border: 1px solid rgba(255,255,255,.10);
  line-height: 1.45;
  font-weight: 750;
}

.eonix-msg.bot{
  background: #101B3F; /* sólido */
}

.eonix-msg.user{
  background: #0E2A3A; /* sólido */
  margin-left:auto;
  border-color: rgba(24,224,255,.18);
}

.eonix-typing{
  display:flex;
  align-items:center;
  gap:10px;
  color: rgba(242,246,255,.92);
  font-weight: 900;
}

.eonix-dots{
  display:inline-flex;
  gap:5px;
}
.eonix-dots span{
  width:7px; height:7px; border-radius:50%;
  background: rgba(242,246,255,.80);
  animation: eonixDot 1.1s infinite ease-in-out;
}
.eonix-dots span:nth-child(2){ animation-delay:.15s; }
.eonix-dots span:nth-child(3){ animation-delay:.30s; }
@keyframes eonixDot{
  0%,100%{ transform: translateY(0); opacity:.55; }
  50%{ transform: translateY(-4px); opacity:1; }
}

.eonix-foot{
  height: 120px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: #0B1022; /* sólido */
}

.eonix-row{
  display:flex;
  gap:10px;
  align-items:flex-end;
}

.eonix-input{
  flex:1;
  resize:none;
  height: 44px;
  max-height: 88px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: #070A12; /* sólido */
  color: var(--eonix-text);
  outline: none;
  font-weight: 750;
}

.eonix-send{
  width: 110px;
  height: 44px;
  border-radius: 14px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.14);
  background: #0E1733; /* sólido */
  color: var(--eonix-text);
  font-weight: 1000;
}
.eonix-send:hover{ border-color: rgba(24,224,255,.35); }

.eonix-hint{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(185,197,234,.95);
  font-weight: 800;
}

@media (max-width: 520px){
  .eonix-panel{
    width: calc(100vw - 18px);
    height: calc(100vh - 110px);
    border-radius: 20px;
  }
}
