/* Tokens + bingo en vivo (balotas 3D, corrediza, mezcladora ligera) */

:root {
  --bingo-amarillo: #ffcc00;
  --bingo-rojo: #e60000;
  --bingo-azul: #003399;
  --bingo-verde: #00994c;

  /* Letras B-I-N-G-O (estándar balota): B amarillo, I azul, N verde, G rojo, O morado */
  --bingo-letra-b: #fcdd09;
  --bingo-letra-b-mid: #ffe44a;
  --bingo-letra-b-dark: #d4b100;
  --bingo-letra-b-ink: #111111;
  --bingo-letra-i: #0047ab;
  --bingo-letra-i-mid: #1a6ad4;
  --bingo-letra-i-dark: #003380;
  --bingo-letra-n: #008037;
  --bingo-letra-n-mid: #1aad4f;
  --bingo-letra-n-dark: #00662c;
  --bingo-letra-g: #da291c;
  --bingo-letra-g-mid: #f04538;
  --bingo-letra-g-dark: #b01f15;
  --bingo-letra-o: #512da8;
  --bingo-letra-o-mid: #6d45c4;
  --bingo-letra-o-dark: #3d2080;

  --bs-primary: #003399;
  --bs-primary-rgb: 0, 51, 153;
  --bs-success: #00994c;
  --bs-success-rgb: 0, 153, 76;
  --bs-danger: #e60000;
  --bs-danger-rgb: 230, 0, 0;
  --bs-warning: #ffcc00;
  --bs-warning-rgb: 255, 204, 0;
  --bs-body-font-family: "Source Sans 3", system-ui, sans-serif;
  --bs-body-color: #212529;
  --bs-secondary-color: #6c757d;
  --bs-border-color: #dee2e6;
  --bs-tertiary-bg: #f8f9fa;
  --bs-link-color: #003399;
  --bs-link-hover-color: #002266;
}

.app-header.bg-primary {
  background-color: var(--bingo-azul) !important;
}

.font-brand {
  font-family: "Archivo", "Source Sans 3", sans-serif;
  letter-spacing: 0.02em;
}

/* ========== Preloader de arranque ========== */
.boot-preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #003399;
  color: #fff;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.boot-preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.5rem;
  text-align: center;
}

.boot-ball {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 42%,
    var(--bingo-letra-i-mid) 0%,
    var(--bingo-letra-i) 45%,
    var(--bingo-letra-i-dark) 100%
  );
  box-shadow:
    inset -8px -10px 14px rgba(0, 0, 0, 0.28),
    0 10px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: boot-ball-spin 1.1s linear infinite;
}

.boot-ball__letter {
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: #111;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.boot-preloader__brand {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.boot-preloader__bar {
  width: 120px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.boot-preloader__bar > span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: #ffcc00;
  animation: boot-bar 1s ease-in-out infinite;
}

.boot-preloader__hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

.route-preloader {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 249, 250, 0.55);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

@keyframes boot-ball-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes boot-bar {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .boot-ball,
  .boot-preloader__bar > span {
    animation: none;
  }
}

/*
 * Shell fijo: el body NO hace scroll (evita que el dock “baje” al cambiar de ruta).
 * Solo .app-scroll se desplaza.
 */
html,
body.app-shell {
  height: 100%;
  overflow: hidden;
}

