/* =====================================================================
   Booyah — plantilla de tienda «con imágenes»
   Se carga DESPUÉS de app.css y de Branding::cssVars().

   Lenguaje: todo recto. Sin esquinas redondeadas; las piezas principales
   llevan dos esquinas a bisel y un filo de 1 px. Mucha información por
   pantalla: en móvil el catálogo entero cabe sin desplazarse.

   El color de acción (--accent y derivados) es el de la tienda. Las fuentes
   son de la plantilla: Orbitron para títulos y cifras, Inter para el resto.
   ===================================================================== */

.by {
  --by-900: #050506;
  --by-850: #0a0a0c;
  --by-800: #0e0e11;
  --by-700: #16161a;
  --by-600: #2a2a31;
  --by-line: #212127;                            /* divisiones dentro de un panel */
  --by-borde: rgba(var(--accent-rgb), .5);       /* filo de paneles y tarjetas: el color de la tienda */
  --by-borde-2: rgba(var(--accent-rgb), .26);    /* el mismo, más bajo, para piezas en reposo */
  --by-txt: #f4f4f5;
  --by-mut: #a1a1aa;
  --by-dim: #6e6e79;
  --by-ok: #34d399;
  --by-star: #fbbf24;
  --by-gem: #45b4ff;
  --by-on-accent: #0b0805;

  --by-max: 1000px;
  --by-pad: clamp(10px, 3vw, 24px);
  --by-gap: clamp(13px, 3.4vw, 18px);
  --by-ease: cubic-bezier(.2, .8, .2, 1);
  --by-ctl: 34px;      /* alto de los controles de la cabecera */
  --by-ctl-w: 100px;   /* y su ancho */

  /* Fuentes de la plantilla sobre las del branding (ver «Tipografía», abajo). */
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-accent: 'Inter', system-ui, sans-serif;

  /* Las páginas compartidas (checkout, confirmación, ruleta…) leen estas. */
  --bg-black: var(--by-900);
  --bg-deep: var(--by-850);
  --bg-card: var(--by-800);
  --bg-card-2: var(--by-700);
  --text: var(--by-txt);
  --text-muted: var(--by-mut);
  --text-faded: var(--by-dim);
  --radius: 0px;

  /* Un resplandor del color de la tienda arriba; lo demás, negro plano. */
  background:
    radial-gradient(120% 340px at 50% 0, rgba(var(--accent-rgb), .13), transparent 70%) no-repeat,
    var(--by-900);
  color: var(--by-txt);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
html:has(> .by) { background: #050506; }

/* El tema clásico pinta su propio fondo y rejilla: aquí sobran. */
.by .bg-fx { display: none; }

.by :focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }

/* === Bisel ===========================================================
   Esquina superior izquierda e inferior derecha cortadas, con filo de 1 px
   que sigue el corte. Un border normal no lo sigue (clip-path se lo come),
   así que el filo es el fondo de la pieza y el relleno va en ::before, un
   píxel hacia dentro y con el mismo corte.
     --cut   tamaño del corte      --edge  color del filo (por defecto, el de la tienda)
     --fill  relleno (admite varias capas de fondo)                      */

.by-cut,
.by .checkout-card,
.by .confirm-card,
.by-pasos-resumen,
.by-pasos-jugador {
  --cut: 10px;
  --edge: var(--by-borde);
  --fill: var(--by-800);
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--edge);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.by-cut::before,
.by .checkout-card::before,
.by .confirm-card::before,
.by-pasos-resumen::before,
.by-pasos-jugador::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--fill);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

/* === Tipografía ======================================================
   Cuatro voces y ninguna más. Cada regla del resto de la hoja solo pone
   tamaño y color; la familia, el espaciado y las mayúsculas salen de aquí.
   Así dos textos del mismo tipo no pueden salir distintos.

     Título   Orbitron, mayúsculas    nombres de sección y de producto
     Cifra    Orbitron                cantidades y contadores
     Rótulo   Inter, mayúsculas       etiquetas cortas de una o dos palabras
     Texto    Inter                   todo lo demás (por defecto), precios incluidos:
                                      Orbitron es muy ancha y «MX$ 11,220.00» no cabía */

.by-brand-name,
.by-hero h1,
.by-juego-nombre,
.by-ficha-head h2,
.by-pack-nombre,
.by-resenas-head h2,
.by-top-head h2,
.by-foot-name,
.by-pasos-res-txt strong.is-nombre,
.by .checkout-card h2,
.by .confirm-card h2,
.by .ck-paso-cab h3,
.by .legal-wrap h1,
.by .legal-wrap h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.15;
  text-transform: uppercase;
}

