/* ---------------------------------------
   THE LAST DOG STUDIO — Main Styles
   --------------------------------------- */

/* --- CUSTOM FONTS --- */
@font-face {
  font-family: "Jersey20";
  src: url("../assets/fonts/Jersey20-Regular.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Jersey25";
  src: url("../assets/fonts/Jersey25-Regular.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "JimNightshade";
  src: url("../assets/fonts/JimNightshade-Regular.ttf") format("truetype");
  font-display: block;
}

/* --- RESET --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Jersey25", "Jersey20", "Inter", system-ui, -apple-system, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img.contain {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

img.cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* --- CONTAINER --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
  font-family: "Jersey25", "Jersey20", "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

/* ---------------------------------------
   NAVBAR
   --------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 12px 0;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: "Jersey25", "Jersey20", "Space Grotesk", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: #fff;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  border-radius: 6px;
  font-family: "Jersey25", "Jersey20", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #999;
  transition: all 0.25s ease;
  user-select: none;
  -webkit-user-select: none;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link-accent {
  color: #E74C3C !important;
}

.nav-link-accent:hover {
  color: #ff6b5a !important;
  background: rgba(231, 76, 60, 0.1);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  font-family: "Jersey25", "Jersey20", sans-serif;
  font-size: 0.85rem;
}

.lang-toggle .lang {
  color: #666;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}

.lang-toggle .lang:hover {
  color: #ccc;
}

.lang-toggle .lang.active {
  color: #E74C3C;
  pointer-events: none;
}

.lang-toggle .lang-sep {
  color: #444;
  user-select: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------------------------------------
   INDEX PAGE - HERO & SECTIONS
   --------------------------------------- */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: #0a0a0a;
}

.hero::before {
  content: '';
  flex: 1;
}

.hero-content {
  width: 100%;
  padding: 80px 0 40px;
}

.hero-inner {
  max-width: 1100px;
}

.hero-logo {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-logo-img {
  max-width: 680px;
  width: 95%;
  height: auto;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.hero-title {
  font-family: "Jersey25", "Jersey20", "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #90caf9 50%, #64b5f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.snap-section {
  min-height: 100vh;
  background: #0a0a0a;
  scroll-snap-align: start;
}

#game.section {
  padding: 96px 0 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #0a0a0a;
}

#game.section>.container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.games-wrapper {
  margin: auto auto 120px auto;
}

/* Index #game: la flecha (arriba del wrapper) y el footer deben verse en pantalla.
   Sin centrado vertical ni el margen inferior de 120px, el wrapper queda arriba
   y el footer (flex-shrink:0, al final de la sección) abajo, ambos visibles.
   No afecta a game-page (body.game-page usa #game-screens, no .games-wrapper). */
#game .games-wrapper {
  margin: 0 auto;
}

.games-tag {
  text-align: center;
  font-family: "Jersey25", "Jersey20", "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: #fff;
  margin-bottom: 25px;
  display: block;
  user-select: none;
  -webkit-user-select: none;
}

.games-grid {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 36px auto 0;
}

/* Index #game: sube el bloque título+card acercándolo a la flecha (reduce el
   espacio entre la flecha y el card). Sin cambiar tamaños: solo margen. */
#game .games-grid {
  margin-top: 12px;
}

/* --- SCROLL ARROWS (General) --- */
.hero-scroll,
.games-scroll-up,
.arrow-container {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

.scroll-arrow-up {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-left: 2px solid #666;
  border-top: 2px solid #666;
  transform: rotate(45deg);
  animation: scrollBounceUp 2s infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.4;
  }

  50% {
    transform: rotate(45deg) translate(4px, 4px);
    opacity: 1;
  }
}

@keyframes scrollBounceUp {

  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.4;
  }

  50% {
    transform: rotate(45deg) translate(-4px, -4px);
    opacity: 1;
  }
}

.hero-scroll {
  flex: 1;
  flex-direction: column;
}

.hero-scroll.arrow-up .scroll-arrow {
  transform: rotate(-135deg);
  animation: scrollBounceArrowUp 2s infinite;
}

