/* Punti, el ayudante de Tu Punto Azul: el logo se transforma en un personaje con ojos, brazos y piernas y enseña la app paso a paso */
#mascota { position: fixed; inset: 0; z-index: 100000; font-family: inherit; }
#mascota .m-fondo { position: absolute; inset: 0; background: linear-gradient(150deg, #4C9BFF 0%, #1B66F0 52%, #0A2A7A 100%); transition: opacity .7s ease; }
#mascota.recorrido .m-fondo { opacity: 0; pointer-events: none; }
#mascota .m-aro { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(4, 12, 40, .62), 0 0 0 4px #FF8A00, 0 0 26px 6px rgba(255, 138, 0, .8); transition: all .45s cubic-bezier(.22, 1, .36, 1); pointer-events: none; opacity: 0; }
#mascota .m-aro.ver { opacity: 1; animation: m-aro 1.4s ease-in-out infinite; }
@keyframes m-aro { 50% { box-shadow: 0 0 0 9999px rgba(4, 12, 40, .62), 0 0 0 6px #FFB04D, 0 0 34px 10px rgba(255, 138, 0, .95); } }
#mascota .m-sombra-pantalla { position: fixed; inset: 0; background: rgba(4, 12, 40, .62); opacity: 0; transition: opacity .5s; pointer-events: none; }
#mascota.recorrido .m-sombra-pantalla.ver { opacity: 1; }

/* el personaje: grande y en el centro al nacer; después pasa a una esquina para dejar ver la app */
#mascota .m-pj { position: fixed; left: 50%; top: 46%; width: min(78vw, 330px); transform: translate(-50%, -50%); transition: left .9s cubic-bezier(.65, 0, .35, 1), top .9s cubic-bezier(.65, 0, .35, 1), width .9s cubic-bezier(.65, 0, .35, 1), transform .9s cubic-bezier(.65, 0, .35, 1); filter: drop-shadow(0 22px 26px rgba(3, 20, 69, .45)); }
#mascota.recorrido .m-pj { left: 6px; top: auto; bottom: 4px; width: 100px; transform: translate(0, 0); }
#mascota .m-pj svg { display: block; width: 100%; height: auto; overflow: visible; }

/* el personaje se anima con un pequeño motor de física en mascota.js (resortes, salto con squash & stretch, parpadeo irregular, miembros articulados): aquí solo el aspecto */
#mascota .pj-miembro { fill: none; stroke-linecap: round; stroke-linejoin: round; }
#mascota path.borde { stroke: #0A2A7A; stroke-width: 17; fill: none; stroke-linecap: round; }
#mascota path.carne { stroke: #FFFFFF; stroke-width: 10; fill: none; stroke-linecap: round; }
#mascota .pj-mano { fill: #fff; stroke: #0A2A7A; stroke-width: 4; }
#mascota .pj-pie { fill: #FF8A00; stroke: #0A2A7A; stroke-width: 4; }

/* globo de texto */
#mascota .m-burbuja { position: fixed; left: 116px; right: 10px; bottom: 10px; max-width: 520px; max-height: 42vh; overflow-y: auto; background: #fff; color: #10204A; border-radius: 16px; padding: 9px 12px 9px; box-shadow: 0 16px 44px rgba(3, 20, 69, .5); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .35s, transform .35s cubic-bezier(.34, 1.56, .64, 1); }
#mascota .m-burbuja.ver { opacity: 1; transform: none; }
#mascota .m-burbuja::before { content: ""; position: absolute; left: -7px; bottom: 22px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
#mascota .m-titulo { font-weight: 900; font-size: 13px; color: #1B66F0; margin-bottom: 2px; }
#mascota .m-texto { font-size: 13px; line-height: 1.38; }
#mascota .m-texto b { color: #0A2A7A; }
#mascota .m-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 6px; }
#mascota .m-puntos { flex: 1 1 100%; display: flex; gap: 5px; margin-bottom: 2px; }
#mascota .m-puntos i { width: 5px; height: 5px; border-radius: 50%; background: #C8D6F5; }
#mascota .m-puntos i.on { background: #1B66F0; width: 13px; border-radius: 6px; }
#mascota .m-btn { white-space: nowrap; border: 0; border-radius: 999px; padding: 6px 13px; font-weight: 800; font-size: 12.5px; cursor: pointer; font-family: inherit; }
#mascota .m-sig { background: #FF8A00; color: #1B1000; box-shadow: 0 6px 16px rgba(255, 138, 0, .45); }
#mascota .m-atras { background: #E6EEFF; color: #1B3A8A; }
#mascota .m-saltar { position: fixed; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .92); color: #1B3A8A; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 13px; cursor: pointer; font-family: inherit; box-shadow: 0 6px 18px rgba(3, 20, 69, .35); }
@media (min-width: 900px) {
  #mascota.recorrido .m-pj { width: 130px; left: 16px; bottom: 12px; }
  #mascota .m-burbuja { left: 160px; bottom: 22px; width: 400px; right: auto; }
  #mascota .m-texto { font-size: 13.5px; }
  #mascota .m-titulo { font-size: 14px; }
}
/* si el aparato pide menos movimiento: sin saltos ni parpadeos, el personaje aparece ya hecho */
@media (prefers-reduced-motion: reduce) {
  #mascota *, #mascota *::before { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}

/* ---------- Punti flotante (pequeño, en una esquina de la app y de las páginas) ---------- */
body.punti-en-recorrido #punti-flotante { display: none; }
#punti-flotante { position: fixed; z-index: 90; width: 76px; font-family: inherit; }
#punti-flotante.pf-der { right: 8px; }
#punti-flotante.pf-izq { left: 8px; }
#punti-flotante .pf-pj { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 8px 10px rgba(3, 20, 69, .35)); -webkit-tap-highlight-color: transparent; }
#punti-flotante .pf-pj svg { display: block; width: 100%; height: auto; overflow: visible; }
#punti-flotante .pf-globo { position: absolute; bottom: calc(100% - 4px); width: 236px; max-width: calc(100vw - 24px); background: #fff; color: #10204A; border-radius: 16px; padding: 10px 12px; box-shadow: 0 12px 34px rgba(3, 20, 69, .42); opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .25s, transform .25s cubic-bezier(.34, 1.56, .64, 1); text-align: left; }
#punti-flotante.pf-der .pf-globo { right: 0; transform-origin: 90% 100%; }
#punti-flotante.pf-izq .pf-globo { left: 0; transform-origin: 10% 100%; }
#punti-flotante .pf-globo.ver { opacity: 1; transform: none; }
#punti-flotante .pf-globo::after { content: ""; position: absolute; bottom: -6px; width: 13px; height: 13px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
#punti-flotante.pf-der .pf-globo::after { right: 26px; }
#punti-flotante.pf-izq .pf-globo::after { left: 26px; }
#punti-flotante .pf-x { position: absolute; top: 2px; right: 6px; border: 0; background: none; font-size: 20px; line-height: 1; color: #7A89B5; cursor: pointer; padding: 2px 4px; }
#punti-flotante .pf-t { font-weight: 900; font-size: 13.5px; color: #1B66F0; margin: 0 18px 3px 0; }
#punti-flotante .pf-c { font-size: 13px; line-height: 1.38; }
#punti-flotante .pf-c b { color: #0A2A7A; }
#punti-flotante .pf-b { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
#punti-flotante .pf-b:empty { display: none; }
#punti-flotante .pf-btn { border: 0; border-radius: 999px; padding: 7px 12px; font: 800 12.5px inherit; font-family: inherit; text-align: left; cursor: pointer; background: #E6EEFF; color: #1B3A8A; }
#punti-flotante .pf-btn:first-child { background: #FF8A00; color: #1B1000; }
@media (min-width: 900px) { #punti-flotante { width: 92px; } #punti-flotante .pf-globo { width: 270px; } #punti-flotante .pf-c { font-size: 13.5px; } }
@media print { #punti-flotante { display: none; } }