.by-pack-qty,
.by-contador-num span,
.by-top-pos,
.by-top-total,
.by-resenas-nota strong,
.by-pasos-n,
.by-pasos-res-txt strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.by-rotulo,
.by-nav-link,
.by-ficha-sellos li,
.by-pack-tag,
.by-foot-col h4,
.by-pasos-nav a,
.by-pasos-nav button,
.by-pasos-cambiar,
.by-top-tabs button,
.by .btn,
.by .promo-btn,
.by .form-group label {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.by-rotulo { font-size: 11px; color: var(--by-dim); }
/* Los botones son rótulos con más peso. */
.by .btn { font-weight: 700; letter-spacing: .1em; }

/* Texto: lo que app.css pone en mayúsculas espaciadas y aquí se lee como frase. */
.by-accion-txt h3,
.by .ruleta-banda-txt h3,
.by .ref-banda-txt h3,
.by .metodo-card .nombre,
.by .ck-paso-cab > div > span,
.by .divisa-trigger,
.by .divisa-panel button,
.by .precio-tag,
.by .alert {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
/* El aviso informativo de app.css es amarillo sobre el color de la tienda: con
   una paleta violeta o azul era un tercer color en la pantalla. Aquí, neutro. */
.by .alert-info { border-color: var(--by-600); background: var(--by-850); color: var(--by-txt); }

/* Columna de la portada. */
.by-wrap {
  max-width: var(--by-max);
  margin: 0 auto;
  padding: var(--by-gap) var(--by-pad) 0;
  display: grid;
  gap: var(--by-gap);
}
.by-wrap > * { min-width: 0; }
/* Juegos y fichas van en su propio contenedor (#paquetes): mismo aire entre ellos. */
.by-wrap > #paquetes { display: grid; gap: var(--by-gap); }
.by-wrap > #paquetes > * { min-width: 0; }

/* === Cabecera ======================================================== */

.by-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--by-900);
  border-bottom: 1px solid var(--by-borde-2);
}
.by-header-in {
  max-width: var(--by-max);
  margin: 0 auto;
  padding: 6px var(--by-pad);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.by-brand { display: inline-flex; align-items: center; text-decoration: none; min-width: 0; }
.by-brand-logo { height: 32px; width: auto; max-width: 170px; object-fit: contain; display: block; }
.by-brand-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: var(--by-txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.by-nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 22px); }
.by-nav-link {
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  color: var(--by-mut);
}
.by-nav-link:hover { color: var(--by-txt); }
.by-nav-ref { color: var(--accent-light); }
/* Botón de la cabecera en las páginas interiores («← Volver»). */
/* «Volver» y el selector de moneda miden lo mismo: --by-ctl de alto y
   --by-ctl-w de ancho, con el mismo borde y el mismo cuerpo de letra. */
.by .by-nav .btn,
.by .by-nav .btn.btn-outline,
.by .divisa-trigger {
  width: var(--by-ctl-w);
  height: var(--by-ctl);
  justify-content: center;
  padding: 0 6px;
  border: 1px solid var(--by-600);
  background: var(--by-700);
  color: var(--by-txt);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
}
.by .by-nav .btn:hover,
.by .divisa-trigger:hover { border-color: var(--accent); background: var(--by-700); }

/* === Hero ============================================================
   Una franja baja: el titular a la izquierda y, a la derecha, una cuña del
   color de la tienda con la caja en paracaídas. Es lo único que se mueve
   solo en la portada. En móvil ocupa lo justo para que el catálogo empiece
   en la primera pantalla. */

.by-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(96px, 30%, 300px);
  align-items: stretch;
  min-height: 84px;
}
.by-hero-copy {
  align-self: center;
  min-width: 0;
  padding: 12px 6px 12px 14px;
}
.by-hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(17px, 5vw, 34px);
  line-height: 1.12;
  text-wrap: balance;
  color: #fff;
}
.by-hero-sub { display: none; margin: 8px 0 0; max-width: 46ch; font-size: 14.5px; color: var(--by-mut); }
.by-hero-rating {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
  color: var(--by-mut);
  text-decoration: none;
  font-size: 12.5px;
  white-space: nowrap;
}
.by-hero-rating strong { color: var(--by-txt); }
.by-stars { color: var(--by-star); }
.by-stars span { color: var(--by-600); }

.by-hero-art {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--accent-light), var(--accent) 50%, var(--accent-dark));
  clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
}
.by-hero-art img {
  position: absolute;
  left: 56%;
  top: 4%;
  height: 110%;
  width: auto;
  max-width: none;
  translate: -50% 0;
  transform-origin: 50% 0;
  animation: by-drop .8s var(--by-ease) both, by-sway 7s ease-in-out .8s infinite alternate;
}
@keyframes by-drop {
  from { opacity: 0; transform: translateY(-24px) rotate(-3deg); }
  to   { opacity: 1; transform: translateY(0) rotate(-1.6deg); }
}
@keyframes by-sway {
  from { transform: rotate(-1.6deg); }
  to   { transform: rotate(1.8deg); }
}

/* === Banners de la tienda ============================================ */

.by-banners-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.by-banners-track::-webkit-scrollbar { display: none; }
.by-banner { flex: 0 0 min(100%, 720px); scroll-snap-align: center; border: 1px solid var(--by-borde-2); }
.by-banner img, .by-banner a { display: block; width: 100%; }
.by-banner img { aspect-ratio: 3.4 / 1; object-fit: cover; }

/* === Juegos ==========================================================
   Pestañas con la portada en miniatura: ocupan una fila, no una pantalla. */

