/* ===== CNX Experience · capa visual del producto final =====
   1) Pantalla de puntaje del proyector (/pantalla), con la identidad del flyer.
   2) Pulido de la app del participante en el teléfono.
   Se carga después de nq.css y solo usa sus tokens. Sin recursos externos (offline). */

/* ---------- 1. Pantalla de puntaje (/pantalla) ---------- */

/* La unidad base escala con la pantalla: se ve igual en 1366×768 que en 1920×1080. */
.px {
  --u: min(1vw, 1.78vh);
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: calc(var(--u) * 1.4);
  padding: calc(var(--u) * 1.6) calc(var(--u) * 2.4) calc(var(--u) * 1.2);
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(183, 223, 31, .13), transparent 70%),
    radial-gradient(55% 55% at 100% 100%, rgba(183, 223, 31, .11), transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, .05) 1px, transparent 1.6px) 0 0 / 28px 28px,
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--navy-950));
}

.px-red {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  color: var(--green-bright);
  opacity: .5;
}

.px-vacio {
  align-self: center;
  text-align: center;
  font-size: calc(var(--u) * 2.4);
  color: var(--gray-300);
}

/* Cabecera: logo en pincelada · EXPERIENCE · reloj */
.px-cabecera {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: calc(var(--u) * 2);
}

.px-logo {
  height: calc(var(--u) * 6.4);
  width: auto;
  justify-self: start;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
}

.px-titulo {
  text-align: center;
}

.px-experience {
  display: block;
  height: calc(var(--u) * 5.6);
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}

.px-lema {
  margin: calc(var(--u) * .4) 0 0;
  font-size: calc(var(--u) * 1.5);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.px-lema span {
  color: var(--white);
}

.px-reloj {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: calc(var(--u) * .3);
}

.px-reloj__vivo {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .3em .9em;
  border: 2px solid var(--green);
  border-radius: 999px;
  font-size: calc(var(--u) * 1.1);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.px-reloj__vivo i {
  width: .6em;
  height: .6em;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 10px var(--green-bright);
  animation: px-latido 1.6s ease-in-out infinite;
}

@keyframes px-latido {
  50% { opacity: .25; }
}

.px-reloj__hora {
  font-size: calc(var(--u) * 3.4);
  font-weight: 700;
  line-height: 1;
}

/* Cuerpo: ranking a la izquierda, cifras y conexiones a la derecha */
.px-cuerpo {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: calc(var(--u) * 1.6);
  min-height: 0;
}

.px-panel {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: calc(var(--u) * 1.1) calc(var(--u) * 1.6);
  border: 2px solid rgba(183, 223, 31, .55);
  border-radius: calc(var(--u) * 1.6);
  background: rgba(9, 22, 52, .72);
  box-shadow: 0 0 calc(var(--u) * 2) rgba(183, 223, 31, .12), inset 0 0 calc(var(--u) * 3) rgba(183, 223, 31, .05);
}

.px-panel__titulo {
  display: flex;
  align-items: center;
  gap: .6em;
  margin: 0 0 calc(var(--u) * .7);
  font-size: calc(var(--u) * 1.7);
  font-weight: 700;
  font-style: italic;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--white);
}

.px-panel__titulo::after {
  content: "";
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.px-panel__vacio {
  margin: calc(var(--u) * 3) 0;
  text-align: center;
  font-size: calc(var(--u) * 1.6);
  color: var(--gray-300);
}

/* Podio: 2.º · 1.º · 3.º, con el anillo neón de los círculos del flyer */
.px-podio {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: calc(var(--u) * 1.2);
  margin-bottom: calc(var(--u) * .9);
}

.px-podio__lugar {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: calc(var(--u) * .7) calc(var(--u) * .8);
  border-radius: calc(var(--u) * 1.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  text-align: center;
}

/* Posición fija aunque falten lugares: 1.º al centro, 2.º izquierda, 3.º derecha */
.px-podio__lugar--1 { grid-column: 2; grid-row: 1; }
.px-podio__lugar--2 { grid-column: 1; grid-row: 1; }
.px-podio__lugar--3 { grid-column: 3; grid-row: 1; }

.px-podio__lugar--1 {
  padding-top: calc(var(--u) * 1);
  background: linear-gradient(180deg, rgba(183, 223, 31, .2), rgba(183, 223, 31, .04));
}

.px-podio__foto {
  position: relative;
  width: calc(var(--u) * 5.4);
  height: calc(var(--u) * 5.4);
  margin-bottom: calc(var(--u) * .5);
  border: 3px solid var(--green);
  border-radius: 50%;
  background: var(--navy-800);
  box-shadow: 0 0 calc(var(--u) * 1.4) var(--lime-glow);
}

.px-podio__lugar--1 .px-podio__foto {
  width: calc(var(--u) * 7);
  height: calc(var(--u) * 7);
  border-width: 4px;
}

.px-podio__foto img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.px-podio__foto span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: calc(var(--u) * 2.6);
  font-weight: 700;
  color: var(--green-bright);
}

.px-podio__foto em {
  position: absolute;
  right: -4%;
  bottom: -4%;
  display: grid;
  place-items: center;
  width: 38%;
  height: 38%;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy-950);
  font-style: normal;
  font-size: calc(var(--u) * 1.6);
  font-weight: 800;
  box-shadow: 0 0 0 3px var(--navy-950);
}

.px-podio__nombre {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: calc(var(--u) * 1.6);
  font-weight: 700;
}

.px-podio__lugar--1 .px-podio__nombre {
  font-size: calc(var(--u) * 1.9);
}

.px-podio__empresa {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: calc(var(--u) * 1.05);
  color: var(--gray-300);
}

.px-podio__pts {
  margin-top: calc(var(--u) * .2);
  font-size: calc(var(--u) * 2.2);
  font-weight: 800;
  line-height: 1.1;
  color: var(--green-bright);
  text-shadow: 0 0 14px var(--lime-glow);
}

.px-podio__lugar--1 .px-podio__pts {
  font-size: calc(var(--u) * 2.7);
}

.px-podio__pts small,
.px-fila__pts small {
  font-size: .5em;
  font-weight: 600;
  color: var(--gray-300);
  text-shadow: none;
}

/* Lista del 4.º en adelante (dos columnas para que quepa sin scroll) */
.px-lista {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--u) * .6) calc(var(--u) * 1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.px-lista--top5 {
  grid-template-columns: 1fr;
  gap: calc(var(--u) * 1);
}

.px-fila {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: calc(var(--u) * .9);
  padding: calc(var(--u) * .4) calc(var(--u) * .9);
  border-radius: calc(var(--u) * .8);
  background: rgba(255, 255, 255, .05);
  font-size: calc(var(--u) * 1.25);
}

.px-fila--top5 {
  padding: calc(var(--u) * 1) calc(var(--u) * 1.4);
  border: 2px solid rgba(183, 223, 31, .5);
  font-size: calc(var(--u) * 2.2);
}

.px-fila__pos {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border: 2px solid var(--green);
  border-radius: 50%;
  font-size: .8em;
  font-weight: 800;
  color: var(--green-bright);
}

.px-fila__datos {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.px-fila__datos b,
.px-fila__datos small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.px-fila__datos small {
  font-size: .68em;
  color: var(--gray-300);
}

.px-fila__pts {
  font-weight: 800;
  color: var(--green-bright);
  white-space: nowrap;
}

/* Columna derecha */
.px-lateral {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: calc(var(--u) * 1.6);
  min-height: 0;
}

.px-cifras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--u) * 1);
}