@keyframes scrollBounceArrowUp {
  0%, 100% {
    transform: rotate(-135deg) translate(0, 0);
    opacity: 0.4;
  }
  50% {
    transform: rotate(-135deg) translate(-4px, -4px);
    opacity: 1;
  }
}

/* ---------------------------------------
   GAME CARD (Main Page)
   --------------------------------------- */
.game-card-link {
  text-decoration: none !important;
  display: block;
  outline: none;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: #131313;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
  padding: 20px 30px 20px;
  /* Esta es la flecha VERDE (distancia borde-titulo) */
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
}

/* Index #game: card más pequeño, mantiene relación 4:3 (portada con aspect-ratio 4/3).
   No afecta game-page (body.game-page usa #game-screens, no .game-card). */
#game .game-card {
  max-width: 330px;
}

.game-card:hover {
  border-color: rgba(33, 150, 243, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

/* --- Título con fuente Jim y en rojo --- */
.game-card-title {
  font-family: "JimNightshade", serif;
  color: #E74C3C;
  font-size: 2.3rem;
  font-weight: normal;
  text-align: center;
  padding: 0;
  margin: 0 0 14px 0;
  /* Esta es la flecha AZUL (distancia titulo-portada) */
  text-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.game-card-cover {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
}

.game-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.game-card:hover .game-card-cover img {
  transform: scale(1.05);
}

.game-card-store {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  margin: 40px 0 0 0;
  /* Esta es la flecha MORADA (distancia portada-botones) */
  justify-content: center;
}

/* ---------------------------------------
   STORE BANNERS
   --------------------------------------- */
.store-banner {
  display: block;
  transition: all 0.35s ease;
  border: none;
  /* Quitamos bordes */
  background: none;
  /* Quitamos fondo */
  padding: 0;
  /* Quitamos el espacio del marco */
}

.store-banner:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  /* Sombra sin recuadro */
}

.store-banner img {
  display: block;
  height: 60px;
  width: auto;
  border: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* ---------------------------------------
   CONTACT MODAL
   --------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  position: relative;
  background: #131313;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 44px 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #666;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-family: "Jersey25", "Jersey20", "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 8px;
}

.modal-text {
  font-size: 0.95rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-email {
  display: inline-block;
  font-size: 1.1rem;
  color: #2196F3;
  text-decoration: none;
  transition: color 0.25s;
  word-break: break-all;
  user-select: text;
  -webkit-user-select: text;
}

.modal-email:hover {
  color: #64b5f6;
}

/* ---------------------------------------
   FOOTER
   --------------------------------------- */
.footer {
  font-family: "Jersey25", "Jersey20", "Inter", system-ui, -apple-system, sans-serif;
  padding: 24px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #080808;
  flex-shrink: 0;
}

.footer-container {
  text-align: center;
}

.footer-disclaimer {
  margin-top: 24px;
  font-size: 0.65rem;
  color: #333;
  line-height: 1.5;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  font-size: 0.85rem;
  color: #555;
}

.footer-email {
  color: #2196F3;
  text-decoration: none;
  user-select: text;
  -webkit-user-select: text;
}

.footer-email:hover {
  color: #64b5f6;
}


/* =======================================
   GAME PAGE SPECIFIC STYLES (Motín o Botín)
   ======================================= */

body.game-page #game-screens .games-scroll-up {
  width: 100%;
  /* Ocupa todo el ancho para poder centrar */
  display: flex;
  justify-content: center;
  /* Centra la flecha horizontalmente */
  align-items: center;
  min-height: 80px;
  flex: none;
  /* Evita que se estire de forma rara */
}

body.game-page #game-screens .game-content-title {
  margin-top: 40px;
  /* Espacio hacia la flecha (Simetría Roja 1) */
  margin-bottom: 40px;
  /* Espacio hacia las fotos  (Simetría Roja 2) */
}

body.game-page {
  /* Quitar: scroll-snap-type: y mandatory; */
  scroll-behavior: smooth;
  font-family: "JimNightshade", serif;
  background: #0a0a0a;
  color: #D5C2A0;
  margin: 0;
  overflow-x: hidden;
}

/* Override modal fonts to use Jersey (not JimNightshade) in game pages */
body.game-page .modal-title,
body.game-page .modal-text,
body.game-page .modal-email {
  font-family: "Jersey25", "Jersey20", "Space Grotesk", sans-serif;
}

body.game-page .snap-section {
  /* Quitar: scroll-snap-align y scroll-snap-stop */
  min-height: 100vh;
  /* Cambiar height: 100vh; por min-height para que no corte el footer */
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Top Section specific fixes */
body.game-page #game-top {
  padding-top: 0;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

body.game-page #game-top::before {
  content: '';
  flex: 1;
}

/* Titles & Text */
body.game-page h2.game-content-title {
  font-family: "JimNightshade", serif;
  color: #E74C3C;
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  font-weight: normal;
  text-align: center;
}

/* 2. Textos descriptivos ligeramente más grandes (la fuente cursiva lo necesita) */
body.game-page .game-content-text {
  /* Ajuste para evitar que el bloque salga de pantalla */
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.35;
  margin-bottom: 1.2rem;
  text-align: center;
}

body.game-page .game-content-text strong {
  color: #E74C3C;
  font-weight: normal;
}

/* 3. Ajustes de la cuadrícula de la lista (más grande, más separada) */
body.game-page .game-features-list {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem); /* Aumentamos tamaño general de la lista */
  line-height: 1.6;
  list-style-type: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 40px; /* Más espacio vertical (25px) y horizontal (40px) */
  max-width: 850px;
  margin: 30px auto 0; /* Lo separamos un poco más del texto superior */
  text-align: center;
  justify-items: center;
}

