/* ==========================================================================
   MorCar Mascot (León) - Asistente flotante tipo "Clippy"
   Archivo: /assets/css/mascot.css
   Notas:
     - No estorbar: arrastrable + snap a esquinas
     - Respeta prefers-reduced-motion
   ========================================================================== */

.mascot{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2500;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: rgba(12, 16, 30, .85);
  border: 1px solid rgba(0,229,255,.40);
  box-shadow:
    0 0 18px rgba(0,229,255,.18),
    0 0 54px rgba(0,229,255,.10),
    0 18px 60px rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.mascot:active{ cursor: grabbing; }

.mascot img{
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0,229,255,.10));
}

.mascot .pulse{
  position:absolute;
  inset:-6px;
  border-radius: 999px;
  border: 1px solid rgba(0,229,255,.18);
  opacity: .55;
  animation: pulse 3.2s ease-in-out infinite;
  pointer-events:none;
}

@keyframes floaty{
  0%{ transform: translateY(0); }
  50%{ transform: translateY(-6px); }
  100%{ transform: translateY(0); }
}
@keyframes pulse{
  0%{ transform: scale(0.98); opacity:.22; }
  50%{ transform: scale(1.02); opacity:.55; }
  100%{ transform: scale(0.98); opacity:.22; }
}

.mascot.idle{
  animation: floaty 3.6s ease-in-out infinite;
}

.mascot-panel{
  position: fixed;
  right: 18px;
  bottom: 112px;
  z-index: 2500;
  width: min(320px, calc(100% - 36px));
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(8, 12, 26, .92);
  box-shadow: 0 18px 70px rgba(0,0,0,.6);
  backdrop-filter: blur(12px);
  display:none;
}
.mascot-panel.open{ display:block; }

.mascot-panel h4{
  margin:0 0 6px 0;
  font-size: 1.02rem;
}
.mascot-panel p{
  margin:0 0 12px 0;
  color: rgba(255,255,255,.70);
  font-size:.95rem;
  line-height:1.35;
}
.mascot-panel .panel-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.mascot-panel .panel-actions a{
  flex: 1 1 auto;
}
.mascot-panel .panel-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 8px;
}
.mascot-panel button{
  all:unset;
  cursor:pointer;
  color: rgba(255,255,255,.75);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.mascot-panel button:hover{ background: rgba(255,255,255,.07); }

@media (prefers-reduced-motion: reduce){
  .mascot.idle{ animation:none; }
  .mascot .pulse{ animation:none; }
}
