/* V36 · Luma, búho guía de avance */
.mascot-guide {
  --mascot-accent: #ad8549;
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 80;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.mascot-guide button { font-family: var(--font-ui, inherit); }

.mascot-panel,
.mascot-launcher { pointer-events: auto; }

.mascot-panel {
  width: 100%;
  position: relative;
  padding: 20px;
  border: 1px solid #d8dee1;
  border-radius: 14px;
  background: rgba(255, 254, 251, .98);
  box-shadow: 0 20px 54px rgba(11, 34, 57, .18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.98);
  transform-origin: right bottom;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.mascot-guide.open .mascot-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mascot-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: #f0f1ee;
  color: #526170;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.mascot-panel-head {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 15px;
  align-items: center;
  padding-right: 20px;
}

.mascot-portrait {
  width: 90px;
  height: 90px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--mascot-accent) calc(var(--pct) * 1%), #e4e7e5 0);
}

.mascot-portrait::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: linear-gradient(145deg, #eef2f2, #fffdf8);
}

.mascot-portrait img {
  width: 80px;
  height: 88px;
  position: relative;
  z-index: 1;
  object-fit: cover;
  object-position: center 12%;
  filter: drop-shadow(0 7px 8px rgba(11, 34, 57, .15));
}

.mascot-kicker {
  display: block;
  margin-bottom: 4px;
  color: #8b6a37;
  font-size:12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mascot-copy h2 {
  margin: 0;
  color: #16324f;
  font-family: var(--font-display, Georgia, serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.mascot-message {
  margin: 14px 0 0;
  color: #5e6e7c;
  font-size: 13px;
  line-height: 1.55;
}

.mascot-progress-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  color: #687684;
  font-size:12px;
}

.mascot-progress-line strong { color: #16324f; font-size: 13px; }
.mascot-progress-line span { flex: 1; height: 5px; overflow: hidden; border-radius: 3px; background: #e6e8e6; }
.mascot-progress-line i { display: block; height: 100%; width: calc(var(--pct) * 1%); background: linear-gradient(90deg, #315f84, #ad8549); transition: width .35s ease; }

.mascot-action {
  width: 100%;
  min-height: 42px;
  margin-top: 15px;
  border: 0;
  border-radius: 7px;
  background: #16324f;
  color: #fff;
  font-size:12px;
  font-weight: 750;
  letter-spacing: .02em;
  cursor: pointer;
}

.mascot-action:hover { background: #21496a; }

.mascot-launcher {
  min-width: 184px;
  min-height: 64px;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: #102f49;
  color: white;
  box-shadow: 0 14px 34px rgba(11, 34, 57, .24);
  text-align: left;
  cursor: pointer;
}

.mascot-launcher img {
  width: 48px;
  height: 52px;
  object-fit: cover;
  object-position: center 12%;
}

.mascot-launcher b,
.mascot-launcher small { display: block; }
.mascot-launcher b { font-family: var(--font-display, Georgia, serif); font-size: 16px; font-weight: 600; }
.mascot-launcher small { margin-top: 1px; color: #c4d2dc; font-size:12px; }
.mascot-chevron { color: #d6b676; font-size: 17px; transform: rotate(180deg); transition: transform .2s ease; }
.mascot-guide.open .mascot-chevron { transform: rotate(0); }

.mascot-guide.celebrate .mascot-portrait img { animation: mascotCelebrate .72s ease both; }
@keyframes mascotCelebrate { 0%,100%{transform:translateY(0) rotate(0)} 35%{transform:translateY(-7px) rotate(-3deg)} 70%{transform:translateY(-2px) rotate(3deg)} }

@media (max-width: 720px) {
  .mascot-guide { right: 10px; bottom: 10px; width: calc(100vw - 20px); }
  .mascot-panel { padding: 17px; }
  .mascot-panel-head { grid-template-columns: 72px 1fr; gap: 12px; }
  .mascot-portrait { width: 70px; height: 70px; }
  .mascot-portrait img { width: 62px; height: 69px; }
  .mascot-launcher { min-width: 168px; }
}

@media (prefers-reduced-motion: reduce) {
  .mascot-panel, .mascot-chevron, .mascot-progress-line i { transition: none; }
  .mascot-guide.celebrate .mascot-portrait img { animation: none; }
}

@media print { .mascot-guide { display: none !important; } }