.app-shell {
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.app-header {
  flex: 0 0 auto;
  z-index: 1040;
}

.app-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* allow: permite pull-to-refresh / recarga en móviles */
  overscroll-behavior-y: auto;
  overscroll-behavior-x: none;
  /* Hueco para el dock fijo (móvil) */
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

.app-main {
  max-width: 1100px;
  width: 100%;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  max-width: min(70vw, 280px);
}

.brand-lockup__logo {
  width: 58px;
  height: 58px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.brand-lockup__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand-lockup__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-lockup__tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.header-user {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: min(42vw, 160px);
  min-width: 0;
}

.user-avatar {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: #003399;
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.9);
  text-transform: uppercase;
  line-height: 1;
}

.user-avatar--guest {
  background: #6c757d !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.user-avatar--lg {
  width: 3rem;
  height: 3rem;
  font-size: 1rem;
}

.profile-card .profile-email,
.profile-email {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.profile-meta dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.profile-meta dd {
  font-size: 0.95rem;
}

.otp-input__box {
  width: 2.75rem;
  max-width: 2.75rem;
  height: 3.25rem;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
}

@media (min-width: 400px) {
  .otp-input__box {
    width: 3rem;
    max-width: 3rem;
  }
}

.app-footer {
  flex: 0 0 auto;
  margin-top: auto;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
}

.app-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  padding: 1.05rem 1rem 1.2rem;
  text-align: center;
}

.app-footer__actions,
.profile-support {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.footer-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 1.85rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.footer-chip .bi {
  font-size: 0.85rem;
  line-height: 1;
}

.footer-chip:active {
  transform: scale(0.97);
}

.footer-chip--help {
  color: var(--bingo-azul);
  background: #e8eef8;
  border-color: rgba(0, 51, 153, 0.14);
}

.footer-chip--help:hover,
.footer-chip--help:focus-visible {
  background: #dce6f5;
}

.footer-chip--wa {
  color: #fff;
  background: #25d366;
  border-color: #1ebe57;
}

.footer-chip--wa:hover,
.footer-chip--wa:focus-visible {
  background: #1ebe57;
  color: #fff;
}

.footer-chip--mail {
  color: #334155;
  background: #fff;
  border-color: #d7dde7;
}

.footer-chip--mail:hover,
.footer-chip--mail:focus-visible {
  border-color: rgba(0, 51, 153, 0.28);
  color: var(--bingo-azul);
}

.app-footer__brand {
  font-size: 0.9rem;
  font-weight: 600;
  color: #5a6577;
  line-height: 1.4;
  margin: 0;
}

.app-footer__sep {
  margin: 0 0.3rem;
  color: #ced4da;
}

.app-footer__credit {
  font-size: 0.82rem;
  color: #6c757d;
  line-height: 1.4;
  margin: 0;
}

.app-footer__dev {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: #25d366;
  font-weight: 700;
  text-decoration: none;
}

.app-footer__dev .bi {
  font-size: 1.05em;
  line-height: 1;
}

.app-footer__dev:hover,
.app-footer__dev:focus-visible {
  color: #1ebe57;
  text-decoration: underline;
}

/* Dock fijo al viewport — tamaño medio en móvil */
.nav-app {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: transparent;
  padding: 0.22rem 0 calc(0.28rem + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

.nav-app .container-lg {
  pointer-events: auto;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

.nav-app__dock {
  --nav-count: 4;
  --nav-i: 0;
  position: relative;
  display: flex;
  align-items: stretch;
  background: #f0f3f8;
  border: 1px solid rgba(0, 51, 153, 0.1);
  border-radius: 999px;
  box-shadow:
    0 3px 10px rgba(0, 51, 153, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 0.16rem;
  overflow: visible;
}

.nav-app__pill {
  position: absolute;
  top: 0.16rem;
  bottom: 0.16rem;
  left: 0.16rem;
  width: calc((100% - 0.32rem) / var(--nav-count));
  border-radius: 999px;
  background: var(--bingo-azul);
  box-shadow: 0 2px 8px rgba(0, 51, 153, 0.22);
  transform: translateX(calc(var(--nav-i) * 100%));
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

.nav-app__list {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  width: 100%;
}

.nav-app__list > li {
  flex: 1 1 0;
  min-width: 0;
}

.nav-app__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  width: 100%;
  min-height: 3.15rem;
  padding: 0.28rem 0.1rem;
  border: 0;
  background: transparent;
  border-radius: 999px;
  text-decoration: none;
  color: #5a6577;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  font-family: inherit;
}

.nav-app__link > span:not(.nav-app__label-wrap) {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.nav-app__label-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1.1;
  max-width: 100%;
}

.nav-app__label-wrap > span:not(.nav-app-badge) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Móvil: badge de carrito junto al icono */
.nav-app-badge {
  position: absolute;
  top: 0.1rem;
  left: 50%;
  margin-left: 0.38rem;
  min-width: 0.95rem;
  height: 0.95rem;
  padding: 0 0.22rem;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 0.95rem;
  z-index: 2;
}


.cart-checkout-actions {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

/* Cuentas de transferencia: clave y copiar sin solaparse */
.transfer-account__mark {
  width: 2rem;
  height: 2rem;
  font-size: 0.85rem;
}

.transfer-account__key {
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  line-height: 1.25;
}

.transfer-account__copy {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(13, 110, 253, 0.08);
  font-size: 1.1rem;
}

/* Vuelo al carrito (móvil + desktop: el dock está abajo en ambos) */
.cart-fly {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  width: 2.4rem;
  height: 2.4rem;
  margin: -1.2rem 0 0 -1.2rem;
  border-radius: 50%;
  background: var(--bingo-azul, #003399);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 51, 153, 0.35);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease;
  will-change: transform, opacity;
}

.cart-fly.is-flying {
  opacity: 0.9;
}

.nav-app__cart.is-bump .bi {
  animation: cart-icon-bump 0.4s ease;
}

.nav-app-badge.is-bump {
  animation: cart-badge-pop 0.4s ease;
}

@keyframes cart-icon-bump {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes cart-badge-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.45);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cart-fly {
    display: none !important;
  }

  .nav-app__cart.is-bump .bi,
  .nav-app-badge.is-bump {
    animation: none;
  }
}

.nav-app__link .bi {
  font-size: 1.35rem;
  line-height: 1;
  color: inherit;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}

.nav-app__link:hover {
  color: var(--bingo-azul);
}

.nav-app__link.active {
  color: #fff;
}

.nav-app__link.active .bi {
  color: var(--bingo-amarillo);
  transform: scale(1.06);
}

.text-bg-warning {
  color: #003399 !important;
}

.carton-pick .btn-add-cart:disabled {
  opacity: 1;
}

.carton-pick.is-in-cart {
  border-color: var(--bingo-verde);
  box-shadow: 0 0 0 2px rgba(0, 153, 76, 0.28);
}

.carton-pick.is-in-cart .card-body {
  background: rgba(0, 153, 76, 0.04);
}


/* ========== Jugador en vivo: compacto, cartón y balotas arriba ========== */
.vivo-play {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 36rem;
  margin-inline: auto;
  padding-bottom: 0.35rem;
}

/* Nombre + estado + fecha en una sola fila */
.vivo-play__head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.vivo-play__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.2;
}

.vivo-play__head .badge {
  flex: 0 0 auto;
  font-size: 0.7rem;
}

.vivo-play__clock.live-clock {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
  max-width: none;
}

.vivo-play__clock .live-clock__date,
.vivo-play__clock .live-clock__time {
  display: inline;
  font-size: 0.72rem;
  line-height: 1;
}

.vivo-play__clock .live-clock__time {
  font-size: 0.78rem;
  font-weight: 700;
}

.vivo-play__mute {
  flex: 0 0 auto;
  padding: 0.2rem 0.4rem;
}

/* Fila mobile-first: balotas a ancho completo (transmisión pausada de momento) */
.vivo-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
  align-items: start;
}

.vivo-top-row .vivo-balotas {
  min-width: 0;
}

.vivo-top-row .vivo-balotas > div {
  border: 1px solid #e9ecef;
  background: #fff;
  padding: 0.25rem 0.35rem;
}

.vivo-stream-wrap {
  border: 1px solid #dee2e6;
  background: #111;
  overflow: hidden;
  min-width: 0;
}

.vivo-stream-wrap__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.2rem 0.25rem;
  background: #1a1a1a;
  color: #f8f9fa;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

.vivo-stream-wrap__bar {
  padding: 0.2rem 0.25rem 0.25rem;
  background: #1a1a1a;
}

.vivo-stream-wrap__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.2rem;
  width: 100%;
}

.vivo-stream-wrap__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #ffcc00;
  color: #111;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  width: 100%;
  min-height: 2rem;
  height: 2rem;
}

.vivo-stream-wrap__btn--ctrl {
  background: #343a40;
  color: #fff;
}

.vivo-stream-wrap__btn--ctrl[aria-pressed='true'] {
  background: #003399;
}

/* Mini: video arriba, 3 iconos en una fila */
.vivo-stream-wrap.is-mini {
  display: flex;
  flex-direction: column;
}

.vivo-stream-wrap.is-mini .vivo-stream {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.vivo-stream-wrap.is-mini .vivo-stream-wrap__bar {
  flex: 0 0 auto;
}

.vivo-stream-wrap.is-mini .vivo-stream iframe,
.vivo-stream-wrap.is-mini #vivoYtPlayer {
  position: absolute;
  inset: 0;
  border: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Grande: overlay casi pantalla completa */
.vivo-stream-wrap.is-grande {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  border: 0;
  background: #000;
}

.vivo-stream-wrap.is-grande .vivo-stream-wrap__bar {
  flex: 0 0 auto;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
}

.vivo-stream-wrap.is-grande .vivo-stream-wrap__actions {
  max-width: 12rem;
  margin-inline: auto;
}

.vivo-stream-wrap.is-grande .vivo-stream-wrap__btn {
  min-height: 2.4rem;
  height: 2.4rem;
  font-size: 1.15rem;
}

.vivo-stream-wrap.is-grande .vivo-stream {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  background: #000;
}

.vivo-stream-wrap.is-grande .vivo-stream iframe,
.vivo-stream-wrap.is-grande #vivoYtPlayer {
  position: absolute;
  inset: 0;
  border: 0;
  width: 100% !important;
  height: 100% !important;
}

.vivo-stream-box--off {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: auto;
  max-width: 100%;
  padding: 0.35rem 0.55rem;
  background: #f8f9fa;
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #dee2e6;
}

/* Cuando vuelva la transmisión: minmax(0,1fr) 8.25rem en ≥400px */

.vivo-premios {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.vivo-premios__title {
  font-family: "Archivo", sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #003399;
  margin-right: 0.1rem;
}

.vivo-premios .premio-line--chip {
  font-size: 0.72rem;
  padding: 0.15rem 0.35rem;
}

.vivo-balotas .border {
  border-color: #e9ecef !important;
}

.vivo-carton-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}

.vivo-carton-tabs__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 2.15rem;
  border: 1px solid #ced4da;
  background: #fff;
  color: #212529;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
}

.vivo-carton-tabs__btn i {
  font-size: 0.9rem;
}

.vivo-carton-tabs__btn.is-on {
  border-color: #003399;
  background: #003399;
  color: #fff;
}

.vivo-carton {
  border: 1px solid #e9ecef;
  background: #fff;
  padding: 0.35rem;
}

.vivo-play .carton {
  max-width: min(100%, 15rem);
  margin-inline: auto;
}

.vivo-play .carton-grid .head {
  font-size: 0.65rem;
  padding: 0.15rem 0;
}

.vivo-play .carton-grid .cell {
  font-size: clamp(0.78rem, 3.1vw, 0.98rem);
}

.vivo-cantar {
  max-width: min(100%, 15rem);
  margin: 0.3rem auto 0.15rem;
}

.vivo-cantar__hint {
  margin-bottom: 0.2rem !important;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #6c757d;
}

.vivo-cantar__btns {
  width: 100%;
}

.vivo-cantar .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.28rem 0.4rem;
  min-height: 2rem;
}

.vivo-cantar .btn .bi-megaphone-fill {
  font-size: 0.75rem;
}

/* Verde “Jugar / Bingo” en toda la app (menú Jugar, vivo, etc.) */
.btn-bingo {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bingo-verde);
  --bs-btn-border-color: var(--bingo-verde);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #007a3d;
  --bs-btn-hover-border-color: #007a3d;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #006633;
  --bs-btn-active-border-color: #006633;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--bingo-verde);
  --bs-btn-disabled-border-color: var(--bingo-verde);
}

