/*
  La entrada a la app, como una app nativa (referencias: OneFootball y FotMob):
  1) Arranque: el logo aparece con un rebote cada vez que se abre la app.
  2) Bienvenida (solo la primera vez): presentación, tus equipos, tus ligas, avisos y "todo listo".
  3) Instalar: hoja de abajo que ofrece agregar la app a la pantalla de inicio.
  Todo va siempre en oscuro (es la cara de la marca), sin importar el tema elegido.
*/

/* ---------- 1) arranque ---------- */
.arranque {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: radial-gradient(130% 75% at 50% 44%, #1a1f08 0%, #0e0f11 58%);
  color: #f3f2ef; overflow: hidden; user-select: none; -webkit-user-select: none;
  /* Si algo falla y la app nunca avisa que cargó, igual se va sola. */
  animation: arranque-fuera 0.4s ease 7s forwards;
}
.arranque::before {
  /* Líneas de la cancha: círculo central y media cancha. */
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 44%, transparent 0 129px, rgba(215, 255, 58, 0.09) 130px 131.5px, transparent 133px),
    linear-gradient(to bottom, transparent calc(44% - 0.75px), rgba(215, 255, 58, 0.07) calc(44% - 0.75px) calc(44% + 0.75px), transparent calc(44% + 0.75px));
  animation: arranque-cancha 1.5s ease-out both;
}
.arranque-centro { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -4vh; }
.arranque-logo {
  position: relative; width: 108px; height: 108px; border-radius: 27px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(215, 255, 58, 0.22);
  animation: arranque-logo 1.15s cubic-bezier(0.2, 1.4, 0.3, 1) both;
}
.arranque-logo svg { display: block; width: 100%; height: 100%; }
.arranque-logo::after {
  /* Destello que cruza el ícono. */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.6) 50%, transparent 65%);
  transform: translateX(-130%); animation: arranque-brillo 0.9s ease 0.85s forwards;
}
.arranque-onda {
  position: absolute; top: 0; left: 50%; width: 108px; height: 108px; margin-left: -54px; border-radius: 30px;
  border: 2px solid #d7ff3a; opacity: 0; animation: arranque-onda 1.2s ease-out 0.45s;
}
.arranque-nombre {
  margin-top: 24px; font-family: var(--titulo); font-weight: 800; font-size: 42px; line-height: 1; letter-spacing: 0.3px;
  color: #d7ff3a; clip-path: inset(0 100% 0 0); animation: arranque-nombre 0.85s cubic-bezier(0.6, 0, 0.2, 1) 0.7s forwards;
}
.arranque-sub {
  margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 3.2px; text-transform: uppercase; color: #a4a6ab;
  opacity: 0; animation: arranque-sub 0.6s ease 1.3s forwards;
}
.arranque-carga {
  position: absolute; bottom: calc(56px + env(safe-area-inset-bottom)); left: 50%; width: 92px; height: 3px; margin-left: -46px;
  border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; opacity: 0; animation: arranque-sub 0.4s ease 1.6s forwards;
}
.arranque-carga i { display: block; width: 40%; height: 100%; border-radius: 3px; background: #d7ff3a; animation: arranque-carga 1s ease-in-out infinite; }
.arranque.fuera { animation: arranque-fuera 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; pointer-events: none; }
.arranque.fuera .arranque-centro { animation: arranque-se-va 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.arranque.fuera .arranque-carga { animation: arranque-fuera 0.2s ease forwards; }
/* Al volver a abrir la app (ya la conoce), el arranque es más corto. */
.app-conocida .arranque .arranque-logo { animation-duration: 0.75s; }
.app-conocida .arranque .arranque-nombre { animation-delay: 0.3s; animation-duration: 0.5s; }
.app-conocida .arranque .arranque-sub, .app-conocida .arranque .arranque-carga { display: none; }
.app-conocida .arranque .arranque-logo::after { animation-delay: 0.45s; }
.app-conocida .arranque .arranque-onda { animation-delay: 0.25s; animation-duration: 0.9s; }

@keyframes arranque-logo { from { transform: scale(0.35) rotate(-14deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes arranque-brillo { to { transform: translateX(130%); } }
@keyframes arranque-onda { from { transform: scale(1); opacity: 0.75; } to { transform: scale(2.6); opacity: 0; } }
@keyframes arranque-nombre { to { clip-path: inset(0 0 0 0); } }
@keyframes arranque-sub { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes arranque-carga { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes arranque-cancha { from { opacity: 0; transform: scale(0.86); } to { opacity: 1; transform: none; } }
@keyframes arranque-fuera { to { opacity: 0; visibility: hidden; } }
@keyframes arranque-se-va { to { transform: translateY(-22px) scale(0.92); opacity: 0; } }

/* ---------- 2) bienvenida ---------- */
.bv {
  --bv-fondo: #0e0f11; --bv-tarjeta: #18191c; --bv-tarjeta-2: #212327; --bv-borde: #2b2d32; --bv-texto: #f3f2ef; --bv-suave: #a4a6ab;
  position: fixed; inset: 0; z-index: 250; display: flex; flex-direction: column; background: var(--bv-fondo); color: var(--bv-texto);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); overflow: hidden; color-scheme: dark;
  animation: bv-entra 0.35s ease both;
}
.bv.fuera { animation: bv-sale 0.4s ease forwards; pointer-events: none; }
@keyframes bv-entra { from { opacity: 0; } }
/* Mientras está el arranque, el primer paso espera escondido; al irse el arranque, sube suave y por partes. */
.bv:not(.llega) .bv-paso.activo > * { opacity: 0; }
.bv.llega .bv-equipo.activo > * { animation: bv-sube 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.bv.llega .bv-equipo.activo > :nth-child(1) { animation-delay: 0.15s; }
.bv.llega .bv-equipo.activo > :nth-child(2) { animation-delay: 0.22s; }
.bv.llega .bv-equipo.activo > :nth-child(3) { animation-delay: 0.29s; }
.bv.llega .bv-equipo.activo > :nth-child(4) { animation-delay: 0.36s; }
.bv.llega .bv-equipo.activo > :nth-child(5) { animation-delay: 0.43s; }
.bv.llega .bv-equipo.activo > :nth-child(6) { animation-delay: 0.5s; }
@keyframes bv-sube { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes bv-sale { to { opacity: 0; transform: scale(1.03); } }
.bv-marco { position: relative; flex: 1; width: 100%; max-width: 480px; margin: 0 auto; }
.bv-paso {
  position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 20px;
  transition: transform 0.48s cubic-bezier(0.3, 0.9, 0.2, 1), opacity 0.36s ease;
}
.bv-paso[data-pos="antes"] { transform: translateX(-28%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform 0.48s cubic-bezier(0.3, 0.9, 0.2, 1), opacity 0.36s ease, visibility 0s 0.48s; }
.bv-paso[data-pos="despues"] { transform: translateX(28%); opacity: 0; pointer-events: none; visibility: hidden; transition: transform 0.48s cubic-bezier(0.3, 0.9, 0.2, 1), opacity 0.36s ease, visibility 0s 0.48s; }

/* Cabecera de los pasos: atrás, barra de progreso y "Omitir". */
.bv-cab { display: grid; grid-template-columns: 44px 1fr 64px; align-items: center; gap: 10px; height: 58px; flex: none; }
.bv-atras, .bv-omitir { height: 44px; border: 0; background: none; color: var(--bv-suave); font: inherit; font-weight: 600; cursor: pointer; border-radius: 12px; }
.bv-atras { display: grid; place-items: center; width: 44px; color: var(--bv-texto); }
.bv-atras svg { width: 22px; height: 22px; }
.bv-omitir { justify-self: end; padding: 0 6px; }
.bv-progreso { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.bv-progreso i { height: 4px; border-radius: 4px; background: var(--bv-tarjeta-2); overflow: hidden; position: relative; }
.bv-progreso i::after { content: ''; position: absolute; inset: 0; background: #d7ff3a; transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(0.3, 0.9, 0.2, 1); }
.bv-progreso i.hecho::after { transform: scaleX(1); }

/* País detectado (con "Cambiar") y la lista de países. */
.bv-pais {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 34px; margin-top: 2px; padding: 0 14px; border: 1px solid var(--bv-borde);
  border-radius: 999px; background: var(--bv-tarjeta); color: var(--bv-texto); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s ease, transform 0.12s ease;
}
.bv-pais span { color: #d7ff3a; }
.bv-pais[aria-expanded="true"] { border-color: #d7ff3a; }
.bv-pais:active { transform: scale(0.97); }
.bv-paises { display: flex; flex-direction: column; }
.bv-pais-op {
  display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 2px; border: 0;
  border-bottom: 1px solid var(--bv-borde); background: none; color: var(--bv-texto); font: inherit; font-size: 17px; font-weight: 500;
  text-align: left; cursor: pointer; transition: color 0.2s ease, opacity 0.12s ease;
}
.bv-pais-op:last-child { border-bottom: 0; }
.bv-pais-op.si { color: #d7ff3a; font-weight: 700; }
.bv-pais-op svg { width: 20px; height: 20px; }
.bv-pais-op:active { opacity: 0.6; }
.bv-titulo { margin: 8px 0 6px; font-family: var(--titulo); font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: 0.2px; text-wrap: balance; }
.bv-texto { margin: 0 0 16px; color: var(--bv-suave); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.bv-cuerpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; margin: 0 -20px; padding: 0 20px 20px; scrollbar-width: none; }
.bv-cuerpo::-webkit-scrollbar { display: none; }
.bv-pie { flex: none; padding: 12px 0 18px; background: linear-gradient(to top, var(--bv-fondo) 70%, transparent); }
.bv-boton {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 56px; border: 0; border-radius: 16px;
  background: #d7ff3a; color: #121417; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer;
  transition: transform 0.12s ease, filter 0.18s ease, background 0.2s ease;
}
.bv-boton:active { transform: scale(0.97); }
@media (hover: hover) { .bv-boton:hover { filter: brightness(1.05); } }
.bv-boton.secundario { background: transparent; color: var(--bv-texto); height: 48px; font-size: 15px; font-weight: 600; }
.bv-boton:focus-visible, .bv-atras:focus-visible, .bv-omitir:focus-visible, .bv-item:focus-visible { outline: 2px solid #d7ff3a; outline-offset: 2px; }
.bv-contador { display: block; margin-bottom: 10px; text-align: center; font-size: 13px; color: var(--bv-suave); min-height: 18px; }
.bv-contador b { color: #d7ff3a; }

/* Paso de avisos: la escena del gol de TU equipo, corta y limpia (~4 s, después queda quieta).
   0 s la cancha y su partido → 0,9 s ¡fum!, la tarjeta sube y la cámara entra → 1,4 s la jugada → 2,9 s ¡GOOOL! →
   3,3 s la cámara vuelve y el marcador pasa a 2-1 → 4 s cae la notificación desde arriba. */
.bv-avisos { justify-content: flex-end; padding-bottom: 6px; }
.bv-avisos > .bv-cab { position: absolute; top: 0; left: 20px; right: 20px; z-index: 8; }
.bv-escena { position: absolute; inset: 0 0 38%; overflow: hidden; }
.bv-escena::after { content: ''; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(to top, var(--bv-fondo), transparent); z-index: 3; pointer-events: none; }
.bv-luz { position: absolute; top: -12%; width: 70%; height: 80%; border-radius: 50%; opacity: 0; will-change: opacity; background: radial-gradient(closest-side, rgba(215, 255, 58, 0.22), transparent); }
.bv-luz.izq { left: -22%; }
.bv-luz.der { right: -22%; }
.bv-lienzo { position: absolute; inset: 0; width: 100%; height: 100%; }
/* La cancha, las fichas y el balón se dibujan en el lienzo (publico/cancha.js). */
/* ¡GOOOL!: letras grandes. */
.bv-gol-grande {
  position: absolute; z-index: 5; left: 0; right: 0; top: 46%; text-align: center; font-family: var(--titulo); font-size: 64px; font-weight: 800;
  letter-spacing: 1px; color: #d7ff3a; text-shadow: 0 4px 14px rgba(0, 0, 0, 0.55); opacity: 0; transform: scale(0.4); pointer-events: none; will-change: transform, opacity;
}
.bv-tarjetas { position: absolute; inset: 0; z-index: 4; will-change: transform, opacity; }
.bv-flota {
  position: absolute; left: 50%; display: flex; align-items: center; gap: 10px; width: 262px; margin-left: -131px; padding: 12px 14px;
  border-radius: 16px; background: #1a1b1f; border: 1px solid var(--bv-borde); box-shadow: 0 10px 18px rgba(0, 0, 0, 0.45);
  opacity: 0; will-change: transform, opacity;
}
.bv-flota.t1 { top: 30%; transform: rotate(-2deg); }
.bv-flota img, .bv-flota .escudo-vacio { width: 26px; height: 26px; flex: none; object-fit: contain; }
.bv-flota .escudo-vacio { display: grid; place-items: center; border-radius: 50%; background: #2b2d32; font-size: 9px; font-weight: 700; }
.bv-flota-equipos { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 13.5px; font-weight: 600; }
.bv-flota-equipos span { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-flota-marcador { display: grid; gap: 4px; font-family: var(--titulo); font-size: 21px; font-weight: 800; text-align: right; line-height: 26px; }
.bv-cambia { display: block; height: 26px; overflow: hidden; }
.bv-cambia i { display: block; font-style: normal; }
.bv-flota-estado { position: absolute; top: -9px; right: 12px; padding: 1px 8px; border-radius: 6px; font-family: var(--titulo); font-size: 12.5px; font-weight: 700; letter-spacing: 0.4px; background: #d9222c; color: #fff; }
.bv-flota-estado.gol { background: #d7ff3a; color: #121417; opacity: 0; transform: scale(0.4); }
/* La notificación cae desde el borde de arriba de la pantalla (fuera de la escena), como una de verdad. */
.bv-np {
  position: absolute; z-index: 20; top: 8px; left: 50%; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center;
  width: min(340px, calc(100% - 24px)); padding: 10px 12px; border-radius: 18px; visibility: hidden; transform: translate(-50%, calc(-100% - 40px));
  background: #2e3036; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5); will-change: transform;
}
.bv-np .marca-logo { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; }
.bv-np .marca-logo svg { width: 100%; height: 100%; display: block; }
.bv-np small { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; letter-spacing: 0.4px; }
.bv-np b { display: block; font-size: 13px; line-height: 1.25; color: #fff; }
.bv-np span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, 0.82); }

/* Línea de tiempo. */
.en-escena .bv-luz { animation: bv-luz 0.8s ease forwards; }
.en-escena .bv-flota.t1 { animation: bv-tarjeta 0.6s cubic-bezier(0.2, 1.2, 0.4, 1) 0.2s forwards; }
.en-escena .bv-tarjetas { animation: bv-tarjetas 3s ease-in-out 0.85s both; }
.en-escena .bv-gol-grande { animation: bv-gol-grande 1.1s cubic-bezier(0.2, 1.4, 0.4, 1) 2.92s forwards; }
.en-escena .bv-cambia i { animation: bv-cambia 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) 3.6s forwards; }
.en-escena .bv-flota-estado.vivo { animation: bv-sale-estado 0.25s ease 3.6s forwards; }
.en-escena .bv-flota-estado.gol { animation: bv-entra-estado 0.4s cubic-bezier(0.2, 1.8, 0.4, 1) 3.65s forwards, bv-latido 0.8s ease-in-out 4.1s 2; }
.en-escena .bv-np { animation: bv-np 0.65s cubic-bezier(0.2, 1.25, 0.4, 1) 4s forwards; }
@keyframes bv-luz { to { opacity: 1; } }
@keyframes bv-aparece-suave { to { opacity: 1; } }
@keyframes bv-tarjeta { from { opacity: 0; translate: 0 34px; scale: 0.92; } to { opacity: 1; translate: 0 0; scale: 1; } }
/* ¡fum!: las tarjetas suben y se van mientras la cámara (en el lienzo) entra hacia el arco; al final vuelven. */
@keyframes bv-tarjetas { 0% { opacity: 1; transform: none; } 12% { opacity: 0; transform: translateY(-60px) scale(0.9); } 80% { opacity: 0; transform: translateY(-60px) scale(0.9); } 100% { opacity: 1; transform: none; } }
@keyframes bv-gol-grande { 0% { opacity: 0; transform: scale(0.4); } 25% { opacity: 1; transform: scale(1.12); } 40% { transform: scale(1); } 75% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes bv-cambia { to { transform: translateY(-26px); } }
@keyframes bv-sale-estado { to { opacity: 0; transform: scale(0.6); } }
@keyframes bv-entra-estado { to { opacity: 1; transform: none; } }
@keyframes bv-latido { 0%, 100% { transform: none; } 50% { transform: scale(1.08); } }
@keyframes bv-np { from { visibility: visible; } to { visibility: visible; transform: translate(-50%, 0); } }
.bv-avisos-texto { position: relative; z-index: 7; }
.bv-avisos-texto .bv-titulo { font-size: 36px; }
.bv-legal { margin: 10px 0 0; text-align: center; font-size: 11.5px; color: #6f7279; }
.bv-legal a { color: inherit; }
/* Celulares bajos o angostos (iPhone SE y parecidos): una tarjeta y letra un poco menor. */
@media (max-height: 700px) {
  .bv-escena { inset: 0 0 50%; }
  .bv-flota.t1 { top: 36%; }
  .bv-np { padding: 8px 10px; }
  .bv-gol-grande { font-size: 48px; top: 22%; }
  .bv-avisos-texto .bv-titulo { font-size: 30px; }
}
@media (max-width: 360px) { .bv-flota { width: 244px; margin-left: -122px; } .bv-titulo { font-size: 30px; } .bv-escudo { width: 64px; height: 64px; } }

/* Pasos de equipos y ligas: buscador y cuadrícula de escudos. */
.bv-buscar { position: relative; margin-bottom: 16px; }
.bv-buscar input {
  width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 14px; border: 1px solid var(--bv-borde); background: var(--bv-tarjeta);
  color: var(--bv-texto); font: inherit; font-size: 16px; outline: none; transition: border-color 0.2s ease;
}
.bv-buscar input:focus { border-color: #d7ff3a; }
.bv-buscar svg { position: absolute; left: 15px; top: 14px; width: 20px; height: 20px; color: var(--bv-suave); pointer-events: none; }
.bv-seccion { margin: 6px 0 12px; font-family: var(--titulo); font-size: 17px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--bv-suave); }
.bv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 10px; margin-bottom: 22px; }
.bv-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none;
  color: var(--bv-texto); font: inherit; cursor: pointer; border-radius: 14px; animation: bv-aparece 0.4s ease both;
}
.bv-item:nth-child(3n + 2) { animation-delay: 0.04s; }
.bv-item:nth-child(3n + 3) { animation-delay: 0.08s; }
@keyframes bv-aparece { from { opacity: 0; transform: translateY(10px); } }
.bv-escudo {
  position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--bv-tarjeta);
  border: 2px solid transparent; transition: border-color 0.2s ease, background 0.2s ease, transform 0.25s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.bv-liga .bv-escudo { border-radius: 20px; background: #fff; }
.bv-escudo img, .bv-escudo .escudo-vacio { width: 46px; height: 46px; object-fit: contain; }
.bv-liga .bv-escudo img { width: 50px; height: 50px; }
.bv-item:active .bv-escudo { transform: scale(0.92); }
.bv-item.si .bv-escudo { border-color: #d7ff3a; background: rgba(215, 255, 58, 0.12); transform: scale(1.04); }
.bv-liga.si .bv-escudo { background: #fff; box-shadow: 0 0 0 3px #d7ff3a; border-color: transparent; }
.bv-check {
  position: absolute; top: -2px; right: -2px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #d7ff3a; color: #121417; border: 2px solid var(--bv-fondo); transform: scale(0); transition: transform 0.28s cubic-bezier(0.2, 1.8, 0.4, 1);
}
.bv-check svg { width: 13px; height: 13px; }
.bv-item.si .bv-check { transform: scale(1); }
.bv-nombre { max-width: 100%; font-size: 12.5px; font-weight: 600; line-height: 1.2; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bv-item.si .bv-nombre { color: #d7ff3a; }
.bv-vacio { padding: 26px 8px; text-align: center; color: var(--bv-suave); }

/* Paso de la cuenta. */
.bv-cuenta .bv-cuerpo { padding-top: 6px; }
.bv-cuenta-icono { width: 64px; height: 64px; margin: 6px 0 14px; }
.bv-cuenta-icono .marca-logo { width: 64px; height: 64px; border-radius: 17px; overflow: hidden; box-shadow: 0 12px 34px rgba(215, 255, 58, 0.2); }
.bv-cuenta-icono svg { width: 100%; height: 100%; display: block; }
.bv-form { display: grid; gap: 12px; margin-bottom: 8px; }
.bv-campo { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--bv-suave); }
.bv-campo input {
  height: 50px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--bv-borde); background: var(--bv-tarjeta);
  color: var(--bv-texto); font: inherit; font-size: 16px; font-weight: 500; outline: none; transition: border-color 0.2s ease;
}
.bv-campo input:focus { border-color: #d7ff3a; }
.bv-acepto { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--bv-suave); line-height: 1.4; }
.bv-acepto input { width: 20px; height: 20px; margin: 0; accent-color: #d7ff3a; }
.bv-acepto a { color: #d7ff3a; }
.bv-error { margin: 0; color: #ff5a5f; font-size: 13.5px; }
.bv-nota { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 10px; text-align: center; font-size: 14px; color: var(--bv-suave); }
.bv-nota svg { width: 16px; height: 16px; color: #d7ff3a; }
.bv-ios { margin: 0 0 12px; padding: 14px; border-radius: 14px; background: var(--bv-tarjeta); border: 1px solid var(--bv-borde); font-size: 14px; line-height: 1.5; }
.bv-ios ol { margin: 6px 0 0; padding-left: 20px; }
.bv-ios svg { width: 16px; height: 16px; vertical-align: -3px; color: #3ea8ff; }

/* Último paso: todo listo. */
.bv-listo { justify-content: center; align-items: center; text-align: center; }
.bv-listo-icono { position: relative; width: 120px; height: 120px; margin-bottom: 26px; }
.bv-listo-icono::before, .bv-listo-icono::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #d7ff3a; opacity: 0; }
.bv-paso.activo .bv-listo-icono::before { animation: arranque-onda 1s ease-out 0.35s; }
.bv-paso.activo .bv-listo-icono::after { animation: arranque-onda 1s ease-out 0.6s; }
.bv-listo-icono svg { width: 100%; height: 100%; }
.bv-listo-icono circle { fill: #d7ff3a; transform-origin: center; transform: scale(0); }
.bv-listo-icono path { fill: none; stroke: #121417; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.bv-paso.activo .bv-listo-icono circle { animation: bv-circulo 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) 0.1s forwards; }
.bv-paso.activo .bv-listo-icono path { animation: bv-trazo 0.4s ease 0.45s forwards; }
@keyframes bv-circulo { to { transform: scale(1); } }
@keyframes bv-trazo { to { stroke-dashoffset: 0; } }
.bv-listo .bv-texto { max-width: 300px; }
.bv-mis { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; max-width: 320px; margin: 4px auto 6px; }
.bv-mis img, .bv-mis .escudo-vacio { width: 44px; height: 44px; object-fit: contain; padding: 6px; border-radius: 50%; background: var(--bv-tarjeta); opacity: 0; }
.bv-mis [data-liga-logo] { background: #fff; border-radius: 12px; }
.bv-mis .escudo-vacio { display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.bv-paso.activo .bv-mis img, .bv-paso.activo .bv-mis .escudo-vacio { animation: bv-mis 0.4s ease forwards; }
@keyframes bv-mis { from { opacity: 0; transform: translateY(10px) scale(0.8); } to { opacity: 1; transform: none; } }
.bv-listo .bv-pie { position: absolute; left: 20px; right: 20px; bottom: 0; }

/* ---------- 3) instalar la app ---------- */
.instalar-fondo { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
.instalar-fondo.abierta { opacity: 1; pointer-events: auto; }
.instalar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 91; max-width: 520px; margin: 0 auto; padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: #18191c; color: #f3f2ef; transform: translateY(105%); transition: transform 0.38s cubic-bezier(0.3, 0.9, 0.2, 1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}
.instalar.abierta { transform: none; }
.instalar::before { content: ''; display: block; width: 40px; height: 5px; margin: 0 auto 16px; border-radius: 3px; background: #3a3d44; }
.instalar-cab { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.instalar-cab .marca-logo { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.instalar-cab .marca-logo svg { width: 100%; height: 100%; display: block; }
.instalar-cab b { display: block; font-family: var(--titulo); font-size: 24px; font-weight: 800; line-height: 1.05; }
.instalar-cab small { color: #a4a6ab; font-size: 13.5px; }
.instalar p { margin: 0 0 14px; color: #c9cbd0; font-size: 14.5px; }
.instalar ol { margin: 0 0 14px; padding-left: 20px; color: #c9cbd0; font-size: 14.5px; line-height: 1.6; }
.instalar ol svg { width: 16px; height: 16px; vertical-align: -3px; color: #3ea8ff; }

/* ---------- transición entre pantallas ---------- */
.vista-entra { animation: vista-entra 0.22s ease both; }
@keyframes vista-entra { from { opacity: 0; transform: translateY(8px); } }

/* Menos movimiento si el celular lo pide. */
@media (prefers-reduced-motion: reduce) {
  .arranque *, .arranque::before, .bv, .vista-entra, .bv-paso, .bv-item, .bv-listo-icono * { animation-duration: 0.01s !important; animation-delay: 0s !important; transition-duration: 0.01s !important; }
  /* La escena del gol queda quieta, ya armada (sin la jugada). */
  .bv-escena *, .en-escena .bv-escena *, .en-escena .bv-np { animation: none !important; }
  .bv-luz, .bv-flota { opacity: 1; }
  .bv-flota-estado.vivo, .bv-gol-grande { display: none; }
  .bv-cambia i { transform: translateY(-26px); }
  .bv-flota-estado.gol { opacity: 1; transform: none; }
  .bv-np { visibility: visible; transform: translate(-50%, 0); }
}


/* ---------- jalar hacia abajo para actualizar ---------- */
.jalar {
  position: fixed; top: calc(env(safe-area-inset-top) + 22px); left: 50%; z-index: 19; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: #212327; color: #a4a6ab; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translate(-50%, 0); pointer-events: none;
}
.jalar svg { width: 20px; height: 20px; transition: color 0.15s ease; }
.jalar.listo { color: #d7ff3a; }
.jalar.cargando svg { animation: jalar-gira 0.7s linear infinite; }
.jalar.suelta { transition: transform 0.3s ease, opacity 0.3s ease; }
@keyframes jalar-gira { to { transform: rotate(360deg); } }
.bv-boton svg { width: 18px; height: 18px; }