body.game-page .game-features-list li::before {
  content: "•";
  color: #E74C3C;
  margin-right: 10px;
}

/* 4. Colorear los "strong" de la lista en rojo */
body.game-page .game-features-list li strong {
  color: #E74C3C;
  font-weight: normal;
}

/* Base Container for game content */
body.game-page .game-centered {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Header Cover (Top section image) */
body.game-page .game-header-cover {
  max-width: 680px;
  margin: 0 auto;
  padding-top: 40px;
}

body.game-page .game-cover-big {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0d0d;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.game-page .game-cover-big img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.game-page .game-hero-title {
  font-family: "JimNightshade", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  text-align: center;
  color: #E74C3C;
  margin-top: 20px;
  margin-bottom: 40px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
}

/* Screenshots Layout */
body.game-page #game-screens {
  justify-content: flex-start;
  padding-top: 0;
}

body.game-page .game-content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

body.game-page #game-screens .game-centered {
  margin: auto auto 80px auto;
  width: min(100%, 1080px);
}

body.game-page #game-screens .game-content-title {
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

body.game-page #game-screens .games-scroll-up {
  flex: none !important;
  min-height: 50px;
  margin-top: 70px;
}

/* Gallery (seccion 3b): flecha anclada abajo (intacta), bloque bajado para ver el titulo */
body.game-page #game-gallery .game-content-wrapper {
  flex: none;
}

body.game-page #game-gallery .game-centered {
  padding-top: 120px;
}

body.game-page #game-gallery .hero-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

body.game-page .screenshots-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

body.game-page .screenshots-row .shot {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #111;
  cursor: pointer;
  transition: all 0.3s ease;
  aspect-ratio: 16 / 9;
}

body.game-page .screenshots-row .shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.game-page .screenshots-row .shot:hover {
  border-color: #E74C3C;
  transform: scale(1.02);
}

body.game-page .screenshots-row .shot:hover {
  border-color: #E74C3C;
  transform: scale(1.02);
}

  /* Trailer block (above gallery) */
  body.game-page .trailer-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    display: block;
    background: #000;
    margin: 0 auto;
  }

  /* PressKit: trailer embed above videos grid */
  body.game-page.presskit .presskit-trailer {
    max-width: 900px;
    margin: 0 auto 40px;
    text-align: center;
  }

  body.game-page.presskit .presskit-trailer-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  body.game-page.presskit .presskit-trailer .presskit-dl-link {
    margin-top: 14px;
  }

