/* =============================================================
   VIDA ROL — Home / sistema visual "negro espacial + aqua"
   Archivo autónomo. No depende de style.css.
   ============================================================= */

:root {
  --bg:        #04060a;
  --bg-2:      #070b12;
  --panel:     #0b111b;
  --panel-2:   #0e1622;
  --line:      rgba(83, 233, 222, .14);
  --line-soft: rgba(255, 255, 255, .06);

  --aqua:      #35e0d1;
  --aqua-br:   #7ff5ec;
  --aqua-dim:  #159b91;
  --aqua-glow: rgba(53, 224, 209, .35);

  --text:      #e9f1f2;
  --muted:     #8ba0a6;
  --muted-2:   #5f7278;

  --ok:        #35e08a;
  --warn:      #ffcf5c;
  --danger:    #ff6b6b;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 24px 60px -20px rgba(0, 0, 0, .8);
  --ring:      0 0 0 1px var(--line), 0 0 40px -12px var(--aqua-glow);

  --ff-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --ff-body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }

/* ---------- Fondo estelar ---------- */
.vr-space {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(53,224,209,.10), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(53,224,209,.06), transparent 60%),
    linear-gradient(180deg, #04060a 0%, #04060a 40%, #05080e 100%);
}
#vr-stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .9; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--container), 92vw); margin-inline: auto; }
section { position: relative; z-index: 1; }
.sec { padding: 84px 0; }
.sec-tight { padding: 56px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--aqua);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(53, 224, 209, .05);
}
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 18px 0 12px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }
.sec-head.center { margin-inline: auto; text-align: center; }

