/* ==========================================================
   VICEWAVE — rediseño minimalista
   Una sola tipografía (Nunito Sans), neutros violeta oscuro,
   rosa como único acento y el hero como pieza protagonista.
   ========================================================== */
:root {
  --bg: #110e1c;
  --bg-2: #171325;
  --bg-3: #201b33;
  --bg-carousel: #0b0912;
  --border: rgba(255,255,255,.08);
  --border-hover: rgba(255,255,255,.2);
  --text: #f5f2fb;
  --text-muted: rgba(245,242,251,.56);
  --text-dim: rgba(245,242,251,.78);
  --accent: #ff5fae;
  --accent-glow: rgba(255,95,174,.14);
  --vc-pink: #ff5fae;
  --vc-purple: #c45fff;
  --ink: #110e1c;
  --gutter: 56px;
  --maxw: 1320px;
  --ease: cubic-bezier(.2,.6,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 16px; line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── NAVBAR ─────────────────────────────────────────────── */
body > nav { position: sticky; top: 0; z-index: 100; height: 68px; display: flex; align-items: center; padding: 0 var(--gutter); background: linear-gradient(90deg, rgba(3,3,3,.92) 0%, rgba(26,26,26,.82) 100%); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); border-bottom: 1px solid rgba(255,255,255,.1); transition: border-color .3s, background .3s; }
body > nav.scrolled { border-bottom-color: var(--border-hover); background: linear-gradient(90deg, rgba(3,3,3,.96) 0%, rgba(26,26,26,.9) 100%); }
.nav-logo { display: flex; align-items: center; height: 100%; flex-shrink: 0; transition: transform .25s var(--ease); }
.nav-logo:hover { transform: scale(1.1); }
.logo-img { height: 46px; width: auto; object-fit: contain; }
.nav-separator { width: 1px; height: 20px; background: var(--border-hover); margin: 0 32px; flex-shrink: 0; }
.nav-links { display: flex; gap: 36px; list-style: none; height: 100%; margin-right: auto; }
.nav-links li { display: flex; height: 100%; }
.nav-links a {
  position: relative; display: flex; align-items: center; height: 100%;
  color: var(--text-dim); text-decoration: none; font-size: 16px; font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
}
.nav-pill { background: var(--accent); color: var(--ink); font-size: 10px; font-weight: 800; padding: 1px 8px; border-radius: 4px; margin-left: 7px; line-height: 1.6; }
.nav-login-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--border-hover); border-radius: 4px; background: transparent; color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; margin-right: 8px; transition: background .2s, border-color .2s; }
.nav-login-btn:hover { background: rgba(255,255,255,.07); border-color: var(--text-dim); }
.nav-login-btn i { font-size: 12px; }
.nav-user-area { display: none; align-items: center; gap: 10px; }
.nav-user-area.visible { display: flex; }
.nav-user-avatar-small {
  width: 32px; height: 32px; border-radius: 50%; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, var(--vc-purple), var(--vc-pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
}
.nav-user-name-small { font-size: 13px; font-weight: 700; color: var(--text-dim); cursor: pointer; transition: color .2s; }
.nav-user-name-small:hover { color: var(--text); }
.nav-social-sep { display: none; width: 1px; height: 18px; background: var(--border-hover); margin: 0 16px; }
.nav-user-area.visible ~ .nav-social-sep, .nav-social-sep.visible { display: block; }
.nav-social { display: flex; gap: 18px; align-items: center; margin-left: 12px; }
.nav-social a { color: var(--text-muted); font-size: 15px; text-decoration: none; transition: color .2s; }
.nav-social a:hover { color: var(--text); }
.nav-social a[title="Discord"]:hover { color: #5865f2; }
.nav-social a[title="Twitter/X"]:hover { color: #e7e7e7; }
.nav-social a[title="TikTok"]:hover { color: #ff2d55; }
.nav-social a[title="Instagram"]:hover { color: #e1306c; }
.nav-social a[title="YouTube"]:hover { color: #ff0000; }
.nav-menu-toggle { display: none; }

/* ── TICKER ─────────────────────────────────────────────── */
.ticker-wrap { height: 38px; position: relative; z-index: 5; display: flex; align-items: center; overflow: hidden; background: linear-gradient(90deg, #050505 0%, #141414 50%, #262626 100%); border-bottom: 1px solid var(--border); }
.ticker-label {
  position: relative; z-index: 1; height: 100%; display: flex; align-items: center; gap: 10px;
  padding: 0 24px 0 var(--gutter); background: transparent; flex-shrink: 0;
  font-size: 12px; font-weight: 800; color: #fff; white-space: nowrap;
}
.ticker-scroll {
  flex: 1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.ticker-track { display: flex; white-space: nowrap; animation: ticker 70s linear infinite; }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; padding-left: 40px; color: #fff; font-weight: 600; font-size: 13px; }
.ticker-item::after { content: ''; width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.65); margin-left: 40px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative; display: flex; align-items: flex-end;
  height: 100svh; min-height: 700px; margin-top: -106px; overflow: hidden; background: var(--bg-carousel);
}
.hero-media {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(60% 80% at 12% 100%, rgba(255,95,174,.34), transparent 62%),
    radial-gradient(50% 70% at 88% 0%, rgba(196,95,255,.28), transparent 62%),
    var(--bg-carousel);
}
.hero-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,9,18,.82) 0%, rgba(11,9,18,.3) 48%, transparent 78%),
    linear-gradient(0deg, #080808 0%, transparent 46%),
    linear-gradient(180deg, rgba(5,5,5,.35), transparent 22%);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 9s ease; }
.hero-slide.active img { transform: scale(1); }
.hero-video-bg { position: absolute; inset: 0; overflow: hidden; background: #000; }
.hero-video-bg iframe { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); border: 0; pointer-events: none; }
.hero-video-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hero-placeholder span { font-size: 15px; color: var(--text-muted); }

.hero-content {
  position: relative; z-index: 2; width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto; padding: 0 var(--gutter) 88px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-title {
  max-width: 920px; margin-bottom: 22px; text-wrap: balance;
  font-size: clamp(30px, 4.2vw, 62px); font-weight: 800; line-height: 1.06; letter-spacing: -.04em;
}
.hero-title em { font-style: normal; }
.hero-body {
  max-width: 700px; margin-bottom: 32px; font-size: 17px; line-height: 1.65; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 4px;
  background: var(--text); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 800;
  transition: background .2s, transform .2s;
}
.hero-cta:hover { background: var(--accent); }
.hero-cta i { font-size: 11px; }
.hero-content.swap > * { animation: heroIn .7s var(--ease) both; }
.hero-content.swap > :nth-child(2) { animation-delay: .08s; }
.hero-content.swap > :nth-child(3) { animation-delay: .16s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-indicator { position: absolute; z-index: 10; bottom: 88px; height: 50px; display: flex; align-items: center; gap: 6px; right: calc(max(var(--gutter), calc((100vw - var(--maxw)) / 2)) + 70px); }
.hero-scroll { position: absolute; z-index: 10; bottom: 88px; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); background: none; border: none; color: #fff; font-size: 20px; text-decoration: none; transition: color .2s; }
.hero-scroll:hover { color: var(--accent); background: none; }
.hero-dot { position: relative; width: 52px; height: 20px; cursor: pointer; }
.hero-dot::before, .hero-dot::after {
  content: ''; position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px;
}
.hero-dot::before { right: 0; background: rgba(255,255,255,.28); }
.hero-dot::after { width: 0; background: #fff; }
.hero-dot.active::after { animation: heroProgress 6s linear forwards; }
@keyframes heroProgress { to { width: 100%; } }

/* ── SECCIÓN DE ARTÍCULOS ───────────────────────────────── */
.section-wrap { background: #080808; position: relative; scroll-margin-top: 68px; }
.section-wrap::before, .bottom-zone::before, .news-section-wrap::before, .team-section-wrap::before, .prf-body::before, body:has(.forum-layout)::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .05; background-size: 150px; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.section { max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; position: relative; z-index: 1; padding: 72px var(--gutter) 120px; }
.section-header { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 44px; }
.section-title { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.section-subtitle { max-width: none; font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* Filtros por categoría */
.category-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 56px; }
.cat-pill {
  position: relative; height: 92px; overflow: hidden; display: flex; align-items: flex-end; padding: 16px 20px;
  border: 1px solid var(--border); border-radius: 5px; background: var(--bg-2); cursor: pointer; text-align: left;
  transition: border-color .25s, box-shadow .25s;
}
.cat-pill-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.4); transition: transform .6s var(--ease), filter .4s; }
.cat-pill:hover .cat-pill-bg { transform: scale(1.05); filter: brightness(.55); }
.cat-pill-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,10,21,.7), transparent 70%); }
.cat-pill-content { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 1px; }
.cat-pill-label { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.cat-pill-title { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: #fff; line-height: 1.2; }
.cat-pill.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cat-pill.active .cat-pill-bg { filter: brightness(.62); }

/* Noticias flash */
.quick-news-strip-section { margin-bottom: 72px; }
.quick-news-box { position: relative; padding: 28px 72px; background: #131313; border: 1px solid var(--border); border-radius: 5px; }
.quick-news-strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 22px; }
.quick-news-strip-nav { display: contents; }
.quick-news-strip-head > .ruw-header { flex: 1; min-width: 0; }
.quick-news-strip-head .ruw-header-desc { font-size: 14px; }
@media (min-width: 1200px) { .quick-news-strip-head .ruw-header-desc { white-space: nowrap; } }
.quick-strip-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 5px; border: 1px solid var(--border-hover); background: transparent;
  color: var(--text); font-size: 11px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
#quick-strip-prev { left: 18px; }
#quick-strip-next { right: 18px; }
.quick-strip-arrow:hover { background: var(--text); color: var(--ink); border-color: var(--text); }
.quick-strip-arrow:disabled { opacity: .3; pointer-events: none; }
.quick-news-strip { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.quick-news-strip::-webkit-scrollbar { display: none; }
.quick-strip-card { flex: 0 0 calc((100% - 80px) / 5); text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.quick-strip-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: 4px; background: #1c1c1c; }
.quick-strip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.quick-strip-card:hover .quick-strip-thumb img { transform: scale(1.05); }
.quick-strip-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 22px; opacity: .25; }
.quick-strip-title {
  font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--text-dim); transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.quick-strip-card:hover .quick-strip-title { color: var(--text); }

/* Grid de artículos: el primero destaca, sin tarjetas ni cajas */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 44px; }
.article-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.article-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.article-img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.article-card:hover .article-img { transform: scale(1.04); }
.article-video-badge {
  position: absolute; top: 12px; right: 12px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 5px;
  background: rgba(12,10,21,.72); color: #fff; font-size: 11px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.article-video-badge i { margin-left: 2px; }
.article-body { padding: 22px 0 0; flex: 0 0 auto; transform-origin: left top; transition: transform .35s var(--ease); }
.article-meta, .news-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; color: var(--text-muted); }
.article-meta { margin-bottom: 10px; }
.news-card-meta { margin-bottom: 14px; }
.article-meta .meta-author, .news-card-meta .meta-author, .cat-thread-meta .meta-author { font-weight: 700; color: var(--accent); }
.article-meta .meta-sep, .news-card-meta .meta-sep { width: 1px; height: 11px; background: var(--border-hover); font-size: 0; }
.article-title { font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; margin-bottom: 10px; }
.article-card:hover .article-body { transform: scale(1.03); }
.article-excerpt { font-size: 15px; line-height: 1.65; color: var(--text-muted); }
.articles-grid > .article-card:first-child { grid-column: span 2; grid-row: span 2; }
.articles-grid > .article-card:first-child .article-thumb { aspect-ratio: auto; flex: 1; min-height: 360px; }
.articles-grid > .article-card:first-child .article-title { font-size: 34px; letter-spacing: -.03em; line-height: 1.15; }
.articles-grid > .article-card:first-child .article-excerpt { font-size: 16.5px; max-width: 62ch; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 72px 20px; color: var(--text-muted); font-size: 15px; }

.skeleton-thumb, .skeleton-line, .skeleton-title { background: var(--bg-2); animation: pulse 1.5s ease infinite; }
.skeleton-thumb { aspect-ratio: 16/10; border-radius: 4px; }
.skeleton-body { padding: 22px 0 0; }
.skeleton-line { height: 10px; border-radius: 4px; margin-bottom: 10px; }
.skeleton-line.short { width: 40%; } .skeleton-line.medium { width: 65%; } .skeleton-line.full { width: 100%; }
.skeleton-title { height: 22px; border-radius: 4px; margin-bottom: 12px; }
@keyframes pulse { 50% { opacity: .45; } }

.view-all-btn {
  display: inline-flex; align-items: center; margin-top: 72px; padding: 14px 30px; border-radius: 4px;
  border: 1px solid var(--border-hover); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700;
  transition: background .2s, color .2s, border-color .2s;
}
.view-all-btn:hover { background: var(--text); color: var(--ink); border-color: var(--text); }

/* ── COMUNIDAD ──────────────────────────────────────────── */
.community-zone { position: relative; background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.community-zone-inner {
  max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; position: relative; z-index: 1; padding: 104px var(--gutter);
  display: flex; flex-direction: column; gap: 72px;
}
.community-top-row { display: flex; align-items: stretch; gap: 56px; }
.community-sep-v { width: 1px; flex-shrink: 0; background: var(--border); }

.ruw-header { display: flex; flex-direction: column; gap: 10px; }
.ruw-header-title { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
.ruw-header-title em, .page-header h1 em, .community-card-title em, .forum-hero-title em, .forum-section-title em { font-style: normal; background: linear-gradient(90deg, var(--vc-purple), var(--vc-pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.community-zone .ruw-header-desc { font-size: 15px; max-width: 64ch; }
.ruw-header-desc { line-height: 1.6; color: var(--text-muted); }

/* Quiz */
.quiz-widget {
  display: grid; grid-template-columns: 240px 1fr; flex: 1 1 auto; min-width: 0;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 5px; overflow: hidden;
}
.quiz-side-img { position: relative; min-height: 320px; overflow: hidden; }
.quiz-side-img-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center 30%;
  background-image: url('https://areajugones.sport.es/wp-content/uploads/2019/12/GTA-V-1560x880.jpg.webp');
  filter: brightness(.55); transition: transform 8s ease;
}
.quiz-widget:hover .quiz-side-img-bg { transform: scale(1.05); }
.quiz-side-img-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,10,21,.92), transparent 70%); }
.quiz-side-img-text { position: absolute; left: 22px; right: 18px; bottom: 24px; z-index: 2; display: flex; flex-direction: column; gap: 8px; }
.quiz-side-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--accent); }
.quiz-side-title { font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.quiz-main { padding: 32px 36px; display: flex; flex-direction: column; }
.quiz-top-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.quiz-progress-label { font-size: 13px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.quiz-progress-bar { flex: 1; height: 3px; border-radius: 3px; background: var(--border); overflow: hidden; }
.quiz-progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--vc-purple), var(--vc-pink)); transition: width .4s ease; }
.quiz-question { font-size: 19px; font-weight: 800; line-height: 1.4; letter-spacing: -.015em; margin-bottom: 12px; }
.quiz-hint { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); margin-bottom: 24px; padding-left: 14px; border-left: 2px solid var(--border-hover); }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-opt {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; cursor: pointer;
  background: transparent; border: 1px solid var(--border); border-radius: 4px; color: var(--text);
  transition: background .18s, border-color .18s;
}
.quiz-opt:hover:not(:disabled) { background: rgba(255,255,255,.05); border-color: var(--border-hover); }
.quiz-opt-letter {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-hover); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--text-muted);
}
.quiz-opt-text { font-size: 14px; font-weight: 700; color: var(--text-dim); line-height: 1.3; }
.quiz-opt--correct { background: rgba(95,211,162,.1) !important; border-color: rgba(95,211,162,.55) !important; }
.quiz-opt--correct .quiz-opt-letter { border-color: #5fd3a2; color: #5fd3a2; }
.quiz-opt--correct .quiz-opt-text { color: #7fe3b8; }
.quiz-opt--wrong { background: var(--accent-glow) !important; border-color: rgba(255,95,174,.55) !important; }
.quiz-opt--wrong .quiz-opt-letter { border-color: var(--accent); color: var(--accent); }
.quiz-opt--wrong .quiz-opt-text { color: #ff9fcd; }
.quiz-result { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 8px 0; }
.quiz-result-score { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.quiz-result-score span { font-size: 18px; font-weight: 700; letter-spacing: 0; color: var(--text-muted); }
.quiz-result-msg { font-size: 16px; color: var(--text-dim); line-height: 1.5; max-width: 40ch; }
.quiz-retry-btn {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 4px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-hover); color: var(--text); font-size: 13px; font-weight: 700;
  transition: background .2s, color .2s;
}
.quiz-retry-btn:hover { background: var(--text); color: var(--ink); }

/* Miembros */
.random-users-widget { display: flex; flex-direction: column; gap: 28px; flex: 0 0 440px; min-width: 320px; }
.ruw-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ruw-skeleton { height: 122px; border-radius: 5px; background: var(--bg-2); animation: pulse 1.2s ease-in-out infinite; }
.ruw-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 10px 18px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 5px; transition: border-color .2s, background .2s;
}
.ruw-card:hover { border-color: var(--border-hover); background: var(--bg-3); }
.ruw-card-avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--vc-purple), var(--vc-pink)); display: flex; align-items: center; justify-content: center;
}
.ruw-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ruw-card-avatar span { font-size: 18px; font-weight: 800; color: #fff; }
.ruw-card-name { max-width: 100%; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ruw-card-date { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.ruw-empty { grid-column: 1 / -1; padding: 24px; font-size: 13px; color: var(--text-muted); text-align: center; }
/* Vídeos */
.community-videos-row { display: flex; flex-direction: column; gap: 32px; }
.video-embed-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.video-embed-card { border-radius: 4px; overflow: hidden; background: #000; }
.video-embed-frame { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; cursor: pointer; overflow: hidden; }
.video-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.video-embed-card:hover .video-embed-thumb { transform: scale(1.04); filter: brightness(.7); }
.video-embed-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: transform .25s var(--ease), background .2s;
}
.video-embed-play i { margin-left: 3px; }
.video-embed-card:hover .video-embed-play { transform: translate(-50%,-50%) scale(1.1); background: var(--accent); }

/* ── ZONA INFERIOR ──────────────────────────────────────── */
.bottom-zone { position: relative; background: #080808; }
.bottom-inner {
  max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; position: relative; z-index: 1; padding: 104px var(--gutter);
  display: grid; grid-template-columns: 360px 1fr; gap: 80px; align-items: start;
}
.bottom-zone .widget-header { font-size: 26px; margin-bottom: 12px; }
.widget-header { font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.bottom-zone .release-item { padding: 18px 0; }
.release-item { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--border); }
.release-item:last-child { border-bottom: none; }
.date-tag { min-width: 56px; font-size: 13px; font-weight: 800; color: var(--accent); white-space: nowrap; }
.release-info h4 { font-size: 16px; font-weight: 700; line-height: 1.3; transition: color .2s; }
.release-info p { font-size: 13px; color: var(--text-muted); }
.release-item:hover .release-info h4 { color: var(--accent); }

.social-boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.social-box { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; padding: 28px 24px 24px; overflow: hidden; background: linear-gradient(155deg, color-mix(in srgb, var(--c) 30%, var(--bg-2)) 0%, color-mix(in srgb, var(--c) 8%, var(--bg-2)) 62%, var(--bg-2) 100%); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: 5px; text-decoration: none; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.social-box:hover { border-color: var(--c); transform: translateY(-3px); }
.social-box-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 5px; font-size: 24px; line-height: 1; color: #fff; background: var(--c); }
.social-box-name { font-size: 17px; font-weight: 800; white-space: nowrap; }
.social-box-handle { font-size: 13px; color: var(--text-dim); min-height: 1.4em; }
.social-box-desc { font-size: 13.5px; line-height: 1.55; color: var(--text-dim); flex: 1; margin-top: 6px; }
.social-box-stat { margin-top: 18px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--c) 35%, transparent); width: 100%; font-size: 13px; font-weight: 800; color: var(--text); }
.social-box--discord { --c: #5865f2; }
.social-box--tiktok { --c: #ff2d6f; }
.social-box--twitter { --c: #3a3f4d; }
.social-box--youtube { --c: #ff2a2a; }
.social-box--instagram { --c: #c13584; background: linear-gradient(155deg, rgba(131,58,180,.34) 0%, rgba(253,29,29,.10) 58%, var(--bg-2) 100%); }
.social-box--instagram .social-box-icon { background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af); }
.social-box--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; text-align: left; gap: 20px; padding: 16px 28px; }
.social-box--wide .social-box-icon { width: 44px; height: 44px; margin: 0; font-size: 20px; flex-shrink: 0; }
.social-box--wide .social-box-handle { display: none; }
.social-box--wide .social-box-desc { margin: 0; }
.social-box--wide .social-box-stat { width: auto; margin: 0 0 0 auto; padding: 0; border-top: none; white-space: nowrap; }

/* ── FOOTER ─────────────────────────────────────────────── */
footer { background: #080808 url('../img/fondo_png.png') repeat; background-size: 210px; border-top: 1px solid var(--border); padding: 36px var(--gutter); }
.footer-inner { max-width: 1600px; margin: 0 auto; }
.footer-bottom { display: flex; align-items: center; gap: 40px; }
.footer-logo-img { height: 30px; width: auto; filter: grayscale(1) brightness(1.3); opacity: .55; flex-shrink: 0; }
.footer-text-lines { display: flex; flex-direction: column; gap: 4px; flex: 1; max-width: none; }
.footer-text-lines span { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.footer-text-lines span a { transition: color .2s; }
.footer-text-lines span a:hover { color: var(--text); }
.back-to-top {
  margin-left: auto; width: 42px; height: 42px; border-radius: 5px; flex-shrink: 0; cursor: pointer;
  background: transparent; border: 1px solid var(--border-hover); color: var(--text-dim); font-size: 12px;
  display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s;
}
.back-to-top:hover { background: var(--text); color: var(--ink); }

/* ── OVERLAYS (login y noticia flash) ───────────────────── */
#auth-overlay, #quick-popup-overlay {
  display: none; position: fixed; inset: 0; z-index: 500; align-items: center; justify-content: center;
  padding: 24px 16px; overflow-y: auto; background: rgba(8,6,14,.72);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
}
#auth-overlay.open, #quick-popup-overlay.active { display: flex; animation: overlayIn .25s ease both; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.quick-popup {
  position: relative; width: 100%; max-width: 820px; margin: auto; overflow: hidden;
  background: #131313; border: 1px solid var(--border); border-radius: 5px; animation: modalUp .3s ease both;
}
.quick-popup-close, .auth-modal-close {
  width: 30px; height: 30px; border-radius: 5px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(12,10,21,.72); border: 1px solid var(--border-hover); color: #fff; font-size: 11px;
  backdrop-filter: blur(6px); transition: background .2s, color .2s;
}
.quick-popup-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.auth-modal-close { position: fixed; top: 22px; right: 28px; z-index: 600; }
.quick-popup-close:hover, .auth-modal-close:hover { background: var(--text); color: var(--ink); }
.quick-popup-img { position: relative; width: 100%; overflow: hidden; background: #1c1c1c; text-align: center; }
.quick-popup-img img { display: inline-block; vertical-align: middle; width: auto; max-width: 100%; height: auto; max-height: 460px; }
.quick-popup-flash-label { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: rgba(10,10,14,.72); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(4px); }
.quick-popup-flash-label i { color: #fff; font-size: 10px; }
.quick-popup-body { padding: 22px 24px 26px; text-align: center; }
.quick-popup-title { font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; text-align: center; margin-bottom: 6px; }
.quick-popup-author { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .03em; font-style: italic; margin-bottom: 16px; background: linear-gradient(90deg, var(--vc-purple), var(--vc-pink)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.quick-popup-excerpt { font-size: 13.5px; line-height: 1.65; color: var(--text-muted); text-align: left; }
.quick-popup-excerpt p { margin: 0 0 16px; }
.quick-popup-excerpt p:last-child { margin-bottom: 0; }
.quick-popup-excerpt ul, .quick-popup-excerpt ol { margin: 0 0 16px; padding-left: 22px; }
.quick-popup-excerpt ul { list-style: disc; } .quick-popup-excerpt ol { list-style: decimal; }
.quick-popup-excerpt li { margin-bottom: 6px; }
.quick-popup-excerpt li::marker { color: var(--accent); }
.quick-popup-excerpt img, .quick-popup-excerpt figure img { display: block; width: 100%; height: auto; margin: 18px auto; border-radius: 4px; }
.quick-popup-excerpt figure { max-width: 100% !important; margin: 18px auto !important; }
.quick-popup-excerpt figcaption { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-align: center; }
.quick-popup-excerpt a { color: var(--accent); }
.quick-popup-excerpt iframe { max-width: 100%; }
.quick-popup-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.quick-popup-tag { background: rgba(255,145,70,.10); border: 1px solid rgba(255,145,70,.35); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; }
.quick-popup-tag-text { background: linear-gradient(90deg, var(--vc-pink), #ffb347); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── MODAL DE ACCESO ────────────────────────────────────── */
.auth-modal { display: grid; grid-template-columns: 400px 400px; gap: 16px; width: 100%; max-width: 816px; margin: auto; animation: modalUp .3s ease both; }
.auth-perks-box, .auth-form-box { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.auth-form-box { position: relative; }
.auth-perks-banner, .auth-form-hero { position: relative; height: 150px; overflow: hidden; flex-shrink: 0; }
.auth-perks-banner::before, .auth-form-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, var(--bg-2), transparent 80%); pointer-events: none; }
.auth-perks-banner-bg, .auth-form-hero-bg { position: absolute; inset: 0; background-size: cover; filter: brightness(.45); }
.auth-perks-banner-bg { background-image: url('https://www.rockstargames.com/VI/_next/static/media/Leonida_Keys_03.0v_3~-9ceyixc.jpg'); background-position: center 35%; }
.auth-form-hero-bg { background-image: url('https://www.rockstargames.com/VI/_next/static/media/Vice_City_01.135x56yoeu.6t.jpg'); background-position: center 55%; }
.auth-perks-banner-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 24px 16px; }
.auth-perks-banner-title { font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: #fff; }
.auth-perks-banner-title em { font-style: normal; font-weight: 600; color: var(--text-dim); }
.auth-form-hero-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 28px; }
.auth-perks-header { padding: 18px 24px 8px; }
.auth-perks-header-label { font-size: 13px; font-weight: 700; color: var(--text-dim); }
.auth-perk-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 24px; }
.auth-perk-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06); color: var(--accent); font-size: 13px;
}
.auth-perk-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.auth-perk-desc { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.modal-discord-ad {
  display: flex; align-items: center; gap: 14px; padding: 18px 24px; flex-shrink: 0; text-decoration: none;
  background: rgba(88,101,242,.12); border-top: 1px solid rgba(88,101,242,.22); transition: background .2s;
}
.modal-discord-ad:hover { background: rgba(88,101,242,.2); }
.modal-discord-ad > .fab { font-size: 24px; color: #8b97ff; flex-shrink: 0; }
.modal-discord-ad-title { font-size: 13px; font-weight: 800; }
.modal-discord-ad-sub { font-size: 12px; color: var(--text-muted); }
.modal-foro-ad {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 18px 24px;
  background: rgba(255,95,174,.08); border-top: 1px solid var(--border); text-decoration: none; transition: background .2s;
}
.modal-foro-ad:hover { background: rgba(255,95,174,.15); }
.modal-foro-ad > i { font-size: 22px; color: var(--accent); flex-shrink: 0; }
.modal-foro-ad .modal-discord-ad-title { color: var(--text); }
.modal-news-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 24px; text-decoration: none; transition: background .2s; }
.modal-news-item:hover { background: rgba(255,255,255,.04); }
.modal-news-thumb { width: 58px; height: 42px; border-radius: 5px; object-fit: cover; flex-shrink: 0; background: var(--bg-3); }
.modal-news-title { font-size: 13px; font-weight: 700; line-height: 1.4; margin-bottom: 2px; }
.modal-news-date { font-size: 11px; color: var(--text-muted); }

.auth-tabs { display: flex; gap: 32px; justify-content: center; }
.auth-tab {
  background: none; border: none; border-bottom: 2px solid transparent; padding: 0 0 12px; cursor: pointer;
  color: var(--text-muted); font-size: 14px; font-weight: 700; transition: color .2s, border-color .2s;
}
.auth-tab:hover { color: var(--text-dim); }
.auth-tab.active { color: var(--text); border-bottom-color: var(--accent); }
.auth-form-box.logged-in #tab-registro { display: none; }
.auth-form-box.logged-in #tab-login { pointer-events: none; cursor: default; border-bottom-color: transparent; color: var(--text-muted); }
.auth-form-body { flex: 1; display: flex; flex-direction: column; padding: 28px 28px 96px; }
.auth-form-box.logged-in .auth-form-body { padding-bottom: 28px; }
.auth-panel { display: none; }
#auth-forms { display: flex; flex-direction: column; flex: 1; }
.auth-captcha { display: flex; justify-content: center; margin: auto 0 4px; }
.auth-form-box:has(#panel-registro.active) .auth-form-body { padding-bottom: 28px; }
.auth-panel.active { display: flex; flex-direction: column; flex: 1; animation: heroIn .3s var(--ease) both; }
.auth-field { margin-bottom: 16px; }
.auth-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-dim); margin-bottom: 8px; }
.auth-input-wrap { position: relative; }
.auth-input-wrap .field-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 12px; pointer-events: none; transition: color .2s; }
.auth-input {
  width: 100%; height: 46px; padding: 0 14px 0 40px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
  color: var(--text); font-family: inherit; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.auth-input::placeholder { color: var(--text-muted); }
.auth-input:focus { border-color: var(--text-dim); box-shadow: 0 0 0 3px var(--accent-glow); }
.auth-input:focus ~ .field-icon { color: var(--text); }
.auth-input.has-toggle { padding-right: 40px; }
.pw-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); font-size: 12px; cursor: pointer; transition: color .2s; }
.pw-toggle:hover { color: var(--text); }
.pw-strength { margin-top: 8px; display: none; align-items: center; gap: 4px; }
.pw-strength-bar { flex: 1; height: 3px; border-radius: 3px; background: var(--border); transition: background .3s; }
.pw-strength-label { font-size: 11px; font-weight: 700; min-width: 56px; text-align: right; color: var(--text-muted); }
.auth-forgot { text-align: right; margin: -4px 0 16px; }
.auth-forgot a { font-size: 12.5px; font-weight: 600; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.auth-forgot a:hover { color: var(--text); }
.auth-help { margin-bottom: 18px; font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }
.auth-back { font-size: 12.5px; font-weight: 600; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.auth-back:hover { color: var(--text); }
.auth-btn {
  width: 100%; height: 48px; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: var(--text); border: none; border-radius: 4px; color: var(--ink); font-size: 14px; font-weight: 800;
  transition: background .2s;
}
.auth-btn:hover:not(:disabled) { background: var(--accent); }
.auth-btn:disabled { opacity: .5; cursor: not-allowed; }
.auth-btn .spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.auth-btn.loading .btn-text { display: none; }
.auth-btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-msg { margin-top: 14px; padding: 12px 14px; border-radius: 4px; font-size: 13px; font-weight: 600; line-height: 1.5; display: none; }
.auth-msg.error { display: block; background: rgba(255,95,174,.1); border: 1px solid rgba(255,95,174,.3); color: #ff9fcd; }
.auth-msg.success { display: block; background: rgba(95,211,162,.1); border: 1px solid rgba(95,211,162,.3); color: #7fe3b8; }
.auth-terms { font-size: 12px; color: var(--text-muted); margin-top: 14px; line-height: 1.6; text-align: center; }
.auth-terms a { color: var(--text-dim); }

.user-bar { display: none; flex-direction: column; align-items: center; text-align: center; padding: 8px 0; }
.user-avatar {
  width: 76px; height: 76px; border-radius: 50%; margin-bottom: 16px; overflow: hidden;
  background: linear-gradient(135deg, var(--vc-purple), var(--vc-pink)); display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: #fff;
}
.user-welcome { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.user-name { font-size: 24px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 4px; }
.user-email { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.user-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.user-action-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 4px; cursor: pointer;
  font-size: 13.5px; font-weight: 700; text-decoration: none; background: transparent; border: 1px solid var(--border-hover); color: var(--text-dim);
  transition: background .2s, color .2s, border-color .2s;
}
.user-action-btn:hover { border-color: var(--text); color: var(--text); }
.user-action-btn.primary { background: var(--text); border-color: var(--text); color: var(--ink); font-weight: 800; }
.user-action-btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.user-action-btn.logout { color: var(--text-muted); }
.user-action-btn.logout:hover { border-color: var(--accent); color: var(--accent); }

/* ── DRAWER MÓVIL ───────────────────────────────────────── */
.drawer-sep { height: 1px; background: var(--border); margin: 10px 0; }
.drawer-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 16px; cursor: pointer;
  background: var(--text); border: none; border-radius: 4px; color: var(--ink); font-size: 14px; font-weight: 800;
}
.drawer-btn--ghost { background: transparent; border: 1px solid var(--border-hover); color: var(--text-dim); margin-top: 8px; }
.drawer-user { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.drawer-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--vc-purple), var(--vc-pink)); font-size: 14px; font-weight: 800; color: #fff;
}
.drawer-name { font-size: 14px; font-weight: 700; color: var(--text-dim); }

/* ══ RESPONSIVE ═══════════════════════════════════════════ */
@media (min-width: 1025px) { .nav-mobile-drawer { display: none !important; } }

@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .bottom-inner { grid-template-columns: 1fr; gap: 56px; }
  .social-boxes { grid-template-columns: repeat(2, 1fr); }
  .video-embed-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  body > nav { padding: 0 28px; }
.nav-separator, .nav-links, .nav-social-sep, .nav-user-area, #nav-login-btn, .nav-search-wrap { display: none !important; }
  .nav-social { margin-left: auto; gap: 16px; }
  .nav-menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; margin-left: 10px;
    background: none; border: none; cursor: pointer; flex-shrink: 0;
  }
  .nav-menu-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text-dim); transition: transform .25s, opacity .25s; }
  .nav-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-menu-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-mobile-drawer {
    position: fixed; top: 68px; left: 0; right: 0; z-index: 99; display: flex; flex-direction: column; gap: 2px;
    max-height: calc(100vh - 68px); overflow-y: auto; padding: 16px 28px 28px;
    background: rgba(6,5,10,.98); backdrop-filter: blur(24px); border-bottom: 1px solid var(--border);
    transform: translateY(-110%); transition: transform .3s var(--ease);
  }
  .nav-mobile-drawer.open { transform: none; }
  .nav-mobile-drawer > a {
    display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border);
    color: var(--text-dim); text-decoration: none; font-size: 18px; font-weight: 700;
  }
  .nav-mobile-drawer > a:hover, .nav-mobile-drawer > a.active { color: var(--text); }

  .hero-body { font-size: 16px; }
  .section { padding: 56px var(--gutter) 96px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 36px; }
  .articles-grid > .article-card:first-child { grid-row: span 1; }
  .articles-grid > .article-card:first-child .article-thumb { aspect-ratio: 16/9; flex: none; min-height: 0; }
  .quick-strip-card { flex-basis: calc((100% - 40px) / 3); }
  .community-zone-inner { padding: 72px var(--gutter); gap: 56px; }
  .community-top-row { flex-direction: column; gap: 48px; }
  .community-sep-v { display: none; }
  .random-users-widget { flex: 1 1 auto; width: 100%; min-width: 0; }
  .ruw-list { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 900px) {
  .section-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .auth-modal { grid-template-columns: 1fr; max-width: 100%; margin: 0; min-height: 100dvh; gap: 0; }
  #auth-overlay { padding: 0; align-items: flex-start; }
  .auth-perks-box { display: none; }
  .auth-form-box { border-radius: 0; border-left: none; border-right: none; min-height: 100dvh; }
  .auth-modal-close { top: 14px; right: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .back-to-top { margin-left: 0; }
  .video-embed-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 700px) {
  :root { --gutter: 20px; }
  body > nav { padding: 0 20px; }
  .nav-mobile-drawer { padding: 12px 20px 24px; }
  .ticker-label { display: none; }
  .hero { height: auto; min-height: 640px; }
  .hero-content { padding-bottom: 116px; }
  .hero-body { font-size: 15px; -webkit-line-clamp: 5; margin-bottom: 24px; }
  .hero-indicator { right: auto; left: var(--gutter); bottom: 44px; }
  .hero-scroll { right: var(--gutter); bottom: 44px; }
  .hero-dot { width: 32px; }
  .section { padding: 48px var(--gutter) 80px; }
  .category-pills { grid-template-columns: 1fr; gap: 10px; margin-bottom: 40px; }
  .cat-pill { height: 76px; }
  .quick-news-strip-section { margin-bottom: 56px; }
  .quick-news-box { padding: 20px 52px; }
  #quick-strip-prev { left: 8px; }
  #quick-strip-next { right: 8px; }
  .quick-strip-arrow { width: 32px; height: 32px; }
  .quick-news-strip-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .quick-strip-card { flex-basis: calc((100% - 20px) / 2); }
  .articles-grid { grid-template-columns: 1fr; gap: 40px; }
  .articles-grid > .article-card:first-child { grid-column: auto; }
  .articles-grid > .article-card:first-child .article-title { font-size: 26px; }
  .community-zone-inner { padding: 56px var(--gutter); gap: 48px; }
  .quiz-widget { grid-template-columns: 1fr; }
  .quiz-side-img { min-height: 150px; }
  .quiz-main { padding: 24px 20px; }
  .quiz-options { grid-template-columns: 1fr; }
  .ruw-list { grid-template-columns: repeat(2, 1fr); }
  .bottom-inner { padding: 64px var(--gutter); }
  .social-boxes { grid-template-columns: 1fr; }
  .social-box--wide { flex-direction: column; text-align: center; gap: 8px; padding: 22px 20px; }
  .social-box--wide .social-box-icon { margin-bottom: 6px; }
  .social-box--wide .social-box-stat { margin: 8px 0 0; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--c) 35%, transparent); width: 100%; }
  .quick-popup-body { padding: 18px 18px 22px; }
  .quick-popup-title { font-size: 18px; }
  .auth-form-body { padding: 22px 20px 96px; }
  .auth-input { font-size: 16px; }
  footer { padding: 36px var(--gutter); }
}

@media (max-width: 480px) {
  .video-embed-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-dot.active::after { width: 100%; }
  .ticker-track { animation: none; }
}

/* ── Páginas internas: cabecera, barra lateral y widgets (noticias, comunidad) ── */
.page-header { position: relative; height: 526px; margin-top: -106px; overflow: hidden; background: #080808; }
.header-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, #080808 0%, rgba(8,8,8,.82) 30%, rgba(8,8,8,.3) 65%, rgba(8,8,8,.3) 100%),
    linear-gradient(90deg, rgba(8,8,8,.72) 0%, transparent 55%);
}
.page-header-inner {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0 auto;
  max-width: calc(var(--maxw) + var(--gutter) * 2); padding: 0 var(--gutter) 52px;
}
.page-breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.page-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.page-breadcrumb a:hover { color: var(--text); }
.page-breadcrumb .sep { opacity: .5; }
.page-breadcrumb .current { color: var(--text); }
.page-header h1 { max-width: 900px; margin-bottom: 14px; font-size: clamp(30px, 3.8vw, 54px); font-weight: 800; line-height: 1.06; letter-spacing: -.04em; text-wrap: balance; }
.page-header-desc { max-width: 620px; font-size: 15px; line-height: 1.65; color: var(--text-dim); }
.sidebar, .article-sidebar, .prf-sidebar, .forum-sidebar { position: static; display: flex; flex-direction: column; gap: 20px; align-self: start; }
.widget-title, .sidebar-widget-header, .prf-card-header, .forum-sidebar-card-header, .forum-sidebar-shop-header {
  display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--text);
}
.widget-title i { color: var(--accent); font-size: 13px; }
.widget, .sidebar-widget, .prf-card, .prf-section, .forum-sidebar-card, .forum-sidebar-shop, .sidebar .releases-widget { overflow: hidden; background: #131313; border: 1px solid var(--border); border-radius: 5px; }
/* Páginas oscuras de una sola columna (foro y perfil): footer siempre abajo */
body:has(.forum-layout), body:has(#profile-page) { display: flex; flex-direction: column; min-height: 100vh; background: #080808; }
body:has(.forum-layout)::before { position: fixed; }
/* Cabecera metálica gris (zonas en negro: comunidad y noticias; el filtro de etiquetas no la lleva) */
.team-layout-top .widget-title, .news-layout .widget-title:not(.widget-title--toggle), .news-layout .widget-header, .article-layout .sidebar-widget-header, .prf-card-header {
  color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.35); border-bottom: 1px solid var(--border);
  background: linear-gradient(105deg, #0f0f10 0%, #1c1c1f 30%, #26262a 50%, #1c1c1f 70%, #0f0f10 100%);
}
.team-layout-top .widget-title i, .news-layout .widget-title:not(.widget-title--toggle) i { color: rgba(255,255,255,.9); }
/* Cabecera metálica morada y rosa Vicewave (banda violeta de comunidad y secciones del perfil) */
.team-band .widget-title, .prf-section-header, .thread-reply-header, .forum-sidebar-card-header, .forum-sidebar-shop-header {
  color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.35); border-bottom: 1px solid var(--border);
  background: linear-gradient(105deg, #1f0b38 0%, #3f1d66 24%, #7d3a78 46%, #3f1d66 68%, #1f0b38 100%);
}
@media (max-width: 1100px) { .sidebar { position: static; } }
@media (max-width: 768px) {
  .page-header { height: 400px; }
  .page-header-inner { padding-bottom: 36px; }
}

/* ── Buscador de usuarios del navbar (foro) ─────────────── */
.nav-search-wrap { position: relative; display: flex; align-items: center; margin-left: 14px; }
.nav-search-wrap--solo { margin-left: 2px; margin-right: 24px; }
.nav-search-btn {
  height: 36px; padding: 0 16px; display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
  background: transparent; border: 1px solid var(--border-hover); border-radius: 4px; color: var(--text-dim); font-size: 13px;
  transition: background .2s, color .2s;
}
.nav-search-btn:hover { background: rgba(255,255,255,.07); color: var(--text); }
.nav-search-label { font-size: 13px; font-weight: 700; }
.nav-search-panel {
  position: absolute; top: calc(100% + 14px); right: -8px; width: 320px; z-index: 400; overflow: hidden;
  background: #131313; border: 1px solid var(--border-hover); border-radius: 5px; box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.nav-search-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; }
.nav-search-panel-title { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.nav-search-panel-title i { color: var(--accent); font-size: 12px; }
.nav-search-panel-desc { padding: 6px 16px 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); }
.nav-search-close, .nav-search-clear, .nav-search-mobile-clear {
  background: none; border: none; cursor: pointer; color: var(--text-muted); width: 24px; height: 24px; font-size: 12px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: color .2s, background .2s;
}
.nav-search-close:hover, .nav-search-clear:hover, .nav-search-mobile-clear:hover { color: var(--text); background: rgba(255,255,255,.08); }
.nav-search-input-wrap { position: relative; padding: 14px 16px; }
.nav-search-input-icon { position: absolute; left: 28px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 12px; pointer-events: none; }
.nav-search-panel input {
  width: 100%; height: 40px; padding: 0 36px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
  color: var(--text); font-family: inherit; font-size: 14px; outline: none; transition: border-color .2s;
}
.nav-search-panel input:focus { border-color: var(--text-dim); }
.nav-search-clear { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; }
.nav-search-results { padding: 0 10px 12px; max-height: 280px; overflow-y: auto; }
.nav-search-result { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 4px; text-decoration: none; transition: background .15s; }
.nav-search-result:hover { background: var(--bg-3); }
.nav-search-result-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--vc-purple), var(--vc-pink)); font-size: 12px; font-weight: 800; color: #fff;
}
.nav-search-result-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-search-result-name { font-size: 13px; font-weight: 700; }
.nav-search-loading, .nav-search-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px; font-size: 13px; color: var(--text-muted); }
.nav-search-load-more {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 20px); margin: 4px 10px 8px; padding: 9px; cursor: pointer;
  background: transparent; border: 1px solid var(--border-hover); border-radius: 4px; color: var(--text-dim); font-size: 12px; font-weight: 700;
}
.nav-search-load-more:hover { background: var(--text); color: var(--ink); }
.nav-search-load-more:disabled { opacity: .5; cursor: default; }
.nav-search-mobile { margin-bottom: 10px; }
.nav-search-mobile-box { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 4px; }
.nav-search-mobile-box i.fa-search { color: var(--text-muted); font-size: 12px; }
.nav-search-mobile-box input { width: 100%; height: 100%; background: none; border: none; outline: none; color: var(--text); font-family: inherit; font-size: 14px; }
.nav-search-mobile-results { margin-top: 6px; }

/* ══ NOTIFICACIONES (campana + panel del navbar) ═══════════ */
.nav-bell-wrap { position: relative; display: flex; align-items: center; margin-left: 12px; }
.nav-bell-btn {
  position: relative; height: 36px; padding: 0 16px; display: flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap;
  background: transparent; border: 1px solid var(--border-hover); border-radius: 4px; color: var(--text-dim);
  font-size: 13px; transition: background .2s, border-color .2s, color .2s;
}
.nav-bell-btn:hover { background: rgba(255,255,255,.07); border-color: var(--text-dim); color: var(--text); }
.nav-bell-btn i { font-size: 13px; }
.nav-bell-label { font-size: 13px; font-weight: 700; }
.nav-bell-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; align-items: center; justify-content: center;
  background: var(--accent); color: var(--ink); font-size: 10px; font-weight: 800; border-radius: 9px; border: 2px solid #06050a; pointer-events: none;
}