/* Mis cartones: partida ya jugada / cancelada — tabla gris para no confundir */
.mis-carton-card--jugado {
  background: #e9ecef;
  border-color: #ced4da;
  opacity: 0.72;
  filter: grayscale(1);
  pointer-events: none;
}

.mis-carton-card--jugado .carton {
  opacity: 0.75;
  filter: grayscale(1);
}

.mis-carton-card--jugado .carton .cell,
.mis-carton-card--jugado .carton td,
.mis-carton-card--jugado .carton th {
  background: #adb5bd !important;
  color: #495057 !important;
  border-color: #868e96 !important;
}

.mis-carton-card--jugado .fw-semibold {
  color: #6c757d;
}

/* ========== Cartón tradicional + corrediza ========== */
.carton {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  background: #003399;
  border: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  user-select: none;
  box-shadow:
    0 6px 16px rgba(0, 51, 153, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.06);
}

.carton-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: #fff;
  /* Marco exterior; las internas van en cada celda (1px, sin dobles) */
  border: 2px solid #003399;
  box-sizing: border-box;
}

.carton-grid .head,
.carton-grid .cell {
  border-right: 1px solid #003399;
  border-bottom: 1px solid #003399;
  box-sizing: border-box;
}

.carton-grid .head:nth-child(5n),
.carton-grid .cell:nth-child(5n) {
  border-right: 0;
}

/* Última fila de números (celdas 26–30): sin borde inferior doble con el marco */
.carton-grid > *:nth-child(n + 26) {
  border-bottom: 0;
}

.carton-grid .head {
  background: #003399;
  color: #fff;
  text-align: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0;
}

.carton-grid .cell {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: #000;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 4.2vw, 1.35rem);
  line-height: 1;
}

.carton-grid .cell-num {
  position: relative;
  z-index: 1;
  color: #000;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 0.5px rgba(0, 0, 0, 0.35);
}

.carton-grid .cell-shutter {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(220, 40, 40, 0.55),
    rgba(180, 20, 20, 0.72)
  );
  border-right: 1px solid rgba(120, 0, 0, 0.28);
  transform: translateX(-105%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
  pointer-events: none;
}

.carton-grid .cell.tachado .cell-shutter {
  transform: translateX(0);
}

.carton-grid .cell.tachado .cell-num {
  color: #000;
  z-index: 3;
}

.carton-grid .cell.free {
  background: #fff8e6;
}

.carton-grid .cell.free .cell-free-label {
  font-size: 0.7em;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #003399;
  z-index: 3;
}

.carton-grid .cell.cell-tap {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .carton-grid .cell-shutter {
    transition: none;
  }
  .bball--pop {
    animation: none !important;
  }
  .mixer__drum,
  .draw-cage--spin .draw-cage__ring,
  .draw-cage--spin .draw-cage__balls {
    animation: none !important;
  }
  .draw-eject--show {
    animation: none !important;
  }
}

/* ========== Balotas ========== */
.bball-rail {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: nowrap;
  padding: 0.35rem 0 0.15rem;
  overflow-x: auto;
}

.bball-rail--ltr {
  flex-direction: row;
}

.bball-rail--compact {
  gap: 0.35rem;
  padding-top: 0.15rem;
}

.bball-rail--compact .bball-slot__label {
  font-size: 0.65rem;
  margin-bottom: 0.1rem;
}

.bball-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.bball-slot--now {
  flex: 0 0 auto;
  padding-right: 0.65rem;
  border-right: 2px solid #ffcc00;
}