/* ---------- Botones ---------- */
.btn {
  --_bg: transparent; --_fg: var(--text); --_bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-display); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--_bd); background: var(--_bg); color: var(--_fg);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  --_bg: linear-gradient(135deg, var(--aqua), var(--aqua-dim));
  --_fg: #012;
  --_bd: transparent;
  box-shadow: 0 12px 34px -12px var(--aqua-glow);
}
.btn-primary:hover { box-shadow: 0 18px 44px -12px var(--aqua-glow); }
.btn-ghost { --_bg: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--aqua); color: var(--aqua-br); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.nav.scrolled {
  background: rgba(4, 6, 10, .82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 14px; height: 78px; }
.nav-logo { flex: none; display: flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; flex: none; display: block; }
.nav-links {
  flex: 0 1 auto; margin-left: auto;
  display: flex; align-items: center; justify-content: flex-end; gap: 2px;
}
.nav-links a {
  flex: none;
  font-family: var(--ff-display); font-weight: 500; font-size: .85rem;
  letter-spacing: .02em; color: var(--muted); padding: 8px 11px; border-radius: 8px;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-links a.active { color: var(--aqua-br); }
.nav-cta { flex: none; display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav.open .nav-inner { flex-wrap: wrap; height: auto; padding-bottom: 0; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; order: 3; gap: 2px;
    background: rgba(4,6,10,.97); border-top: 1px solid var(--line); padding: 14px;
  }
  .nav.open .nav-cta {
    display: flex; flex-direction: column; width: 100%; order: 4; gap: 10px;
    padding: 0 14px 16px; background: rgba(4,6,10,.97);
  }
  .nav.open .nav-cta .btn { flex: none; width: 100%; }
}

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* Indicador de online en la barra de menú */
.nav-online {
  display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-soft);
  font-family: var(--ff-display); font-weight: 600; font-size: .78rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.nav-online .dot { width: 8px; height: 8px; border-radius: 50%; }
.nav-online.on .dot  { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: pulse 2s infinite; }
.nav-online.off { color: var(--warn); }
.nav-online.off .dot { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.nav-online b { color: var(--aqua-br); font-weight: 800; }
@media (max-width: 1240px){ .nav-online { display: none; } }

/* ---------- HERO (centrado) ---------- */
.hero {
  min-height: 86vh; display: flex; align-items: center;
  padding: 124px 0 84px; text-align: center; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(83,233,222,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83,233,222,.05) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 72% 65% at 50% 45%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 72% 65% at 50% 45%, #000 25%, transparent 78%);
}
.hero-inner { max-width: 960px; margin-inline: auto; }
.hero .eyebrow { margin-bottom: 28px; }
.hero-kicker {
  font-family: var(--ff-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.04; letter-spacing: -.02em;
}
.hero-kicker .l2 { display: block; color: var(--aqua-br); text-shadow: 0 0 54px var(--aqua-glow); }
.hero p.lead {
  font-family: var(--ff-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(.9rem, 1.2vw, 1.05rem); letter-spacing: .16em;
  color: var(--muted); margin: 22px auto 0;
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }

/* Píldora de jugadores en línea / mantenimiento */
.live-pill {
  display: inline-flex; align-items: center; gap: 11px; margin-top: 26px;
  padding: 12px 22px; border-radius: 999px;
  border: 1px solid rgba(53,224,138,.45); background: rgba(53,224,138,.08);
  font-family: var(--ff-display); font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  font-size: .9rem; color: var(--ok);
}
.live-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 14px var(--ok); animation: pulse 2s infinite; }
.live-pill .n { color: #fff; }
.live-pill small { color: rgba(255,255,255,.55); font-weight: 600; letter-spacing: .06em; }
.live-pill.maint {
  border-color: rgba(255,207,92,.45); background: rgba(255,207,92,.08); color: var(--warn);
}
.live-pill.maint .dot { background: var(--warn); box-shadow: 0 0 14px var(--warn); animation: none; }

/* Redes sociales dentro del hero */
.hero-social { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.hero-social a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.02); color: var(--muted);
  font-family: var(--ff-display); font-weight: 600; font-size: .82rem;
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.hero-social a:hover { transform: translateY(-2px); border-color: var(--aqua); color: var(--aqua-br); }
.hero-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Slider como banda ancha bajo el hero */
.band-slider .slide { aspect-ratio: 21 / 8; }
@media (max-width: 820px){ .band-slider .slide { aspect-ratio: 16 / 10; } }

@media (max-width: 900px) {
  .hero { min-height: auto; padding: 116px 0 64px; }
}

/* ---------- Logo tipográfico ---------- */
.wordmark {
  font-family: var(--ff-display); font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; white-space: nowrap; line-height: 1; display: inline-block;
}
.wordmark .a { color: var(--aqua-br); text-shadow: 0 0 20px var(--aqua-glow); }
.wordmark .b { color: var(--text); }
.nav .wordmark { font-size: 1.2rem; }
.footer .wordmark { font-size: 1.35rem; }

/* ---------- Banda de normativas ---------- */
.norm {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(120deg, var(--panel-2), var(--panel));
}
.norm-body { padding: 44px clamp(24px, 4vw, 52px); }
.norm-body .badge {
  display: inline-block; font-family: var(--ff-display); font-weight: 700;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: #012; background: var(--aqua); padding: 5px 12px; border-radius: 6px; margin-bottom: 18px;
}
.norm-body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.norm-body p { color: var(--muted); font-size: 1rem; margin-bottom: 26px; }
.norm-body p b { color: var(--text); }
.norm-art {
  align-self: stretch; min-height: 240px; position: relative;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(53,224,209,.16), transparent 55%),
    linear-gradient(180deg, #0a121b, #070d15);
  border-left: 1px solid var(--line);
  display: grid; place-items: center;
}
.norm-art span {
  font-family: var(--ff-display); font-weight: 800; font-size: clamp(3rem, 8vw, 6rem);
  color: rgba(53,224,209,.14); letter-spacing: .05em; user-select: none;
}
@media (max-width: 820px){
  .norm { grid-template-columns: 1fr; }
  .norm-art { display: none; }
}

/* ---------- Redes sociales ---------- */
.social-row {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.social-row a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.02); color: var(--muted);
  font-family: var(--ff-display); font-weight: 600; font-size: .9rem;
  transition: transform .15s ease, border-color .15s ease, color .15s ease;
}
.social-row a:hover { transform: translateY(-3px); border-color: var(--aqua); color: var(--aqua-br); }
.social-row svg { width: 22px; height: 22px; fill: currentColor; }

/* Franja de tops full-width: limitar la lista y hacerla legible */
.top-list { max-width: 860px; margin-inline: auto; }

/* ---------- Statement / bloque de mensaje ---------- */
.statement { text-align: center; max-width: 760px; margin-inline: auto; }
.statement .kick {
  font-family: var(--ff-display); font-weight: 700; color: var(--aqua);
  letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; margin-bottom: 16px;
}
.statement h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.statement p { color: var(--muted); font-size: 1.06rem; }
.statement p + p { margin-top: 14px; }
.statement .big { color: var(--text); font-size: 1.15rem; font-family: var(--ff-display); font-weight: 600; margin-top: 22px; }

/* Muro de historias de la comunidad */
.quote-wall { columns: 2; column-gap: 18px; margin-top: 40px; }
.quote-wall blockquote {
  break-inside: avoid; margin: 0 0 18px; padding: 22px 24px;
  border: 1px solid var(--line-soft); border-left: 3px solid var(--aqua);
  border-radius: var(--radius-sm); background: var(--panel);
  color: var(--muted); font-size: .97rem; font-style: italic;
}
@media (max-width: 760px){ .quote-wall { columns: 1; } }

/* ---------- Slider ---------- */
.slider { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.slides { display: flex; transition: transform .6s cubic-bezier(.65,.05,.36,1); }
.slide { min-width: 100%; position: relative; aspect-ratio: 21 / 8; background: var(--panel); }
.slide img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.slide-body {
  position: absolute; inset: auto 0 0 0; padding: 40px clamp(24px, 5vw, 64px);
  background: linear-gradient(180deg, transparent, rgba(4,6,10,.92));
}
.slide-body h3 { font-size: clamp(1.3rem, 2.6vw, 2rem); }
.slide-body p { color: var(--muted); max-width: 52ch; margin-top: 6px; }
.slider-dots { position: absolute; bottom: 18px; right: 24px; display: flex; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.28); cursor: pointer; padding: 0; }
.slider-dots button.active { background: var(--aqua); width: 26px; border-radius: 999px; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(4,6,10,.6); color: var(--text); font-size: 1.2rem; cursor: pointer;
  display: grid; place-items: center; backdrop-filter: blur(6px);
}
.slider-arrow:hover { border-color: var(--aqua); color: var(--aqua-br); }
.slider-arrow.prev { left: 16px; } .slider-arrow.next { right: 16px; }
@media (max-width: 700px){ .slide { aspect-ratio: 4 / 5; } }

/* ---------- Trust band ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.trust > div { background: var(--bg-2); padding: 26px 24px; }
.trust b { font-family: var(--ff-display); font-size: 1.7rem; color: var(--aqua-br); display: block; }
.trust span { color: var(--muted); font-size: .9rem; }
@media (max-width: 780px){ .trust { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .18s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(53,224,209,.35); }
.card .ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(53,224,209,.1); color: var(--aqua-br); font-size: 1.3rem; margin-bottom: 16px; border: 1px solid var(--line); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px){ .cards { grid-template-columns: 1fr; } }

/* ---------- Cómo jugar ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step .n { font-family: var(--ff-display); font-weight: 800; font-size: 2.6rem; color: rgba(53,224,209,.18); line-height: 1; }
.step h3 { font-size: 1.1rem; margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: .93rem; }
.play-box {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(53,224,209,.1), rgba(53,224,209,.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px;
}
.play-box h3 { font-size: 1.4rem; }
.play-box p { color: var(--muted); font-size: .95rem; }
.play-box .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 780px){ .steps { grid-template-columns: 1fr; } }

/* ---------- Tabs (tops) ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tabs[data-tops-tabs] { justify-content: center; }
.tab {
  font-family: var(--ff-display); font-weight: 600; font-size: .85rem;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); background: transparent; cursor: pointer; transition: all .15s ease;
}
.tab:hover { color: var(--text); }
.tab.active { color: #012; background: var(--aqua); border-color: transparent; }
.top-panel { display: none; }
.top-panel.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.top-list { display: grid; gap: 10px; }
.top-row {
  display: grid; grid-template-columns: 44px 52px 1fr auto; align-items: center; gap: 16px;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 12px 18px; transition: border-color .15s ease, transform .15s ease;
}
.top-row:hover { border-color: var(--line); transform: translateX(3px); }
.top-row .rank { font-family: var(--ff-display); font-weight: 800; font-size: 1.1rem; color: var(--muted-2); text-align: center; }
.top-row.r1 .rank, .top-row.r2 .rank, .top-row.r3 .rank { color: var(--aqua-br); }
.top-row .avatar { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #0a0f16; border: 1px solid var(--line); }
.top-row .avatar img { width: 150%; height: auto; margin-left: -25%; margin-top: -8%; }
.top-row .name { font-family: var(--ff-display); font-weight: 600; font-size: 1rem; }
.top-row .val { font-family: var(--ff-display); font-weight: 700; color: var(--aqua-br); }
.top-row .val small { display: block; font-size: .7rem; color: var(--muted-2); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; text-align: right; }

/* ---------- Feed anuncios / red social ---------- */
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 12px; transition: border-color .18s ease, transform .18s ease;
}
.post:hover { border-color: var(--line); transform: translateY(-3px); }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-head .pfp { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: #0a0f16; border: 1px solid var(--line); flex: none; }
.post-head .pfp img { width: 150%; margin-left: -25%; margin-top: -6%; }
.post-head .who { font-family: var(--ff-display); font-weight: 600; font-size: .92rem; }
.post-head time { font-size: .76rem; color: var(--muted-2); }
.post-tag { font-size: .68rem; font-weight: 700; letter-spacing: .1em; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--aqua); margin-left: auto; }
.post-body { color: var(--text); font-size: .95rem; }
.post-img { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-soft); }
.post-foot { display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-size: .82rem; margin-top: auto; }
.post-foot .like { color: var(--aqua); }
.feed-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 50px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
@media (max-width: 900px){ .feed-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .feed-grid { grid-template-columns: 1fr; } }

.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--aqua); font-family: var(--ff-display); font-weight: 600; font-size: .9rem; }
.more-link:hover { gap: 12px; color: var(--aqua-br); }

