/* Bip, mi Robot — base: CONTROL DE JUGUETE. Marco de teléfono en computadora, teclas de plástico gruesas que se hunden,
   el control de abajo con su pantallita y sus 3 teclas gigantes, el contador de 5 pilitas que se cargan, tarjetas como
   pantallitas de robot con tornillos, "¡cumple!", final y vitrina. Todo cuelga de html.bp; por dentro se mide contra el
   marco (.app es un contenedor: cqw/cqh), nunca contra la ventana. */
.bp {
  --ink: #141C38; --ink-2: #3A4470; --muted: #4A5375; --pl: #F4EFE6; --pl-2: #E4DCCB; --pl-labio: #B8AD98; --pantalla: #141C38; --pantalla-2: #1E2750;
  --txt-p: #EAF2FF; --amarillo: #FFD23D; --amarillo-labio: #C79A00; --wa: #157A3C; --wa-labio: #0C5428;
  --luz: #2EE8D6; --luz-txt: #2EE8D6;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --f-display: "Sniglet", "Lexend", system-ui, sans-serif; --f-body: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
.bp *, .bp *::before, .bp *::after { box-sizing: border-box; }
.bp body { margin: 0; font-family: var(--f-body); font-weight: 500; color: var(--ink); overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
.bp button { font: inherit; color: inherit; }
.bp :focus-visible { outline: 3px solid #FFD23D; outline-offset: 3px; border-radius: 12px; box-shadow: 0 0 0 6px rgba(20, 28, 56, .85); }
.bp .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bp .noscript { margin: 24px; font: 600 18px/1.5 var(--f-body); color: var(--ink); background: var(--pl); padding: 16px; border-radius: 14px; }

/* ---------- marco ---------- */
.bp .fondo { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(55% 45% at 50% 55%, #3A2E58 0%, rgba(58, 46, 88, 0) 70%), radial-gradient(40% 30% at 70% 30%, rgba(255, 190, 110, .28), rgba(255, 190, 110, 0) 70%), linear-gradient(180deg, #121836 0%, #1C2348 60%, #2A1F2E 100%); }
.bp .app { position: fixed; inset: 0; z-index: 1; overflow: hidden; isolation: isolate; container-type: size; container-name: marco; background: #0E1430; transition: opacity .5s ease; }
@media (min-width: 560px) and (min-height: 560px) {
  .bp .app { inset: auto; left: 50%; top: 50%; width: min(430px, 100vw - 32px); height: min(932px, 100dvh - 40px); transform: translate(-50%, -50%); border-radius: 44px; box-shadow: 0 0 0 6px #F4EFE6, 0 0 0 13px #C9C1B2, 0 0 0 15px #8F8676, 0 30px 80px rgba(5, 8, 25, .55); }
}
.bp:not(.is-showcase) .fondo { filter: blur(6px); }
.bp.is-showcase .fondo { display: none; }
.bp.is-showcase .app { inset: 0 !important; width: auto !important; height: auto !important; transform: none !important; border-radius: 0 !important; box-shadow: none !important; }
.bp .stage { position: absolute; inset: 0; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; outline: none; }
.bp .gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .7s ease; }
.bp .gl.is-on { opacity: 1; }
.bp .vineta { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(115% 80% at 50% 40%, rgba(8, 10, 30, 0) 58%, rgba(8, 10, 30, .5) 100%), linear-gradient(180deg, rgba(8, 10, 30, .35) 0%, rgba(8, 10, 30, 0) 16%); }
.bp .sin-gl .stage { background: url("../assets/poster/fondo-bip.webp") center / cover no-repeat, radial-gradient(70% 50% at 50% 40%, #3A3466, #141C38); }
.bp .ui { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.bp .ui > * { pointer-events: auto; }
.bp .ui .cumple { pointer-events: none; }

/* ---------- teclas de plástico (se hunden) ---------- */
.bp .tecla {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 20px 2px;
  border: 0; border-radius: 16px; background: linear-gradient(180deg, #FFE27A 0%, var(--amarillo) 48%, #F6C21E 100%); color: var(--ink);
  font: 700 16px/1.15 var(--f-body); text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .65), inset 0 -2px 0 rgba(0, 0, 0, .08), 0 5px 0 var(--amarillo-labio), 0 8px 14px rgba(10, 12, 30, .35);
  transform: translateY(0); transition: transform .08s ease, box-shadow .08s ease, filter .2s; touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.bp .tecla:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 1px 0 var(--amarillo-labio), 0 3px 6px rgba(10, 12, 30, .3); }
.bp .tecla.is-clara { background: linear-gradient(180deg, #FFFDF8, var(--pl)); color: var(--ink); box-shadow: inset 0 2px 0 #FFFFFF, 0 5px 0 var(--pl-labio), 0 8px 14px rgba(10, 12, 30, .3); }
.bp .tecla.is-clara:active { box-shadow: inset 0 2px 0 #FFFFFF, 0 1px 0 var(--pl-labio), 0 3px 6px rgba(10, 12, 30, .25); }
.bp .tecla.is-wa { background: linear-gradient(180deg, #1E9A4E, var(--wa)); color: #FFFFFF; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 5px 0 var(--wa-labio), 0 8px 14px rgba(10, 12, 30, .3); }
.bp .tecla.is-wa:active { box-shadow: 0 1px 0 var(--wa-labio); }
.bp .tecla.is-chica { min-height: 44px; padding: 0 14px 2px; font-size: 14.5px; border-radius: 13px; }
.bp .tecla.is-grande { min-height: 58px; font-size: 18px; border-radius: 19px; }
.bp .tecla.is-bloque { display: flex; width: 100%; }
.bp .tecla.is-redonda { width: 50px; height: 50px; min-height: 50px; padding: 0; border-radius: 50%; background: linear-gradient(180deg, #FFFDF8, var(--pl)); box-shadow: inset 0 2px 0 #FFFFFF, 0 4px 0 var(--pl-labio), 0 6px 12px rgba(10, 12, 30, .35); }
.bp .tecla.is-redonda:active { box-shadow: 0 1px 0 var(--pl-labio); }
.bp .tecla .pi { display: inline-flex; flex: none; }
.bp .enlace { min-height: 44px; padding: 8px 14px; border: 0; background: rgba(20, 28, 56, .78); border-radius: 14px; font: 600 15px var(--f-body); color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22); }

/* tornillos de las esquinas (pantallitas, control y manual) */
.bp .tornillos { position: absolute; inset: 0; pointer-events: none; }
.bp .tornillos i, .bp .ct-tornillos i { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFFFFF, #B9C1CE 55%, #7D8698); box-shadow: inset 0 0 0 1px rgba(40, 46, 70, .35); }
.bp .tornillos i::after, .bp .ct-tornillos i::after { content: ""; position: absolute; left: 2px; right: 2px; top: 4.5px; height: 2px; border-radius: 1px; background: rgba(40, 46, 70, .55); transform: rotate(35deg); }
.bp .tornillos i:nth-child(1) { left: 9px; top: 9px; } .bp .tornillos i:nth-child(2) { right: 9px; top: 9px; }
.bp .tornillos i:nth-child(3) { left: 9px; bottom: 9px; } .bp .tornillos i:nth-child(4) { right: 9px; bottom: 9px; }
.bp .tornillos i:nth-child(2)::after { transform: rotate(-20deg); } .bp .tornillos i:nth-child(3)::after { transform: rotate(80deg); }

/* ---------- HUD: sonido, pilitas de trucos, datos ---------- */
.bp .hud { position: absolute; left: 12px; right: 12px; top: calc(12px + var(--safe-t)); display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: opacity .4s; }
.bp .hud.is-intro { opacity: 0; pointer-events: none; }
.bp .hud.is-inicio .trucos { opacity: 0; }
.bp .trucos { display: flex; gap: 5px; margin: 0; padding: 7px 10px; border-radius: 16px; background: linear-gradient(180deg, #232C58, var(--pantalla)); box-shadow: inset 0 0 0 2px #46508A, 0 4px 0 #0A0F26, 0 6px 12px rgba(5, 8, 25, .4); transition: opacity .4s; }
.bp .trucos .bt { position: relative; display: block; width: 26px; height: 15px; border-radius: 5px; box-shadow: inset 0 0 0 2px #7A86B8; }
.bp .trucos .bt::after { content: ""; position: absolute; right: -4px; top: 4px; width: 3px; height: 7px; border-radius: 0 2px 2px 0; background: #7A86B8; }
.bp .trucos .bt i { position: absolute; inset: 3px; border-radius: 3px; background: var(--luz); transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.3, 1.3, .5, 1); box-shadow: 0 0 8px var(--luz); }
.bp .trucos .bt.is-on i { transform: scaleX(1); }
.bp .trucos .bt.is-on { box-shadow: inset 0 0 0 2px #EAF2FF; }
.bp .trucos .bt.is-pop { animation: bp-pop .7s cubic-bezier(.3, 1.8, .4, 1); }
@keyframes bp-pop { 0% { transform: scale(.6); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- portada ---------- */
.bp .inicio { position: absolute; left: 0; right: 0; top: calc(76px + var(--safe-t)); display: flex; flex-direction: column; align-items: center; padding: 0 20px; text-align: center; transition: opacity .4s ease, transform .4s ease; }
.bp .inicio.is-out, .bp .inicio-abajo.is-out { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.bp .inicio-letrero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 370px; padding: 18px 22px 22px; border-radius: 26px; background: radial-gradient(120% 90% at 50% 0%, #26306A 0%, var(--pantalla) 72%); box-shadow: inset 0 0 0 3px #3A4478, inset 0 10px 24px rgba(0, 0, 0, .35), 0 0 0 5px var(--pl), 0 0 0 7px var(--pl-labio), 0 16px 34px rgba(5, 8, 25, .55); }
.bp .inicio-letrero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .03) 0 2px, rgba(255, 255, 255, 0) 2px 4px); pointer-events: none; }
.bp .inicio-t { margin: 0; max-width: 340px; font: 800 min(7.8cqw, 32px)/1.1 var(--f-display); color: #FFFFFF; text-shadow: 0 0 22px color-mix(in srgb, var(--luz) 55%, transparent), 0 3px 0 rgba(10, 12, 30, .6); text-wrap: balance; }
.bp .inicio-sub { margin: 0; max-width: 330px; font: 500 14.5px/1.4 var(--f-body); color: #D6E3FF; text-wrap: pretty; }
.bp .inicio-abajo { position: absolute; left: 18px; right: 18px; bottom: calc(22px + var(--safe-b)); display: flex; flex-direction: column; align-items: center; gap: 14px; transition: opacity .4s, transform .4s; }
.bp .inicio-enlaces { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.bp .tecla.is-enchufe { min-height: 72px; min-width: min(300px, 82cqw); font: 800 23px/1 var(--f-display); letter-spacing: .01em; border-radius: 24px; padding: 0 28px 3px; animation: bp-enchufe 2.2s ease-in-out infinite; }
.bp .tecla.is-enchufe .pi { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #FFE27A; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
@keyframes bp-enchufe { 0%, 100% { filter: none; } 50% { filter: brightness(1.08) drop-shadow(0 0 14px rgba(255, 210, 61, .65)); } }
.bp .saltar-intro { position: absolute; right: 14px; bottom: calc(22px + var(--safe-b)); }
.bp .saltar { position: absolute; right: 14px; bottom: calc(20px + var(--safe-b)); }

/* ---------- el control de juguete ---------- */
.bp .control {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(12px + var(--safe-b)); border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, #FFFDF8 0%, var(--pl) 18%, var(--pl-2) 100%);
  box-shadow: inset 0 3px 0 #FFFFFF, inset 0 -8px 18px rgba(120, 100, 70, .16), 0 -10px 30px rgba(5, 8, 25, .45);
  transform: translateY(105%); transition: transform .5s cubic-bezier(.25, 1.25, .45, 1), opacity .3s;
}
.bp .control.is-in { transform: translateY(0); }
.bp .control.is-tapado { transform: translateY(105%); transition-duration: .35s; }
.bp .control.is-off { pointer-events: none; }
.bp .ct-tornillos i:nth-child(1) { left: 18px; top: 16px; } .bp .ct-tornillos i:nth-child(2) { right: 18px; top: 16px; }
.bp .ct-pista { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0 22px 12px; padding: 8px 14px; border-radius: 14px; background: linear-gradient(180deg, var(--pantalla-2), var(--pantalla)); color: var(--txt-p); font: 600 15px/1.25 var(--f-body); box-shadow: inset 0 0 0 2px #3A4478, inset 0 6px 12px rgba(0, 0, 0, .35); overflow: hidden; }
.bp .ct-pista::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .035) 0 2px, rgba(255, 255, 255, 0) 2px 4px); pointer-events: none; }
.bp .ct-led { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--pide, var(--luz)); box-shadow: 0 0 10px var(--pide, var(--luz)), inset 0 -2px 3px rgba(0, 0, 0, .25); transition: background .25s, box-shadow .25s; }
.bp .ct-pista.is-pide .ct-led { animation: bp-led 1.1s ease-in-out infinite; }
.bp .ct-pista.is-bien { color: #FFFFFF; }
.bp .ct-pista.is-bien .ct-led { background: #5EF2B0; box-shadow: 0 0 12px #5EF2B0; }
.bp .ct-pista.is-risa .ct-led { background: #FFC93C; box-shadow: 0 0 12px #FFC93C; }
@keyframes bp-led { 50% { transform: scale(.75); opacity: .7; } }
.bp .ct-teclas { display: flex; justify-content: space-evenly; align-items: flex-start; gap: 6px; }
.bp .ct-tecla { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(28cqw, 116px); padding: 0 0 2px; border: 0; background: none; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: opacity .3s, filter .3s; }
.bp .ct-tecla .ct-sombra { position: absolute; left: 50%; top: 9px; width: min(26cqw, 106px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--c2); box-shadow: 0 6px 12px rgba(30, 24, 10, .35), inset 0 -4px 0 rgba(0, 0, 0, .18); }
.bp .ct-tecla .ct-cara { position: relative; display: grid; place-items: center; width: min(26cqw, 106px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 30%, color-mix(in srgb, var(--c) 55%, #FFFFFF) 0%, var(--c) 46%, color-mix(in srgb, var(--c) 82%, #000000) 100%); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), inset 0 -5px 8px rgba(0, 0, 0, .15), 0 0 0 4px rgba(255, 255, 255, .7); transition: transform .07s ease; }
.bp .ct-tecla .ct-brillo { position: absolute; left: 22%; top: 12%; width: 34%; height: 20%; border-radius: 50%; background: rgba(255, 255, 255, .5); filter: blur(1px); transform: rotate(-20deg); }
.bp .ct-tecla .ct-forma { position: relative; display: inline-flex; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .18)); }
.bp .ct-tecla .ct-forma svg { width: min(11.5cqw, 46px); height: auto; }
.bp .ct-tecla .ct-nombre { margin-top: 10px; padding: 3px 12px; border-radius: 99px; font: 700 13px/1.1 var(--f-body); color: var(--ink); background: rgba(255, 255, 255, .72); text-transform: capitalize; box-shadow: inset 0 0 0 1.5px rgba(20, 28, 56, .14); }
.bp .ct-tecla:active .ct-cara, .bp .ct-tecla.is-hunde .ct-cara { transform: translateY(8px); }
.bp .ct-tecla.is-probado { opacity: .62; filter: saturate(.7); }
.bp .ct-tecla.is-late .ct-cara { animation: bp-late 1.3s ease-in-out infinite; }
@keyframes bp-late { 0%, 100% { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 0 0 4px rgba(255, 255, 255, .7), 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent); transform: scale(1); } 50% { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 0 0 4px #FFFFFF, 0 0 0 14px color-mix(in srgb, var(--c) 35%, transparent); transform: scale(1.06); } }
.bp .ct-tecla.is-bien .ct-cara { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 0 0 4px #FFFFFF, 0 0 26px 8px var(--c); }
.bp .control.is-espera .ct-tecla { filter: saturate(.85); }
.bp .ct-pie { display: flex; justify-content: center; margin-top: 10px; }
.bp .ct-ensenar { box-shadow: inset 0 2px 0 #FFFFFF, inset 0 0 0 1.5px rgba(20, 28, 56, .14), 0 4px 0 var(--pl-labio); }
.bp .rm .ct-tecla.is-late .ct-cara, .bp.rm .ct-tecla.is-late .ct-cara { animation: none; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .55), 0 0 0 5px #FFFFFF, 0 0 0 10px var(--c); }
@container marco (max-height: 780px) { .bp .inicio { top: calc(66px + var(--safe-t)); } .bp .inicio-letrero { padding: 14px 18px 20px; gap: 6px; } .bp .inicio-sub { font-size: 13.5px; } .bp .inicio-t { font-size: min(7.2cqw, 28px); } }
@media (max-height: 700px) { .bp .ct-pie { margin-top: 4px; } .bp .ct-pista { margin-bottom: 8px; } .bp .control { padding-top: 10px; } }

/* ---------- tarjetas: pantallitas de robot ---------- */
.bp .pantallita { position: absolute; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); max-height: calc(100cqh - 150px - var(--safe-t)); display: flex; flex-direction: column; gap: 12px; padding: 16px 14px 14px; border-radius: 30px;
  background: linear-gradient(180deg, #FFFDF8, var(--pl) 30%, var(--pl-2)); box-shadow: inset 0 3px 0 #FFFFFF, inset 0 -6px 14px rgba(120, 100, 70, .18), 0 18px 40px rgba(5, 8, 25, .55); }
.bp .pt-pantalla { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 18px 18px 18px; border-radius: 20px; color: var(--txt-p);
  background: radial-gradient(120% 70% at 50% 0%, #26306A 0%, var(--pantalla) 70%); box-shadow: inset 0 0 0 3px #3A4478, inset 0 10px 24px rgba(0, 0, 0, .4); }
.bp .pt-pantalla::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .03) 0 2px, rgba(255, 255, 255, 0) 2px 4px); pointer-events: none; }
.bp .tarjeta { transform-origin: 50% 70%; opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .35s ease, transform .45s cubic-bezier(.25, 1.3, .45, 1); }
.bp .tarjeta.is-in { opacity: 1; transform: none; }
.bp .tarjeta.is-out { opacity: 0; transform: translateY(30px) scale(.97); transition-duration: .25s; }
/* la pantallita se enciende como tele vieja: una línea que se abre */
.bp .tarjeta .pt-pantalla > * { opacity: 0; }
.bp .tarjeta.is-in .pt-pantalla > * { animation: bp-enciende .5s .22s ease-out forwards; }
.bp .tarjeta.is-in .pt-pantalla { animation: bp-tele .45s ease-out; }
@keyframes bp-tele { 0% { clip-path: inset(48% 0 48% 0 round 20px); filter: brightness(2.2); } 60% { clip-path: inset(0 0 0 0 round 20px); filter: brightness(1.3); } 100% { clip-path: inset(0 0 0 0 round 20px); filter: none; } }
@keyframes bp-enciende { to { opacity: 1; } }
.bp .tj-k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 13.5px/1.2 var(--f-body); color: #C9D6F5; }
.bp .tj-n { padding: 4px 10px; border-radius: 99px; font-weight: 700; color: var(--ink); background: var(--luz-txt); }
.bp .tj-t { margin: 0 0 12px; font: 800 28px/1.08 var(--f-display); color: var(--luz-txt); text-shadow: 0 0 14px color-mix(in srgb, var(--luz) 45%, transparent); outline: none; }
.bp .tj-cuerpo { display: flex; flex-direction: column; gap: 12px; }
.bp .dato { margin: 0; }
.bp .dato p { margin: 0; }
.bp .dato-k { font: 600 15px/1.2 var(--f-body); color: #C9D6F5; text-transform: capitalize; }
.bp .dato-v { font: 700 min(9cqw, 36px)/1.1 var(--f-body); color: #FFFFFF; }
.bp .dato-s { font: 500 15px/1.3 var(--f-body); color: #C9D6F5; }
.bp .chip-led { align-self: flex-start; margin: 0; padding: 6px 12px; border-radius: 10px; font: 700 15px var(--f-body); color: var(--luz-txt); box-shadow: inset 0 0 0 2px var(--luz-txt); }
.bp .acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.bp .acciones > * { flex: 1 1 140px; }
.bp .programa { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.bp .programa li { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.bp .pg-hora { flex: none; min-width: 74px; font: 700 15px var(--f-body); color: var(--luz-txt); }
.bp .pg-que { font: 500 15px/1.3 var(--f-body); color: #FFFFFF; }
.bp .mapita svg { display: block; width: 100%; height: auto; border-radius: 14px; }
.bp .lugar-nombre { margin: 0; font: 700 20px/1.2 var(--f-body); color: #FFFFFF; }
.bp .lugar-dir { margin: 0; font: 500 15px/1.4 var(--f-body); color: #C9D6F5; }
.bp .nota { margin: 0; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: inset 4px 0 0 var(--luz-txt); }
.bp .nota p { margin: 0 0 8px; font: 600 19px/1.4 var(--f-body); color: #FFFFFF; }
.bp .nota footer { font: 600 15px var(--f-body); color: var(--luz-txt); }
.bp .anfitriones { margin: 0; font: 800 30px/1.15 var(--f-display); color: #FFFFFF; }
.bp .invita-nota { margin: 0; font: 500 15.5px/1.45 var(--f-body); color: #C9D6F5; }
.bp .pantallita .tecla.is-clara { background: linear-gradient(180deg, #FFFFFF, #E8EEF8); }
.bp .tj-seguir { flex: none; overflow: hidden; }
.bp .tj-avance { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: rgba(20, 28, 56, .35); transform-origin: left; transform: scaleX(0); }
.bp .tarjeta.is-auto .tj-avance { animation: bp-avance var(--auto, 12s) linear forwards; }
@keyframes bp-avance { to { transform: scaleX(1); } }

/* ---------- ¡cumple! y final ---------- */
.bp .cumple { position: absolute; left: 0; right: 0; top: calc(70px + var(--safe-t)); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 18px; text-align: center; isolation: isolate; animation: bp-cumple .8s cubic-bezier(.25, 1.4, .45, 1); transition: top .6s ease, transform .6s ease; }
@keyframes bp-cumple { from { opacity: 0; transform: translateY(-14px) scale(.9); } }
.bp .cumple::before { content: ""; position: absolute; left: -10%; right: -10%; top: -30px; bottom: -26px; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(8, 10, 30, .62), rgba(8, 10, 30, 0)); pointer-events: none; }
.bp .cumple p, .bp .cumple h1 { margin: 0; }
.bp .cumple-k { padding: 4px 12px; border-radius: 99px; font: 600 13.5px var(--f-body); color: #FFFFFF; background: rgba(14, 20, 48, .82); }
.bp .cumple-t { font: 800 42px/1.05 var(--f-display); color: #FFFFFF; white-space: nowrap; text-shadow: 0 0 20px color-mix(in srgb, var(--luz) 70%, transparent), 0 0 4px color-mix(in srgb, var(--luz) 70%, transparent), 0 3px 0 rgba(10, 12, 30, .7); }
.bp .cumple-s { font: 600 15.5px var(--f-body); color: #FFFFFF; text-shadow: 0 1px 6px rgba(10, 12, 30, .9); }
.bp .cumple.is-arriba { top: calc(68px + var(--safe-t)); }
.bp .fin { position: absolute; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); max-height: calc(100cqh - 330px); overflow: auto; overscroll-behavior: contain; gap: 10px; padding: 22px 16px 14px; animation: bp-sube .6s cubic-bezier(.25, 1.25, .45, 1); }
@keyframes bp-sube { from { transform: translateY(60px); opacity: 0; } }
.bp .fin-linea { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 15.5px/1.35 var(--f-body); color: var(--ink); }
.bp .fin-lugar { border-radius: 14px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1.5px rgba(20, 28, 56, .12); }
.bp .fin-lugar summary { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 12px; cursor: pointer; list-style: none; font: 700 15.5px var(--f-body); color: var(--ink); }
.bp .fin-lugar summary::-webkit-details-marker { display: none; }
.bp .fin-vermapa { margin-left: auto; font: 600 13.5px var(--f-body); color: var(--muted); text-decoration: underline; }
.bp .fin-lugar[open] { padding-bottom: 12px; }
.bp .fin-lugar > :not(summary) { margin: 8px 12px 0; }
.bp .fin-lugar .lugar-nombre { color: var(--ink); } .bp .fin-lugar .lugar-dir { color: var(--muted); }
.bp .fin-enlaces { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bp .fin .enlace { background: rgba(20, 28, 56, .06); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(20, 28, 56, .16); }
.bp .fin .pi { display: inline-flex; }

.bp .precalienta { opacity: .01 !important; pointer-events: none !important; transform: scale(.14) !important; transform-origin: 0 100% !important; transition: none !important; }
/* ---------- vitrina ---------- */
.bp .is-vitrina .ui > :not(.vitrina-t) { display: none; }
.bp .vitrina-t { position: absolute; left: 0; right: 0; top: 7%; margin: 0; text-align: center; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.bp .vitrina-t span { font: 800 min(12cqw, 64px)/1 var(--f-display); color: #FFFFFF; text-shadow: 0 0 22px color-mix(in srgb, var(--luz) 70%, transparent), 0 3px 0 rgba(10, 12, 30, .6); }
.bp .vitrina-t small { font: 600 min(5cqw, 22px) var(--f-body); color: #FFFFFF; text-shadow: 0 1px 8px rgba(10, 12, 30, .9); }
.bp .dbg-fps { position: absolute; left: 8px; bottom: 4px; margin: 0; padding: 2px 6px; font: 11px/1.3 ui-monospace, monospace; color: #FFFFFF; background: rgba(0, 0, 0, .6); border-radius: 6px; pointer-events: none; z-index: 99; }

@media (prefers-reduced-motion: reduce) {
  .bp .tecla.is-enchufe, .bp .ct-pista.is-pide .ct-led { animation: none; }
  .bp .tarjeta, .bp .control { transition-duration: .01s; }
  .bp .tarjeta.is-in .pt-pantalla, .bp .tarjeta.is-in .pt-pantalla > * { animation-duration: .01s; animation-delay: 0s; }
}
.bp.rm .tecla.is-enchufe { animation: none; }