.by-juegos {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 6px;
}
.by-juego {
  --cut: 7px;
  --edge: var(--by-borde-2);
  --fill: var(--by-850);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 8px 4px 4px;
  color: var(--by-mut);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.by-juego img { flex: none; width: 58px; height: 38px; object-fit: cover; filter: saturate(.5) brightness(.7); }
.by-juego-nombre {
  min-width: 0;
  font-size: clamp(10px, 2.9vw, 13px);
  font-weight: 700;
  line-height: 1.15;
}
.by-juego.is-active {
  --edge: var(--accent);
  --fill: linear-gradient(rgba(var(--accent-rgb), .14), rgba(var(--accent-rgb), .14)), var(--by-850);
  color: var(--by-txt);
}
.by-juego.is-active img { filter: none; }
@media (hover: hover) {
  .by-juego:hover { --edge: rgba(var(--accent-rgb), .7); color: var(--by-txt); }
}

/* === Ficha del juego: catálogo ====================================== */

.by-ficha { padding: 0 10px 12px; }

.by-ficha-head {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  margin: 0 -8px 8px;
  padding: 8px 12px 8px 16px;
  border-bottom: 1px solid var(--by-line);
}
/* La portada del juego asoma por la derecha y se funde con la cabecera. */
.by-ficha-head::after {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  z-index: -1;
  background: var(--portada) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 75%);
          mask-image: linear-gradient(90deg, transparent, #000 75%);
  opacity: .55;
}
.by-ficha-head h2 {
  margin: 0;
  font-size: clamp(13px, 3.6vw, 17px);
  font-weight: 700;
  line-height: 1.1;
}
.by-ficha-head .by-rotulo { color: #fff; text-shadow: 0 0 8px #000, 0 0 2px #000; text-align: right; }

/* Tres por fila en móvil. La rejilla es de seis columnas para poder repartir la
   última fila: si queda un paquete suelto ocupa todo el ancho, y si quedan
   dos, medio cada uno. Así el catálogo nunca termina con huecos. */
.by-packs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}
.by-pack { grid-column: span 2; }
.by-pack:nth-last-child(2):nth-child(3n+1),
.by-pack:last-child:nth-child(3n+2) { grid-column: span 3; }
.by-pack:last-child:nth-child(3n+1) {
  grid-column: 1 / -1;
  flex-direction: row;
  justify-content: center;
  gap: 4px 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 10px;
}
.by-pack:last-child:nth-child(3n+1) .by-pack-precio { margin: 0; padding: 0; font-size: 15px; }
/* En la fila suelta la imagen va a la izquierda: el resplandor, al centro de la tarjeta. */
.by-pack:last-child:nth-child(3n+1)::after { top: 50%; width: 52%; }
/* La tarjeta no es un negro plano: lleva un velo del color de la tienda, más
   cargado arriba y abajo, y el filo teñido del mismo color. */
.by-pack {
  --cut: 8px;
  --edge: rgba(var(--accent-rgb), .42);
  --fill: linear-gradient(180deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .03) 48%, rgba(var(--accent-rgb), .2)), var(--by-850);
  --foco: 36px;   /* altura del centro de la imagen: ahí va el resplandor */
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 6px 3px 8px;
  text-align: center;
  text-decoration: none;
  color: var(--by-txt);
}
.by-pack img {
  /* Caja apaisada: las imágenes vienen recortadas a su contenido, así una fila
     de gemas ocupa el ancho y un cofre, que es más alto, ocupa el alto. */
  width: 88px;
  max-width: 100%;
  height: 60px;
  object-fit: contain;
  /* Halo del color de la tienda pegado a las gemas y una sombra que las despega del fondo. */
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .7)) drop-shadow(0 5px 7px rgba(0, 0, 0, .5));
  transition: scale .25s var(--by-ease);
}
/* Resplandor detrás del botín, del color de la tienda. Late despacio y cada
   paquete va a su ritmo (--i lo pone la portada), así la rejilla respira sin
   que nada parpadee a la vez. Solo se animan opacidad y escala. */
.by-pack::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: var(--foco);
  width: 118%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .6), rgba(var(--accent-rgb), .16) 46%, transparent 72%);
  pointer-events: none;
  animation: by-latido 3.4s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -0.41s);
}
@keyframes by-latido {
  from { opacity: .5; scale: .88; }
  to   { opacity: 1; scale: 1.06; }
}
.by-pack-qty {
  font-size: clamp(14px, 3.9vw, 19px);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
/* La unidad («diamantes») no se pinta: la imagen ya lo dice y repetirla en cada
   paquete llenaba la rejilla de texto. Se queda para los lectores de pantalla. */
.by-pack-unit { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.by-pack-nombre {
  padding: 0 2px;
  font-size: clamp(10.5px, 2.9vw, 13px);
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: break-word;
}
.by-pack-precio {
  margin-top: auto;
  padding-top: 4px;
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-light);
  /* Más claro que el acento: sobre el velo de color de la tarjeta, el acento solo se leía justo. */
  color: color-mix(in srgb, var(--accent-light) 55%, #fff);
  white-space: nowrap;
}
.by-pack.is-popular {
  --edge: var(--accent);
  --fill: linear-gradient(180deg, rgba(var(--accent-rgb), .34), rgba(var(--accent-rgb), .12) 48%, rgba(var(--accent-rgb), .38)), var(--by-850);
}
.by-pack-tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 5px 1px 6px;
  background: var(--accent);
  color: var(--by-on-accent);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
}
@media (hover: hover) {
  .by-pack:hover { --edge: var(--accent); }
  .by-pack:hover::after { animation-play-state: paused; opacity: 1; scale: 1.12; }
  .by-pack:hover img { scale: 1.1; }
}
.by-pack:active { --edge: var(--accent-light); }

.by-ficha-sellos {
  list-style: none;
  margin: 13px 0 0;
  padding: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--by-line);
}
.by-ficha-sellos li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: clamp(10px, 2.7vw, 11.5px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--by-mut);
}
.by-ficha-sellos li + li { border-left: 1px solid var(--by-line); }
.by-ficha-sellos svg { width: 14px; height: 14px; flex: none; color: var(--accent-light); }