.notif-panel {
  position: absolute; top: calc(100% + 14px); right: -8px; width: 360px; z-index: 400; overflow: hidden;
  background: #131313; border: 1px solid var(--border-hover); border-radius: 5px; box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.notif-panel::before { display: none; }
.notif-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.notif-panel-title { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.notif-mark-all { background: none; border: none; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--text-muted); transition: color .2s; }
.notif-mark-all:hover { color: var(--accent); }
.notif-list { max-height: 400px; overflow-y: auto; }
.notif-loading { display: flex; justify-content: center; padding: 28px; }
.notif-spinner { width: 20px; height: 20px; border: 2px solid var(--border-hover); border-top-color: var(--accent); border-radius: 50%; animation: prfSpin .8s linear infinite; }
@keyframes prfSpin { to { transform: rotate(360deg); } }
.notif-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.notif-empty i { font-size: 24px; opacity: .35; }
.notif-item { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .15s; }
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: rgba(255,255,255,.04); }
.notif-item--unread { background: rgba(255,95,174,.05); box-shadow: inset 2px 0 0 var(--accent); }
.notif-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--vc-purple), var(--vc-pink)); font-size: 13px; font-weight: 800; color: #fff;
}
.notif-avatar img { width: 100%; height: 100%; object-fit: cover; }
.notif-body { flex: 1; min-width: 0; }
.notif-text { font-size: 13px; line-height: 1.5; color: var(--text-dim); margin-bottom: 4px; }
.notif-text strong { color: var(--text); font-weight: 700; }
.notif-time { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.notif-time i { color: var(--accent); font-size: 10px; }
.notif-time-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notif-dot { position: absolute; top: 16px; right: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.notif-actions { display: flex; gap: 8px; margin-top: 12px; }
.notif-action-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 800; transition: background .2s, color .2s, border-color .2s; }
.notif-action-btn--accept { background: var(--text); color: var(--ink); border: 1px solid var(--text); }
.notif-action-btn--accept:hover { background: var(--accent); border-color: var(--accent); }
.notif-action-btn--reject { background: transparent; color: var(--text-dim); border: 1px solid var(--border-hover); }
.notif-action-btn--reject:hover { border-color: var(--text); color: var(--text); }
.notif-del-btn { display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 4px 6px; border-radius: 4px; background: none; border: none; cursor: pointer; font-size: 11px; color: var(--text-muted); transition: color .15s, background .15s; }
.notif-del-btn:hover { color: var(--accent); background: var(--accent-glow); }
.notif-more { padding: 12px 18px; text-align: center; border-top: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-muted); }
.notif-more i { margin-right: 6px; opacity: .6; }

/* Avatar real (con imagen) en navbar / drawer / popup */
.nav-user-avatar-small img, #drawer-avatar img, .user-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

@media (max-width: 1024px) {
  .nav-bell-wrap { margin-left: 14px; order: 9; }
  .nav-bell-btn { height: 34px; padding: 0 10px; gap: 0; }
  .nav-bell-label { display: none; }
  .notif-panel { position: fixed; top: 76px; left: 8px; right: 8px; width: auto; }
}