/* ============================================================
   NEXUS GAMING — Juegos Page Styles
   ============================================================ */

.games-section { padding: 5rem 0; }
.genre-filter { margin-bottom: 3rem; }

/* ── Page Hero — imagen full-width, texto a la derecha ───── */
.page-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* texto a la derecha */
}

/* Imagen de fondo ocupa TODO el ancho */
.hero-img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-img-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-img-bg-overlay {
  position: absolute;
  inset: 0;
  /* degradado suave solo en el lado derecho para que el texto lea bien */
  background: linear-gradient(
    to left,
    rgba(5, 8, 17, 0.75) 0%,
    rgba(5, 8, 17, 0.45) 40%,
    transparent 70%
  );
}

/* Ocultar el fondo sólido secundario que duplicaba */
.hero-bg { display: none; }

/* Grilla decorativa y partículas encima de la imagen */
.hero-grid,
.hero-particles,
.orb { z-index: 1; }

/* Bloque de texto — esquina derecha */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  padding: 2rem 5vw 2rem 2rem;
  max-width: 55%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--grey-light, #aaa);
  margin-bottom: 1.2rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--accent, #e01070);
  order: 1;            /* línea DESPUÉS del texto para lado derecho */
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  line-height: 0.92;
}

/* ── Hero game card ──────────────────────────────────────── */
.game-hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 3rem;
  border: 1px solid rgba(255,255,255,0.07);
}
.ghc-bg {
  position: absolute;
  inset: 0;
}
.ghc-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(120,60,255,0.5), transparent 60%);
  animation: heroPulse 4s ease-in-out infinite alternate;
}
.ghc-particles {
  position: absolute;
  inset: 0;
}
.ghc-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  max-width: 600px;
  background: linear-gradient(to right, rgba(5,8,17,0.95) 60%, transparent 100%);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ghc-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
  margin-bottom: 0.75rem;
}
.ghc-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--grey-light);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.ghc-meta .fa-star { color: var(--gold); }
.ghc-desc {
  font-size: 0.9rem;
  color: var(--grey-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 480px;
}
.ghc-platform {
  position: absolute;
  top: 2rem; right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 3;
}

/* ── Games grid ──────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.game-card { overflow: hidden; }
.gc-img {
  height: 220px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s;
}
.game-card:hover .gc-img { transform: scale(1.04); }
.gc-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,170,255,0.08), transparent 70%);
}
.gc-rating {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--grey-light);
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.gc-rating .fa-star { color: var(--gold); }
.gc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Plus promo ──────────────────────────────────────────── */
.plus-promo { padding: 6rem 0; }
.plus-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid rgba(0,170,255,0.12);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.plus-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 0% 50%, rgba(0,112,209,0.1), transparent 60%);
  pointer-events: none;
}
.plus-games-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.plus-game-thumb {
  border-radius: 10px;
  aspect-ratio: 3/4;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.plus-game-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(0,112,209,0.2);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(2,1fr); }
  .plus-inner { grid-template-columns: 1fr; }
  .hero-content { max-width: 70%; }
}
@media (max-width: 600px) {
  .games-grid { grid-template-columns: 1fr; }
  .game-hero-card { min-height: 340px; }
  .ghc-content { padding: 1.5rem; }
  .hero-content {
    max-width: 100%;
    padding: 2rem;
    text-align: center;
  }
  .hero-eyebrow::before { display: none; }
}