/* =========================================================
   BEATNOVA · Web 2 PRO (24-11) - portal
   Se carga despues de bn.css.
   ========================================================= */
.bn-ico { width: 20px; height: 20px; flex: none; }
.bn-user__menu .bn-ico { width: 18px; height: 18px; color: var(--mute); }
.bn-nav a { padding: 8px 12px; font-size: .93rem; }
@media (max-width: 1180px) { .bn-nav a { padding: 8px 9px; font-size: .88rem; } }

/* portada */
.px-hero { position: relative; overflow: hidden; padding: 34px 0 60px; }
.px-hero__in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 34px; align-items: center; }
.px-hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); margin-bottom: 14px; }
.px-hero__lead { font-size: 1.12rem; color: var(--mute); max-width: 540px; margin-bottom: 24px; }
.px-hero__lead b { color: var(--yellow); font-weight: 700; }
.px-stage { position: relative; aspect-ratio: 1 / 1; max-height: 620px; width: 100%; }
.px-stage .bn-stage { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; border-radius: 34px; }
.px-flota { position: absolute; z-index: 3; pointer-events: none; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .55)); animation: bnFloat 3.4s ease-in-out infinite; }
.px-flota--wow { width: 42%; left: -6%; top: 8%; }
.px-flota--combo { width: 30%; right: -4%; top: 30%; animation-delay: -1.2s; }
.px-flota--cool { width: 34%; right: 4%; bottom: 6%; animation-delay: -2.1s; }
.px-acceso { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 560px; }
.px-login { padding: 18px; border-radius: 20px; background: rgba(20, 16, 56, .75); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.px-login h3 { font-size: 1.05rem; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.px-login .bn-input { min-height: 42px; margin-bottom: 8px; }
.px-login__pie { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .82rem; color: var(--mute); margin-top: 4px; }
.px-login__pie a { color: var(--cyan); }
.px-juega { padding: 18px; border-radius: 20px; background: linear-gradient(140deg, rgba(255, 79, 216, .25), rgba(34, 211, 238, .18)); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.px-juega h3 { margin: 0; font-size: 1.25rem; }
.px-juega p { margin: 0; color: var(--mute); font-size: .92rem; }
.px-juega .bn-btn { margin-top: auto; }

/* bloques del portal */
.px-bloque { padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.px-bloque__cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.px-bloque__cab h2 { font-size: 1.45rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.px-bloque__cab h2 .bn-ico { width: 26px; height: 26px; color: var(--pink); }
.px-mas { color: var(--cyan); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; }
.px-mas .bn-ico { width: 16px; height: 16px; }
.px-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.px-tab { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--mute); font-weight: 700; font-size: .84rem; cursor: pointer; }
.px-tab.is-on { background: var(--card-2); color: var(--text); border-color: var(--line-2); }
.px-portal { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }

/* avisos */
.px-aviso { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.px-aviso:last-child { border-bottom: 0; }
.px-aviso__t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-aviso__f { color: var(--soft); font-size: .84rem; white-space: nowrap; }
.px-tipo { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.px-tipo--aviso { background: rgba(34, 211, 238, .15); color: var(--cyan); }
.px-tipo--novedad { background: rgba(94, 234, 212, .15); color: var(--mint); }
.px-tipo--evento { background: rgba(255, 79, 216, .16); color: var(--pink); }
.px-aviso-det { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.px-aviso-det + .px-aviso-det { margin-top: 14px; }
.px-aviso-det img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }

/* ranking compacto */
.px-rank { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.px-rank:last-child { border-bottom: 0; }
.px-rank__p { font-family: var(--display); font-size: 1.1rem; text-align: center; color: var(--mute); }
.px-rank__p--1 { color: #ffd166; } .px-rank__p--2 { color: #cfd8ff; } .px-rank__p--3 { color: #ffa86b; }
.px-rank__n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-rank__n small { display: block; color: var(--soft); font-weight: 500; }
.px-rank__v { font-weight: 800; font-size: .9rem; white-space: nowrap; }

/* eventos */
.px-eventos { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); min-height: 290px; }
.px-evento { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; padding: 34px 40px; opacity: 0; transition: opacity .6s; }
.px-evento.is-on { opacity: 1; z-index: 1; }
.px-evento h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 8px; }
.px-evento p { color: rgba(255, 255, 255, .85); max-width: 460px; }
.px-evento img { justify-self: center; max-height: 200px; width: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
.px-eventos__dots { position: absolute; z-index: 2; left: 40px; bottom: 18px; display: flex; gap: 8px; }
.px-eventos__dots button { width: 10px; height: 10px; border-radius: 6px; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; padding: 0; transition: width .25s; }
.px-eventos__dots button.is-on { width: 28px; background: #fff; }

/* tienda */
.px-tienda { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.px-prenda { position: relative; padding: 12px 10px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: center; transition: transform .18s, border-color .18s; }
.px-prenda:hover { transform: translateY(-3px); border-color: var(--line-2); }
.px-prenda__img { width: 80px; height: 80px; margin: 0 auto 8px; background-repeat: no-repeat; background-size: 800px 800px; border-radius: 14px; background-color: rgba(255, 255, 255, .06); }
.px-prenda__n { font-weight: 700; font-size: .84rem; line-height: 1.2; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.px-prenda__p { font-size: .8rem; font-weight: 800; margin-top: 4px; }
.px-prenda__p--Cash { color: var(--yellow); }
.px-prenda__p--Beat { color: var(--cyan); }
.px-gen { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; }
.px-gen .bn-ico { width: 14px; height: 14px; }
.px-gen--chico { background: rgba(34, 211, 238, .18); color: var(--cyan); }
.px-gen--chica { background: rgba(255, 79, 216, .18); color: var(--pink); }

/* musica */
.px-musica { width: 100%; border-collapse: collapse; }
.px-musica th { text-align: left; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; cursor: pointer; user-select: none; }
.px-musica th.is-ord { color: var(--text); }
.px-musica td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.px-musica tr:hover td { background: rgba(255, 255, 255, .03); }
.px-musica .px-num { color: var(--soft); font-variant-numeric: tabular-nums; width: 60px; }
.px-cancion b { font-weight: 700; }
.px-cancion small { display: block; color: var(--mute); }
.px-nueva { display: inline-block; margin-left: 8px; font-size: .68rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--grad); color: #fff; vertical-align: 2px; }
.px-niv { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.px-niv span { min-width: 26px; text-align: center; font-size: .78rem; font-weight: 800; padding: 2px 6px; border-radius: 8px; background: rgba(255, 209, 102, .14); color: var(--yellow); }
.px-niv span.alto { background: rgba(255, 92, 122, .16); color: var(--red); }
.px-pag { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; color: var(--mute); flex-wrap: wrap; }
.px-pag div { display: flex; gap: 6px; flex-wrap: wrap; }

/* modos con miniatura */
.px-modos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.px-modo { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: .18s; }
.px-modo:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-3px); }
.px-modo img { width: 96px; height: 60px; object-fit: contain; }
.px-modo h3 { margin: 0 0 2px; font-size: 1.08rem; }
.px-modo p { margin: 0; color: var(--mute); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* tutorial de modo */
.tu-pasos { display: grid; gap: 14px; margin: 16px 0; counter-reset: tu; }
.tu-paso { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.tu-paso::before { counter-increment: tu; content: counter(tu); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); font-family: var(--display); font-size: 1.1rem; }
.tu-paso p { margin: 6px 0 0; }
.tu-teclas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 2px; }
.tu-teclas img { height: 38px; width: auto; }
.tu-tecla { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 9px; background: #fff; color: #22184f; font-weight: 800; font-size: .85rem; box-shadow: 0 3px 0 #b9b0e6; }
.tu-juicios { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.tu-juicios img { height: 28px; width: auto; }
.tu-consejo { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 209, 102, .1); border: 1px solid rgba(255, 209, 102, .3); color: #ffe7a8; font-size: .92rem; }

@media (max-width: 1080px) {
    .px-hero__in, .px-portal { grid-template-columns: 1fr; }
    .px-stage { max-width: 520px; justify-self: center; }
    .px-tienda { grid-template-columns: repeat(3, 1fr); }
    .px-modos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .px-acceso { grid-template-columns: 1fr; }
    .px-tienda { grid-template-columns: repeat(2, 1fr); }
    .px-modos { grid-template-columns: 1fr; }
    .px-evento { grid-template-columns: 1fr; padding: 24px; }
    .px-evento img { display: none; }
    .px-musica .px-col-g, .px-musica .px-col-d { display: none; }
}

/* Video de YouTube en la portada (24-11) */
.px-stage--video { aspect-ratio: 16 / 10; }
.px-video { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; border-radius: 34px; overflow: hidden;
  background: #0d0b22 center / cover no-repeat; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.px-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 11, 34, 0) 50%, rgba(13, 11, 34, .7)); }
.px-video__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(135deg, #ff4fd8, #8b5cf6); box-shadow: 0 0 0 10px rgba(255, 79, 216, .22), 0 14px 40px rgba(0, 0, 0, .5);
  transition: transform .2s; }
.px-video__play svg { width: 38px; height: 38px; fill: #fff; margin-left: 4px; }
.px-video:hover .px-video__play, .px-video:focus-visible .px-video__play { transform: scale(1.08); }
.px-video .bn-stage__tag { z-index: 2; }
.px-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.px-video.is-play::after { display: none; }
