/* ============================================================
   GameLobby · Pestaña Organizadores de Torneos
   Tema púrpura/violeta. Reutiliza los tokens y componentes de
   styles.css; aquí solo van overrides y el layout propio de
   esta página. El home (index.html) no se ve afectado.
   ============================================================ */

[data-portal="organizadores"] {
  --acc: var(--gl-purple-bright);
  --acc-strong: #8f5bff;
  --acc-soft: var(--gl-purple-soft);
  --acc-glow: 0 0 26px rgba(123, 63, 242, .45);
}

/* Botón púrpura (no existe en la base) */
[data-portal="organizadores"] .btn--purple {
  background: var(--acc);
  color: #fff;
  box-shadow: 0 0 24px rgba(123, 63, 242, .45);
}
[data-portal="organizadores"] .btn--purple:hover { background: var(--acc-strong); }

/* Acentos de la pestaña */
[data-portal="organizadores"] em { color: var(--acc-soft); }
[data-portal="organizadores"] .field input:focus,
[data-portal="organizadores"] .field select:focus {
  border-color: var(--acc);
  box-shadow: var(--acc-glow);
}
[data-portal="organizadores"] ::selection { background: var(--acc); color: #fff; }

/* ---- Hero ---- */
.org-hero {
  position: relative;
  padding: 132px 24px 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(123, 63, 242, .30), transparent 60%),
    radial-gradient(700px 480px at 6% 16%, rgba(123, 63, 242, .15), transparent 62%),
    var(--bg-page);
}
.org-hero__inner {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.org-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
}
.org-hero h1 em { color: var(--acc-soft); }
.org-hero__lead {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.55;
  color: var(--text-3);
  max-width: 660px;
}
.org-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.org-hero__proof {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 18px; color: var(--text-4); font-size: 13px;
}
.org-hero__proof b { color: var(--text-1); font-weight: 700; }

/* Layout hero en dos columnas (copy + visual) */
.org-hero__inner--split {
  max-width: 1160px;
  text-align: left;
  align-items: stretch;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
}
.org-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.org-hero__inner--split .org-hero__lead { text-align: left; }

