/* ==========================================================================
   1. RESET Y TIPOGRAFÍA BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #fff;
  font-family: "BlenderProBook", sans-serif;
  font-weight: 300;
  line-height: 1;
}

/* Tipografía base */
.body {
  font-family: "BlenderProBook", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 120%;
}

/* Clases utilitarias */
.white {
  color: #fff;
}

.uppercase {
  text-transform: uppercase;
}

/* ==========================================================================
   2. FUENTES PERSONALIZADAS
   ========================================================================== */

@font-face {
  font-display: swap;
  font-family: "BlenderProBook";
  src: url("https://www.cyberpunk.net/fonts/BlenderPro-Book.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "BlenderProBold";
  src: url("https://www.cyberpunk.net/fonts/BlenderPro-Bold.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Refinery-25";
  font-style: normal;
  font-weight: 600;
  src: url("/build/fonts/Refinery-25SemiBold-dac0d12b.woff2") format("woff2");
}

/* ==========================================================================
   3. HEADER Y FONDO ANIMADO
   ========================================================================== */

.header {
  background: transparent;
  position: relative;
}



.header__bg {
  position: absolute;
  inset: 0;
  z-index: -1; 
}


.header__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

@media (max-width: 768px) {
  .header__content {
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    padding: 0;
    max-width: 100%;
  }

  .header__title {
    font-size: 28px;
  }

  .header__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-cyberpunk {
    min-width: 100%;
    justify-content: center;
  }

.header__icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.header__icons img {
  width: 32px;
  height: auto;
 }
}

@media (max-width: 768px) {
  .juegos-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .juego-opcion {
    width: 90%;
  }

  .comprar-section h2 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .navbar__menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .navbar__menu li a {
    font-size: 14px;
  }
}


.header__content {
  position: absolute;
  top: 45%;                      /* 👈 Subido ligeramente */
  left: 60px;
  transform: translateY(-50%);
  z-index: 1;
  text-align: left;
  max-width: 600px;
}




/* === LOGO === */
.header__logo {
  margin-top: 20px; /* Espacio superior para el logo */
  margin-left: 20px; /* Espacio lateral para el logo */
}

.header__logo-image {
  width: 180px;
  height: auto;
}

.header__title {
  font-family: "BlenderProBold", sans-serif;
  font-size: 48px;
  color: #fcee0a;
  margin-bottom: 8px; /* Reduce el margen inferior del título */
}

.header__subtitle {
  font-family: "BlenderProBook", sans-serif;
  font-size: 24px;
  color: #fcee0a;
  margin-bottom: 24px; /* Reduce el margen inferior del subtítulo */
}

.header__icons {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
}

.btn--trailer {
  margin-left: 0;
}



.header__icons img {
  height: 32px;
}

.header__icons img:hover {
  transform: scale(1.1);
}

.header .btn--trailer {
  margin-top: 24px;
  align-self: flex-start;
}



.btn-cyberpunk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 200px;
  background-color: #000;
  color: #fcee0a;
  font-family: "BlenderProBold", sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  padding: 0 24px;
  clip-path: polygon(
    0 0,
    95% 0,
    100% 30%,
    100% 100%,
    5% 100%,
    0 70%
  );
  transition: all 0.3s ease;
  margin: 0;
  line-height: 1;
}



.btn--trailer:hover {
  background-color: #000;
  color: #00ffe1;
  box-shadow: 0 0 20px rgba(0, 255, 225, 0.6);
}

/* Botón del menú móvil (hamburguesa) */
.menu-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px 0;
  background-color: #fcee0a;
}

/* ==========================================================================
   4. MENÚ DE NAVEGACIÓN
   ========================================================================== */

/* === MENÚ DE NAVEGACIÓN === */
.nav {
  display: flex;
  justify-content: center; /* Centra el menú horizontalmente */
  align-items: center;
  gap: 10px;
  margin-top: 20px; /* Ajusta según sea necesario */
  background-color: #222; /* Color del fondo del menú */
  padding: 8px 24px; /* Espaciado interno del menú */
}

.nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.nav__menu li {
  position: relative;
}

.nav__menu li a {
  font-family: "BlenderProBold", sans-serif;
  text-transform: uppercase;
  color: #fcee0a; /* Color amarillo del menú */
  text-decoration: none;
  font-size: 18px;
  padding: 8px 12px;
  display: block;
}

