/* VARIABLES */
:root {
  --bg:           #111118;
  --bg-2:         #17171f;
  --bg-3:         #1c1c26;
  --surface:      #1e1e2e;
  --bg-carousel:  #06060b;
  --border:       rgba(180, 120, 255, 0.08);
  --border-hover: rgba(180, 120, 255, 0.2);
  --text:         #f2eeff;
  --text-muted:   rgba(242, 238, 255, 0.38);
  --text-dim:     rgba(242, 238, 255, 0.62);
  --accent:       #c45fff;
  --accent-glow:  rgba(196, 95, 255, 0.18);
  --accent-2:     #ff4fa3;
  --vc-pink:      #ff4fa3;
  --vc-purple:    #c45fff;
}

/* RESET */
*, *::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', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  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");
  background-size: 150px;
}

/* NAVBAR */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 15, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  height: 75px;
  display: flex;
  align-items: center;
  padding: 0 35px;
  transition: border-color 0.3s;
}

nav.scrolled { border-bottom-color: rgba(196, 95, 255, 0.25); }

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 100%;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-logo:hover { transform: scale(1.06); }

.logo-img {
  height: 100%;
  max-height: 50px;
  width: auto;
  object-fit: contain;
}

.nav-separator {
  width: 1px;
  height: 28px;
  background: var(--border-hover);
  margin: 0 31px;
  flex-shrink: 0;
  opacity: 0.5;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
  margin-right: auto;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-pill {
  background: var(--accent-2);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 5px;
  vertical-align: middle;
}

.nav-social { display: flex; gap: 18px; align-items: center; }

.nav-social a {
  color: var(--text-muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-social a:hover { color: var(--accent); }

/* TICKER */
.ticker-wrap {
  background-color: #183D39;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 34px;
  display: flex;
  align-items: center;
}

.ticker-label {
  background: radial-gradient(circle,rgba(67, 117, 93, 1) 12%, rgba(9, 66, 47, 1) 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  border-right: 1px solid #244F3A;
}

.ticker-scroll { overflow: hidden; flex: 1; }

.ticker-track {
  display: flex;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding: 0 0 0 30px;
  color: #E0E0E0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ticker-item::after {
  content: '·';
  color: white;
  font-size: 18px;
  line-height: 1;
  margin-left: 30px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* HERO */
.hero {
  position: relative;
  height: 60vh;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1fr 680px;
  overflow: hidden;
  background: var(--bg-carousel);
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 35%, var(--bg-carousel) 100%),
    linear-gradient(0deg, var(--bg-carousel) 0%, transparent 28%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(10%) contrast(1.04);
  transform: scale(1.02);
  transition: transform 8s ease;
}

.hero-slide.active img { transform: scale(1); }

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #12091f 0%, #1a0a2e 60%, #090915 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-placeholder span { font-size: 56px; opacity: 0.12; }

.hero-indicator {
  position: absolute;
  bottom: 28px;
  left: 28px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.hero-dot {
  width: 20px;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
  cursor: pointer;
}

.hero-dot.active { width: 44px; background: var(--accent); }

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 56px 100px 40px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(34px, 3.8vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-title em { font-style: italic; color: white; }

.hero-body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s ease both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 13px 28px;
  width: fit-content;
  transition: background 0.25s, color 0.25s;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s ease both;
}

.hero-cta:hover { background: var(--accent); color: #09090f; }

/* SECCIÓN WRAPPER */
.section-wrap {
  background: #0d0a18;
  position: relative;
  overflow: hidden;
}

.section-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(130, 30, 220, 0.45) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 80% 30%, rgba(180, 20, 100, 0.38) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 55% 85%, rgba(0, 100, 180, 0.20) 0%, transparent 55%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.section-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 3, 14, 0.62);
  pointer-events: none;
  z-index: 0;
}

/* SECCIÓN */
.section {
  padding: 20px 56px 80px;
  max-width: 1440px;
  margin: -48px auto 0;
  position: relative;
  z-index: 1;
}

/* Section header */
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 60px;
  margin-bottom: 32px;
  padding: 14px 0 14px 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.section-title .brand-highlight {
  background: linear-gradient(90deg, #c45fff, #ff4fa3);
  color: #fff;
  padding: 2px 10px 3px;
  letter-spacing: 0.18em;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.section-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
  padding-left: 20px;
  border-left: 1px solid var(--border-hover);
  max-width: 340px;
}

/* GRID DE ARTÍCULOS */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background 0.2s, border-color 0.2s;
}

.article-card:hover { background: var(--bg-3); border-color: var(--border-hover); }
.article-card:hover .article-img { transform: scale(1.04); filter: grayscale(0%) brightness(1.06); }

.article-thumb { aspect-ratio: 16/9; overflow: hidden; }

.article-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.9);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.article-body { padding: 24px 26px 18px; flex: 1; }

.article-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  align-items: center;
  flex-wrap: wrap;
}

.article-meta .meta-author { color: var(--accent); font-weight: 700; }

.article-meta .meta-sep { color: var(--border-hover); font-size: 13px; line-height: 1; }

.article-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.article-excerpt { font-size: 13px; line-height: 1.7; color: var(--text-muted); }

/* Skeletons */
.skeleton { background: var(--bg); }
.skeleton-thumb { aspect-ratio: 16/9; background: var(--surface); animation: pulse 1.5s ease infinite; }
.skeleton-body { padding: 24px; }

.skeleton-line {
  height: 10px;
  background: var(--surface);
  border-radius: 4px;
  margin-bottom: 10px;
  animation: pulse 1.5s ease infinite;
}

.skeleton-line.short  { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.full   { width: 100%; }

.skeleton-title {
  height: 22px;
  background: var(--surface);
  border-radius: 4px;
  margin-bottom: 10px;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  background: rgba(196, 95, 255, 0.08);
  border: 2px solid rgba(196, 95, 255, 0.45);
  color: rgba(242, 238, 255, 0.75);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 26px;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  text-decoration: none;
}

.view-all-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(196,95,255,0.14); }

.search-bar { position: relative; margin-bottom: 32px; }

.search-input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 13px 44px 13px 16px;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.02em;
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent); }

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

/* ZONA INFERIOR */
.bottom-zone {
  background: #0a0a12;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.bottom-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 60px 56px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

/* LANZAMIENTOS */
.releases-widget {
  background: var(--bg-2);
  border: 1px solid var(--border);
  width: 340px;
  flex-shrink: 0;
}

.widget-header {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.release-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.2s;
}

.release-item:last-child { border-bottom: none; }
.release-item:hover { background: var(--bg-3); }
.release-item:hover .release-info h4 { color: var(--accent); }

.date-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 5px 9px;
  flex-shrink: 0;
  min-width: 58px;
  text-align: center;
  border-radius: 3px;
}

.release-info { flex: 1; }
.release-info h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; transition: color 0.2s; }
.release-info p  { font-size: 11px; font-weight: 500; color: var(--text-muted); }