/* Métodos de pago de la tienda: una cinta que pasa sola, sin rótulo. La lista
   va dos veces y la cinta se desplaza exactamente una; los bordes se funden
   para que las fichas entren y salgan sin corte. Se para al tocarla. */
.by-metodos {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--by-line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.by-metodos-cinta {
  display: flex;
  width: max-content;
  animation: by-cinta calc(var(--n, 8) * 2.6s) linear infinite;
}
.by-metodos:hover .by-metodos-cinta,
.by-metodos:active .by-metodos-cinta { animation-play-state: paused; }
.by-metodos ul {
  list-style: none;
  margin: 0;
  padding: 0 7px 0 0;
  flex: none;
  display: flex;
  gap: 7px;
}
.by-metodos li {
  flex: none;
  padding: 5px 11px;
  border: 1px solid var(--by-600);
  background: var(--by-850);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
@keyframes by-cinta {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  /* Sin movimiento: una fila que se puede arrastrar, y solo la lista original. */
  .by-metodos { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .by-metodos-cinta { animation: none; }
  .by-metodos ul[aria-hidden] { display: none; }
}

/* === Top compradores =================================================
   Podio de quien más ha recargado, por periodo. Los tres primeros llevan
   su metal en la barra de la izquierda. */

.by-top { padding: 13px; }
.by-top-head { display: flex; align-items: center; gap: 8px; margin: 0 0 11px 4px; color: var(--accent-light); }
.by-top-head svg { width: 17px; height: 17px; flex: none; }
.by-top-head h2 { margin: 0; font-size: clamp(12px, 3.3vw, 15px); color: var(--by-txt); }

.by-top-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-bottom: 10px; }
.by-top-tabs button {
  min-width: 0;
  padding: 8px 2px;
  border: 1px solid var(--by-600);
  background: var(--by-850);
  color: var(--by-dim);
  font-size: 11px;
  cursor: pointer;
}
.by-top-tabs button.is-active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), .16);
  color: var(--accent-light);
}
@media (hover: hover) {
  .by-top-tabs button:hover { color: var(--by-txt); border-color: rgba(var(--accent-rgb), .6); }
}