/* Mascot & Store Card */
body.game-page .game-mascot-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 18px 30px; /* Reducido para achicar el cuadro de descarga */
  background: linear-gradient(145deg, #131313 0%, #0d0d0d 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: fit-content;
  margin: 0 auto;
  box-sizing: border-box;
}

body.game-page .mascot-img {
  width: 90px; /* Imagen ligeramente más pequeña */
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

body.game-page .store-label {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

body.game-page .store-label span {
  color: #FFC300;
  text-shadow: 0 0 10px rgba(255, 195, 0, 0.3);
}

body.game-page .mascot-store-row {
  display: flex;
  gap: 15px;
}

body.game-page .store-banner img {
  height: 60px;
  border-radius: 6px;
  border: none;
  transition: 0.3s;
}

.store-banner:hover img {
  transform: translateY(-3px);
  filter: drop-shadow(0 5px 15px rgba(231, 76, 60, 0.6));
  /* El resplandor rojo */
  transition: all 0.3s ease;
}

/* Game Page Bottom CTA */
body.game-page .game-bottom-cta {
  text-align: center;
  padding: 40px 0 0;
  width: 100%;
  box-sizing: border-box;
}

body.game-page .game-bottom-img {
  display: block;
  max-width: 320px;
  width: 60%;
  margin: 0 auto 0;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

body.game-page .game-bottom-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  background: linear-gradient(145deg, #131313 0%, #0d0d0d 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0 auto 40px;
}

/* Absolute Arrows for Game Page */
body.game-page .arrow-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 5;
  padding: 10px;
}

body.game-page .arrow-down {
  bottom: 20px;
}

body.game-page .arrow-up {
  top: 90px;
}

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-img,
.lightbox-media {
  max-width: 95vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  background: #000;
}

/* --- Estilo base de los botones de navegación --- */
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: none;
  background: none;
  /* Eliminamos el círculo de fondo */
  color: #fff;
  /* Color blanco por defecto */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  /* Flechas más grandes y elegantes */
  transition: all 0.3s ease;
  z-index: 1200;
  outline: none;
}

/* --- Efecto Hover: Rojo y Brillo (Glow) --- */
.lightbox-close:hover,
.lightbox-nav:hover {
  background: none;
  /* Aseguramos que no aparezca el círculo gris */
  color: #E74C3C;
  /* Cambia a rojo al pasar el ratón */
  filter: drop-shadow(0 0 10px rgba(231, 76, 60, 0.8));
  /* El resplandor rojo */
  transform: scale(1.2);
  /* Crece un poquito */
}

/* --- Posicionamiento alejado de los bordes --- */
.lightbox-close {
  top: 40px;
  right: 50px;
  font-size: 2.5rem;
}

.lightbox-nav.prev {
  left: 60px;
  /* Separación equidistante del margen */
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 60px;
  /* Separación equidistante del margen */
  top: 50%;
  transform: translateY(-50%);
}

/* Ajuste para que las flechas no se muevan raro en hover debido al translateY */
.lightbox-nav.prev:hover {
  transform: translateY(-50%) scale(1.2);
}

.lightbox-nav.next:hover {
  transform: translateY(-50%) scale(1.2);
}

/* =========================================
   MEJORAS SECCIÓN "SOBRE EL JUEGO"
   ========================================= */

/* 1. Ajuste de las flechas para pegarlas a los márgenes */
body.game-page #game-about {
  padding-top: 0; /* Quitamos el padding excesivo */
}

body.game-page .games-scroll-up {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  z-index: 10;
}

/* Flecha inferior */
body.game-page #game-about .hero-scroll {
  flex: none !important;
  min-height: 50px;
  margin-bottom: 20px; /* Margen respecto al fondo de la pantalla */
}