/* ---------- Ad slot ---------- */
.ad-slot { margin: 0 auto; text-align: center; }
.ad-slot .ad-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.ad-slot .ad-box {
  min-height: 90px; display: grid; place-items: center;
  border: 1px dashed var(--line); border-radius: var(--radius-sm); color: var(--muted-2); font-size: .85rem;
  background: rgba(255,255,255,.015);
}
.ad-slot[data-live="1"] .ad-box { border-style: solid; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 60px 30px; background: radial-gradient(600px 300px at 50% 0%, rgba(53,224,209,.12), transparent 70%), var(--panel);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band p { color: var(--muted); margin: 12px auto 28px; max-width: 52ch; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: 60px 0 28px; margin-top: 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 34px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: .9rem; max-width: 34ch; }
.footer h4 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { color: var(--muted); font-size: .9rem; }
.footer ul a:hover { color: var(--aqua-br); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); background: rgba(255,255,255,.03); transition: color .15s, border-color .15s, background .15s; }
.footer-social a svg { width: 18px; height: 18px; fill: currentColor; display: block; }
.footer-social a:hover { color: var(--aqua-br); border-color: var(--aqua); background: rgba(53,224,209,.08); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: .82rem; }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Alertas flotantes ---------- */
.flash { position: fixed; top: 90px; left: 50%; transform: translateX(-50%); z-index: 80;
  background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--aqua);
  padding: 14px 20px; border-radius: 12px; font-size: .92rem; box-shadow: var(--shadow); max-width: 90vw; }
.flash.err { border-left-color: var(--danger); }

/* ---------- Modal login ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(2,4,8,.8); backdrop-filter: blur(6px); z-index: 100; display: none; place-items: center; padding: 20px; }
.modal-overlay.open { display: grid; }
.modal-box { width: min(420px, 100%); background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.modal-box h3 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-box p.sub { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; font-family: var(--ff-display); }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; background: #060a10;
  border: 1px solid var(--line); color: var(--text); font-family: var(--ff-body); font-size: .95rem;
}
.field input:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(53,224,209,.15); }
.modal-box .btn { width: 100%; margin-top: 6px; }
.modal-x { float: right; background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.modal-alt { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 16px; }
.modal-alt a { color: var(--aqua); }

/* ---------- Logo ---------- */
.nav-logo { display: flex; align-items: center; gap: 10px; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Anuncios oficiales (lista en acordeón) ---------- */
.news-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; margin-inline: auto; }
.badge {
  font-family: var(--ff-display); font-size: .66rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #012; background: var(--aqua); padding: 3px 9px; border-radius: 6px;
}

