:root {
  --bg: #0a0e14;
  --panel: #111823;
  --panel-2: #172033;
  --line: #26334a;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --blue: #3b82f6;
  --gold: #f5a524;
  --violet: #a78bfa;
  --discord: #5865f2;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
main:focus { outline: none; }

.wrap { width: min(1100px, 100% - 2rem); margin-inline: auto; padding-block: 2.5rem; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.violet { color: var(--violet); }

/* Iconos SVG */
.ic { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; vertical-align: -.2em; }
.face { display: block; width: 100%; height: 100%; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; padding: .6rem 1rem; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 700; }
.skip:focus { top: 1rem; }

/* ---------- Barra de navegación flotante ---------- */
.nav {
  position: sticky; top: .75rem; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  width: min(1240px, 100% - 1.5rem); margin: .75rem auto 0; padding: .6rem 1rem;
  background: rgba(10, 14, 20, .88); border: 1px solid var(--line); border-radius: 16px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.brand {
  font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; color: #fbbf24;
  transition: text-shadow .3s ease, filter .3s ease, transform .3s var(--ease);
}
.brand:hover { text-shadow: 0 0 20px rgba(251, 191, 36, .6), 0 0 6px rgba(251, 191, 36, .4); transform: scale(1.04); }
.links { display: flex; align-items: center; gap: .25rem; margin-inline: auto; }
.links a, .dd-btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .85rem;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted);
  font-weight: 600; cursor: pointer; transition: color .2s ease, background .2s ease;
}
.links a:hover, .dd-btn:hover, .dd-btn[aria-expanded="true"] { color: var(--text); background: var(--panel-2); }
.links a.on { color: var(--text); }
.links a.on::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem; height: 2px;
  border-radius: 2px; background: var(--blue);
}
.dd-btn .chev { width: .8em; height: .8em; fill: none; stroke: currentColor; transition: transform .25s var(--ease); }
.dd-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + .5rem); left: 0; min-width: 210px; padding: .4rem;
  display: grid; background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5); animation: pop .2s var(--ease);
}
.dd-menu a { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 8px; color: var(--text); transition: background .15s ease, padding .15s ease; }
.dd-menu a:hover { background: var(--panel-2); padding-left: .95rem; }

.tools { display: flex; align-items: center; gap: .6rem; }
.flag { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; transition: border-color .2s ease; }
.flag:hover { border-color: var(--blue); }
.flag svg { fill: none; }
.search { display: flex; align-items: center; gap: .5rem; width: 260px; padding: 0 .75rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); transition: border-color .2s ease, box-shadow .2s ease, width .3s var(--ease); }
.search input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; color: var(--text); outline: none; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, .18); }
.search input::placeholder { color: var(--muted); }
kbd { padding: 0 .45rem; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font: 600 .8rem var(--font); }