/* Ajuste de contenedor para reducir espacio vacío */
body.game-page #game-about .game-centered {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 110px; /* Subido el bloque ~30px: titulo queda ~5px debajo del glifo de la flecha (top:70 + 50) */
}

/* Compresion de ritmo vertical en About: el bloque entra en 100vh en ES y EN sin hacks por idioma */
body.game-page #game-about h2.game-content-title {
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin-bottom: 14px;
}

body.game-page #game-about .game-content-text {
  line-height: 1.3;
  margin-bottom: 1rem;
}

body.game-page #game-about .game-features-list {
  margin: 0 auto;
  gap: 18px 40px;
  line-height: 1.45;
}

body.game-page #game-screens {
  padding-top: 0;
}

body.game-page #game-screens .game-centered {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 100px;
  margin: 0 auto;
  padding-bottom: 50px;
  width: min(100%, 1080px);
}

/* Posicionar la flecha superior de Screenshots más cerca del borde */
body.game-page #game-screens .games-scroll-up {
  top: 40px;
}

/* ---------------------------------------
   RESPONSIVE — Mobile Nav (NEW)
   --------------------------------------- */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 24px 24px;
    background: #0a0a0a;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: 16px 8px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  /* Hide lang-toggle in navbar on mobile (accessible via hamburger menu) */
  .nav-container > .lang-toggle {
    display: none;
  }

  .lang-toggle {
    margin-left: 0;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    justify-content: flex-start;
  }
}

/* ---------------------------------------
   RESPONSIVE (General & Game Page)
   --------------------------------------- */

@media (max-width: 900px) {
  body.game-page .screenshots-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body.game-page .game-features-list {
    grid-template-columns: 1fr;
  }

  body.game-page .game-mascot-row {
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    text-align: center;
  }

  body.game-page .arrow-up {
    top: 70px;
  }

  body.game-page #game-about {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .store-banner img {
    height: 48px;
  }

  .game-card-link {
    max-width: 100%;
  }

  .section {
    padding: 20px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

/* =========================================
   PRESS KIT PAGE
   ========================================= */
.presskit-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px 0;
}

.presskit-hero::before {
  content: '';
  flex: 1;
}

.presskit-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.presskit-scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.presskit-hero .presskit-scroll {
  flex: 1;
  margin-top: 0;
  flex-direction: column;
  min-height: 50px;
}

body.presskit {
  scroll-behavior: smooth;
}

/* PressKit: overflow-x:clip (no hidden) para que body NO sea scroll-container
   y el wheel no se trabe bajo el trailer (<video> replaced element) */
body.game-page.presskit {
  overflow-x: clip;
}

/* PressKit: sin scroll-snap para que el wheel baje sección por sección */
body.game-page.presskit .snap-section {
  scroll-snap-align: none;
}

/* PressKit: botón zip del CTA inferior idéntico al del hero (misma clase).
   El CTA es flex column (body.game-page .snap-section) con align-items por defecto
   stretch, lo que estiraba el botón a todo el ancho. align-self:center lo evita. */
body.game-page.presskit .presskit-bottom-cta .presskit-big-btn {
  display: inline-flex;
  align-self: center;
}

.presskit-hero,
.presskit-section {
}

.presskit-hero-logo {
  display: block;
  max-width: 800px;
  width: 90%;
  margin: 0 auto 20px;
}

.presskit-hero h1 {
  font-family: "Jersey25", "Jersey20", "Inter", system-ui, -apple-system, sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: #D5C2A0;
  margin: 0 0 20px;
  letter-spacing: 1px;
}

.presskit-hero p {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #b8b8b8;
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.65;
  font-size: 1.05rem;
}

.text-red {
  color: #E74C3C;
}

.presskit-big-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  background: #E74C3C;
  color: #fff;
  font-family: "Jersey25", "Jersey20", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.3rem;
  text-decoration: none;
  border-radius: 10px;
  letter-spacing: 0.5px;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.3);
  border: none;
  cursor: pointer;
}