/* SOCIAL BOXES */
.social-boxes {
  display: grid;
  grid-template-columns: repeat(3, 220px);
  gap: 20px;
  align-self: start;
}

.social-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 24px;
  text-decoration: none;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.social-box:hover { background: var(--bg-3); transform: translateY(-3px); }

.social-box-icon { font-size: 28px; line-height: 1; margin-bottom: 4px; transition: color 0.2s; }

.social-box-name { font-size: 13px; font-weight: 800; color: var(--text); letter-spacing: 0.04em; }

.social-box-handle { font-size: 11px; font-weight: 500; color: var(--text-muted); }

.social-box-desc {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  max-width: 160px;
}

.social-box-stat {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: center;
}

.social-box--discord .social-box-icon { color: #5865F2; }
.social-box--discord:hover { border-color: #5865F2; }
.social-box--discord:hover .social-box-name { color: #5865F2; }

.social-box--tiktok .social-box-icon { color: #ff2d55; }
.social-box--tiktok:hover { border-color: #ff2d55; }
.social-box--tiktok:hover .social-box-name { color: #ff2d55; }

.social-box--twitter .social-box-icon { color: #e7e7e7; }
.social-box--twitter:hover { border-color: #e7e7e7; }
.social-box--twitter:hover .social-box-name { color: #e7e7e7; }


/* FOOTER */
footer {
  background: #080808;
  background-image: url('../img/fondo_png.png');
  background-repeat: repeat;
  background-size: 210px; 
  border-top: 1px solid var(--border);
  padding: 28px 56px;
  position: relative;
  z-index: 2;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.55);
  opacity: 0.7;
  flex-shrink: 0;
}

.footer-text-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.footer-text-lines span {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-text-lines span a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-text-lines span a:hover { color: var(--accent); }

.back-to-top {
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}

.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ANIMACIONES */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up:nth-child(1) { animation-delay: 0.08s; }
.fade-up:nth-child(2) { animation-delay: 0.18s; }
.fade-up:nth-child(3) { animation-delay: 0.28s; }
/* ============================================================
   RESPONSIVE — Mobile & Tablet
   ============================================================ */

/* ---- Tablet (≤ 1024px) ------------------------------------ */
@media (max-width: 1024px) {

  nav {
    padding: 0 28px;
    height: 64px;
  }

  .nav-separator { margin: 0 16px; }
  .nav-links { gap: 20px; }

  /* Hero: stack vertically */
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: unset;
  }

  .hero-media {
    height: 52vw;
    min-height: 260px;
  }

  /* Remove right-side fade, add bottom fade only */
  .hero-media::after {
    background: linear-gradient(0deg, var(--bg-carousel) 0%, transparent 40%);
  }

  .hero-content {
    padding: 28px 28px 48px;
  }

  .hero-title { font-size: clamp(24px, 4vw, 36px); }

  /* Articles: 2 cols */
  .articles-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 0 28px 60px; }

  /* Bottom zone */
  .bottom-inner {
    flex-direction: column;
    gap: 40px;
    padding: 48px 28px;
    align-items: stretch;
  }

  .releases-widget { width: 100%; }

  .social-boxes {
    grid-template-columns: repeat(3, 1fr);
  }

  footer { padding: 24px 28px; }
}

/* ---- Mobile (≤ 768px) ------------------------------------- */
@media (max-width: 768px) {

  /* --- Navbar: hamburger-free but compact --- */
  nav {
    padding: 0 16px;
    height: 56px;
    position: sticky;
  }

  .nav-separator { display: none; }

  /* Hide text links, show only logo + social */
  .nav-links { display: none; }

  .nav-social { margin-left: auto; gap: 14px; }
  .nav-social a { font-size: 17px; }

  /* --- Ticker --- */
  .ticker-wrap { height: 30px; }
  .ticker-label { font-size: 9px; padding: 0 12px; }
  .ticker-item  { font-size: 11px; }

  /* --- Hero: full-width stacked --- */
  .hero {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-media {
    height: 56vw;
    min-height: 200px;
  }

  .hero-media::after {
    background: linear-gradient(0deg, var(--bg-carousel) 0%, transparent 45%);
  }

  .hero-content {
    padding: 20px 16px 40px;
  }

  .hero-title  { font-size: clamp(20px, 5.5vw, 30px); margin-bottom: 12px; }
  .hero-body   { font-size: 13px; margin-bottom: 24px; }
  .hero-cta    { font-size: 10px; padding: 11px 20px; }

  .hero-indicator { bottom: 14px; left: 14px; }

  /* --- Section --- */
  .section {
    padding: 0 16px 48px;
    margin-top: -24px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-left: 0;
  }

  .section-subtitle {
    padding-left: 0;
    border-left: none;
    max-width: 100%;
  }

  /* Articles: 1 col */
  .articles-grid { grid-template-columns: 1fr; gap: 16px; }

  /* --- Bottom zone --- */
  .bottom-inner {
    flex-direction: column;
    gap: 32px;
    padding: 36px 16px;
    align-items: stretch;
  }

  .releases-widget { width: 100%; }

  /* Social boxes: stack to 1 col */
  .social-boxes {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* --- Footer --- */
  footer { padding: 20px 16px; }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer-logo-img { height: 26px; }

  .footer-text-lines span { font-size: 10px; }

  .back-to-top { margin-left: 0; }
}

/* ---- Small Mobile (≤ 480px) ------------------------------ */
@media (max-width: 480px) {

  .hero-media { height: 62vw; }

  .hero-title  { font-size: clamp(18px, 6vw, 24px); }

  /* Social boxes: keep single col but add a bit more breathing room */
  .social-boxes { grid-template-columns: 1fr; }

  .section-title { font-size: 13px; letter-spacing: 0.14em; }

  .view-all-btn { font-size: 10px; padding: 11px 20px; }
}

/* ---- Hamburger menu (mobile nav links on demand) ---------- */
/* We add a toggle button via CSS-only trick using a hidden checkbox */
@media (max-width: 768px) {
  /* Show hamburger button */
  .nav-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: 12px;
    order: 10;
  }

  .nav-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-dim);
    border-radius: 2px;
    transition: background 0.2s;
  }

  .nav-menu-toggle:hover span { background: var(--accent); }

  /* Mobile nav drawer */
  .nav-mobile-drawer {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(9, 9, 15, 0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    transform: translateY(-110%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nav-mobile-drawer.open {
    transform: translateY(0);
  }

  .nav-mobile-drawer a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
  }

  .nav-mobile-drawer a:last-child { border-bottom: none; }
  .nav-mobile-drawer a:hover,
  .nav-mobile-drawer a.active { color: var(--accent); }
}

@media (min-width: 769px) {
  .nav-menu-toggle { display: none; }
  .nav-mobile-drawer { display: none !important; }
}

    /* ══ AUTH MODAL OVERLAY ══════════════════════════════════════ */
    #auth-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 500;
      background: rgba(5, 3, 14, 0.72);
      backdrop-filter: blur(12px) saturate(120%);
      -webkit-backdrop-filter: blur(12px) saturate(120%);
      align-items: center;
      justify-content: center;
      padding: 24px 16px;
      overflow-y: auto;
    }
    #auth-overlay.open {
      display: flex;
      animation: overlayIn 0.25s ease both;
    }
    @keyframes overlayIn {
      from { opacity: 0; }
      to   { opacity: 1; }
    }
 
    .auth-modal {
      display: grid;
      grid-template-columns: 400px 380px;
      gap: 16px;
      width: 100%;
      max-width: 800px;
      margin: auto;
      animation: modalUp 0.3s ease both;
    }
    @keyframes modalUp {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }
 
    /* close button */
    .auth-modal-close {
      position: fixed;
      top: 22px;
      right: 28px;
      z-index: 600;
      background: rgba(22,18,36,0.9);
      border: 1px solid rgba(180,120,255,0.2);
      color: var(--text-muted);
      width: 36px; height: 36px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 14px; cursor: pointer;
      transition: color 0.2s, border-color 0.2s;
    }
    .auth-modal-close:hover { color: var(--text); border-color: rgba(196,95,255,0.45); }
 
    /* ── PERKS BOX ──────────────────────────────────────────── */
    .auth-perks-box {
      background: rgba(20,16,32,0.92);
      border: 1px solid rgba(180,120,255,0.14);
      border-radius: 4px;
      overflow: hidden;
      backdrop-filter: blur(20px);
      display: flex;
      flex-direction: column;
    }
 
    /* banner: imagen full-width, título encima */
    .auth-perks-banner {
      position: relative;
      height: 140px;
      overflow: hidden;
      flex-shrink: 0;
      border-bottom: 1px solid rgba(180,120,255,0.12);
    }
    .auth-perks-banner-bg {
      position: absolute;
      inset: 0;
      background-image: url('https://www.rockstargames.com/VI/_next/image?url=%2FVI%2F_next%2Fstatic%2Fmedia%2FLeonida_Keys_01.1af17390.jpg&w=2560&q=75');
      background-size: cover;
      background-position: center 35%;
      filter: brightness(0.38) saturate(1.15);
    }

    .auth-perks-banner::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(0deg, rgba(20,16,32,0.95) 0%, rgba(20,16,32,0.3) 50%, transparent 100%);
      z-index: 1;
      pointer-events: none;
    }
    
    .auth-perks-banner-text {
      position: absolute;
      bottom: 0;
      left: 0; right: 0;
      z-index: 2;
      padding: 0 18px 14px;
    }
    .auth-perks-banner-title {
      font-size: 16px;
      font-weight: 900;
      letter-spacing: -0.02em;
      color: #fff;
      line-height: 1.15;
      text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    }
    .auth-perks-banner-title em {
      font-style: italic;
      background: linear-gradient(90deg, #c45fff, #ff4fa3);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
 
    .auth-perks-header {
      padding: 14px 18px;
      border-bottom: 1px solid rgba(180,120,255,0.1);
      display: flex; align-items: center; justify-content: space-between;
    }
    .auth-perks-header-label {
      font-size: 9px; font-weight: 800; letter-spacing: 0.2em;
      text-transform: uppercase; color: var(--text);
    }
 
    .auth-perk-item {
      display: flex; align-items: flex-start; gap: 12px;
      padding: 12px 18px; border-bottom: 1px solid rgba(180,120,255,0.06);
      transition: background 0.2s;
    }
    .auth-perk-item:last-child { border-bottom: none; }
    .auth-perk-item:hover { background: rgba(196,95,255,0.04); }
    .auth-perk-icon {
      width: 30px; height: 30px; border-radius: 6px;
      display: flex; align-items: center; justify-content: center;
      font-size: 12px; flex-shrink: 0; margin-top: 1px;
    }
    .auth-perk-title { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
    .auth-perk-desc  { font-size: 11px; color: var(--text-muted); line-height: 1.55; }
 
    /* ── FORM BOX ───────────────────────────────────────────── */
    .auth-form-box {
      background: rgba(22,18,36,0.95);
      border: 1px solid rgba(180,120,255,0.18);
      border-radius: 4px;
      overflow: hidden;
      backdrop-filter: blur(28px);
    }
 
    .auth-form-hero {
      position: relative;
      height: 140px;
      overflow: hidden;
      flex-shrink: 0;
      border-bottom: 1px solid rgba(180,120,255,0.12);
    }
    .auth-form-hero-bg {
      position: absolute;
      inset: 0;
      background-image: url('https://www.rockstargames.com/VI/_next/image?url=%2FVI%2F_next%2Fstatic%2Fmedia%2FVice_City_01.332891cf.jpg&w=2560&q=75');
      background-size: cover;
      background-position: center 55%;
      filter: brightness(0.32) saturate(1.1);
    }
    .auth-form-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(0deg, rgba(22,18,36,0.98) 0%, rgba(22,18,36,0.35) 55%, transparent 100%);
      z-index: 1;
    }
    .auth-form-hero-content {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      z-index: 2;
      padding: 0 26px 0;
    }
    .auth-form-hero-title {
      font-size: 16px;
      font-weight: 900;
      letter-spacing: -0.02em;
      color: #fff;
      line-height: 1.15;
      margin-bottom: 12px;
      text-shadow: 0 1px 8px rgba(0,0,0,0.5);
    }
    .auth-form-hero-title em {
      font-style: italic;
      background: linear-gradient(90deg, #c45fff, #ff4fa3);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
 
    .auth-form-header {
      padding: 0 26px 0;
      border-bottom: 1px solid rgba(180,120,255,0.1);
    }
    .auth-tabs { display: flex; }
    .auth-tab {
      flex: 1; background: none; border: none; border-bottom: 2px solid transparent;
      color: var(--text-muted); font-family: 'Nunito Sans', sans-serif;
      font-size: 9px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
      padding: 0 0 12px; cursor: pointer; transition: color 0.2s, border-color 0.2s;
    }
    .auth-tab:hover { color: var(--text-dim); }
    .auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
 
    .auth-form-body { padding: 22px 26px 26px; }
    .auth-panel { display: none; }
    .auth-panel.active { display: block; animation: fadeUp 0.28s ease both; }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(10px); }
      to   { opacity: 1; transform: translateY(0); }
    }
 
    .auth-field { margin-bottom: 13px; }
    .auth-label {
      display: block; font-size: 8px; font-weight: 800;
      letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
    }
    .auth-input-wrap { position: relative; }
    .auth-input-wrap .field-icon {
      position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
      color: var(--text-muted); font-size: 11px; pointer-events: none; transition: color 0.2s;
    }
    .auth-input {
      width: 100%; background: rgba(9,9,15,0.75);
      border: 1px solid rgba(180,120,255,0.1); border-radius: 3px;
      color: var(--text); font-family: 'Nunito Sans', sans-serif;
      font-size: 13px; font-weight: 500;
      padding: 10px 12px 10px 34px; outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .auth-input::placeholder { color: var(--text-muted); font-weight: 400; }
    .auth-input:focus { border-color: rgba(196,95,255,0.5); box-shadow: 0 0 0 3px rgba(196,95,255,0.07); }
    .auth-input:focus ~ .field-icon { color: var(--accent); }
    .pw-toggle {
      position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
      background: none; border: none; color: var(--text-muted);
      font-size: 11px; cursor: pointer; padding: 0; transition: color 0.2s;
    }
    .pw-toggle:hover { color: var(--accent); }
    .auth-input.has-toggle { padding-right: 32px; }
 
    .pw-strength { margin-top: 6px; display: none; align-items: center; gap: 4px; }
    .pw-strength-bar { flex: 1; height: 2px; border-radius: 2px; background: rgba(180,120,255,0.1); transition: background 0.3s; }
    .pw-strength-label { font-size: 8px; font-weight: 800; min-width: 40px; text-align: right; color: var(--text-muted); }
 
    .auth-forgot { text-align: right; margin-top: -6px; margin-bottom: 13px; }
    .auth-forgot a { font-size: 9px; font-weight: 700; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
    .auth-forgot a:hover { color: var(--accent); }
 
    .auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
    .auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(180,120,255,0.1); }
    .auth-divider span { font-size: 8px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
 
    .auth-btn {
      width: 100%; background: transparent; border: 2px solid var(--accent); color: var(--accent);
      font-family: 'Nunito Sans', sans-serif; font-size: 9px; font-weight: 800;
      letter-spacing: 0.2em; text-transform: uppercase; padding: 12px; cursor: pointer;
      border-radius: 2px; margin-top: 4px;
      transition: background 0.22s, color 0.22s;
      display: flex; align-items: center; justify-content: center; gap: 8px;
    }
    .auth-btn:hover:not(:disabled) { background: var(--accent); color: #09090f; }
    .auth-btn:disabled { opacity: 0.45; cursor: not-allowed; }
    .auth-btn .spinner {
      width: 12px; height: 12px; border: 2px solid currentColor; border-top-color: transparent;
      border-radius: 50%; animation: spin 0.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: 12px; padding: 10px 12px; border-radius: 3px;
      font-size: 11px; font-weight: 600; display: none; line-height: 1.5;
    }
    .auth-msg.error   { display:block; background:rgba(255,79,163,0.08); border:1px solid rgba(255,79,163,0.22); color:#ff7ec5; }
    .auth-msg.success { display:block; background:rgba(29,158,117,0.08); border:1px solid rgba(29,158,117,0.28); color:#4ecfa0; }
 
    .auth-terms { font-size: 9px; color: var(--text-muted); margin-top: 12px; line-height: 1.6; text-align: center; }
    .auth-terms a { color: var(--accent); text-decoration: none; }
 

    /* logueado */
    .user-bar { display:none; padding:28px 26px; flex-direction:column; align-items:center; text-align:center; }
    .user-avatar {
      width:64px; height:64px; border-radius:50%;
      background:linear-gradient(135deg,var(--vc-purple),var(--vc-pink));
      display:flex; align-items:center; justify-content:center;
      font-size:24px; font-weight:900; color:#fff; margin-bottom:12px;
      border:2px solid rgba(196,95,255,0.3); box-shadow:0 0 24px rgba(196,95,255,0.2);
    }
    .user-welcome { font-size:8px; font-weight:800; letter-spacing:0.2em; text-transform:uppercase; color:var(--text-muted); margin-bottom:4px; }
    .user-name    { font-size:20px; font-weight:900; color:var(--text); letter-spacing:-0.02em; margin-bottom:6px; }
    .user-email   { font-size:11px; color:var(--text-muted); margin-bottom:22px; }
    .user-actions { display:flex; flex-direction:column; gap:8px; width:100%; }
    .user-action-btn {
      display:flex; align-items:center; justify-content:center; gap:8px; padding:11px; border-radius:2px;
      font-family:'Nunito Sans',sans-serif; font-size:9px; font-weight:800;
      letter-spacing:0.16em; text-transform:uppercase; text-decoration:none; cursor:pointer;
      transition:background 0.22s, color 0.22s, border-color 0.22s;
    }
    .user-action-btn.primary   { border:2px solid var(--accent); color:var(--accent); background:transparent; }
    .user-action-btn.primary:hover { background:var(--accent); color:#09090f; }
    .user-action-btn.secondary { border:1px solid rgba(180,120,255,0.18); color:var(--text-dim); background:transparent; }
    .user-action-btn.secondary:hover { border-color:rgba(180,120,255,0.4); color:var(--text); }
    .user-action-btn.logout    { border:1px solid rgba(255,79,163,0.18); color:rgba(255,79,163,0.55); background:transparent; }
    .user-action-btn.logout:hover { border-color:var(--vc-pink); color:var(--vc-pink); }
 
    /* navbar login button */
    .nav-login-btn {
      display: inline-flex; align-items: center; gap: 7px;
      padding: 7px 16px;
      border: 1px solid rgba(196,95,255,0.35);
      color: var(--accent);
      font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
      background: rgba(196,95,255,0.06);
      border-radius: 2px; cursor: pointer;
      transition: background 0.2s, border-color 0.2s;
      font-family: 'Nunito Sans', sans-serif;
      margin-right: 20px;
    }
    .nav-login-btn:hover { background: rgba(196,95,255,0.14); border-color: rgba(196,95,255,0.6); }
    .nav-login-btn i { font-size: 11px; }
 

    /* modal news items */
    .modal-news-item {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 10px 18px; border-bottom: 1px solid rgba(180,120,255,0.06);
      text-decoration: none; transition: background 0.2s;
    }
    .modal-news-item:last-child { border-bottom: none; }
    .modal-news-item:hover { background: rgba(196,95,255,0.05); }
    .modal-news-thumb {
      width: 46px; height: 36px; border-radius: 3px; object-fit: cover;
      flex-shrink: 0; background: rgba(180,120,255,0.08);
    }
    .modal-news-title { font-size: 11px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 3px; }
    .modal-news-date  { font-size: 9px; color: var(--text-muted); font-weight: 600; }

    /* Discord ad strip */
    .modal-discord-ad {
      display: flex; align-items: center; gap: 12px;
      padding: 14px 18px;
      background: rgba(88,101,242,0.1); border-top: 1px solid rgba(88,101,242,0.2);
      text-decoration: none; transition: background 0.2s; flex-shrink: 0;
    }
    .modal-discord-ad:hover { background: rgba(88,101,242,0.18); }
    .modal-discord-ad > .fab { font-size: 22px; color: #7289da; flex-shrink: 0; }
    .modal-discord-ad-title { font-size: 11px; font-weight: 800; color: var(--text); margin-bottom: 2px; }
    .modal-discord-ad-sub   { font-size: 9px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.04em; }

    /* navbar social separator */
    .nav-social-sep {
      display: none;
      width: 1px; height: 18px;
      background: rgba(180,120,255,0.2);
      margin: 0 16px;
    }
    .nav-user-area.visible ~ .nav-social-sep,
    .nav-social-sep.visible { display: block; }

    /* hide nav user area by default, show when logged in */
    .nav-user-area {
      display: none;
      align-items: center;
      gap: 10px;
    }
    .nav-user-area.visible { display: flex; }
    .nav-user-avatar-small {
      width: 30px; height: 30px; border-radius: 50%;
      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; cursor: pointer;
      border: 1px solid rgba(196,95,255,0.35);
      transition: box-shadow 0.2s;
    }
    .nav-user-avatar-small:hover { box-shadow: 0 0 12px rgba(196,95,255,0.4); }
    .nav-user-name-small {
      font-size: 12px; font-weight: 700; color: var(--text-dim);
      cursor: pointer; transition: color 0.2s;
    }
    .nav-user-name-small:hover { color: var(--accent); }
 
    /* hide crear cuenta tab when logged in */
    .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); }

    /* ══ RESPONSIVE ═════════════════════════════════════════════ */

    /* ── Tablet ancho (≤1100px) ── */
    @media (max-width: 1100px) {
      .bottom-inner { max-width: 100% !important; padding: 0 20px; }
      .social-boxes {
        grid-template-columns: repeat(2, 1fr) !important;
      }
    }

    /* ── Tablet (≤900px) ── */
    @media (max-width: 900px) {
      /* Navbar: ocultar links y sociales de escritorio */
      .nav-links        { display: none !important; }
      .nav-separator    { display: none !important; }
      .nav-social-sep   { display: none !important; }
      .nav-user-area    { display: none !important; }
      #nav-login-btn    { display: none !important; }
      .nav-menu-toggle  { display: flex !important; }
      /* RRSS siempre visibles en la navbar móvil */
      .nav-social       { display: flex !important; }

      /* Drawer móvil: añadir acceder + sociales */
      .nav-mobile-drawer { padding-bottom: 24px; }

      /* Modal auth: pantalla completa */
      .auth-modal {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        min-height: 100dvh;
        border-radius: 0;
        gap: 0;
      }
      #auth-overlay {
        padding: 0 !important;
        align-items: flex-start !important;
      }
      .auth-perks-box   { display: none !important; }
      .auth-form-box    {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        min-height: 100dvh;
      }
      .auth-form-hero   { height: 110px; }
      .auth-form-body   { padding: 18px 20px 32px; }
      .auth-modal-close { top: 14px; right: 16px; }

      /* Hero carousel */
      .hero { min-height: 56vw; }

      /* Bottom zone: una columna */
      .bottom-inner {
        flex-direction: column !important;
        gap: 24px !important;
        padding: 24px 16px !important;
      }
      .releases-widget  { width: 100% !important; min-width: 0 !important; }
      .social-boxes     {
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
      }

      /* Footer */
      .footer-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 24px 16px !important;
      }
    }

    /* ── Móvil (≤600px) ── */
    @media (max-width: 600px) {
      /* Ticker */
      .ticker-label { display: none; }

      /* Hero */
      .hero-content   { padding: 16px !important; }
      .hero-title     { font-size: clamp(18px, 5vw, 28px) !important; }
      .hero-body      { display: none; }

      /* Sección artículos */
      .section        { padding: 32px 16px !important; }
      .section-title  { font-size: 16px !important; }
      .articles-grid  { grid-template-columns: 1fr !important; gap: 16px !important; }
      .article-card   { flex-direction: column !important; }
      .article-thumb  { width: 100% !important; height: 180px !important; flex-shrink: 0; }

      /* Búsqueda */
      .search-bar     { margin-bottom: 24px !important; }

      /* Modal auth en móvil */
      .auth-form-hero { height: 90px; }
      .auth-tabs .auth-tab { font-size: 8px; padding-bottom: 10px; }

      /* Footer */
      .footer-text-lines span { font-size: 10px !important; }
      .footer-logo-img { height: 20px !important; }
    }

    /* ── Móvil pequeño (≤400px) ── */
    @media (max-width: 400px) {
      .auth-form-body { padding: 14px 14px 28px; }
      .auth-input     { font-size: 14px; }
    }

    /* YouTube social box accent */
    .social-box--youtube .social-box-icon { color: #ff0000; background: rgba(255,0,0,0.08); }
    .social-box--youtube:hover { border-color: rgba(255,0,0,0.45); background: rgba(255,0,0,0.04); }

    /* Social boxes: wider area, 4 columnas sin salto de línea */
    .bottom-inner { max-width: 1400px !important; }
    .social-boxes {
      display: grid !important;
      grid-template-columns: repeat(4, 1fr) !important;
      gap: 12px !important;
      flex: none !important;
      min-width: 0;
    }
    .social-box { min-width: 0; box-sizing: border-box; }
    .social-box-name { white-space: nowrap; }

    /* Nav login btn: separación respecto a los iconos de RRSS */
    #nav-login-btn { margin-left: 16px; }