/* Practica con Nexo: mascota, recuadro iluminado, pantallas de bienvenida y final. */
.px-capa, .px-pantalla { font-family: inherit; }
.px-capa { position: fixed; inset: 0; z-index: 99990; pointer-events: none; }
.px-bloque { position: fixed; background: rgba(10, 15, 35, .66); pointer-events: auto; cursor: not-allowed; transition: all .18s ease; }
.px-anillo { position: fixed; border-radius: 16px; pointer-events: none; box-shadow: 0 0 0 3px #5b8cff, 0 0 30px 6px rgba(91, 140, 255, .65); transition: all .18s ease; animation: pxLate 1.6s ease-in-out infinite; }
@keyframes pxLate { 0%, 100% { box-shadow: 0 0 0 3px #5b8cff, 0 0 26px 4px rgba(91, 140, 255, .55); } 50% { box-shadow: 0 0 0 4px #8fb0ff, 0 0 42px 12px rgba(91, 140, 255, .8); } }

.px-banda { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 16px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, .3); font-size: 13.5px; font-weight: 700; color: #101828; pointer-events: auto; white-space: nowrap; }
.px-banda i { font-style: normal; padding: 4px 10px; border-radius: 99px; background: #fff3d6; color: #a15c00; font-size: 12px; letter-spacing: .04em; }
.px-pasos { display: flex; gap: 5px; }
.px-pasos s { width: 20px; height: 6px; border-radius: 9px; background: #d5dbea; text-decoration: none; transition: background-color .25s; }
.px-pasos s.on { background: #2563eb; }
.px-banda button { border: none; background: #eef2ff; color: #334155; font: inherit; font-size: 12.5px; padding: 7px 13px; border-radius: 99px; cursor: pointer; }
.px-banda button:hover { background: #dbe4ff; }

.px-mascota { position: fixed; left: 28px; bottom: 22px; display: flex; align-items: flex-end; gap: 4px; pointer-events: none; transition: left .3s ease, right .3s ease; }
.px-mascota.px-der { flex-direction: row-reverse; }
.px-mascota img { width: 150px; height: auto; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .35)); animation: pxFlota 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.px-mascota.px-centro { left: 50% !important; right: auto !important; bottom: 50%; transform: translate(-50%, 50%); flex-direction: column; align-items: center; }
.px-mascota.px-centro img { width: 190px; }
.px-mascota.px-centro .px-burbuja { margin-bottom: 0; border-radius: 22px; text-align: center; }
@keyframes pxFlota { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1.2deg); } }

.px-burbuja { position: relative; max-width: 350px; padding: 16px 20px; border-radius: 22px 22px 22px 6px; background: #fff; color: #101828; box-shadow: 0 18px 44px rgba(15, 23, 42, .35); font-size: 17px; line-height: 1.38; font-weight: 600; margin-bottom: 74px; pointer-events: auto; }
.px-mascota.px-der .px-burbuja { border-radius: 22px 22px 6px 22px; }
.px-burbuja b { color: #2563eb; }
.px-pie { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: #667085; min-height: 1px; }
.px-pie:empty { display: none; }
.px-continuar { margin-top: 12px; height: 42px; padding: 0 24px; border: none; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 800; color: #fff; cursor: pointer; background: linear-gradient(120deg, #2563eb, #7c3aed); box-shadow: 0 8px 20px rgba(37, 99, 235, .4); }
.px-continuar:hover { filter: brightness(1.08); }
.px-continuar[hidden] { display: none; }
.px-nueva { animation: pxBurbuja .32s cubic-bezier(.2, .75, .25, 1); }
@keyframes pxBurbuja { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.px-sacude { animation: pxSacude .45s ease; }
@keyframes pxSacude { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }

/* pantallas completas */
.px-pantalla { position: fixed; inset: 0; z-index: 99995; display: grid; place-items: center; text-align: center; color: #fff; overflow: auto; animation: pxEntra .5s cubic-bezier(.2, .75, .25, 1); }
.px-pantalla.px-sale { animation: pxSale .42s ease forwards; }
.px-pantalla.px-zoom { animation: pxZoom .65s cubic-bezier(.6, 0, .9, .4) forwards; }
@keyframes pxEntra { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes pxSale { to { opacity: 0; transform: scale(.97); } }
@keyframes pxZoom { to { opacity: 0; transform: scale(2.4); filter: blur(6px); } }
.px-pantalla-int { position: relative; display: grid; justify-items: center; gap: 14px; max-width: 780px; padding: 24px; }
.px-grande { width: 250px; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); animation: pxFlota 3.4s ease-in-out infinite; }
.px-etiqueta { font-size: 15px; font-weight: 800; letter-spacing: .18em; opacity: .8; }
.px-pantalla h1 { margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; font-weight: 800; color: #fff !important; }
.px-pantalla p { margin: 0; font-size: 20px; opacity: .9; max-width: 580px; color: rgba(255, 255, 255, .9) !important; }
.px-gigante { margin-top: 12px; height: 68px; padding: 0 56px; border: none; border-radius: 999px; font: inherit; font-size: 24px; font-weight: 800; color: #0b1236; background: #fff; cursor: pointer; box-shadow: 0 18px 50px rgba(91, 140, 255, .6); transition: transform .15s ease, box-shadow .15s ease; }
.px-gigante:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 24px 60px rgba(91, 140, 255, .75); }
.px-gigante:active { transform: scale(.97); }
.px-ligero { border: none; background: none; color: #fff; opacity: .7; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.px-ligero:hover { opacity: 1; }
.px-logros { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 6px 0 4px; }
.px-logros div { padding: 14px 20px; border-radius: 18px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); font-weight: 700; font-size: 17px; animation: pxEntra .6s backwards; }
.px-logros div:nth-child(2) { animation-delay: .12s; } .px-logros div:nth-child(3) { animation-delay: .24s; }
.px-logros span { display: block; font-size: 28px; }

@media (max-width: 900px) { .px-banda .px-titulo { display: none; } .px-burbuja { max-width: 280px; font-size: 15px; } .px-mascota img { width: 110px; } }
@media (prefers-reduced-motion: reduce) { .px-mascota img, .px-grande, .px-anillo, .px-pantalla, .px-nueva, .px-sacude, .px-logros div { animation: none !important; } }

/* mascota con el globo encima cuando no cabe al lado */
.px-mascota.px-apilada { flex-direction: column-reverse; align-items: center; width: 350px; }
.px-mascota.px-apilada .px-burbuja { margin-bottom: 0; border-radius: 22px; max-width: 350px; }
.px-mascota.px-apilada img { width: 120px; margin-top: 6px; }

.px-escudo { position: fixed; border-radius: 16px; pointer-events: auto; cursor: not-allowed; background: transparent; }
.px-escudo[hidden] { display: none; }

body.practica-activa #modalDialogoPOS { z-index: 100001 !important; }

.px-lista { margin: 8px 0 2px; padding-left: 18px; font-size: 15px; font-weight: 500; }
.px-lista li { margin: 3px 0; }
.px-lista b { color: #2563eb; }
.px-botones { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.px-secundario { margin-top: 12px; height: 42px; padding: 0 16px; border: 1px solid rgba(100, 116, 139, .45); border-radius: 12px; background: transparent; color: #475467; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.px-secundario[hidden] { display: none; }
.px-codigo-prueba { position: fixed; z-index: 99989; left: 50%; top: 22%; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; padding: 14px 18px 10px; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px rgba(2, 6, 23, .5); animation: pxEntra .4s cubic-bezier(.2, .75, .25, 1); }
.px-codigo-prueba small { color: #475467; font-weight: 700; }