.nav__menu li a:hover {
  color: #fcee0a; /* Cambio de color al pasar el ratón */
}


/* Submenús desplegables */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.95);
  padding: 10px 0;
  border: 1px solid #fcee0a;
  min-width: 180px;
  z-index: 20;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #fcee0a;
  text-decoration: none;
  font-family: "BlenderProBook", sans-serif;
}

.dropdown-menu a:hover {
  background: #fcee0a;
  color: #000;
}

/* Mostrar submenú al pasar el mouse */
.nav__menu .dropdown:hover .dropdown-menu {
  display: block;
}

/* Botón "Comprar" */
.nav__menu li .cp-btn {
  height: 36px;
  min-width: auto;
  padding: 8px 16px;
  font-size: 16px;
}

/* Responsive para dispositivos móviles */
@media (max-width: 767.9px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav__menu li {
    width: 100%;
    background: none !important;
  }
}
.nav__menu li a,
.header__title,
.header__subtitle {
  text-shadow: 0 0 8px #00ffe1;
}

/* ==========================================================================
   5. SECCIÓN DE NOTICIAS
   ========================================================================== */

.news {
  padding: 40px 0;
  background-color: #000;
  position: relative;
}

.news::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background-image: url("https://www.cyberpunk.net/build/images/razor-18e21da3.svg");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 100%;
}

.news__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  list-style: none;
  padding: 0 20px;
}

.news__tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.news__tile:hover {
  transform: translateY(-6px);
}

.news__image {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.news__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news__tile:hover .news__image img {
  transform: scale(1.05);
}

.news__image-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 12px;
  color: #00f0ff;
  text-align: center;
}

.news__image-title h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.news__title {
  font-family: "BlenderProBold", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-top: 16px;
  text-align: center;
  color: #00f0ff;
  padding: 0 10px;
  text-decoration: none;
}

.news__more {
  text-align: center;
  margin-top: 32px;
}

/* Botón "Más noticias" */
.toggle-news {
  font-family: "BlenderProBold", sans-serif;
  text-transform: uppercase;
  color: #000;
  background: #00ffe1;
  padding: 12px 32px;
  border: none;
  cursor: pointer;
}

.toggle-news:hover {
  background: #000;
  color: #00ffe1;
  box-shadow: 0 0 20px rgba(0, 255, 225, 0.6);
}

/* ==========================================================================
   6. SECCIÓN DE BIENVENIDA (oculta por defecto)
   ========================================================================== */

.welcome-section {
  display: none;
  background-color: #000;
  color: #fff;
  padding: 48px 24px;
}

.welcome-section .content {
  max-width: 1134px;
  margin: 0 auto;
}

.highlighted-news img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 24px;
}

.highlighted-news h2 {
  font-family: "BlenderProBold", sans-serif;
  font-size: 24px;
  letter-spacing: -0.06em;
  color: #fcee0a;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  margin: 16px 0;
}

.separator {
  height: 2px;
  background: rgba(203, 203, 203, 0.3);
  margin: 24px 0;
}

.welcome-message {
  font-family: "BlenderProBook", sans-serif;
  font-size: 22px;
  line-height: 1.5;
  color: #ccc;
}

/* ==========================================================================
   7. BOLETÍN DE SUSCRIPCIÓN
   ========================================================================== */

.l-newsletter,
.newsletter-subscription {
  background-color: #fcee0a;
  padding: 48px 20px;
  text-align: center;
}

.l-newsletter__title,
.newsletter-subscription h2 {
  font-family: "BlenderProBold", sans-serif;
  font-size: 32px;
  color: #000;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.l-newsletter__text,
.newsletter-subscription p {
  font-size: 18px;
  color: #000;
  max-width: 700px;
  margin: 0 auto 24px;
}

.l-newsletter__form,
.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.l-newsletter input[type="email"],
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 250px;
  padding: 12px 16px;
  font-size: 18px;
  border: none;
  border-bottom: 2px solid #000;
  background: rgba(0, 255, 225, 0.1);
  color: #fff;
  outline: none;
}

.l-newsletter input[type="email"]::placeholder,
.newsletter-form input[type="email"]::placeholder {
  color: #999;
}