.news-item {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft); border-left: 3px solid var(--aqua);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .18s ease;
}
.news-item[open] { border-left-color: var(--aqua-br); }
.news-head {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; user-select: none;
}
.news-head::-webkit-details-marker { display: none; }
.news-head:hover { background: rgba(255,255,255,.02); }
.news-head .news-date {
  font-family: var(--ff-display); font-weight: 700; font-size: .78rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--aqua); flex: none;
  min-width: 96px;
}
.news-head .news-title { font-family: var(--ff-display); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.news-head .news-chevron {
  margin-left: auto; flex: none; color: var(--muted-2); font-size: 1.2rem; line-height: 1;
  transition: transform .2s ease;
}
.news-item[open] .news-head .news-chevron { transform: rotate(180deg); color: var(--aqua); }
.news-body { padding: 4px 22px 24px; border-top: 1px solid var(--line-soft); }
@media (max-width: 620px){
  .news-head { flex-wrap: wrap; gap: 6px 12px; }
  .news-head .news-chevron { order: 3; }
}

.news-more { text-align: center; margin-top: 24px; }

.cuerpo { color: var(--muted); font-size: .95rem; line-height: 1.75; }
.cuerpo strong { color: var(--text); font-weight: 700; }
.cuerpo .sub {
  display: block; margin-top: 18px; margin-bottom: 4px;
  font-family: var(--ff-display); font-weight: 700; color: var(--aqua-br); font-size: 1.02rem;
}
.cuerpo .li { display: block; padding-left: 18px; position: relative; }
.cuerpo .li::before { content: "▸"; position: absolute; left: 0; color: var(--aqua); }

.news-head .badge { flex: none; }

/* Cabecera simple para páginas internas (actualizaciones, normativas, discords…) */
.page-head { padding: 128px 0 40px; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-head p { color: var(--muted); margin-top: 12px; max-width: 60ch; margin-inline: auto; }
.page-back { display: inline-flex; align-items: center; gap: 8px; color: var(--aqua); font-family: var(--ff-display); font-weight: 600; font-size: .85rem; margin-top: 18px; }
.page-back:hover { gap: 12px; color: var(--aqua-br); }

/* Rejilla de enlaces (discords, etc.) */
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.link-card {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px;
  transition: transform .15s ease, border-color .15s ease;
}
.link-card:hover { transform: translateY(-3px); border-color: var(--aqua); }
.link-card .ic {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px;
  background: rgba(53,224,209,.1); color: var(--aqua-br); border: 1px solid var(--line);
}
.link-card .ic svg { width: 20px; height: 20px; fill: currentColor; }
.link-card .nm { font-family: var(--ff-display); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.link-card .go {
  margin-left: auto; flex: none; font-family: var(--ff-display); font-weight: 600; font-size: .8rem;
  color: var(--aqua); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}
.link-card:hover .go { background: var(--aqua); color: #012; border-color: transparent; }

.sec-group + .sec-group { margin-top: 48px; }
.sec-group > h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}

/* Descargas */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px){ .dl-grid { grid-template-columns: 1fr; } }
.dl-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; text-align: center;
}
.dl-card .ic { font-size: 1.8rem; color: var(--aqua-br); margin-bottom: 10px; }
.dl-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.dl-card p { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.dl-card .btn { width: 100%; }
.dl-card .upd { display: block; margin-top: 12px; font-size: .76rem; color: var(--muted-2); letter-spacing: .04em; }
.req-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 40px;
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 32px;
}
@media (max-width: 760px){ .req-grid { grid-template-columns: 1fr; } }
.req-grid h3 { font-family: var(--ff-display); font-weight: 700; font-size: 1rem; color: var(--aqua-br); margin-bottom: 14px; }
.req-grid ul { list-style: none; display: grid; gap: 9px; }
.req-grid li { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: .9rem; border-bottom: 1px solid var(--line-soft); padding-bottom: 8px; }
.req-grid li b { color: var(--text); font-weight: 600; flex: none; }

/* ---------- Páginas de acceso (login, recuperar, 2FA) ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 110px 20px 70px; position: relative; z-index: 1; }
.auth-card {
  width: min(430px, 100%);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 34px; box-shadow: var(--shadow);
}
.auth-card .wordmark { display: block; text-align: center; font-size: 1.35rem; margin-bottom: 18px; }
.auth-card h1 { font-size: 1.4rem; text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.auth-card .btn { width: 100%; margin-top: 8px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: .88rem; color: var(--muted); }
.auth-alt a { color: var(--aqua); }
.auth-alt a:hover { color: var(--aqua-br); }
.auth-msg { padding: 12px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 16px; border: 1px solid; }
.auth-msg.err { color: var(--danger); border-color: rgba(255,107,107,.4); background: rgba(255,107,107,.08); }
.auth-msg.ok  { color: var(--ok); border-color: rgba(53,224,138,.4); background: rgba(53,224,138,.08); }
.auth-code input { text-align: center; letter-spacing: .5em; font-size: 1.3rem; font-family: var(--ff-display); }

/* ---------- Foro ---------- */
.crumbs { font-family: var(--ff-display); font-size: .85rem; color: var(--muted-2); margin-bottom: 20px; }
.crumbs a { color: var(--aqua); }
.crumbs a:hover { color: var(--aqua-br); }
.crumbs .sep { margin: 0 8px; color: var(--muted-2); }

.forum-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.forum-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.cat-list { display: grid; gap: 12px; }
.cat-item {
  display: block; background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-soft); border-left: 3px solid var(--aqua);
  border-radius: var(--radius); padding: 20px 24px;
  transition: transform .15s ease, border-color .15s ease;
}
.cat-item:hover { transform: translateX(4px); border-left-color: var(--aqua-br); }
.cat-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.cat-item p { color: var(--muted); font-size: .9rem; }