.presskit-big-btn:hover {
  background: #C0392B;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(231, 76, 60, 0.45);
  color: #fff;
}

.presskit-big-btn-size {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  opacity: 0.85;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.presskit-section {
  min-height: 100vh;
  position: relative;
  padding: 80px 20px 0;
  max-width: 1024px;
  margin: 0 auto;
  scroll-margin-top: 60px;
}

.presskit-section-inner {
  display: flex;
  flex-direction: column;
  padding-bottom: 50px;
}

#screenshots,
#videos {
  padding-top: 50px;
}

/* PressKit: subir el bloque Clips (título más cerca del borde superior) */
#clips {
  padding-top: 30px;
}

/* PressKit: separar la grilla Clips del borde inferior */
#clips .presskit-section-inner {
  padding-bottom: 70px;
}

.presskit-section .presskit-scroll {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  padding: 0;
}

.presskit-section h2 {
  font-family: "Jersey25", "Jersey20", "Inter", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: #D5C2A0;
  text-align: center;
  margin: 0 0 40px;
  letter-spacing: 0.5px;
}

.presskit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.presskit-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.presskit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(231, 76, 60, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.presskit-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  display: block;
  border-radius: 12px 12px 0 0;
}

/* PressKit: grillas Screenshots/Clips — 3x3 de 16:9 que caben en 100vh */
#screenshots .presskit-grid,
#clips .presskit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#screenshots .presskit-preview,
#clips .presskit-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

.presskit-info {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 10px;
}

.presskit-info h3 {
  font-family: "Jersey25", "Jersey20", "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.2rem;
  color: #D5C2A0;
  margin: 0 0 6px;
  letter-spacing: 0.3px;
}

.presskit-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  color: #888;
  margin: 0;
  letter-spacing: 0.2px;
  line-height: 1.35;
}

.presskit-meta-name {
  color: #b8b8b8;
  word-break: break-all;
}

.presskit-meta-size {
  color: #777;
  font-size: 0.68rem;
}

.presskit-dl-link {
  display: inline-block;
  padding: 5px 12px;
  background: transparent;
  color: #E74C3C;
  border: 1px solid #E74C3C;
  border-radius: 5px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, color 0.2s ease;
  margin-top: 0;
  flex-shrink: 0;
}

.presskit-dl-link:hover {
  background: #E74C3C;
  color: #fff;
}

.presskit-bottom-cta {
  text-align: center;
  align-items: center;
  padding: 20px 20px 80px;
}

/* PressKit: CTA como ultimo snap-section para que el wheel-snap lo alcance */
body.game-page.presskit .presskit-bottom-cta.snap-section {
  min-height: auto;
  background: transparent;
  scroll-snap-align: start;
}

.presskit-bottom-img {
  display: block;
  max-width: 320px;
  width: 60%;
  margin: 0 auto 28px;
}

.presskit-back-link {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.presskit-back-link:hover {
  color: #D5C2A0;
}

.presskit-intro {
  text-align: center;
  color: #b8b8b8;
  max-width: 700px;
  margin: -20px auto 40px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  font-size: 1rem;
}

.presskit-video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(231, 76, 60, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.presskit-card:hover .presskit-video-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
  border-color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
  .presskit-hero {
    padding: 120px 16px 0;
    min-height: 50vh;
  }
  .presskit-big-btn {
    padding: 14px 24px;
    font-size: 1.1rem;
  }
  .presskit-big-btn-size {
    display: none;
  }
  /* Assets grid: 1 column on mobile */
  .presskit-grid {
    grid-template-columns: 1fr;
  }
  /* Screenshots/Clips: 2 columns on mobile */
  #screenshots .presskit-grid,
  #clips .presskit-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  #screenshots .presskit-preview,
  #clips .presskit-preview {
    max-height: none;
    aspect-ratio: 16 / 9;
  }
  /* Fix filename wrapping */
  .presskit-meta-name {
    word-break: normal;
    overflow-wrap: break-word;
  }
  .presskit-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 12px;
  }
  .presskit-dl-link {
    align-self: flex-start;
  }
}