/* ---- Visual estilo plataforma: leaderboard ---- */
.org-hero__visual { position: relative; display: flex; align-items: center; justify-content: center; }
.lb {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, rgba(24, 16, 44, .96), rgba(14, 10, 26, .96));
  border: 1px solid rgba(123, 63, 242, .5);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 40px rgba(123, 63, 242, .28);
  backdrop-filter: blur(6px);
  animation: lb-float 6s var(--ease-out) infinite;
}
@keyframes lb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.lb__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.lb__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff; }
.lb__title i { width: 18px; height: 18px; color: var(--acc-soft); }
.lb__pill { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; color: var(--acc-soft); background: rgba(123, 63, 242, .16); border: 1px solid rgba(123, 63, 242, .4); padding: 4px 10px; border-radius: 999px; }
.lb__dot { width: 7px; height: 7px; border-radius: 50%; background: #22e06b; box-shadow: 0 0 8px #22e06b; animation: lb-pulse 1.6s infinite; }
@keyframes lb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.lb__row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; margin-bottom: 8px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.lb__row--1 { background: rgba(123, 63, 242, .16); border-color: rgba(123, 63, 242, .55); }
.lb__row--dim { opacity: .6; }
.lb__rank { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--text-4); width: 14px; text-align: center; }
.lb__row--1 .lb__rank { color: #ffd166; }
.lb__ava { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--acc), #4b2a8f); }
.lb__name { flex: 1; font-weight: 600; font-size: 14px; color: #fff; }
.lb__crown { width: 16px; height: 16px; color: #ffd166; }
.lb__prize { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: #22e06b; }
.lb__pot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(123, 63, 242, .4); }
.lb__pot span { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.lb__pot span i { width: 16px; height: 16px; color: #ffd166; }
.lb__pot b { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: #fff; }

/* Fichas y chip flotantes */
.org-coin, .org-chip { position: absolute; z-index: 2; }
.org-coin {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #a06bff, #4b2a8f);
  border: 2px solid rgba(255, 255, 255, .25);
  box-shadow: 0 8px 24px rgba(123, 63, 242, .5);
}
.org-coin i { width: 22px; height: 22px; color: #fff; }
.org-coin--a { top: -14px; left: -6px; animation: lb-float 5s var(--ease-out) infinite; }
.org-coin--b { bottom: 20px; left: -22px; width: 36px; height: 36px; animation: lb-float 7s var(--ease-out) infinite .6s; }
.org-coin--b i { width: 17px; height: 17px; }
.org-chip {
  bottom: -10px; right: -8px;
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--acc), #4b2a8f);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 8px 12px; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(123, 63, 242, .5);
  animation: lb-float 6.5s var(--ease-out) infinite .3s;
}
.org-chip i { width: 15px; height: 15px; }

/* ---- Beneficios: tarjetas de checklist simplificado ---- */
.org-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; }
.org-card {
  background: var(--gl-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.org-card:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 63, 242, .5);
  box-shadow: 0 0 30px rgba(123, 63, 242, .18);
}
.org-card__head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.org-card__head h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; letter-spacing: var(--ls-tight); }
.org-list { list-style: none; display: grid; gap: 14px; }
.org-list li { display: flex; gap: 11px; align-items: flex-start; }
.org-list .ck {
  width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px;
  color: var(--acc-soft);
  background: rgba(123, 63, 242, .16);
  border-radius: 6px; padding: 2px;
}
.org-list b { display: block; font-weight: 600; font-size: 14.5px; color: #fff; margin-bottom: 2px; }
.org-list span { display: block; color: var(--text-3); font-size: 13.5px; line-height: 1.5; }

/* ---- Cómo fluye la plata (mapa del dinero) ---- */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.2fr;
  align-items: stretch;
  gap: 14px;
}
.flow__node {
  position: relative;
  background: var(--gl-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}
.flow__node:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 63, 242, .5);
  box-shadow: 0 0 30px rgba(123, 63, 242, .18);
}
.flow__step {
  position: absolute; top: -13px; left: 22px;
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 13px; color: #fff;
  background: linear-gradient(135deg, var(--acc), #4b2a8f);
  box-shadow: 0 6px 18px rgba(123, 63, 242, .5);
}
.flow__ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(123, 63, 242, .16);
  border: 1px solid rgba(123, 63, 242, .4);
}
.flow__ico i { width: 22px; height: 22px; color: var(--acc-soft); }
.flow__node b { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff; letter-spacing: var(--ls-tight); }
.flow__txt { color: var(--text-3); font-size: 13.5px; line-height: 1.5; }
.flow__tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: 12px; font-weight: 600; color: var(--acc-soft);
  background: rgba(123, 63, 242, .14); border: 1px solid rgba(123, 63, 242, .35);
  padding: 5px 11px; border-radius: 999px;
}
.flow__tag i { width: 14px; height: 14px; }
.flow__tag--win { color: #ffd166; background: rgba(255, 209, 102, .12); border-color: rgba(255, 209, 102, .35); }
.flow__tag--you { color: #22e06b; background: rgba(34, 224, 107, .12); border-color: rgba(34, 224, 107, .35); }
.flow__tag--multi { color: #38d6ff; background: rgba(56, 214, 255, .12); border-color: rgba(56, 214, 255, .35); }

/* Nodo pozo destacado */
.flow__node--pot { border-color: rgba(123, 63, 242, .5); background:
  radial-gradient(420px 220px at 50% -20%, rgba(123, 63, 242, .22), transparent 65%), var(--gl-surface-2); }
.flow__pot { display: flex; flex-direction: column; margin-top: 6px; padding-top: 12px; border-top: 1px dashed rgba(123, 63, 242, .4); width: 100%; }
.flow__pot span { font-size: 12px; color: var(--text-4); }
.flow__pot b { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #fff; }

/* Salidas (premios + tu parte) */
.flow__split { display: grid; gap: 14px; }
.flow__node--out { border-color: rgba(255, 209, 102, .3); }
.flow__node--you { border-color: rgba(34, 224, 107, .3); }

/* Flechas */
.flow__arrow { display: grid; place-items: center; color: var(--acc-soft); align-self: center; }
.flow__arrow i { width: 26px; height: 26px; }

.flow__foot { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 26px; font-size: 13px; color: var(--text-4); }
.flow__foot i { width: 16px; height: 16px; color: var(--acc-soft); flex: 0 0 auto; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* ---- Contador de comunidades (FOMO) ---- */
.org-counter { padding: 8px 24px 72px; }
.org-counter__inner {
  max-width: 620px; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  border: 1px solid rgba(123, 63, 242, .5);
  border-radius: 24px;
  padding: 44px 32px;
  background:
    radial-gradient(600px 300px at 50% -10%, rgba(123, 63, 242, .28), transparent 65%),
    var(--gl-surface-2);
}
.org-counter__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(56px, 12vw, 88px); line-height: 1;
  color: #fff;
  text-shadow: 0 0 40px rgba(123, 63, 242, .6);
  display: inline-flex; align-items: baseline; gap: 10px;
}
.org-counter__cap { font-size: clamp(24px, 5vw, 36px); font-weight: 700; color: var(--text-4); text-shadow: none; }
.org-counter__lbl { font-size: 17px; color: var(--text-2); max-width: 380px; }
.org-counter__lbl b { color: var(--acc-soft); }
.org-counter__bar { width: 100%; max-width: 360px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.org-counter__bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--acc), var(--acc-soft)); box-shadow: 0 0 16px rgba(123, 63, 242, .6); transition: width 2.2s var(--ease-out); }
.org-counter__inner.is-in .org-counter__bar span { width: 72%; }
.org-counter__hint { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; color: var(--text-4); max-width: 420px; }
.org-counter__hint i { width: 16px; height: 16px; color: #ff7a3d; flex: 0 0 auto; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.org-checks .reveal:nth-child(2) { transition-delay: .06s; }
.org-checks .reveal:nth-child(3) { transition-delay: .12s; }
.org-checks .reveal:nth-child(4) { transition-delay: .18s; }
.org-checks .reveal:nth-child(5) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .lb, .org-coin, .org-chip { animation: none; } }

/* ---- Banda Comunidades Fundadoras ---- */
.org-founder {
  margin-top: 28px;
  border: 1px solid rgba(123, 63, 242, .5);
  border-radius: 22px;
  background:
    radial-gradient(600px 320px at 82% 0, rgba(123, 63, 242, .22), transparent 60%),
    var(--gl-surface-2);
  padding: 44px;
}
.org-founder h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4vw, 34px); letter-spacing: var(--ls-tight); margin-bottom: 12px; }
.org-founder > p { color: var(--text-3); font-size: 16px; line-height: 1.6; max-width: 640px; }
.org-founder ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 26px; }
.org-founder li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.org-founder li .ic { color: var(--acc-soft); width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; }

/* ---- Registro ---- */
.org-register { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }
.org-register__copy h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.5vw, 42px); letter-spacing: var(--ls-tight); line-height: 1.1; }
.org-register__copy p { color: var(--text-3); font-size: 17px; line-height: 1.6; margin-top: 16px; }
.org-register__copy ul { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.org-register__copy li { display: flex; gap: 10px; align-items: center; color: var(--text-2); font-size: 15px; }
.org-register__copy li .ic { color: var(--acc); width: 18px; height: 18px; flex: 0 0 auto; }

@media (max-width: 940px) {
  .org-hero__inner--split { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .org-hero__copy { align-items: center; }
  .org-hero__inner--split .org-hero__lead { text-align: center; }
  .org-hero__cta, .org-hero__proof { justify-content: center; }
  .org-hero__visual { margin-top: 8px; }
}

@media (max-width: 860px) {
  .org-register { grid-template-columns: 1fr; gap: 32px; }
  .org-founder ul { grid-template-columns: 1fr; }
  .org-founder { padding: 32px 24px; }
}