.thread-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 14px 20px; margin-bottom: 8px; transition: border-color .15s ease;
}
.thread-row:hover { border-color: var(--aqua); }
.thread-row .t a { font-family: var(--ff-display); font-weight: 600; font-size: 1rem; }
.thread-row .t small { display: block; color: var(--muted-2); font-size: .8rem; margin-top: 2px; }
.thread-row .act { text-align: right; color: var(--muted-2); font-size: .78rem; flex: none; }

.post-card {
  display: grid; grid-template-columns: 140px 1fr;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 16px; background: var(--panel);
}
.post-card .who { background: var(--bg-2); padding: 22px 16px; text-align: center; border-right: 1px solid var(--line-soft); }
.post-card .who img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; margin: 0 auto 8px; border: 1px solid var(--line); display: block; }
.post-card .who .username { font-family: var(--ff-display); font-weight: 600; font-size: .88rem; word-break: break-word; }
.post-card .pbody { padding: 20px 24px; min-width: 0; }
.post-card .meta { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: .8rem; margin-bottom: 12px; border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; }
.post-card .content { color: var(--text); font-size: .95rem; line-height: 1.7; white-space: pre-wrap; word-wrap: break-word; }
@media (max-width: 560px){
  .post-card { grid-template-columns: 1fr; }
  .post-card .who { border-right: 0; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 12px; text-align: left; }
  .post-card .who img { margin: 0; }
}

.form-block { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form-block h3 { font-size: 1.05rem; margin-bottom: 16px; }
.form-block textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; background: #060a10;
  border: 1px solid var(--line); color: var(--text); font-family: var(--ff-body); font-size: .95rem;
  resize: vertical; min-height: 120px;
}
.form-block textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(53,224,209,.15); }