.l-newsletter button[type="submit"],
.newsletter-form button {
  background: #000;
  color: #fcee0a;
  border: none;
  padding: 12px 24px;
  font-family: "BlenderProBold", sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.l-newsletter button[type="submit"]:hover,
.newsletter-form button:hover {
  background: #000;
  color: #00ffe1;
  box-shadow: 0 0 15px rgba(0, 255, 225, 0.5);
}

/* ==========================================================================
   8. SECCIÓN DE COMPRA (COMPRAR)
   ========================================================================== */

.comprar-section {
  background: #fcee0a;
  color: #000;
  text-align: center;
  padding: 60px 20px;
}

.logo-comprar {
  width: 300px;
  margin-bottom: 20px;
}

.comprar-section h2 {
  font-family: "BlenderProBold", sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  margin: 24px 0;
}

.juego-opcion {
  width: 300px;
  border: 4px solid transparent;
  transition: border 0.3s ease;
  cursor: pointer;
}

.juego-opcion img {
  width: 100%;
  height: auto;
  display: block;
}

.juego-opcion.seleccionado {
  border: 4px solid #000;
  outline: 4px double #000;
}

.plataformas-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.plataformas-grid .cp-btn {
  height: 48px;
  min-width: 160px;
  font-size: 16px;
}

.info-text {
  font-size: 16px;
  margin: 10px 0 30px;
  font-family: "BlenderProBook", sans-serif;
}

.juegos-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 20px;
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.footer {
  background: #000;
  color: #fff;
  padding: 48px 24px;
  position: relative;
  z-index: 2;
}

.footer .socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #cbcbcb;
  font-family: "BlenderProBold", sans-serif;
  font-size: 18px;
  text-transform: uppercase;
}

.footer .socials span {
  margin-right: 8px;
}

.footer .socials a {
  display: block;
  width: 40px;
  height: 40px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.footer .socials a.social-youtube {
  background-image: url("img/youtube-cb066cae.svg");
}

.footer .socials a.social-facebook {
  background-image: url("https://www.cyberpunk.net/build/images/facebook-607a7626.svg");
}

.footer .socials a.social-twitter {
  background-image: url("img/twitter-964d7e53.svg");
}

.footer .socials a.social-discord {
  background-image: url("https://www.cyberpunk.net/build/images/discord-25f7b34a.svg");
}

.footer .socials a.social-twitch {
  background-image: url("https://www.cyberpunk.net/build/images/twitch-e28d5215.svg");
}

.footer .socials a.social-instagram {
  background-image: url("https://www.cyberpunk.net/build/images/instagram-d70b2cd7.svg");
}

.footer hr {
  height: 2px;
  background: rgba(203, 203, 203, 0.1);
  border: none;
  margin: 24px 0;
}

.footer .partners {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer .partners img {
  height: 32px;
  filter: brightness(0.8);
}

.footer .links {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}

.footer .links a {
  color: #00f0ff;
  font-family: "BlenderProBold", sans-serif;
  font-size: 18px;
  text-decoration: none;
}

.footer .links a:hover {
  color: #fcee0a;
  text-decoration: underline;
}

.footer .copyright p {
  color: #cbcbcb;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.footer .projects a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #00f0ff;
  font-family: "BlenderProBold", sans-serif;
  font-size: 16px;
  text-transform: uppercase;
}

.footer .projects a img {
  height: 48px;
}

.footer .projects a span {
  margin-top: 8px;
}

/* ==========================================================================
   10. BOTONES ESTILO CYBERPUNK
   ========================================================================== */

.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 212px;
  background: none;
  color: #fff;
  font-family: "BlenderProBold", sans-serif;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: none;
  padding: 0;
  margin: 0 10px;
  clip-path: polygon(
    0 0,
    95% 0,
    100% 30%,
    100% 100%,
    5% 100%,
    0 70%
  );
  transition: all 0.3s ease;
}

.cp-btn img {
  height: 50px;
  max-width: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.cp-btn span {
  padding: 0 20px;
  z-index: 2;
}

.cp-btn--cyan {
  background: #00ffe1;
  color: #000;
}

.cp-btn--cyan:hover {
  background: #000;
  color: #00ffe1;
  box-shadow: 0 0 20px rgba(0, 255, 225, 0.6);
}

/* Botón negro con borde amarillo (estilo alternativo) */
.cp-btn {
  border: 2px solid #000;
}

.cp-btn:hover {
  background-color: #000;
  color: #fcee0a;
}

/* ==========================================================================
   11. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 767.9px) {
  .header__content {
    padding: 40px 20px;
  }

  .header__title {
    font-size: 32px;
  }

  .header__icons {
    flex-direction: column;
    gap: 12px;
  }

  .header__icons img {
    height: 100px;
  }

  .news__list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .l-newsletter__form,
  .newsletter-form {
    flex-direction: column;
  }

  .l-newsletter input[type="email"],
  .newsletter-form input[type="email"],
  .l-newsletter button[type="submit"],
  .newsletter-form button {
    min-width: 100%;
  }

  .footer .socials {
    flex-direction: column;
    gap: 12px;
  }

  .footer .links {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer .projects {
    gap: 20px;
  }

  .cp-btn {
    min-width: 180px;
    height: 44px;
    font-size: 20px;
  }
}

/* Posicionamiento del menú en el header */
.header .nav {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 20px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

/* Ajuste: baja el nav para que no tape el logo */
.header .nav {
  position: absolute;
  top: 100px; /* ahora queda debajo del logo */
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 30px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

/* Submenús ocultos */
.nav__menu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.85);
  padding: 10px 0;
  border-radius: 8px;
  z-index: 99;
  min-width: 180px;
}

.nav__menu .submenu li {
  width: 100%;
}

.nav__menu .submenu li a {
  padding: 10px 20px;
  color: #fcee0a;
  text-decoration: none;
  display: block;
}

.nav__menu .submenu li a:hover {
  color: #00ffe1;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mostrar submenús al pasar el mouse */
.nav__menu li.has-submenu:hover .submenu {
  display: block;
}

.nav__menu li.has-submenu {
  position: relative;
}

.nav__menu li .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.85);
  padding: 10px 0;
  border-radius: 8px;
  min-width: 180px;
  z-index: 99;
}

.nav__menu li .submenu li a {
  padding: 10px 20px;
  display: block;
  color: #fcee0a;
}

.nav__menu li .submenu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #00ffe1;
}