.px-cifras div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--u) * 1) calc(var(--u) * .6);
  border: 2px solid rgba(183, 223, 31, .55);
  border-radius: calc(var(--u) * 1.2);
  background: rgba(9, 22, 52, .72);
  text-align: center;
}

.px-cifras b {
  font-size: calc(var(--u) * 3.4);
  font-weight: 800;
  line-height: 1.05;
  color: var(--green-bright);
  text-shadow: 0 0 14px var(--lime-glow);
}

.px-cifras span {
  font-size: calc(var(--u) * 1);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-100);
}

.px-feed {
  display: flex;
  flex-direction: column;
  gap: calc(var(--u) * .7);
  margin: 0;
  padding: 0;
  list-style: none;
}

.px-feed li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 1);
  padding: calc(var(--u) * .65) calc(var(--u) * 1);
  border-left: 4px solid var(--green);
  border-radius: calc(var(--u) * .6);
  background: rgba(255, 255, 255, .05);
  font-size: calc(var(--u) * 1.35);
}

.px-feed li:first-child {
  background: rgba(183, 223, 31, .14);
}

.px-feed__par {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.px-feed__par i {
  font-style: normal;
  color: var(--green-bright);
}

.px-feed__hora {
  flex: 0 0 auto;
  font-size: .75em;
  color: var(--green-bright);
}

/* Pie: lema del flyer + firma de clicksi.mx */
.px-pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--u) * 2);
  padding-top: calc(var(--u) * .9);
  border-top: 2px solid rgba(183, 223, 31, .35);
}

.px-pie__lema {
  margin: 0;
  font-size: calc(var(--u) * 1.3);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray-100);
}

