/* ============================================================
   Fermenty · componentes compartidos del chrome público
   Mentor presence — MentorNote / MentorAlert
   Fuente de verdad del diseño: +++/MENTOR/Mentor presence without mascots/SPEC.md
   Reglas: tokens siempre (nada de hex sueltos), emblema = tarro,
   pulso en longhands (no shorthand `animation:`), reduced-motion respetado.
   ============================================================ */

/* ---------- compartido ---------- */
.mentor-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.mentor-seal {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--green-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mentor-seal svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold-300);
  stroke-width: 1.9;
  fill: none;
}
.mentor-kicker {
  font-family: var(--font-data);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-700);
}

/* ---------- MentorNote · el apunte (silencioso, estándar) ---------- */
.mentor-note {
  position: relative;
  overflow: hidden;
  background: var(--green-050);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}
.mentor-note__watermark {
  position: absolute;
  right: -18px;
  top: -22px;
  width: 92px;
  height: 92px;
  stroke: var(--green-200);
  stroke-width: 1.1;
  fill: none;
  opacity: .55;
}
.mentor-note__advice {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.34;
  text-wrap: pretty;
  color: var(--green-800);
}

/* ---------- MentorAlert · la tarjeta sonora (rara) ---------- */
.mentor-alert {
  position: relative;
  overflow: hidden;
  background: var(--green-900);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
}
.mentor-alert__ghost {
  position: absolute;
  right: -22px;
  bottom: -30px;
  width: 150px;
  height: 150px;
  stroke: var(--green-700);
  stroke-width: .9;
  fill: none;
  opacity: .5;
}
.mentor-alert .mentor-kicker { letter-spacing: .16em; }
.mentor-alert__dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  /* longhands a propósito: mezclar el shorthand `animation:` con longhands lo descarta en silencio */
  animation-name: fmty-glow;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.mentor-alert__advice {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.34;
  text-wrap: pretty;
  color: var(--text-on-dark);
}
.mentor-alert__cta { margin-top: 16px; }

/* celebrar: oro, pulso lento y cálido */
.mentor-alert--celebrate .mentor-alert__dot {
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(245, 195, 86, .2);
  animation-duration: 3.4s;
}
.mentor-alert--celebrate .mentor-kicker { color: var(--gold-400); }

/* urgir: ámbar (nunca óxido), pulso rápido */
.mentor-alert--urgent .mentor-alert__dot {
  background: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(216, 148, 59, .22);
  animation-duration: 1.8s;
}
.mentor-alert--urgent .mentor-kicker { color: var(--amber-500); }

@keyframes fmty-glow {
  0%, 100% { opacity: .35; }
  50%      { opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  .mentor-alert__dot { animation: none; }
}

/* ---------- Cambio de superficie en el footer (móvil ↔ versión completa) ---------- */
.footer__superficie {
  font: 600 13px var(--font-sans);
  color: var(--green-200);
  background: none;
  border: 1px solid rgba(194, 220, 182, .3);
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
}
.footer__superficie:hover { color: var(--gold-400); border-color: rgba(248, 211, 121, .45); }