/* Baja el contenido principal */
.header__content {
 padding-top: 60px;
}

.header__top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6); /* o transparente si prefieres */
  backdrop-filter: blur(10px);    /* efecto visual elegante */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  border-radius: 0;
}

/* Contenedor de logo + menú en una fila */
.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 60px;
  position: relative;
  z-index: 10;
}

.header__main {
  margin-top: 100px; /* o ajusta según altura real del menú */
}


/* Logo */
.header__logo-image {
  width: 180px;
  height: auto;
}

/* Menú horizontal */
.nav__menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  background: none;
}

.nav__menu li a {
  font-family: "BlenderProBold", sans-serif;
  font-size: 18px;
  color: #fcee0a;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 12px;
  display: block;
  transition: color 0.3s ease;
}

.nav__menu li a:hover {
  color: #00ffe1;
}

/* Submenús */
.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 180px;
  z-index: 99;
}

.submenu li a {
  padding: 10px 20px;
  color: #fcee0a;
  display: block;
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #00ffe1;
}

/* Mostrar submenu al pasar el cursor */
.has-submenu:hover .submenu {
  display: block;
}

/* --- Logo y Menú en fila --- */
.header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px 0;
  position: relative;
  z-index: 10;
}

.header__top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(0, 0, 0, 0.3); /* fondo sutil semitransparente */
  backdrop-filter: blur(6px); /* difumina el fondo detrás */
}




/* Logo */
.header__logo-image {
  width: 180px;
  height: auto;
}

/* Menú principal */
.nav__menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu li a {
  font-family: "BlenderProBold", sans-serif;
  font-size: 16px;
  color: #fcee0a;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 10px;
  display: block;
  transition: color 0.3s ease;
}

.nav__menu li a:hover {
  color: #00ffe1;
}

/* Submenús */
.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  padding: 10px 0;
  border-radius: 8px;
  min-width: 160px;
  z-index: 99;
}

.submenu li a {
  padding: 10px 16px;
  white-space: nowrap;
}

.submenu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #00ffe1;
}

/* Mostrar submenú al pasar el mouse */
.has-submenu:hover .submenu {
  display: block;
}

/* --- Mueve el contenido hacia abajo --- */
.header__content {
  padding-top: 100px;
  position: relative;
  z-index: 1;
  text-align: left;        /* 👈 Alineación a la izquierda */
  padding-left: 60px;      /* 👈 Separación del borde */
  max-width: 600px;        /* 👈 Opcional: ancho máximo */
}