.by-top-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; transition: opacity .15s ease; }
.by-top.is-cargando .by-top-lista { opacity: .35; }
.by-top-lista li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px 0 8px;
  border-left: 3px solid var(--by-600);
  background: var(--by-850);
}
.by-top-lista li:nth-child(1) { border-left-color: #f5b90b; }
.by-top-lista li:nth-child(2) { border-left-color: #c3cad6; }
.by-top-lista li:nth-child(3) { border-left-color: #cd7f43; }
.by-top-pos { font-size: 13px; text-align: center; color: var(--by-mut); }
.by-top-lista li:nth-child(1) .by-top-pos { color: #f5b90b; }
.by-top-lista li:nth-child(2) .by-top-pos { color: #c3cad6; }
.by-top-lista li:nth-child(3) .by-top-pos { color: #cd7f43; }
.by-top-nombre { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-top-total { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--accent-light); }
/* El diamante, dibujado: un cuadrado girado. */
.by-top-total::after { content: ''; width: 7px; height: 7px; background: var(--by-gem); rotate: 45deg; }
.by-top-vacio { margin: 0; padding: 14px 8px; font-size: 13px; color: var(--by-mut); text-align: center; }

/* === Contador y soporte ============================================== */

.by-apoyo-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 6px 12px;
}
.by-apoyo-fila + .by-apoyo-fila { border-top: 1px solid var(--by-line); }
.by-contador-num { display: inline-flex; gap: 2px; font-variant-numeric: tabular-nums; }
.by-contador-num span {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 24px;
  background: var(--by-700);
  border: 1px solid var(--by-600);
  font-size: 12px;
  font-weight: 700;
}
.by-contador-num .is-punto { min-width: 0; border: 0; background: none; color: var(--by-dim); }

/* === Página de la ruleta =============================================
   Las formas de app.css son redondeadas; aquí todo es recto, como el resto. */
.by .ruleta-card,
.by .ruleta-estado,
.by .ruleta-premios li { border-radius: 0; }
.by .ruleta-card { border-color: var(--by-borde); }
.by .ruleta-card h2 { font-family: 'Orbitron', sans-serif; }

/* === Soporte, ruleta y referidos =====================================
   Tres filas iguales: icono, título con una línea debajo y botón. La de
   soporte es de la plantilla; las otras dos son los partials comunes
   (.ruleta-banda y .ref-banda de app.css), que aquí toman la misma forma.
   Las tres miden lo mismo de alto y sus botones, lo mismo de ancho. */

.by-bandas { display: grid; grid-auto-rows: 1fr; gap: 6px; }
.by-bandas:not(:has(*)) { display: none; }
.by-accion,
.by .ruleta-banda,
.by .ref-banda {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 128px;
  align-items: center;
  gap: 8px;
  margin: 0;
  max-width: none;
  padding: 10px;
  border: 1px solid var(--by-borde);
  border-radius: 0;
  background: var(--by-800);
  text-align: left;
}
.by .ruleta-banda::before,
.by .ref-banda::before { display: none; }

.by-accion-ico,
.by .ruleta-banda-rueda,
.by .ref-banda-ico { width: 32px; height: 32px; color: var(--accent-light); }
.by-accion-ico svg { width: 100%; height: 100%; display: block; }
/* La rueda de la ruleta viene del partial común, pintada con el acento base,
   medio transparente y con los sectores rellenos en gris: al lado de los otros
   dos iconos se veía más oscura. Aquí se dibuja como ellos, en trazo y con el
   mismo color: aro, eje, aguja y el sector del premio. */
.by .ruleta-banda-rueda svg { height: 100%; }
.by .ruleta-banda-rueda .rb-aro { stroke: currentColor; stroke-width: 7; opacity: 1; }
.by .ruleta-banda-rueda .rb-eje { fill: var(--by-800); stroke: currentColor; stroke-width: 6; }
.by .ruleta-banda-rueda .rb-aguja { fill: currentColor; }
.by .ruleta-banda-rueda .rb-gema { display: none; }
.by .ruleta-banda-rueda path[fill="var(--bg-card-2)"] { fill: none; }
.by .ruleta-banda-rueda path[fill="var(--accent)"] { fill: currentColor; fill-opacity: .55; }

.by-accion-txt, .by .ruleta-banda-txt, .by .ref-banda-txt { min-width: 0; }
.by-accion-txt h3,
.by .ruleta-banda-txt h3,
.by .ref-banda-txt h3 { margin: 0 0 2px; font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--by-txt); }
.by-accion-txt p,
.by .ruleta-banda-txt p,
.by .ref-banda-txt p { margin: 0; font-size: 12.5px; line-height: 1.3; color: var(--by-mut); }

.by-bandas .btn {
  width: 100%;
  justify-content: center;
  padding: 11px 6px;
  /* «Probar suerte» es el texto más largo de los tres y manda: el botón mide
     lo justo para que le queden 8 px de aire a cada lado. */
  font-size: 10.5px;
  letter-spacing: .03em;
  white-space: nowrap;
}

/* === Reseñas ========================================================= */

.by-resenas { padding: 13px; }
.by-resenas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 8px;
  padding-left: 6px;
}
.by-resenas-head h2 {
  margin: 0;
  font-size: clamp(12px, 3.3vw, 15px);
  font-weight: 700;
}
.by-resenas-nota { display: inline-flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--by-dim); }
.by-resenas-nota strong { font-size: 14px; color: var(--by-star); }

.by-resenas-carril { display: flex; align-items: center; gap: 8px; }
.by-flecha {
  display: none;
  flex: none;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--by-600);
  background: var(--by-700);
  color: var(--by-txt);
  cursor: pointer;
}
.by-flecha svg { width: 15px; height: 15px; }
.by-flecha:hover { border-color: var(--accent); }

.by-reviews {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.by-reviews::-webkit-scrollbar { display: none; }
.by-review {
  --cut: 8px;
  --edge: var(--by-borde-2);
  --fill: var(--by-850);
  flex: 0 0 min(84%, 290px);
  scroll-snap-align: start;
  margin: 0;
  padding: 9px 11px;
}
.by-review figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 8px;
  margin-bottom: 5px;
  font-size: 13px;
}
.by-review figcaption strong { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-review figcaption time { grid-column: 2; text-align: right; font-size: 11.5px; color: var(--by-dim); }
.by-review blockquote { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--by-txt); }

/* === Pie ============================================================= */

.by-foot {
  margin-top: clamp(18px, 4vw, 40px);
  padding: clamp(18px, 4vw, 36px) var(--by-pad) 0;
  background: #030304;
  border-top: 1px solid var(--by-borde-2);
}
.by-foot-in {
  max-width: calc(var(--by-max) - var(--by-pad) * 2);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
}
.by-foot-brand { grid-column: 1 / -1; }
.by-foot-name {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: var(--by-txt);
}
.by-foot-brand p { margin: 0 0 6px; max-width: 46ch; color: var(--by-mut); font-size: 13px; }
.by-foot-legal { color: var(--by-dim); font-size: 12px; }
.by-foot-col h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-light);
}
.by-foot-col ul { list-style: none; margin: 0; padding: 0; }
.by-foot-col li { margin-bottom: 7px; }
.by-foot-col a { color: var(--by-mut); text-decoration: none; font-size: 13px; overflow-wrap: anywhere; }
.by-foot-col a:hover { color: var(--by-txt); text-decoration: underline; }

/* Botón de instalar: oculto hasta que el navegador confirma que puede. */
.by-instalar-li { display: none; }
.pwa-instalable .by-instalar-li { display: list-item; }
.by-instalar { padding: 0; border: 0; background: none; color: var(--accent-light); font: inherit; font-size: 13px; cursor: pointer; }
.by-instalar:hover { text-decoration: underline; }