.btn-danger-ghost {
  color: var(--danger); border: 1px solid rgba(255,107,107,.4); background: rgba(255,107,107,.06);
  border-radius: 999px; padding: 8px 16px; font-family: var(--ff-display); font-weight: 600; font-size: .8rem; cursor: pointer;
}
.btn-danger-ghost:hover { background: var(--danger); color: #fff; }
.empty-note { text-align: center; color: var(--muted); padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Certificado (examen) ---------- */
.cert-timer { position: fixed; top: 90px; right: 20px; z-index: 1050; display: flex; gap: 10px; }
.cert-timer .box { font-family: var(--ff-display); font-weight: 800; font-size: 1.35rem; padding: 8px 18px; border-radius: 10px; min-width: 96px; text-align: center; box-shadow: var(--shadow); }
.cert-timer .time { background: var(--aqua); color: #012; }
.cert-timer .lives.safe { background: var(--ok); color: #012; }
.cert-timer .lives.warn { background: var(--warn); color: #012; }
.cert-timer .lives.crit { background: var(--danger); color: #fff; }
@media (max-width: 640px){ .cert-timer { top: auto; bottom: 14px; right: 14px; } }

.cert-q { margin-bottom: 22px; padding: 18px 20px; border-left: 3px solid var(--aqua); background: var(--panel); border-radius: var(--radius-sm); }
.cert-q .q { font-family: var(--ff-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 12px; }
.cert-opt { display: block; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: 8px; cursor: pointer; color: var(--muted); transition: border-color .12s ease, background .12s ease, color .12s ease; }
.cert-opt:hover { border-color: var(--aqua); color: var(--text); }
.cert-opt input { accent-color: var(--aqua); margin-right: 10px; }
.cert-opt:has(input:checked) { border-color: var(--aqua); background: rgba(53,224,209,.08); color: var(--text); }

/* ---------- Tienda ---------- */
.shop-sec { display: none; }
.shop-sec.active { display: block; animation: fade .3s ease; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.shop-card { display: flex; flex-direction: column; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.shop-card:hover { transform: translateY(-4px); border-color: var(--aqua); }
.shop-card .img { aspect-ratio: 4 / 3; background: #05080e; border-bottom: 1px solid var(--line-soft); }
.shop-card .img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.shop-card .body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-card h3 { font-size: .98rem; }
.shop-card .price { font-family: var(--ff-display); font-weight: 800; color: var(--aqua-br); }
.shop-card .price small { display: block; color: var(--muted-2); font-weight: 500; font-size: .72rem; }
.shop-card .btn { margin-top: auto; width: 100%; }

.vip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.vip-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--panel-2), var(--panel)); padding: 28px 24px; display: flex; flex-direction: column; }
.vip-card.pop { border-color: var(--aqua); box-shadow: 0 0 44px -16px var(--aqua-glow); }
.vip-card .pop-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--aqua); color: #012; font-family: var(--ff-display); font-weight: 700; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.vip-card h3 { text-align: center; font-size: 1.2rem; margin-bottom: 16px; }
.vip-card ul { list-style: none; display: grid; gap: 8px; margin-bottom: 18px; }
.vip-card li { color: var(--muted); font-size: .86rem; padding-left: 20px; position: relative; }
.vip-card li::before { content: "✓"; position: absolute; left: 0; color: var(--aqua); }
.vip-card .cost { text-align: center; font-family: var(--ff-display); font-weight: 800; font-size: 1.1rem; color: var(--aqua-br); margin: auto 0 12px; }
.vip-card .btn { width: 100%; }

.info-list { display: grid; gap: 6px; }
.info-list li { color: var(--muted); font-size: .92rem; padding-left: 16px; position: relative; }
.info-list li::before { content: "›"; position: absolute; left: 0; color: var(--aqua); }
.info-list h4 { margin-top: 16px; margin-bottom: 6px; font-family: var(--ff-display); color: var(--aqua-br); font-size: .95rem; }

/* =========================================================================
   PCU (panel de usuario)
   ========================================================================= */
.pcu-wrap { padding: 104px 0 70px; }
.pcu-grid { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 980px){ .pcu-grid { grid-template-columns: 1fr; } }

/* --- Barra lateral de pestañas --- */
.pcu-side {
  position: sticky; top: 96px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px;
}
@media (max-width: 980px){ .pcu-side { position: static; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 2px; } }
@media (max-width: 980px){ .pcu-side a { width: 100%; } }
.pcu-side a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font-family: var(--ff-display); font-weight: 600; font-size: .88rem; color: var(--muted);
  border-left: 3px solid transparent; white-space: nowrap;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.pcu-side a:hover { background: rgba(255,255,255,.03); color: var(--text); }
.pcu-side a.active { background: rgba(53,224,209,.1); color: var(--aqua-br); border-left-color: var(--aqua); }
.pcu-side a .ico {
  width: 18px; height: 18px; flex: none; opacity: .9;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; overflow: hidden;
  font-variant-emoji: text; -webkit-font-feature-settings: "liga" 0;
}
.pcu-side a .label { color: inherit; flex: 1 1 auto; min-width: 0; }
.pcu-side hr { border: 0; border-top: 1px solid var(--line-soft); margin: 8px 4px; }

/* --- Cabecera slim (siempre visible) --- */
.pcu-top {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px;
}
.pcu-top .mini-skin {
  width: 54px; height: 54px; border-radius: 12px; overflow: hidden; flex: none;
  background: #05080e; border: 1px solid var(--line); display: grid; place-items: center;
}
.pcu-top .mini-skin img { width: 150%; margin-top: 12%; }
.pcu-top .who h1 { font-size: 1.35rem; line-height: 1.1; }
.pcu-top .who p { color: var(--muted); font-size: .82rem; margin-top: 2px; letter-spacing: .04em; text-transform: uppercase; }
.pcu-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.pcu-pill {
  font-family: var(--ff-display); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.pcu-pill.vip { color: var(--warn); border-color: rgba(255,207,92,.4); background: rgba(255,207,92,.08); }
.pcu-pill.lvl { color: var(--aqua-br); border-color: rgba(53,224,209,.4); background: rgba(53,224,209,.08); }

/* --- Tarjetas de contenido --- */
.pcu-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.pcu-card + .pcu-card { margin-top: 20px; }
.pcu-card h2.h {
  font-family: var(--ff-display); font-size: 1.25rem; margin-bottom: 18px; color: var(--text);
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.pcu-tiles { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 980px){ .pcu-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px){ .pcu-tiles { grid-template-columns: repeat(2, 1fr); } }
.pcu-panes > .pcu-pane { display: none; }
.pcu-panes > .pcu-pane.active { display: block; animation: fade .25s ease; }

/* --- Fila de fichas (dinero, coins, horas…) --- */
.pcu-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.pcu-tile { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 16px 18px; }
.pcu-tile b { font-family: var(--ff-display); font-weight: 800; font-size: 1.45rem; color: var(--text); display: block; }
.pcu-tile.aqua b { color: var(--aqua-br); }
.pcu-tile.gold b { color: var(--warn); }
.pcu-tile span { font-size: .72rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .1em; }

/* --- Escenario del personaje (estilo "character select") --- */
.pcu-stage {
  position: relative; text-align: center; padding: 24px 0 8px;
  background:
    radial-gradient(520px 380px at 50% 44%, rgba(53,224,209,.10), transparent 70%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.pcu-stage .stage-name { font-family: var(--ff-display); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-transform: uppercase; letter-spacing: .02em; color: #fff; text-shadow: 0 0 34px rgba(255,255,255,.18); position: relative; z-index: 4; }
.pcu-stage .stage-sub { color: var(--muted); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; position: relative; z-index: 4; }
.pcu-stage .stage-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 14px 0 6px; }

.pcu-figure { position: relative; width: min(560px, 92%); margin: 8px auto 0; aspect-ratio: 1 / 1; }
.pcu-figure::before {
  content: ""; position: absolute; left: 50%; top: 52%; width: 62%; aspect-ratio: 1/.9;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 210deg, #ff3ea5, #ffcf5c, #35e0d1, #4aa8ff, #35e08a, #ff7847, #ff3ea5);
  filter: blur(2px); opacity: .5;
  clip-path: polygon(50% 4%, 96% 92%, 4% 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 2px;
}
.pcu-figure .skin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 50%; height: auto; z-index: 2;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.7));
}
.pcu-figure model-viewer {
  position: absolute; inset: 9% 6% 5%; width: auto; height: auto; z-index: 2;
  background: transparent; --poster-color: transparent;
  filter: drop-shadow(0 24px 44px rgba(0,0,0,.6));
  opacity: 0; transition: opacity .4s ease;
}
/* Quitar la barra de carga negra de model-viewer (usamos nuestro propio fundido) */
.pcu-figure model-viewer::part(default-progress-bar) { display: none !important; }
.pcu-figure.is-3d-ready model-viewer { opacity: 1; }
/* Mientras carga el modelo: solo el resplandor de fondo, latiendo suave */
.pcu-figure.is-3d:not(.is-3d-ready)::before { animation: pcu-fig-pulse 1.6s ease-in-out infinite; }
@keyframes pcu-fig-pulse { 0%,100% { opacity: .28; } 50% { opacity: .6; } }
/* Controles de la figura: necesidades + pose */
.pcu-figure-ctrls { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 10px 0 2px; }
.fig-btn {
  font: 600 .72rem/1 var(--ff-display); letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: .15s;
}
.fig-btn:hover { color: var(--text); border-color: var(--aqua-br); }
.fig-btn.on { color: #05121a; background: var(--aqua); border-color: var(--aqua); }
.fig-anim { display: flex; align-items: center; gap: 8px; }
.fig-anim > span { font: 600 .68rem/1 var(--ff-display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fig-anim select {
  font: 600 .8rem var(--ff-body); color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 12px; cursor: pointer;
}
.fig-anim select:hover { border-color: var(--aqua-br); }
/* Ocultar/mostrar las necesidades alrededor del personaje (solo desktop) */
.pcu-stage .need-cell { transition: opacity .2s ease; }
.pcu-stage:not(.needs-open) .need-cell { opacity: 0; pointer-events: none; }

/* Etiquetas de necesidades alrededor (desktop) */
.need-cell { position: absolute; z-index: 3; width: 132px; }
.need-cell .lbl { font-family: var(--ff-display); font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.need-cell .val { font-family: var(--ff-display); font-weight: 800; font-size: 1.05rem; }
.need-cell .bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); margin-top: 4px; overflow: hidden; }
.need-cell .bar i { display: block; height: 100%; }
.need-cell.l { text-align: right; }
.need-cell.n0 { left: -8px;  top: 14%; }
.need-cell.n1 { right: -8px; top: 22%; text-align: left; }
.need-cell.n2 { left: -14px; top: 40%; }
.need-cell.n3 { right: -14px;top: 44%; text-align: left; }
.need-cell.n4 { left: 2%;    top: 66%; }
.need-cell.n5 { right: 0%;   top: 62%; text-align: left; }
.need-cell.n6 { left: 50%;   top: 92%; transform: translateX(-50%); text-align: center; width: 150px; }

.pcu-vitals { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; padding: 6px 20px 24px; }
.pcu-vitals .v { display: flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pcu-vitals .v .track { width: 200px; max-width: 40vw; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.pcu-vitals .v .track i { display: block; height: 100%; }
.pcu-vitals .v .hp i { background: linear-gradient(90deg, #ff3ea5, #ff7847); }
.pcu-vitals .v .ar i { background: linear-gradient(90deg, #4aa8ff, #35e0d1); }
.pcu-vitals .v b { color: var(--text); }

/* Fallback móvil: rejilla de necesidades bajo la figura */
.need-grid { display: none; }
@media (max-width: 900px){
  .need-cell { display: none; }
  .pcu-figure-ctrls [data-toggle-needs] { display: none; }  /* en móvil se usa la rejilla */
  .pcu-figure::before { opacity: .35; }
  .need-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 18px 18px; }
  .need-grid .n { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; }
  .need-grid .n .lbl { font-family: var(--ff-display); font-weight: 700; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .need-grid .n .bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); margin-top: 6px; overflow: hidden; }
  .need-grid .n .bar i { display: block; height: 100%; }
}

/* Listas info / finanzas dentro de la PCU */
.pcu-kv { list-style: none; display: grid; gap: 2px; }
.pcu-kv li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; color: var(--muted); }
.pcu-kv li:last-child { border-bottom: 0; }
.pcu-kv li b { color: var(--text); font-family: var(--ff-display); font-weight: 700; }
.pcu-kv li b.ok { color: var(--ok); }
.pcu-kv li b.gold { color: var(--warn); }
.pcu-kv li b.bad { color: var(--danger); }

/* --- Tabla dentro de la PCU --- */
.pcu-table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
table.pcu-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.pcu-table th {
  text-align: left; font-family: var(--ff-display); font-weight: 700; font-size: .74rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2);
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2);
}
table.pcu-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); color: var(--muted); }
table.pcu-table tr:last-child td { border-bottom: 0; }
table.pcu-table tbody tr:hover td { background: rgba(255,255,255,.02); }
table.pcu-table .num { text-align: right; font-family: var(--ff-display); }
table.pcu-table .pos { color: var(--ok); }
table.pcu-table .neg { color: var(--danger); }
table.pcu-table .empty td { text-align: center; padding: 32px; color: var(--muted-2); }

/* --- Rejilla de propiedades (autos, casas, negocios) --- */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.prop-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: transform .15s ease, border-color .15s ease;
}
.prop-card:hover { transform: translateY(-4px); border-color: var(--aqua); }
.prop-card .pic { aspect-ratio: 16 / 10; background: #05080e; display: grid; place-items: center; border-bottom: 1px solid var(--line-soft); }
.prop-card .pic img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.prop-card .meta { padding: 14px 16px; }
.prop-card .meta h4 { font-size: 1rem; color: var(--aqua-br); margin-bottom: 2px; }
.prop-card .meta p { font-size: .82rem; color: var(--muted); }

/* --- Formularios dentro de la PCU --- */
.pcu-form { max-width: 560px; }
.pcu-form .field { margin-bottom: 14px; }
.pcu-form label { display: block; font-family: var(--ff-display); font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.pcu-form input[type=text], .pcu-form input[type=password], .pcu-form input[type=email], .pcu-form select {
  width: 100%; padding: 11px 14px; border-radius: 10px; background: #060a10;
  border: 1px solid var(--line); color: var(--text); font-family: var(--ff-body); font-size: .95rem;
}
.pcu-form input:focus, .pcu-form select:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(53,224,209,.15); }
.pcu-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px){ .pcu-form .row2 { grid-template-columns: 1fr; } }
.pcu-radio { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; padding: 6px 0; }
.pcu-radio input { accent-color: var(--aqua); }
.pcu-sub { font-family: var(--ff-display); font-weight: 700; color: var(--aqua-br); font-size: 1rem; margin: 22px 0 4px; }
.pcu-hr { border: 0; border-top: 1px solid var(--line-soft); margin: 22px 0; }
.pcu-note { background: rgba(53,224,209,.06); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; color: var(--muted); font-size: .9rem; }
.email-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #060a10; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; max-width: 560px; }
.email-box button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.email-box button:hover { color: var(--aqua-br); border-color: var(--aqua); }

/* --- Anuncios del juego en la PCU --- */
.pcu-anuncio { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.pcu-anuncio .pfp { width: 48px; height: 48px; flex: none; border-radius: 50%; overflow: hidden; background: #05080e; border: 1px solid var(--line); }
.pcu-anuncio .pfp img { width: 150%; margin-left: -25%; }
.pcu-anuncio .who { font-family: var(--ff-display); font-weight: 700; color: var(--aqua-br); }
.pcu-anuncio .txt { color: var(--text); font-size: .94rem; margin-top: 2px; }
.pcu-anuncio .pic { margin-top: 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); max-width: 420px; }
.pcu-anuncio .foot { display: flex; justify-content: space-between; gap: 12px; color: var(--muted-2); font-size: .78rem; margin-top: 10px; }

/* --- Estado de certificado --- */
.cert-status { text-align: center; max-width: 520px; margin: 10px auto; }
.cert-status .big { font-family: var(--ff-display); font-weight: 800; font-size: 1.3rem; margin: 10px 0; }
.cert-status .big.ok { color: var(--ok); }
.cert-status .big.no { color: var(--danger); }
.cert-status .big.pend { color: var(--warn); }

/* --- Modales propios de la PCU --- */
.vr-modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 20px;
  background: rgba(2,4,8,.8); backdrop-filter: blur(6px); }
.vr-modal.open { display: grid; }
.vr-modal-box { width: min(460px, 100%); max-height: 86vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.vr-modal-box.lg { width: min(680px, 100%); }
.vr-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--line); }
.vr-modal-head h3 { font-size: 1.1rem; }
.vr-modal-x { background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.vr-modal-x:hover { color: var(--text); }
.vr-modal-body { padding: 22px; }
.vr-modal-body > img { display: block; max-width: 78%; margin: 0 auto 18px; }
.vr-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
.modal-kv { list-style: none; display: grid; gap: 2px; max-width: 340px; margin: 0 auto; }
.modal-kv li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.modal-kv li:last-child { border-bottom: 0; }
.modal-kv .k { color: var(--muted); }
.modal-kv .v { color: var(--text); font-family: var(--ff-display); font-weight: 700; }

/* --- Historia (chat de rol) --- */
.hist-wrap { max-height: 560px; overflow-y: auto; padding: 14px; background: #060a10; border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 18px; }
.hist-msg { display: flex; gap: 12px; margin-bottom: 16px; }
.hist-msg .av { width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; background: #05080e; border: 1px solid var(--line); }
.hist-msg .av img { width: 150%; margin-left: -25%; }
.hist-msg .bub { background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); border-radius: 4px 14px 14px 14px; padding: 12px 16px; width: 100%; position: relative; }
.hist-msg.staff .bub { background: rgba(53,224,209,.09); border-color: rgba(53,224,209,.3); }
.hist-msg .aut { font-family: var(--ff-display); font-weight: 700; color: var(--aqua-br); font-size: .88rem; margin-bottom: 4px; }
.hist-msg.staff .aut { color: #7ff5ec; }
.hist-msg .txt { white-space: pre-wrap; word-wrap: break-word; color: var(--text); font-size: .94rem; }
.hist-msg .dt { text-align: right; font-size: .76rem; color: var(--muted-2); margin-top: 6px; }
.hist-msg .del { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: var(--danger); cursor: pointer; opacity: .5; font-size: .9rem; }
.hist-msg:hover .del { opacity: 1; }
.pcu-form textarea { width: 100%; padding: 12px 14px; border-radius: 10px; background: #060a10; border: 1px solid var(--line); color: var(--text); font-family: var(--ff-body); font-size: .95rem; resize: vertical; min-height: 100px; }
.pcu-form textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(53,224,209,.15); }
.pcu-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.pcu-inline input[type=number] { width: 140px; padding: 10px 12px; border-radius: 10px; background: #060a10; border: 1px solid var(--line); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn-ok { background: var(--ok); color: #012; border-color: transparent; }

/* ---------- Videos de la comunidad ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.video {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); background: #000; aspect-ratio: 16 / 9; cursor: pointer;
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity .2s ease, transform .3s ease; }
.video:hover img { opacity: 1; transform: scale(1.03); }
.video .play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.video .play span {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(4,6,10,.65); border: 1px solid var(--aqua); color: var(--aqua-br);
  font-size: 1.3rem; backdrop-filter: blur(4px); transition: transform .18s ease, background .18s ease;
}
.video:hover .play span { transform: scale(1.1); background: var(--aqua); color: #012; }
.video .vtitle {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px;
  font-family: var(--ff-display); font-weight: 600; font-size: .86rem;
  background: linear-gradient(180deg, transparent, rgba(4,6,10,.92));
}
.video .vtitle small { display: block; color: var(--muted); font-weight: 400; font-size: .76rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos-cta { margin-top: 22px; padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
@media (max-width: 900px){ .videos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .videos { grid-template-columns: 1fr; } }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
