/* Web pública de bsBro. Colores de la app (theme/themes.js): oscuro cálido con dorado; claro con coral. */
:root {
  --bg: #fffaf5; --card: #f4efe8; --text: #333; --muted: #666; --linea: #e8e3dd;
  --acento: #dd5a50; --acento-txt: #fff; --sube: #2a7d38; --baja: #e55a53;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #110f0e; --card: #1e1c1a; --text: #fff; --muted: #9c948b; --linea: #4a453f; --acento: #f5a623; --acento-txt: #110f0e; --sube: #4faa60; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--acento); }
img { max-width: 100%; }
main { max-width: 1440px; margin: 0 auto; padding: 8px 32px 40px; }
h1 { font-size: 2.3rem; line-height: 1.2; margin: 12px 0 4px; }
h2 { font-size: 1.5rem; margin: 32px 0 10px; }
h2 small { color: var(--muted); font-weight: normal; font-size: .8em; }

.cabecera { display: flex; align-items: center; gap: 24px; padding: 14px 32px; border-bottom: 1px solid var(--linea); flex-wrap: wrap; }
.logo img { display: block; height: 52px; width: auto; }
.menu { display: flex; gap: 6px 22px; flex-wrap: wrap; flex: 1; }
.menu a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.menu a:hover, .menu a.activo { color: var(--acento); }
.boton { display: inline-block; background: var(--acento); color: var(--acento-txt); padding: 10px 18px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.boton-2 { background: transparent; color: var(--acento); border: 1px solid var(--acento); }
.boton-peq { padding: 6px 12px; font-size: .9rem; }

.migas { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.migas a { color: var(--muted); }
.actualizado, .nota { color: var(--muted); font-size: .9rem; }
.entrada { font-size: 1.1rem; }

.tiers { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.tier { display: flex; background: var(--card); border-radius: 12px; overflow: hidden; }
.tier-letra { width: 72px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.7rem; color: #111; }
.tier-brawlers { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; }
.br { display: flex; flex-direction: column; align-items: center; width: 92px; text-decoration: none; color: var(--text); font-size: .8rem; text-align: center; line-height: 1.2; }
.br img { width: 76px; height: 76px; object-fit: contain; }
.t-s { background: #ff7f7f; } .t-ap { background: #ffaf7f; } .t-a { background: #ffbf7f; } .t-am { background: #ffdf7f; }
.t-bp { background: #dfff7f; } .t-b { background: #bfff7f; } .t-bm { background: #9fef9f; } .t-c { background: #7fbfff; } .t-d { background: #bf7fbf; }
small[class^="t-"], b[class^="t-"] { color: #111; padding: 0 6px; border-radius: 6px; }

.rejilla { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.rejilla a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card); border-radius: 10px; text-decoration: none; color: var(--text); }
.rejilla a:hover { color: var(--acento); }
.rejilla.grande a { padding: 12px; font-weight: 600; }
.rejilla-br { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.rejilla-br a { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; background: var(--card); border-radius: 12px; text-decoration: none; color: var(--text); font-size: .95rem; text-align: center; }
.rejilla-br small { margin-top: 4px; font-weight: 700; }

.lista-br { list-style: none; padding: 0; margin: 0; }
.lista-br li { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--linea); }
.lista-br img { width: 44px; height: 44px; object-fit: contain; }
.rejilla img { width: 36px; height: 36px; object-fit: contain; }
.rejilla.grande img { width: 52px; height: 52px; }
.rejilla-br img { width: 88px; height: 88px; object-fit: contain; }
.ficha > img:not(.mapa) { width: 160px; height: 160px; object-fit: contain; }
.ficha .mapa { width: 300px; }
.lista-br .dato { margin-left: auto; color: var(--muted); font-size: .9rem; }
.tres { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }

.ficha { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.ficha .mapa { border-radius: 12px; }
.cajas { display: flex; gap: 10px; flex-wrap: wrap; }
.caja { background: var(--card); border-radius: 14px; padding: 14px 22px; min-width: 150px; text-align: center; }
.caja span { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; }
.caja b { font-size: 1.9rem; }

table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--linea); vertical-align: top; }
th { color: var(--muted); font-size: .8rem; text-transform: uppercase; }
.sube { color: var(--sube); } .baja { color: var(--baja); }
.cambios { padding-left: 20px; }

.funciones { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.funciones a { display: block; height: 100%; padding: 20px; background: var(--card); border-radius: 12px; text-decoration: none; color: var(--text); }
.funciones b { display: block; color: var(--acento); font-size: 1.25rem; margin-bottom: 4px; }

.faq details { background: var(--card); border-radius: 10px; padding: 10px 14px; margin-bottom: 6px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 6px 0 0; }

.cta { margin-top: 40px; padding: 18px; border: 1px solid var(--acento); border-radius: 14px; text-align: center; }
.cta-botones { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pie { border-top: 1px solid var(--linea); padding: 20px 32px; text-align: center; color: var(--muted); font-size: .85rem; }
.pie a { color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  main { padding: 8px 16px 32px; }
  .cabecera { padding: 10px 16px; gap: 12px; }
  .logo img { height: 40px; }
  .br { width: 72px; } .br img { width: 58px; height: 58px; }
  .tier-letra { width: 52px; font-size: 1.3rem; }
  .ficha .mapa { width: 100%; }
  h1 { font-size: 1.6rem; }
  .menu { order: 3; flex-basis: 100%; }
  .cabecera .boton-peq { margin-left: auto; }
  table { font-size: .85rem; }
  th, td { padding: 5px 4px; }
}