.px-pie__lema span {
  color: var(--green-bright);
}

.px-firma {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 1);
}

.px-firma__texto {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.px-firma__texto small {
  font-size: calc(var(--u) * .9);
  color: var(--gray-300);
}

.px-firma__texto b {
  font-size: calc(var(--u) * 2.1);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--white);
}

.px-firma__texto b span {
  color: var(--green-bright);
}

.px-firma__qr {
  width: calc(var(--u) * 6);
  height: calc(var(--u) * 6);
  padding: calc(var(--u) * .35);
  border-radius: calc(var(--u) * .6);
  background: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .px-reloj__vivo i { animation: none; }
}

/* ---------- 2. App del participante (teléfono) ---------- */

/* Barra de marca arriba: liga la app con el flyer sin quitar espacio útil */
.nq-app-barra {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(183, 223, 31, .16), transparent 55%),
    linear-gradient(120deg, var(--navy-950), var(--navy-900));
  border-bottom: 2px solid var(--green);
}

.nq-app-barra__marca {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
}

.nq-app-barra__marca:hover {
  color: var(--white);
  text-decoration: none;
}

.nq-app-barra__cnx {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}

.nq-app-barra__cnx em {
  font-style: normal;
  color: var(--green-bright);
}

.nq-app-barra__exp {
  height: 18px;
  width: auto;
}

.nq-app-barra__lema {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-bright);
  white-space: nowrap;
}

/* Firma discreta de clicksi.mx al final del contenido */
.nq-firma {
  margin: 28px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
}

.nq-firma a {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}

.nq-firma a span {
  color: var(--green-dark);
}

.nq-firma a:hover {
  text-decoration: underline;
}

/* Barra inferior: etiquetas en una línea e indicador lima del tab activo */
.nq-bottom-nav__item {
  position: relative;
  font-size: 10.5px;
  white-space: nowrap;
  padding: 8px 2px;
}

.nq-bottom-nav__item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--green-bright);
  box-shadow: 0 0 10px var(--lime-glow);
}

/* Inicio: tarjeta de perfil + marcador en navy, como el flyer */
.nq-inicio__perfil {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(183, 223, 31, .18), transparent 60%),
    linear-gradient(150deg, var(--navy-900), var(--navy-950));
  box-shadow: var(--shadow-md);
}

.nq-inicio__selfie {
  border: 3px solid var(--green);
  box-shadow: 0 0 16px var(--lime-glow);
  background: var(--navy-800);
}

.nq-inicio__nombre {
  color: var(--white);
}

.nq-inicio__empresa {
  color: var(--green-bright);
  font-weight: 600;
}

.nq-inicio__puesto {
  color: var(--gray-300);
}

.nq-stat {
  position: relative;
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--green);
  box-shadow: var(--shadow-sm);
}

.nq-stat__valor {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy-950);
}

.nq-stat__etiqueta {
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.nq-boton-grande {
  border: 1px solid var(--gray-100);
  font-weight: 700;
}

.nq-boton-grande__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(183, 223, 31, .45);
  font-size: 22px;
}

/* Si el número de botones es impar, el último ocupa todo el ancho */
.nq-inicio__acciones > .nq-boton-grande:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 72px;
}

/* Ranking del teléfono */
.nq-ranking__titulo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nq-ranking__titulo::after {
  content: "EN VIVO";
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--green-bright);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.nq-ranking-fila:nth-child(-n+3) .nq-ranking-fila__posicion {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--green-bright);
  font-size: 15px;
}

.nq-ranking-fila:nth-child(1) {
  border-left-color: var(--green);
}

.nq-ranking-fila:nth-child(1) .nq-ranking-fila__posicion {
  background: var(--green);
  color: var(--navy-950);
}

.nq-ranking-fila__puntos {
  color: var(--green-dark);
  font-weight: 800;
}

/* Estaciones: títulos de momento con el trazo lima del flyer */
.nq-estaciones__momento {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nq-estaciones__momento::after {
  content: "";
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--green), transparent);
}

/* Detalle de estación */
.nq-estacion__subtitulo {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.nq-pasos {
  counter-reset: paso;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.nq-pasos li {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.nq-pasos li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--green-bright);
  font-size: 13px;
  font-weight: 700;
}

.nq-mision__tip {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  background: #f4f9e4;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--gray-700);
}

/* Formularios: obligatorio y opciones tipo chip */
.nq-requerido {
  color: #b3261e;
  font-weight: 700;
}

.nq-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nq-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid var(--gray-300);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.nq-chip:has(input:checked) {
  border-color: var(--green-dark);
  background: #eef7d3;
}

.nq-chip input {
  accent-color: var(--green-dark);
}