.by-foot-bottom {
  max-width: calc(var(--by-max) - var(--by-pad) * 2);
  margin: 16px auto 0;
  padding: 12px 0 76px; /* aire para el botón flotante */
  border-top: 1px solid var(--by-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11.5px;
  color: var(--by-dim);
}
.by .idioma-menu a { border-radius: 0; }

/* === Aviso de compra reciente ======================================== */

.by-toast {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 84px;
  z-index: 60;
  /* En móvil no flota: tapaba el catálogo. La portada lo lleva en línea. */
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 32px 8px 10px;
  border: 1px solid var(--by-600);
  background: var(--by-700);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6);
  color: var(--by-txt);
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s var(--by-ease);
}
.by-toast.is-on { opacity: 1; transform: none; }
.by-toast-img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.by-toast-txt { min-width: 0; }
.by-toast-txt strong { display: block; }
.by-toast-txt span { color: var(--by-mut); }
.by-toast-x {
  position: absolute;
  top: 2px;
  right: 4px;
  border: 0;
  background: transparent;
  color: var(--by-dim);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
}
.by-toast-x:hover { color: var(--by-txt); }

/* === Componentes compartidos (checkout, confirmación, legales) =======
   Usan las clases de app.css; aquí se les quita el redondeo y se les pone
   el filo de la plantilla. */