.bball-slot--prev {
  flex: 1 1 auto;
  min-width: 0;
}

.bball-slot__label {
  font-family: "Archivo", sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #003399;
}

.bball-slot--prev .bball-slot__label {
  color: #6c757d;
  font-weight: 600;
}

.bball {
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.18));
}

.bball__sphere {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--bb-mid) 0%, var(--bb-base) 48%, var(--bb-dark) 100%);
  box-shadow: inset -6px -8px 12px rgba(0, 0, 0, 0.22);
}

.bball__face {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.bball__letter,
.bball__num {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  color: #111;
}

.bball__letter {
  font-size: 0.48em;
}

.bball__num {
  font-size: 0.92em;
}

.bball--sm {
  width: 36px;
  height: 36px;
  font-size: 11px;
  opacity: 0.88;
}

.bball--md {
  width: 52px;
  height: 52px;
  font-size: 14px;
}

.bball--lg {
  width: 72px;
  height: 72px;
  font-size: 18px;
}

.bball--xl {
  width: 128px;
  height: 128px;
  font-size: 28px;
}

/* Overlay: mobile-first; desktop lo agranda en @media (min-width: 768px) */
.draw-overlay .bball--xl {
  width: min(48vw, 140px);
  height: min(48vw, 140px);
  font-size: clamp(1.45rem, 6.5vw, 2rem);
}

.bball--actual {
  transform: scale(1.02);
}

.bball--empty {
  border-radius: 50%;
  background: #e9ecef;
  box-shadow: inset 0 0 0 1px #ced4da;
}

.bball--empty .bball__sphere {
  display: none;
}

.bball--b {
  --bb-mid: var(--bingo-letra-b-mid);
  --bb-base: var(--bingo-letra-b);
  --bb-dark: var(--bingo-letra-b-dark);
}
.bball--i {
  --bb-mid: var(--bingo-letra-i-mid);
  --bb-base: var(--bingo-letra-i);
  --bb-dark: var(--bingo-letra-i-dark);
}
.bball--n {
  --bb-mid: var(--bingo-letra-n-mid);
  --bb-base: var(--bingo-letra-n);
  --bb-dark: var(--bingo-letra-n-dark);
}
.bball--g {
  --bb-mid: var(--bingo-letra-g-mid);
  --bb-base: var(--bingo-letra-g);
  --bb-dark: var(--bingo-letra-g-dark);
}
.bball--o {
  --bb-mid: var(--bingo-letra-o-mid);
  --bb-base: var(--bingo-letra-o);
  --bb-dark: var(--bingo-letra-o-dark);
}

.bball--pop {
  animation: bball-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bball-pop {
  0% {
    transform: scale(0.4) translateY(12px);
    opacity: 0;
  }
  60% {
    transform: scale(1.12) translateY(-2px);
    opacity: 1;
  }
  100% {
    transform: scale(1.05) translateY(0);
  }
}

/* Mezcladora ligera (solo si no hay YouTube) */
.mixer {
  background: #1a1a1a;
  border: 1px solid #333;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #adb5bd;
}

.mixer__drum {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid #666;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.12), transparent 40%),
    repeating-conic-gradient(from 0deg, #333 0deg 12deg, #222 12deg 24deg);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.mixer--spin .mixer__drum {
  animation: mixer-spin 1.1s linear infinite;
}

@keyframes mixer-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Reloj en vivo (mesa + jugador) */
.vivo-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.live-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: #495057;
  white-space: nowrap;
}

.live-clock__date,
.live-clock__time {
  display: block;
  max-width: 100%;
}

.live-clock__date {
  font-size: 0.75rem;
  text-transform: capitalize;
  color: #6c757d;
}

.live-clock__time {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: #212529;
}

/* ========== Mesa en vivo: tablero + fila (rombo | anteriores | cantadas) ========== */
.mesa-vivo-tablero {
  width: 100%;
}

.mesa-vivo-fila {
  display: grid;
  grid-template-columns: minmax(140px, 180px) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0.65rem;
  align-items: stretch;
  margin-bottom: 0.75rem;
}

.mesa-vivo-fila__rombo,
.mesa-vivo-fila__anteriores,
.mesa-vivo-fila__cantadas {
  min-width: 0;
  border: 1px solid #dee2e6;
  background: #fff;
  padding: 0.55rem 0.65rem;
}

.mesa-vivo-fila__rombo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.mesa-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.mesa-vivo-fila__anteriores .bball-rail {
  width: 100%;
}

.mesa-cantadas {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mesa-cantadas__list {
  flex: 1;
  min-height: 0;
  max-height: 220px;
  overflow-y: auto;
}

.mesa-cantadas__card {
  border: 1px solid #e9ecef;
  background: #fff;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.35rem;
}

.mesa-cantadas__card.is-pendiente {
  border-color: #ffc107;
  background: #fff8e1;
}

.mesa-cantadas__card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

@media (max-width: 767.98px) {
  .vivo-head-meta {
    width: 100%;
    justify-content: space-between;
    margin-top: 0.15rem;
  }

  .live-clock {
    align-items: flex-start;
  }

  .live-clock__date {
    font-size: 0.68rem;
  }

  .live-clock__time {
    font-size: 0.95rem;
  }

  .brand-lockup {
    max-width: min(58vw, 220px);
    gap: 0.4rem;
  }

  .brand-lockup__logo {
    width: 48px;
    height: 48px;
  }

  .brand-lockup__name {
    font-size: 0.9rem;
  }

  .brand-lockup__tag {
    font-size: 0.62rem;
  }

  .mesa-vivo-fila {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .mesa-vivo-fila__rombo,
  .mesa-vivo-fila__anteriores,
  .mesa-vivo-fila__cantadas {
    padding: 0.45rem 0.5rem;
  }

  .mesa-vivo-fila__rombo {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .mesa-vivo-fila__rombo .bingo-cage__visual,
  .mesa-vivo-fila__rombo .bingo-cage__svg {
    width: 110px;
    height: auto;
  }

  .mesa-cantadas__list {
    max-height: min(36vh, 220px);
  }

  .tablero75 {
    padding: 0.3rem 0.35rem 0.4rem;
  }

  .tablero75__cell {
    font-size: 0.65rem;
    min-height: 1.35rem;
  }

  .mesa-validar-offcanvas {
    --bs-offcanvas-width: min(100vw, 100%);
  }

  .mesa-validar__carton .carton {
    width: min(100%, 260px);
  }

  .mesa-validar__actions .btn {
    font-size: 0.85rem;
  }

}

.mesa-premios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Premios unificados: 🔥 L 💰 $ 1.000.000 */
.premio-line {
  line-height: 1.35;
}

.premio-line__mod {
  white-space: nowrap;
}

.premio-line__cash {
  font-weight: 700;
  color: var(--bingo-verde);
  white-space: nowrap;
}

.premio-line--row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.premio-line--chip {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  border: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 0.35rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.8rem;
}

.premio-card__amount .premio-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.premio-card__amount .premio-line__cash {
  font-size: inherit;
  color: inherit;
}

/* Bombo SVG */
.bingo-cage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.bingo-cage__visual {
  position: relative;
  width: 150px;
  height: 140px;
  transform-origin: 50% 48%;
  overflow: hidden;
}

.bingo-cage__svg {
  width: 150px;
  height: 140px;
  display: block;
  overflow: visible;
}

/* Solo gira la esfera (jaula), no patas / eje / manivela */
.bingo-cage__rotor {
  transform-box: view-box;
  transform-origin: 80px 72px;
}

.bingo-cage--spin .bingo-cage__rotor {
  animation: bingo-cage-spin var(--cage-spin, 0.55s) linear infinite;
}

@keyframes bingo-cage-spin {
  to { transform: rotate(360deg); }
}

/* Balota sale por la canaleta (abajo) */
.bingo-cage__exit {
  position: absolute;
  left: 50%;
  top: 108px;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transform: translateY(-12px) scale(0.25);
}

.bingo-cage__exit--out {
  animation: cage-ball-out 0.85s cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
}

.bingo-cage__exit--rest {
  opacity: 1;
  transform: translateY(28px) scale(1);
}

@keyframes cage-ball-out {
  0% {
    opacity: 0;
    transform: translateY(-14px) scale(0.2);
  }
  35% {
    opacity: 1;
    transform: translateY(6px) scale(0.85);
  }
  70% {
    transform: translateY(34px) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: translateY(28px) scale(1);
  }
}

/* ========== Tablero maestro B-I-N-G-O 75 (filas compactas) ========== */
.tablero75 {
  border: 1px solid #dee2e6;
  background: #fff;
  padding: 0.4rem 0.5rem 0.5rem;
}

.tablero75__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.3rem;
}

.tablero75__board {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.tablero75__row {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: 0.28rem;
  align-items: center;
}

.tablero75__head {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.35rem;
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: #fff;
  border-radius: 0.25rem;
}

.tablero75__head--b {
  background: var(--bingo-letra-b);
  color: var(--bingo-letra-b-ink);
}
.tablero75__head--i { background: var(--bingo-letra-i); }
.tablero75__head--n { background: var(--bingo-letra-n); }
.tablero75__head--g { background: var(--bingo-letra-g); }
.tablero75__head--o { background: var(--bingo-letra-o); }

.tablero75__nums {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 0.12rem;
}

.tablero75__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.35rem;
  border-radius: 0.2rem;
  font-size: clamp(0.52rem, 1.7vw, 0.68rem);
  font-weight: 700;
  line-height: 1;
  color: #94a3b8;
  background: #f1f3f5;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tablero75__cell.is-called {
  color: #fff;
}

.tablero75__cell--b.is-called {
  background: var(--bingo-letra-b);
  color: var(--bingo-letra-b-ink);
}
.tablero75__cell--i.is-called { background: var(--bingo-letra-i); }
.tablero75__cell--n.is-called { background: var(--bingo-letra-n); }
.tablero75__cell--g.is-called { background: var(--bingo-letra-g); }
.tablero75__cell--o.is-called { background: var(--bingo-letra-o); }

.tablero75__cell.is-last {
  box-shadow: 0 0 0 1.5px #ffcc00;
  z-index: 1;
  animation: tablero-last-pop 0.35s ease;
}

@keyframes tablero-last-pop {
  0% { transform: scale(0.9); }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@media (min-width: 768px) {
  .tablero75__row {
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: 0.4rem;
  }

  .tablero75__head,
  .tablero75__cell {
    height: 1.55rem;
  }

  .tablero75__head {
    font-size: 0.78rem;
  }

  .tablero75__cell {
    font-size: 0.75rem;
  }

  .tablero75__nums {
    gap: 0.18rem;
  }
}

/* ========== Sorteo: jaula → eyección → ding ========== */
.draw-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0, 51, 153, 0.55), transparent 55%),
    rgba(8, 10, 18, 0.82);
  backdrop-filter: blur(3px);
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.draw-overlay--out {
  opacity: 0;
}

.draw-stage {
  position: relative;
  width: min(92vw, 340px);
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.draw-cage {
  position: relative;
  width: 160px;
  height: 160px;
}

.draw-cage__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid rgba(255, 204, 0, 0.85);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.12),
    0 0 28px rgba(255, 204, 0, 0.35);
}

.draw-cage__ring--2 {
  inset: 14px;
  border-color: rgba(230, 0, 0, 0.7);
  border-style: dashed;
}

.draw-cage__balls {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #2f6bff 0 10%, transparent 11%),
    radial-gradient(circle at 70% 35%, #ff4d4d 0 9%, transparent 10%),
    radial-gradient(circle at 45% 70%, #2ecc71 0 10%, transparent 11%),
    radial-gradient(circle at 65% 65%, #ffd84d 0 8%, transparent 9%),
    radial-gradient(circle at 35% 55%, #5b2c6f 0 8%, transparent 9%),
    #1a1a22;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.55);
}

.draw-cage__balls--color {
  background:
    radial-gradient(circle at 28% 32%, #003399 0 11%, transparent 12%),
    radial-gradient(circle at 68% 30%, #e60000 0 10%, transparent 11%),
    radial-gradient(circle at 48% 68%, #00994c 0 11%, transparent 12%),
    radial-gradient(circle at 70% 62%, #ffcc00 0 9%, transparent 10%),
    radial-gradient(circle at 34% 58%, #5b2c6f 0 9%, transparent 10%),
    #141418;
}

.draw-cage--spin .draw-cage__ring {
  animation: mixer-spin var(--cage-spin, 0.55s) linear infinite;
}

.draw-cage--spin .draw-cage__ring--2 {
  animation: mixer-spin calc(var(--cage-spin, 0.55s) * 1.5) linear infinite reverse;
}

.draw-cage--spin .draw-cage__balls {
  animation: mixer-spin calc(var(--cage-spin, 0.55s) * 0.75) linear infinite;
}

.draw-caption {
  margin-top: 1rem;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffcc00;
  font-size: 0.85rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.draw-eject {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -40%) scale(0.2);
  opacity: 0;
  filter: blur(2px);
}

.draw-stage .draw-caption {
  margin-bottom: 0.5rem;
}

.draw-eject--show {
  animation: draw-eject 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes draw-eject {
  0% {
    opacity: 0;
    transform: translate(-50%, 20%) scale(0.15) rotate(-25deg);
    filter: blur(4px);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -55%) scale(1.2) rotate(8deg);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -48%) scale(1) rotate(0);
    filter: blur(0);
  }
}

@media (min-width: 992px) {
  /* Desktop: dock más cómodo (móvil sigue compacto) */
  .app-scroll {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  .nav-app {
    padding: 0.4rem 0 calc(0.5rem + env(safe-area-inset-bottom, 0px));
  }

  .nav-app .container-lg {
    display: flex;
    justify-content: center;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .nav-app__dock {
    width: min(520px, 100%);
    max-width: 520px;
    padding: 0.28rem;
  }

  .nav-app__pill {
    top: 0.28rem;
    bottom: 0.28rem;
    left: 0.28rem;
    width: calc((100% - 0.56rem) / var(--nav-count));
  }

  .nav-app__link {
    flex-direction: row;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
  }

  .nav-app__link > span:not(.nav-app__label-wrap),
  .nav-app__label-wrap > span:not(.nav-app-badge) {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
  }

  .nav-app__link .bi {
    font-size: 1.2rem;
  }

  .nav-app__link.active .bi {
    transform: none;
  }

  /* Desktop: badge rojo del carrito después del texto */
  .nav-app__label-wrap {
    position: relative;
  }

  .nav-app-badge {
    top: -0.45rem;
    left: 100%;
    margin-left: 0.12rem;
    min-width: 1.05rem;
    height: 1.05rem;
    font-size: 0.62rem;
    line-height: 1.05rem;
  }

  /* Carrito: no estirar botones a todo el ancho del desktop */
  #carritoOffcanvas.offcanvas-bottom {
    left: 50%;
    right: auto;
    width: min(420px, calc(100% - 2rem));
    border-radius: 1rem 1rem 0 0;
  }

  #carritoOffcanvas.offcanvas-bottom.showing,
  #carritoOffcanvas.offcanvas-bottom.show:not(.hiding) {
    transform: translate(-50%, 0);
  }

  #carritoOffcanvas.offcanvas-bottom.hiding,
  #carritoOffcanvas.offcanvas-bottom:not(.show):not(.showing) {
    transform: translate(-50%, 100%);
  }

  .cart-checkout-actions {
    grid-template-columns: 1fr 1fr;
  }

  .app-footer__inner {
    padding: 1.2rem 1.25rem 1.35rem;
  }

  .app-footer__brand {
    font-size: 0.95rem;
  }

  .app-footer__credit {
    font-size: 0.88rem;
  }

  .bball--lg {
    width: 86px;
    height: 86px;
    font-size: 20px;
  }

  .bball--xl {
    width: 140px;
    height: 140px;
    font-size: 32px;
  }

  .draw-overlay .bball--xl {
    width: 180px;
    height: 180px;
    font-size: 2.5rem;
  }

  .bball--md {
    width: 58px;
    height: 58px;
    font-size: 15px;
  }

  .bball--sm {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }
}

/* Bingos: un toque tipográfico, sin inventar componentes */
.letter-spacing {
  letter-spacing: 0.04em;
}

/* ========== Landing (pauta → compra, Bootstrap 5.3 + marca) ========== */
/* En #/landing el main usa .app-main--bleed (todo el ancho, sin padding). */
.app-main--bleed {
  max-width: none;
  width: 100%;
  padding: 0 !important;
}

.landing {
  margin: 0;
  width: 100%;
}

.landing__hero {
  color: #fff;
  /* Mismo azul del navbar; juntos se leen como un solo bloque */
  background: var(--bingo-azul);
  padding: 0.95rem 0 1.15rem;
}

.landing__hero-inner {
  max-width: 920px;
  margin-inline: auto;
  padding: 0 1.15rem;
}

.landing__hero-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.landing__hero-top .badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45em 0.75em;
  white-space: normal;
  text-align: left;
  line-height: 1.25;
  max-width: 100%;
}

.landing__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--bingo-amarillo);
}

.landing__title {
  font-size: clamp(1.45rem, 5.5vw, 1.95rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.4rem;
  color: #fff;
  max-width: none;
}

.landing__lead {
  font-size: 0.98rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.85rem;
  max-width: 36ch;
}

.landing__when {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.3rem;
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
}

.landing__when-sep {
  opacity: 0.55;
}

.landing__hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
}

.landing__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.landing__price-block {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}

.landing__price {
  font-family: "Archivo", "Source Sans 3", sans-serif;
  font-size: clamp(1.45rem, 5vw, 1.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}

.landing__price-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.landing__cta {
  padding-inline: 1.2rem;
  min-height: 2.55rem;
  font-size: 0.95rem;
  color: #003399 !important;
  border: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

/* Premios ilustrados (emoción de ganar) */
.premio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.85rem 1.1rem;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(0, 51, 153, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 51, 153, 0.12);
}

.premio-card__visual {
  position: relative;
  margin-bottom: 0.85rem;
}

.premio-card__glow {
  position: absolute;
  inset: 20% 10% auto;
  height: 50%;
  background: radial-gradient(ellipse, rgba(255, 204, 0, 0.35), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.premio-board {
  position: relative;
  z-index: 1;
  width: 108px;
  padding: 0.3rem;
  border-radius: 0.4rem;
  background: var(--bingo-azul);
  box-shadow:
    0 6px 16px rgba(0, 51, 153, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.premio-board__heads {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}

.premio-board__heads span {
  text-align: center;
  font-family: "Archivo", sans-serif;
  font-size: 0.55rem;
  font-weight: 800;
  color: var(--bingo-amarillo);
  line-height: 1.2;
}

.premio-board__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.premio-board__cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.88);
}

.premio-board__cell.is-win {
  background: var(--bingo-amarillo);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  animation: premio-win-pulse 1.6s ease-in-out infinite;
}

.premio-board__cell.is-free:not(.is-win) {
  background: #fff3bf;
}

.premio-card__hook {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b8860b;
  line-height: 1.2;
}

.premio-card__title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--bingo-azul);
}

.premio-card__blurb {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
  line-height: 1.35;
  max-width: 16ch;
  margin-inline: auto;
}

.premio-card__amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  font-family: "Archivo", "Source Sans 3", sans-serif;
  font-size: clamp(1.2rem, 4.2vw, 1.45rem);
  font-weight: 800;
  color: var(--bingo-verde);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.premio-card__cash {
  font-size: 0.92em;
  line-height: 1;
}

@keyframes premio-win-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .premio-board__cell.is-win {
    animation: none;
  }

  .premio-card:hover {
    transform: none;
  }
}

.landing-trust-row {
  padding: 0.25rem 0;
}

.landing-trust-row .bi {
  font-size: 1.35rem;
}

.landing-steps-list .list-group-item {
  border-color: #dee2e6;
}

/* Bandas de sección: cada bloque se lee aparte */
.landing-band {
  padding: 1.75rem 0;
  border-top: 1px solid transparent;
}

.landing-band--white {
  background: #fff;
  border-top-color: #e9ecef;
}

.landing-band--muted {
  background: #f1f3f5;
  border-top-color: #dee2e6;
}

.landing-band--tint {
  background: #e8eef8;
  border-top-color: #c5d4ef;
}

.landing-band__inner {
  padding-left: 1.15rem;
  padding-right: 1.15rem;
  max-width: 920px;
  margin-inline: auto;
}

.landing-band__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid rgba(0, 51, 153, 0.12);
}

.landing-band__head--center {
  justify-content: center;
  text-align: center;
  border-bottom-color: transparent;
  padding-bottom: 0;
}

.landing-band__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bingo-azul);
}

.landing-faq .accordion-item {
  border-color: var(--bs-border-color);
}

.landing-stars {
  display: inline-flex;
  gap: 0.1rem;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.landing-reviews-summary .landing-stars {
  font-size: 1.05rem;
}

.landing-reviews-carousel {
  position: relative;
  padding: 0 2.25rem 1.75rem;
}

.landing-reviews-carousel .carousel-inner {
  overflow: hidden;
}

.landing-review {
  background: #fff;
  max-width: 420px;
  min-height: 11.5rem;
}

.landing-review__avatar {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--bingo-azul);
}

.landing-review blockquote {
  color: var(--bs-body-color);
  font-size: 0.95rem;
  line-height: 1.45;
}

.landing-reviews-ctrl {
  width: 2.25rem;
  opacity: 1;
}

.landing-reviews-ctrl__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  color: var(--bingo-azul);
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.landing-reviews-ctrl:hover .landing-reviews-ctrl__btn,
.landing-reviews-ctrl:focus .landing-reviews-ctrl__btn {
  background: var(--bingo-azul);
  border-color: var(--bingo-azul);
  color: #fff;
}

.landing-reviews-indicators {
  margin-bottom: 0;
}

.landing-reviews-indicators [data-bs-target] {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: #adb5bd;
  border: 0;
  opacity: 1;
}

.landing-reviews-indicators .active {
  background-color: var(--bingo-azul);
  width: 1rem;
  border-radius: 999px;
}

.landing .accordion-button:not(.collapsed) {
  background: rgba(0, 51, 153, 0.06);
  color: var(--bingo-azul);
}

.landing .accordion-button:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 51, 153, 0.2);
}

@media (min-width: 768px) {
  .landing__hero {
    padding: 1.25rem 0 1.4rem;
  }

  .landing__hero-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .landing__title {
    font-size: 2.05rem;
  }

  .landing__lead {
    font-size: 1.05rem;
    max-width: 42ch;
  }

  .landing-band {
    padding: 2.25rem 0;
  }

  .landing-band__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Select2 ciudad */
.select2-container {
  z-index: 1055;
}

.select2-container--bootstrap-5 .select2-selection {
  min-height: calc(3.5rem + 2px);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border-color: var(--bs-border-color, #dee2e6);
  border-radius: 0.5rem;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: var(--bingo-azul);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--bingo-azul) 22%, transparent);
}

.select2-dropdown {
  border-color: var(--bingo-azul);
  border-radius: 0.5rem;
  overflow: hidden;
}

.select2-container--bootstrap-5 .select2-results__option {
  color: #212529;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted,
.select2-container--bootstrap-5 .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--bootstrap-5 .select2-results__option--selected.select2-results__option--highlighted {
  background-color: var(--bingo-azul) !important;
  color: #fff !important;
}

.select2-container--bootstrap-5 .select2-results__option--selected:not(.select2-results__option--highlighted) {
  background-color: color-mix(in srgb, var(--bingo-azul) 12%, #fff);
  color: var(--bingo-azul);
}

/* CTA landing */
.landing__cta {
  font-weight: 700;
}

/* Celebración al cantar (logo + confeti) */
.bingo-celebrate {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.bingo-celebrate.is-on {
  opacity: 1;
}

.bingo-celebrate.is-out {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.bingo-celebrate__flash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 204, 0, 0.55), transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(230, 0, 0, 0.35), transparent 58%),
    rgba(0, 20, 70, 0.72);
  animation: celebrate-flash 0.7s ease-out both;
}

.bingo-celebrate__confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bingo-celebrate__piece {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 0.55);
  background: var(--color);
  border-radius: 2px;
  opacity: 0;
  animation: celebrate-fall var(--dur) cubic-bezier(0.22, 0.7, 0.35, 1) var(--delay) both;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.bingo-celebrate__piece[data-shape='circle'] {
  height: var(--size);
  border-radius: 50%;
}

.bingo-celebrate__stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  transform: scale(0.4) rotate(-8deg);
  opacity: 0;
}

.bingo-celebrate.is-on .bingo-celebrate__stage {
  animation: celebrate-pop 0.85s cubic-bezier(0.18, 1.2, 0.32, 1) 0.08s both;
}

.bingo-celebrate__logo {
  width: min(52vw, 240px);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
  animation: celebrate-wobble 0.9s ease-in-out 0.35s both;
}

.bingo-celebrate__label {
  margin: 0;
  font-size: clamp(2.4rem, 12vw, 4.2rem);
  font-weight: 800;
  line-height: 0.95;
  color: #ffcc00;
  text-shadow:
    0 2px 0 #003399,
    0 6px 18px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.02em;
}

.bingo-celebrate--linea .bingo-celebrate__label {
  color: #7ec8ff;
  text-shadow:
    0 2px 0 #003399,
    0 6px 18px rgba(0, 0, 0, 0.45);
}

.bingo-celebrate--equis .bingo-celebrate__label {
  color: #ff8a65;
  text-shadow:
    0 2px 0 #8b0000,
    0 6px 18px rgba(0, 0, 0, 0.45);
}

.bingo-celebrate--completa .bingo-celebrate__label {
  color: #ffcc00;
}

/* Mesa: Offcanvas end (Bootstrap) sin backdrop; empuje suave = misma transición BS */
.mesa-validar-offcanvas {
  --bs-offcanvas-width: min(340px, 88vw);
  border-left: 1px solid var(--bs-border-color, #dee2e6);
}

.mesa-validar-offcanvas .offcanvas-body {
  overflow: auto;
}

.app-scroll {
  transition: padding-right 0.3s ease-in-out;
}

body:has(#mesaValidarOffcanvas.showing) .app-scroll,
body:has(#mesaValidarOffcanvas.show:not(.hiding)) .app-scroll {
  padding-right: calc(var(--bs-offcanvas-width, 340px) + 0.35rem);
}

body:has(#mesaValidarOffcanvas.hiding) .app-scroll,
body:has(#mesaValidarOffcanvas:not(.show):not(.showing)) .app-scroll {
  padding-right: 0;
}

@media (max-width: 767.98px) {
  body:has(#mesaValidarOffcanvas.showing) .app-scroll,
  body:has(#mesaValidarOffcanvas.show:not(.hiding)) .app-scroll {
    padding-right: 0;
  }
}

.mesa-validar__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.65rem;
  font-size: 0.82rem;
}

.mesa-validar__meta > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.mesa-validar__ciudad {
  grid-column: 1 / -1;
}

.mesa-validar__carton {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0.25rem 0 0.75rem;
  min-height: 200px;
  padding: 0.45rem;
  border: 1px solid #e9ecef;
  background: #f8f9fa;
}

.mesa-validar__carton .carton {
  width: min(100%, 280px);
}

.mesa-validar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mesa-validar__actions .btn {
  flex: 1 1 auto;
}

.bingo-celebrate__sub {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

@keyframes celebrate-flash {
  0% {
    opacity: 0;
    filter: brightness(2.2);
  }
  35% {
    opacity: 1;
    filter: brightness(1.35);
  }
  100% {
    opacity: 1;
    filter: brightness(1);
  }
}

@keyframes celebrate-pop {
  0% {
    opacity: 0;
    transform: scale(0.25) rotate(-14deg) translateY(24px);
  }
  55% {
    opacity: 1;
    transform: scale(1.12) rotate(3deg) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0) translateY(0);
  }
}

@keyframes celebrate-wobble {
  0%,
  100% {
    transform: rotate(0) scale(1);
  }
  30% {
    transform: rotate(-6deg) scale(1.06);
  }
  60% {
    transform: rotate(5deg) scale(1.04);
  }
}

@keyframes celebrate-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -10vh, 0) rotate(0);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0.15;
    transform: translate3d(var(--drift), 110vh, 0) rotate(var(--rot));
  }
}

/* Datos del jugador: ancho de formulario, no de pantalla */
.guest-auth-wrap {
  max-width: 28rem;
  margin-inline: auto;
}

/* Acciones grandes con icono (adultos mayores: no links diminutos) */
.guest-main-btn,
.guest-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.guest-main-btn .bi,
.guest-switch-btn .bi {
  font-size: 1.15em;
  line-height: 1;
}

/* Comprar: cabecera + paginación */
.comprar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.comprar-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.comprar-toolbar--bottom {
  justify-content: center;
}

.comprar-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

/* Mesa: clientes / organizaciones (tablas + stats) */
.mesa-cliente-form,
.mesa-org-form,
.mesa-stats,
.mesa-data-table {
  border-radius: 0.5rem;
}

.mesa-data-table .table {
  --bs-table-hover-bg: #f3f6fb;
}

.mesa-stats {
  border-radius: 0.5rem;
}

.mesa-stat-bar {
  display: flex;
  height: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  background: #e9ecef;
}

.mesa-stat-bar__seg {
  height: 100%;
  min-width: 0;
}

.mesa-stat-bar__seg--jugador {
  background: #0d6efd;
}

.mesa-stat-bar__seg--operador {
  background: #ffc107;
}

.mesa-stat-bar__seg--admin {
  background: #212529;
}

/* Contacto legible en iOS (evita azul/púrpura visited de Safari) */
.mesa-cliente-contacto {
  color: #212529;
  word-break: break-word;
}

.mesa-cliente-contacto__link {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.mesa-cliente-contacto__link:visited,
.mesa-cliente-contacto__link:hover,
.mesa-cliente-contacto__link:active {
  color: inherit;
}

.mesa-cliente-contacto__sep {
  margin: 0 0.2rem;
  color: #6c757d;
}

/* Mesa: tabs / filtros compactos (no full-width gigantes) */
.mesa-seg {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  padding: 0.2rem;
  background: #eef1f5;
  border-radius: 0.5rem;
}

.mesa-seg--wrap {
  display: flex;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
}

.mesa-seg__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #495057;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.35rem 0.7rem;
  border-radius: 0.35rem;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.mesa-seg__btn:hover {
  color: #212529;
  background: rgba(255, 255, 255, 0.65);
}

.mesa-seg__btn.is-active {
  background: #fff;
  color: #003399;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}

/* Mesa: pagos + cartón del cliente */
.mesa-pagos-list {
  display: grid;
  gap: 0.85rem;
}

.mesa-cuentas-list {
  display: grid;
  gap: 0.75rem;
}

.mesa-cuenta-card {
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
}

.mesa-cuenta-card--off {
  opacity: 0.72;
  background: #f8f9fa;
}

.mesa-cuenta-form {
  border-radius: 0.5rem;
}

.mesa-pago-card {
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.75rem;
}

.mesa-pago-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.mesa-pago-card__cliente {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: #f8f9fa;
  border-radius: 0.4rem;
}

.mesa-pago-card__carton {
  border: 1px solid #e9ecef;
  border-radius: 0.4rem;
  padding: 0.55rem;
}

.mesa-pago-card__grid .carton {
  max-width: 240px;
  margin: 0 auto;
}

.mesa-pago-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.mesa-pago-card__actions .btn {
  min-height: 0;
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .mesa-pago-card__cliente {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bingo-celebrate__flash,
  .bingo-celebrate.is-on .bingo-celebrate__stage,
  .bingo-celebrate__logo,
  .bingo-celebrate__piece {
    animation: none !important;
  }

  .bingo-celebrate.is-on .bingo-celebrate__stage {
    opacity: 1;
    transform: none;
  }
}