.burger { display: none; width: 42px; height: 42px; margin-left: auto; padding: 0 10px; flex-direction: column; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.2rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel-2); font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s ease, filter .2s ease, box-shadow .2s ease;
}
.btn:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-light { background: #e5e7eb; border-color: #e5e7eb; color: #0f172a; }
.btn-light:hover { filter: brightness(1.05); border-color: #fff; }
.btn-discord { background: var(--discord); border-color: var(--discord); color: #fff; }
.btn-discord:hover { filter: brightness(1.1); border-color: var(--discord); box-shadow: 0 8px 24px rgba(88, 101, 242, .4); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.actions.center { justify-content: center; }

/* ---------- Home ---------- */
.hero-wrap { padding-top: 1.25rem; }
.hero {
  padding: 4.5rem 1.5rem; text-align: center;
  background: linear-gradient(180deg, #131b2a, #0e1522); border: 1px solid var(--line); border-radius: 18px;
}
.hero .actions { justify-content: center; }
.badge { display: inline-block; padding: .3rem .8rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.hero h1 { margin-top: 1.25rem; font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 900; letter-spacing: -.03em; }
.hero h1 span { color: #9fb3d1; }
.lead { max-width: 54ch; margin: 1.25rem auto 0; color: var(--muted); font-size: 1.1rem; }
.pill {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 2rem; padding: .5rem 1rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .9rem;
  transition: border-color .2s ease;
}
.pill:hover { border-color: var(--blue); }
.pill u { color: var(--blue); text-decoration: none; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); animation: pulse 2s ease-out infinite; }

.stats, .why, .modes, .regions { display: grid; gap: 1rem; }
.stats { grid-template-columns: repeat(4, 1fr); }
.stats li, .why li, .mode, .region, .steps li, .panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.stats li { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 1.4rem 1rem; text-align: center; }
.stats strong { font-size: 2.2rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { font-weight: 700; }
.stats small { color: var(--muted); font-size: .8rem; }

.sec { text-align: center; font-size: clamp(1.7rem, 3.5vw, 2.2rem); font-weight: 900; letter-spacing: -.02em; }
.sub { margin: .4rem 0 1.75rem; text-align: center; color: var(--muted); }

.why { grid-template-columns: repeat(4, 1fr); }
.why li { padding: 1.4rem 1.2rem; text-align: center; }
.why h3 { margin: .9rem 0 .4rem; font-size: 1.05rem; }
.why p, .steps p { color: var(--muted); font-size: .92rem; }
.ibox { display: inline-grid; place-items: center; width: 44px; height: 44px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-size: 1.25rem; }
.ibox.big { width: 56px; height: 56px; margin-bottom: .5rem; font-size: 1.6rem; border-color: #33538f; background: #101a2e; }
.ibox.round { border-radius: 50%; border-color: var(--line); background: var(--bg); }

/* Podio */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: end; max-width: 720px; margin-inline: auto; }
.pod { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.4rem 1rem; text-align: center; border: 2px solid var(--c); border-radius: var(--radius); background: var(--bg-c); }
.pod.r1 { --c: #facc15; --bg-c: #6e5a26; order: 2; padding-block: 1.9rem; }
.pod.r2 { --c: #94a3b8; --bg-c: #4b5967; order: 1; }
.pod.r3 { --c: #d97706; --bg-c: #5e3b24; order: 3; }
.pod.r1:hover { box-shadow: 0 0 36px rgba(250, 204, 21, .25); }
.pod .pos { font-size: 1.6rem; font-weight: 900; font-style: italic; }
.avatar { width: 48px; height: 48px; overflow: hidden; border-radius: 50%; border: 2px solid var(--c); background: var(--bg); transition: transform .3s var(--ease); }
.pod:hover .avatar { transform: scale(1.12) rotate(-4deg); }
.pod .name { font-size: 1.1rem; font-weight: 800; overflow-wrap: anywhere; }
.pod .pts { color: rgba(255, 255, 255, .6); font-size: .85rem; }
.pod .ttl { display: inline-flex; align-items: center; gap: .3rem; color: #fde68a; font-size: .8rem; font-weight: 700; }
.tag { padding: .05rem .5rem; border-radius: 6px; background: var(--tg-bg); color: var(--tg); font-size: .72rem; font-weight: 800; }

/* Modos */
.modes { grid-template-columns: repeat(4, 1fr); }
.mode { display: flex; flex-direction: column; gap: 1rem; padding: 1rem; }
.mode:hover { border-color: var(--blue); }
.mode .top { display: flex; align-items: center; gap: .75rem; font-weight: 800; font-size: 1.05rem; }
.mode .ibox { width: 42px; height: 42px; font-size: 1.6rem; transition: transform .3s var(--ease); }
.mode:hover .ibox { transform: scale(1.15) rotate(-6deg); }
.mode .bot { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; font-weight: 700; }

/* Regiones */
.regions { grid-template-columns: repeat(6, 1fr); }
.region { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.1rem .5rem; text-align: center; font-size: .78rem; font-weight: 700; }
.region .code { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--rg-bg); color: var(--rg); font-size: 1rem; font-weight: 900; transition: transform .3s var(--ease); }
.region:hover .code { transform: scale(1.12); }
.region span:last-child { color: var(--muted); }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; counter-reset: s; max-width: 860px; margin-inline: auto; }
.steps li { padding: 1.4rem 1.2rem; text-align: center; }
.steps li::before { content: counter(s); counter-increment: s; display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: .6rem; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); font-weight: 800; }
.steps h3 { margin-bottom: .4rem; font-size: 1.05rem; }

/* Puntos y títulos */
.panel { overflow: hidden; }
.points, .titles { max-width: 680px; margin-inline: auto; padding: .5rem 1.25rem; }
.points li, .titles li { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); transition: padding .2s ease, background .2s ease; }
.points li:last-child, .titles li:last-child { border-bottom: 0; }
.points li:hover, .titles li:hover { padding-left: .5rem; }
.points .tier { display: inline-flex; align-items: center; gap: .5rem; min-width: 6rem; font-weight: 800; color: var(--c); }
.points .tier .ic { width: 1.1em; height: 1.1em; }
.points .bar { width: 2px; height: 22px; background: var(--c); }
.points .pills { display: flex; gap: .5rem; margin-left: auto; }
.chip { padding: .2rem .7rem; border: 1px solid var(--c); border-radius: 999px; background: var(--panel-2); color: var(--c); font-size: .78rem; font-weight: 800; }
.titles .gem { display: grid; place-items: center; width: 34px; font-size: 1.7rem; color: var(--c); }
.titles strong { display: block; color: var(--c); }
.titles span { color: var(--muted); font-size: .85rem; }

/* Llamadas a la acción */
.cta { max-width: 800px; margin-inline: auto; padding: 3.25rem 1.5rem; text-align: center; }
.cta h2 { margin-top: .5rem; font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 900; letter-spacing: -.02em; }
.cta p { max-width: 52ch; margin: .9rem auto 0; color: var(--muted); }
.cta-hi { border-color: #33538f; background: radial-gradient(70% 90% at 50% 0%, rgba(59, 130, 246, .18), transparent 70%), linear-gradient(180deg, #14213a, #0f1626); box-shadow: 0 0 48px rgba(59, 130, 246, .1); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.5rem; }
.chips li { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: .85rem; font-weight: 700; transition: background .2s ease, transform .2s var(--ease); }
.chips li:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }
.end { padding-block: 3rem; }

/* ---------- Vistas reservadas ---------- */
.page-title { text-align: center; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -.03em; }
.slot { min-height: 320px; display: grid; place-items: center; padding: 2rem; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

/* ---------- Pie ---------- */
.foot { width: min(1240px, 100% - 1.5rem); margin: 9rem auto 1rem; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr; gap: 2.5rem; padding: 3.5rem 1rem; }
.foot-grid .muted { max-width: 34ch; margin: 1rem 0 1.5rem; font-size: .92rem; }
.foot-h { margin-bottom: 1.1rem; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.foot-list { display: grid; gap: .75rem; font-size: .92rem; }
.foot-list.cols { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 2.5rem; }
.foot-list a { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted); transition: color .2s ease, transform .2s var(--ease); }
.foot-list a:hover { color: var(--text); transform: translateX(3px); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1.5rem 1rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* ---------- Animaciones ---------- */
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, .55); } 100% { box-shadow: 0 0 0 9px rgba(59, 130, 246, 0); } }

.view { animation: fade .4s ease; }

/* Elevación al pasar el ratón (usa "translate", independiente de la animación de entrada) */
.lift, .mode, .region, .pod, .why li, .steps li, .stats li {
  transition: translate .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}
.lift:hover, .mode:hover, .region:hover, .pod:hover { translate: 0 -4px; }
.lift:hover, .mode:hover, .region:hover { border-color: #3b4f73; box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }

/* Solo si el navegador permite animaciones (JS añade la clase "anim") */
.anim .nav { animation: down .6s var(--ease) both; }
.anim .hero > * { animation: up .8s var(--ease) both; }
.anim .hero > :nth-child(1) { animation-delay: .05s; }
.anim .hero > :nth-child(2) { animation-delay: .12s; }
.anim .hero > :nth-child(3) { animation-delay: .2s; }
.anim .hero > :nth-child(4) { animation-delay: .28s; }
.anim .hero > :nth-child(5) { animation-delay: .36s; }
.anim .rv {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms),
              translate .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}
.anim .rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .links { gap: 0; }
  .search { width: 190px; }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .links {
    display: none; position: absolute; top: calc(100% + .5rem); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; padding: .6rem;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  }
  .links.open { display: flex; animation: pop .25s var(--ease); }
  .links a.on::after { display: none; }
  .dd-menu { position: static; margin-top: .25rem; box-shadow: none; }
  .tools { order: 3; width: 100%; }
  .search { flex: 1; width: auto; }
  .nav { flex-wrap: wrap; }
  .stats, .why, .modes { grid-template-columns: repeat(2, 1fr); }
  .regions { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot { margin-top: 6rem; }
}
@media (max-width: 560px) {
  .podium { grid-template-columns: 1fr; }
  .pod.r1, .pod.r2, .pod.r3 { order: 0; }
  .stats, .why { grid-template-columns: 1fr; }
  .points .pills { flex-wrap: wrap; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
