:root{
  --void: #090b13;
  --panel: #12172a;
  --panel-2: #171d34;
  --line: #2a3153;
  --ink: #f2efe3;
  --muted: #9aa0bd;
  --gold: #e3b34d;
  --gold-bright: #f6d989;
  --bolt: #7c8fff;
  --green: #48c98b;
  --radius-s: 6px;
  --radius-m: 14px;
  --maxw: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
h1,h2,h3{
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
p{ margin: 0 0 1em; color: var(--muted); max-width: 62ch; }
.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section{ padding: 64px 0; }
:focus-visible{ outline: 2px solid var(--gold-bright); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Header ---------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(9,11,19,.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand{
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Cinzel", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-bright);
  text-decoration: none;
  white-space: nowrap;
}
.brand svg{ width: 22px; height: 22px; flex: none; }
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-s);
  padding: 12px 20px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-gold{
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #241705;
  box-shadow: 0 6px 18px rgba(227,179,77,.25);
}
.btn-gold:hover{ box-shadow: 0 8px 22px rgba(227,179,77,.4); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  padding: 10px 16px;
  font-size: .85rem;
}
.topbar .btn-gold{ padding: 9px 14px; font-size: .82rem; }
.header-actions{ display: flex; align-items: center; gap: 8px; }
.btn-outline{
  padding: 9px 14px;
  font-size: .82rem;
  color: var(--gold-bright);
  background: transparent;
  border-color: var(--gold);
}
.btn-outline:hover{ background: rgba(227,179,77,.1); }
.registration-wrap{ position: relative; }
.registration-panel{
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 50;
  display: grid;
  gap: 7px;
  width: min(290px, calc(100vw - 32px));
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 16px 36px rgba(0,0,0,.45);
}
.registration-panel[hidden]{ display: none; }
.registration-panel h2{ margin: 0 0 5px; font-size: 1rem; color: var(--ink); }
.registration-panel label{ color: var(--muted); font-size: .8rem; }
.registration-panel input{
  width: 100%;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--void);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font: inherit;
}
.registration-panel input:focus{ border-color: var(--gold); outline: none; }
.registration-panel .btn{ margin-top: 6px; padding: 10px 14px; font-size: .84rem; }
@media (max-width: 560px){
  .topbar{ flex-wrap: wrap; }
  .header-actions{ margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  padding: 56px 0 60px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(227,179,77,.16), transparent 60%),
    radial-gradient(70% 60% at 85% 15%, rgba(124,143,255,.12), transparent 55%),
    var(--void);
  text-align: center;
}
.hero-bolt{ width: 46px; height: 46px; margin: 0 auto 18px; color: var(--gold-bright); }
.hero h1{
  font-size: clamp(1.9rem, 6vw, 3rem);
  color: var(--ink);
  max-width: 16ch;
  margin-inline: auto;
}
.hero h1 em{ font-style: normal; color: var(--gold-bright); }
.hero .lede{
  margin-inline: auto;
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--muted);
}
.hero-ctas{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.hero-ctas .btn-gold{ font-size: 1.05rem; padding: 16px 34px; width: 100%; max-width: 320px; }
.hero-note{ font-size: .82rem; color: var(--muted); }
.hero-note strong{ color: var(--ink); }

/* ---------- WhatsApp flotante ---------- */
.wa-float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1f9e57;
  color: #fff;
  padding: 13px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
  transition: transform .15s ease;
}
.wa-float:hover{ transform: translateY(-2px); }
.wa-float svg{ width: 22px; height: 22px; flex: none; }
.wa-float .wa-text{ white-space: nowrap; }
@keyframes wa-pulse{
  0%,100%{ box-shadow: 0 10px 24px rgba(0,0,0,.4), 0 0 0 0 rgba(31,158,87,.5); }
  50%{ box-shadow: 0 10px 24px rgba(0,0,0,.4), 0 0 0 10px rgba(31,158,87,0); }
}
.wa-float{ animation: wa-pulse 2.8s ease-in-out infinite; }

/* ---------- Barra de confianza ---------- */
.trust{ background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust h2{ font-size: 1.05rem; text-align: center; color: var(--ink); }
.trust-sub{ text-align: center; margin: 0 auto 22px; font-size: .9rem; }
.chip-row{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.chip{
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.chip.pay{ color: var(--gold-bright); }
.transfer-details{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin: 4px auto 0;
  padding: 12px 16px;
  max-width: 620px;
  text-align: center;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: .88rem;
}
.transfer-details span{ color: var(--muted); }
.transfer-details b{ color: var(--gold-bright); }
.badges{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.badge{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--muted);
  background: var(--void);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: var(--radius-s);
}
.badge svg{ width: 16px; height: 16px; color: var(--green); flex: none; }

/* ---------- Precios ---------- */
.price-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}
.price-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
}
.price-card .num{
  font-family: "Cinzel", serif;
  font-size: 1.7rem;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 4px;
}
.price-card h3{ font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.price-card p{ margin: 0; font-size: .9rem; }
.price-card.speed .num{ color: var(--green); }

/* ---------- Carrusel promocional ---------- */
.carousel-section{ padding-top: 0; }
.carousel-section h2{ text-align: center; }
.carousel{
  position: relative;
  max-width: 760px;
  margin: 26px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
}
.carousel-track{ display: flex; transition: transform .35s ease; }
.carousel-slide{ min-width: 100%; aspect-ratio: 16 / 9; background: var(--panel-2); }
.carousel-slide img{ width: 100%; height: 100%; object-fit: contain; }
.carousel-button{
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(246,217,137,.55);
  border-radius: 50%;
  background: rgba(9,11,19,.78);
  color: var(--gold-bright);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.carousel-button:hover{ background: rgba(9,11,19,.95); }
.carousel-button.prev{ left: 12px; }
.carousel-button.next{ right: 12px; }
.carousel-dots{ display: flex; justify-content: center; gap: 8px; padding: 14px; }
.carousel-dot{ width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; }
.carousel-dot.active{ background: var(--gold-bright); }

/* ---------- Confeti de bienvenida ---------- */
.confetti-burst{ position: fixed; top: 0; z-index: 60; width: 1px; height: 1px; pointer-events: none; }
.confetti-burst.left{ left: 4px; }
.confetti-burst.right{ right: 4px; }
.confetti-piece{
  position: absolute;
  width: 7px;
  height: 16px;
  border-radius: 2px;
  background: var(--gold-bright);
  transform: translate(-50%, -50%) rotate(var(--rotate));
  animation: confetti-burst 1.5s cubic-bezier(.2,.8,.3,1) forwards;
  animation-delay: var(--delay);
}
.confetti-burst.right .confetti-piece{ transform: translate(50%, -50%) rotate(var(--rotate)); }
@keyframes confetti-burst{
  from{ opacity: 1; transform: translate(-50%, -50%) rotate(var(--rotate)) scale(.7); }
  to{ opacity: 0; transform: translate(var(--x), var(--y)) rotate(calc(var(--rotate) + 240deg)) scale(1); }
}
.confetti-burst.right .confetti-piece{ animation-name: confetti-burst-right; }
@keyframes confetti-burst-right{
  from{ opacity: 1; transform: translate(50%, -50%) rotate(var(--rotate)) scale(.7); }
  to{ opacity: 0; transform: translate(var(--x), var(--y)) rotate(calc(var(--rotate) - 240deg)) scale(1); }
}

/* ---------- Lobby ---------- */
.game-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}
.game-card{
  position: relative;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
  overflow: hidden;
}
.game-card .icon{
  width: 40px; height: 40px;
  color: var(--gold-bright);
  margin-bottom: 14px;
}
.game-card h3{ font-size: 1.05rem; color: var(--ink); }
.game-card p{ font-size: .9rem; margin: 0; }
.game-card .tag{
  position: absolute;
  top: 18px; right: 18px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--void);
  background: var(--gold-bright);
  padding: 4px 9px;
  border-radius: 999px;
}

/* ---------- Sobre nosotros ---------- */
.about{ background: var(--panel); border-top: 1px solid var(--line); }
.about-grid{ display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 16px; }
.stat-list{ display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 10px; }
.stat{ text-align: center; padding: 14px 6px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--void); }
.stat b{ display: block; font-family: "Cinzel", serif; font-size: 1.2rem; color: var(--gold-bright); }
.stat span{ font-size: .72rem; color: var(--muted); }

/* ---------- Footer ---------- */
footer{ background: #060810; border-top: 1px solid var(--line); padding: 44px 0 100px; }
.foot-top{ display: flex; flex-direction: column; gap: 22px; }
.foot-links{ display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: .88rem; }
.foot-links a{ text-decoration: none; color: var(--muted); }
.foot-links a:hover{ color: var(--ink); }
.age-seal{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 10px 14px;
  width: fit-content;
}
.age-seal .circle{
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #241705;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; flex: none;
}
.age-seal span{ font-size: .78rem; color: var(--muted); max-width: 30ch; }
.foot-legal{ font-size: .78rem; color: #5b6180; margin-top: 22px; }
.foot-legal p{ color: #5b6180; max-width: none; }

/* ---------- Desktop (min-width) ---------- */
@media (min-width: 720px){
  section{ padding: 88px 0; }
  .hero{ padding: 70px 0 80px; }
  .hero-ctas{ flex-direction: row; justify-content: center; }
  .hero-ctas .btn-gold{ width: auto; }
  .price-grid{ grid-template-columns: repeat(3,1fr); }
  .game-grid{ grid-template-columns: repeat(2,1fr); }
  .about-grid{ grid-template-columns: 1.1fr .9fr; align-items: center; }
  .foot-top{ flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
@media (min-width: 1020px){
  .game-grid{ grid-template-columns: repeat(4,1fr); }
}