.header__title,
.header__subtitle,
.header__icons,
.btn--trailer {
  margin-left: 0;         /* elimina centrado automático */
  text-align: left;
  justify-content: flex-start;
}


/* Fondo animado */
.header__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.header__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fondo gif */
.header__bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

/* Navbar sticky con fondo sutil */
.navbar {
  position: absolute; /* NO fixed */
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 40px;
  background: transparent; /* sin fondo negro */
  backdrop-filter: none; /* sin difuminado */
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2; /* por encima del fondo, pero debajo del contenido */
}



/* Logo */
.navbar__logo img {
  height: 150px; /* antes 40px */
  margin-top: 35px;
  display: flex;
  flex-direction: row;
}


/* Menú */
.navbar__menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar__menu li a {
  color: #fcee0a; /* amarillo neón */
  font-weight: bold;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 5px #fcee0a, 0 0 10px #00ffe1;
  transition: color 0.3s, text-shadow 0.3s;
}


.navbar__menu li a:hover {
  color: #ffff00;
  text-shadow: 0 0 10px #ffff00, 0 0 20px #ff00ff;
}

/* Espacio para que el contenido no quede tapado */
.header__content {
  padding-top: 80px; /* antes 100px o 120px */
}

.header {
  height: 100vh; /* fuerza el header a ocupar toda la altura de la pantalla */
  overflow: hidden; /* evita que algo sobresalga */
  position: relative;
}

.header__actions {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  margin-bottom: 16px;
}


.btn--news:hover {
  background-color: #000;
  color: #00ffe1;
  box-shadow: 0 0 20px rgba(0, 255, 225, 0.6);
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
  }

  .navbar__menu {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding-top: 10px;
  }

  .navbar__menu li a {
    font-size: 16px;
    padding: 10px 15px;
    display: block;
  }

  .header__content {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    max-width: 100%;
    padding: 0;
  }

  .header__title {
    font-size: 28px;
    line-height: 1.2;
  }

  .header__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
  }

  .btn-cyberpunk {
    width: 100%;
    height: 48px;
    font-size: 16px;
    clip-path: none; /* quitar forma en móviles si da problemas */
    border-radius: 4px;
  }

  .header__icons {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 20px;
  }

  .header__icons img {
    height: 28px;
    width: auto;
  }

  .navbar__logo img {
    height: 32px;
  }

  .juegos-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .juego-opcion {
    width: 90%;
  }

  .comprar-section h2 {
    font-size: 18px;
  }
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background-color: #fcee0a;
  }

  .navbar__menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .navbar__menu.active {
    display: flex;
  }
}

.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background-color: #fcee0a;
  }

  .navbar__menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding: 10px 0;
  }

  .navbar__menu.active {
    display: flex;
  }
}

@media (max-width: 400px) {
  .btn-cyberpunk {
    font-size: 14px;
    height: 44px;
    min-width: auto;
    padding: 0 16px;
  }

  .header__title {
    font-size: 24px;
  }

  .header__icons {
    gap: 12px;
  }

  .menu-toggle span {
    width: 20px;
  }
}

/* Estilo general para botón hamburguesa */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    z-index: 1001;
  }

  .menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: #fcee0a;
  }

  .navbar__menu {
    display: none; /* 🔴 por defecto está oculto */
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 1000;
    padding: 10px 20px;
  }

  .navbar__menu.active {
    display: flex; /* ✅ Se muestra al tener la clase activa */
  }

  .navbar__menu li {
    width: 100%;
  }

  .navbar__menu li a {
    display: block;
    width: 100%;
    padding: 10px 0;
    color: #fcee0a;
    font-size: 16px;
    text-align: left;
  }
}

.plataformas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 20px;
}

.cp-btn {
  background: transparent;
  border: 2px solid #fcee0a;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: 0.3s;
  flex: 1 1 120px;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-btn img {
  width: 100%;
  max-width: 120px;
  height: auto;
}

.cp-btn:hover {
  background-color: #000;
  border-color: #fff200;
  transform: scale(1.05);
}

/* Responsive para pantallas pequeñas */
@media (max-width: 600px) {
  .plataformas-grid {
    flex-direction: column;
    align-items: center;
  }

  .cp-btn {
    width: 80%;
    max-width: none;
  }
}