.by .checkout-wrap { max-width: 620px; margin: 0 auto; padding: var(--by-gap) var(--by-pad); }
.by .checkout-card { display: block; padding: clamp(10px, 3vw, 18px); }
.by .confirm-card { padding: 24px 18px; }
.by .checkout-card h2,
.by .confirm-card h2 {
  font-weight: 700;
  font-size: clamp(15px, 4.2vw, 20px);
  line-height: 1.15;
}
.by .form-control {
  border-radius: 0;
  border: 1px solid var(--by-600);
  background: var(--by-900);
  color: var(--by-txt);
}
.by .form-control:focus,
.by .form-control.campo-accion:focus-within {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
/* El anillo de foco lo pinta la caja del campo, no el input de dentro. */
.by .campo-accion-input:focus-visible, .by .promo-input:focus-visible { outline: none; }
/* 16px o más: por debajo, iOS amplía la página al enfocar el campo. */
.by .campo-accion-input, .by .form-control, .by .promo-input { font-size: 16px; }
.by .form-group { margin-bottom: 10px; }
.by .form-group label {
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--by-mut);
}
.by .btn {
  border-radius: 0;
  background: var(--accent);
  color: var(--by-on-accent);
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.by .btn:hover { box-shadow: none; transform: none; background: var(--accent-light); }
.by .btn.btn-lg { padding: 14px 20px; font-size: 14px; }
/* El de contorno no lleva bisel: el corte se comería su borde. */
.by .btn.btn-outline { clip-path: none; background: transparent; color: var(--by-txt); border: 1px solid var(--by-600); }
.by .btn.btn-outline:hover { background: var(--by-700); border-color: var(--accent); }
.by .promo-ticket { border-radius: 0; padding: 4px 4px 4px 12px; }
.by .promo-btn { border-radius: 0; padding: 8px 10px; font-size: 11px; }
.by .alert { border-radius: 0; margin: 8px 0; padding: 9px 12px; font-size: 13.5px; }
.by .metodos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.by .metodo-card { border-width: 1px; border-color: var(--by-600); border-radius: 0; background: var(--by-850); }
.by .metodo-card.active { border-color: var(--accent); background: rgba(var(--accent-rgb), .12); }
.by .metodo-card.active::after { top: 0; right: 0; width: 10px; height: 10px; border-radius: 0; box-shadow: none; background: var(--accent); }
.by .metodo-card .nombre { font-size: 11px; font-weight: 600; line-height: 1.2; padding: 16px 3px 5px; white-space: normal; overflow-wrap: anywhere; }
.by .metodo-card .icon svg { width: 28px; height: 28px; }
.by .precio-tag { border-radius: 0; font-weight: 700; color: var(--accent-light); }
.by .legal-wrap h1, .by .legal-wrap h2 { font-weight: 700; }
.by .ck-paso-cab h3 { font-size: 14px; font-weight: 700; }
.by .ck-paso-cab > div > span { font-size: 13px; color: var(--by-mut); }
.by .ck-paso-cab .ck-paso-n { border-radius: 0; box-shadow: none; color: var(--by-on-accent); }
.by .ck-datos-sub, .by .aviso-usd { margin: 10px 0 8px; font-size: 12.5px; line-height: 1.35; color: var(--by-mut); }
.by .ck-pagar { margin-top: 12px; }
/* Las cajas de las demás páginas (referidos, confirmación, cuentas): rectas también. */
.by :is(.ref-card, .ref-paso, .ref-aviso, .ref-kpi, .ref-kpis li, .ref-ticket, .ref-hist-ico, .ref-estado,
        .ref-avatar, .ref-btn-wa, .pin-display, .pedido-espera, .resena-cta, .card, .cuenta-card, .saldo-ref) { border-radius: 0; }

/* === Checkout por pasos (checkout_pasos.php) ==========================
   El formulario es el de checkout.php; aquí solo se decide qué sección se
   ve en cada paso. Sin la clase .by-pasos (sin JS) sale entero. */

/* El título y el precio de siempre los sustituye el resumen del paquete. */
.by-pasos > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* El nombre del juego que checkout.php pone bajo el título ya va en el resumen. */
.by-pasos > h2 + div:not([class]) { display: none; }

.by-pasos[data-paso="id"] #checkout-form > .ck-paso ~ .ck-paso,
.by-pasos[data-paso="id"] #checkout-form > .by-pasos-jugador,
.by-pasos[data-paso="pago"] #checkout-form > .ck-paso:first-of-type { display: none; }

/* Indicador: hexágonos unidos por una línea; hecho, actual y por hacer. */
.by-pasos-nav {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.by-pasos-nav li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.by-pasos-nav li + li::before {
  content: '';
  flex: none;
  width: clamp(12px, 5vw, 34px);
  height: 1px;
  background: var(--by-600);
}
.by-pasos-nav li.is-hecho + li::before { background: var(--accent); }
.by-pasos-nav a,
.by-pasos-nav button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--by-dim);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.by-pasos-n {
  --edge: var(--by-600);
  --fill: var(--by-800);
  position: relative;
  isolation: isolate;
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 27px;
  background: var(--edge);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.by-pasos-n::before {
  content: '';
  position: absolute;
  inset: 2px;
  z-index: -1;
  background: var(--fill);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}
.by-pasos-n svg { display: none; width: 14px; height: 14px; }
.by-pasos-nav .is-hecho .by-pasos-n { --edge: var(--accent); --fill: var(--accent); color: var(--by-on-accent); }
.by-pasos-nav .is-hecho .by-pasos-n svg { display: block; }
.by-pasos-nav .is-hecho .by-pasos-n > span { display: none; }
.by-pasos-nav .is-actual .by-pasos-n { --edge: var(--accent); color: var(--accent-light); }
.by-pasos-nav .is-actual a,
.by-pasos-nav .is-actual button { color: var(--by-txt); cursor: default; }
/* En móvil solo lleva nombre el paso en el que se está. */
.by-pasos-nav li:not(.is-actual) .by-pasos-txt { display: none; }

/* Resumen del paquete: siempre a la vista, con flechas para cambiarlo. */
.by-pasos-resumen {
  --cut: 8px;
  --edge: var(--by-borde-2);
  --fill: var(--by-850);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px;
}
.by-pasos-resumen img { flex: none; width: 66px; height: 50px; object-fit: contain; }
.by-pasos-res-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.by-pasos-res-txt strong { font-size: 17px; font-weight: 700; line-height: 1.1; }
.by-pasos-res-txt strong.is-nombre { font-size: 13px; line-height: 1.15; }
.by-pasos-res-txt span { font-size: 12px; color: var(--by-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-pasos-precio { flex: none; }
.by .by-pasos-precio .precio-tag {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font-size: clamp(14px, 4vw, 18px);
  white-space: nowrap;
}
.by-pasos-flecha {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 40px;
  border: 1px solid var(--by-600);
  background: var(--by-700);
  color: var(--by-txt);
}
.by-pasos-flecha svg { width: 15px; height: 15px; }
.by-pasos-flecha:hover { border-color: var(--accent); }
.by-pasos-flecha.is-off { visibility: hidden; }

/* Paso «Pago»: a quién le llega la recarga. */
.by-pasos-jugador {
  --cut: 8px;
  --edge: rgba(52, 211, 153, .5);
  --fill: linear-gradient(rgba(52, 211, 153, .08), rgba(52, 211, 153, .08)), var(--by-850);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 7px 12px;
}
.by-pasos-jug-txt { display: flex; flex-direction: column; min-width: 0; }
.by-pasos-jug-txt small { font-size: 12px; color: var(--by-mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-pasos-jug-txt strong { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.by-pasos-cambiar {
  flex: none;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.by-pasos-cambiar:hover { text-decoration: underline; }
.by .by-pasos-seguir { margin-top: 10px; }

/* Cuentas guardadas en este navegador, encima del campo del ID. */
.by-cuentas { display: grid; gap: 5px; margin-bottom: 12px; }
.by-cuentas .by-rotulo { margin-bottom: 1px; }
.by-cuenta { display: flex; border: 1px solid var(--by-borde-2); background: var(--by-850); }
.by-cuenta-usar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 7px 12px;
  border: 0;
  background: none;
  color: var(--by-txt);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.by-cuenta-usar strong { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-cuenta-usar small { font-size: 12px; color: var(--by-mut); }
.by-cuenta-x {
  flex: none;
  width: 42px;
  border: 0;
  border-left: 1px solid var(--by-line);
  background: none;
  color: var(--by-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.by-cuenta-x:hover { color: var(--by-txt); }
@media (hover: hover) {
  .by-cuenta:hover { border-color: var(--accent); }
}

/* Las secciones pierden su número (ya lo lleva el indicador) y su raya. */
.by-pasos .ck-paso { padding: 0 0 2px; border-top: 0; }
.by-pasos .ck-paso + .ck-paso { margin-top: 12px; }
.by-pasos .ck-paso-cab { margin-bottom: 8px; }
.by-pasos .ck-paso-n { display: none; }
/* El código promo se explica solo: su sección no necesita título en el paso del pago. */
.by-pasos #promo-ticket { margin-top: 0; }
.by-pasos .ck-paso:has(#promo-ticket) .ck-paso-cab { display: none; }

/* === Flotantes =======================================================
   El selector de divisa sube a la cabecera: abajo a la derecha tapaba el
   catálogo. Sigue siendo el de divisa.js, solo cambia de sitio y de talla. */

.by .divisa-menu { top: 8px; bottom: auto; right: var(--by-pad); z-index: 55; }
/* Tamaño, borde y letra: los de los controles de la cabecera (ver «Cabecera»). */
.by .divisa-trigger {
  gap: 6px;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.by .divisa-actual { gap: 7px; }
.by .divisa-trigger .divisa-flag { width: 21px; height: 14px; }
.by .divisa-chevron { width: 14px; height: 14px; }
/* Abre hacia abajo, que ahora cuelga de arriba. */
.by .divisa-panel { top: calc(100% + 5px); bottom: auto; max-height: min(70vh, 420px); border-radius: 0; background: var(--by-700); border-color: var(--by-600); }
.by .divisa-panel button.active { background: var(--accent); color: var(--by-on-accent); }
/* Hueco en la cabecera para el selector, solo si la tienda tiene más de una moneda. */
.by:has(.divisa-menu) .by-header-in { padding-right: calc(var(--by-pad) + var(--by-ctl-w) + 6px); }
.by .wa-float { border-radius: 0; }

/* === De tableta en adelante ========================================== */

@media (min-width: 640px) {
  .by-hero { min-height: 150px; }
  .by-hero-copy { padding: 22px 12px 22px 26px; }
  .by-hero-sub { display: block; }
  .by-hero-rating { margin-top: 10px; font-size: 13.5px; }
  .by-juegos { grid-auto-columns: minmax(0, 260px); justify-content: start; gap: 8px; }
  .by-juego img { width: 76px; height: 48px; }
  .by-ficha { padding: 0 14px 14px; }
  .by-ficha-head { min-height: 54px; margin: 0 -14px 14px; padding: 10px 18px 10px 22px; }
  .by-packs { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  /* Con cinco por fila no se reparte la última: cada paquete, su columna. */
  .by-pack,
  .by-pack:nth-last-child(2):nth-child(3n+1),
  .by-pack:last-child:nth-child(3n+2),
  .by-pack:last-child:nth-child(3n+1) { grid-column: auto; flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .by-pack:last-child:nth-child(3n+1) .by-pack-precio { margin-top: auto; padding-top: 5px; font-size: 15px; }
  .by-pack, .by-pack:last-child:nth-child(3n+1) { --cut: 10px; --foco: 58px; padding: 10px 6px 12px; }
  .by-pack:last-child:nth-child(3n+1)::after { top: var(--foco); width: 118%; }
  .by-pack img { width: 136px; height: 96px; filter: drop-shadow(0 0 9px rgba(var(--accent-rgb), .7)) drop-shadow(0 7px 10px rgba(0, 0, 0, .5)); }
  .by-pack-tag { font-size: 10px; padding: 3px 8px 2px 9px; }
  .by-ficha-sellos { margin-top: 14px; padding-top: 12px; }
  .by-metodos { margin-top: 14px; padding-top: 14px; }
  .by-apoyo-fila { padding: 8px 18px; }
  .by-accion, .by .ruleta-banda, .by .ref-banda { grid-template-columns: 40px minmax(0, 1fr) 150px; gap: 14px; padding: 12px 16px; }
  .by-accion-ico, .by .ruleta-banda-rueda, .by .ref-banda-ico { width: 40px; height: 40px; }
  .by-bandas .btn { font-size: 12.5px; letter-spacing: .1em; }
  .by-resenas { padding: 14px; }
  .by-top { padding: 14px; }
  .by-top-lista li { min-height: 38px; padding: 0 16px 0 10px; gap: 12px; }
  .by-flecha { display: grid; }
  .by-review { flex-basis: calc((100% - 12px) / 3); padding: 11px 13px; }
  .by-foot-in { grid-template-columns: 1.6fr 1fr 1fr; gap: 30px; }
  .by-foot-brand { grid-column: auto; }
  .by-toast { display: flex; left: auto; right: 18px; bottom: 18px; max-width: 320px; }
  .by-pasos-nav li:not(.is-actual) .by-pasos-txt { display: inline; }
  .by-pasos-resumen { padding: 8px 10px; gap: 12px; }
  .by-pasos-resumen img { width: 84px; height: 64px; }
}

@media (min-width: 1060px) {
  /* En pantallas anchas el selector se alinea con el borde de la columna, no con el de la ventana. */
  .by .divisa-menu { right: calc((100vw - var(--by-max)) / 2 + var(--by-pad)); }
}

@media (max-width: 639px) {
  .by .wa-float { left: 10px; bottom: 10px; padding: 10px; box-shadow: 0 6px 16px rgba(0, 0, 0, .5); }
  .by-nav-link:not(.by-nav-ref) { display: none; }
  .by-nav-ref { font-size: 10.5px; }
}

@media (max-width: 480px) {
  /* Con el selector de moneda arriba no caben un logo, el enlace y el selector. */
  .by-brand-logo { max-width: 124px; }
  .by:has(.divisa-menu):has(.by-brand-logo) .by-nav-ref { display: none; }
}

@media (max-width: 370px) {
  .by:has(.divisa-menu) .by-nav-ref { display: none; }
  /* En el checkout por pasos ya se vuelve con el indicador: el botón sobra aquí. */
  .by:has(.by-pasos) .by-nav .btn { display: none; }
  .by-pack { --foco: 31px; }
  .by-pack img { width: 74px; height: 50px; }
  /* En pesos, «MX$ 5,610.00» no cabía a 13 px en un tercio de un móvil de 320. */
  .by-pack-precio { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .by-hero-art img { animation: none; transform: rotate(-1.6deg); }
  .by *, .by *::before, .by *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
