:root {
  --accent-color: #ff8c00;
  --bg-dark: #000000;
  --card-bg: #111111;
  --text-gray: #bbbbbb;
  --font-heading: "Montserrat", sans-serif;
  --font-main: "Sora", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: var(--bg-dark);
  color: white;
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
.logo,
.nav-links a,
.btn-primary,
.btn-secondary-outline,
.btn-card,
.btn-store-big,
.btn-huge {
  font-family: var(--font-heading);
  font-weight: 700;
}

p,
li,
span,
.last-updated {
  font-family: var(--font-main);
  font-weight: 400;
}

strong {
  font-weight: 600;
}

body.menu-open {
  overflow: hidden;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* NAVBAR */
#navbar {
  height: 80px;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #1a1a1a;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
/* --- AJUSTE DE LOGO EN NAVBAR --- */
.logo {
  display: flex; /* Para alinear imagen y texto en línea */
  align-items: center; /* Centrado vertical */
  gap: 12px; /* Espacio entre el logo y el nombre del estudio */
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.3rem; /* Ajustado ligeramente para dar espacio al logo */
  text-decoration: none;
  color: white;
  letter-spacing: -1px;
}

.nav-logo-img {
  height: 100px; /* Tamaño ideal para la navbar */
  width: auto;
  border-radius: 8px; /* Opcional: le da un look de "App Icon" estilo Supercell */
  object-fit: contain;
  /* Si tu logo tiene brillo o color, puedes añadir un leve resplandor azul */
  filter: drop-shadow(0 0 5px rgba(0, 166, 255, 0.3));
}

/* Ajuste para móviles (pantallas muy pequeñas) */
@media (max-width: 480px) {
  .logo {
    font-size: 1.1rem; /* Reducimos el texto un poco para que quepa todo */
    gap: 8px;
  }
  .nav-logo-img {
    height: 50px; /* Logo un poco más pequeño en móvil */
  }
}
.logo span {
  color: var(--accent-color);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-links a.active,
.nav-links a:hover {
  color: white;
}
.nav-cta {
  background: var(--accent-color);
  color: white !important;
  padding: 10px 20px;
  border-radius: 50px;
}

/* MENU TOGGLE */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.menu-toggle .bar {
  width: 28px;
  height: 3px;
  background: white;
  transition: 0.4s;
}

@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    right: -100%;
    top: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: 0.5s;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    font-size: 1.8rem;
  }
  .menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* HERO */
.hero {
  height: 85vh;
  background: url("https://images.unsplash.com/photo-1550745165-9bc0b252726f?auto=format&fit=crop&q=80")
    center/cover;
  display: flex;
  align-items: center;
  position: relative;
  text-align: center;
  margin-bottom: 40px;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9));
}
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 20px;
}
.hero h1 span {
  color: var(--accent-color);
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 40px;
}
.btn-primary {
  background: var(--accent-color);
  color: white;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  display: inline-block;
}

/* --- HERO MINIMALISTA --- */
.hero-minimal {
  height: 100vh;
  min-height: 700px;
  background-color: var(--bg-dark);
  /* Un degradado radial sutil para dar profundidad detrás del logo */
  background: radial-gradient(circle at center, #1a1a1a 0%, #000000 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px; /* Espacio para la navbar */
}

.logo-wrapper {
  margin-bottom: 30px;
  perspective: 1000px;
}

.hero-branding-img {
  width: 95%;
  max-width: 900px; /* Tamaño grande e impactante */
  height: auto;
  /* Sombra naranja sutil para que el logo parezca que flota */
  filter: drop-shadow(0 20px 40px rgba(255, 140, 0, 0.2));
  animation:
    heroEntrance 1.5s ease-out,
    floating 4s ease-in-out infinite;
}

.hero-tagline {
  font-family: var(--font-main);
  font-size: 1.4rem;
  color: var(--text-gray);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-tagline strong {
  color: white;
  font-weight: 700;
}

/* Animaciones */
@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* SECTIONS COMMON */
section {
  padding: 100px 0;
  border-bottom: 1px solid #111;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  text-transform: uppercase;
  font-weight: 900;
}
.section-header h2 span {
  color: var(--accent-color);
}

/* ABOUT */
.about-section {
  background: #050505;
  text-align: center;
}
.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--text-gray);
}
.about-content strong {
  color: white;
}

/* GAMES GRID */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}
.game-card {
  background: var(--card-bg);
  border-radius: 30px;
  overflow: hidden;
  transition: 0.3s;
  border: 1px solid #222;
}
.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
}
.game-img {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-game-logo {
  width: 150px;
  height: 150px;
  border-radius: 18px;
  position: relative;
  z-index: 5;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .card-game-logo {
    width: 110px; /* Un poco más pequeño en móviles */
    height: 110px;
  }
  .game-img {
    height: 220px;
  }
}

.game-info {
  padding: 35px;
}
.game-info h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}
.game-info h3 span {
  color: var(--accent-color);
  display: block;
  font-size: 0.9rem;
}
.game-info p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.7;
}

.btn-card {
  display: inline-block;
  padding: 12px 30px;
  background: white;
  color: black;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.btn-disabled {
  display: inline-block;
  padding: 12px 30px;
  background: #222;
  color: #555;
  border-radius: 50px;
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.coming-soon-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: white;
  padding: 5px 15px;
  border-radius: 5px;
  font-weight: 900;
  font-size: 0.7rem;
  text-transform: uppercase;
  z-index: 6;
}

/* --- MYSTERY BOX PARA LAS TARJETAS DEL INDEX --- */

.mystery-box-card {
  width: 140px; /* Mismo tamaño que el logo de TwinHit */
  height: 140px;
  background: #0a0a0a; /* Fondo muy oscuro */
  border: 2px dashed #333; /* Borde discontinuo misterioso */
  border-radius: 32px; /* Mismo redondeo que los logos */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem; /* Tamaño del signo de interrogación */
  color: #222; /* Color gris oscuro inicial */
  position: relative;
  z-index: 5;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efecto cuando pasas el ratón por la tarjeta */
.game-card:hover .mystery-box-card {
  border-color: var(--accent-color); /* El borde se vuelve naranja */
  color: var(--accent-color); /* El signo ? se vuelve naranja */
  transform: scale(1.1) rotate(-5deg); /* Se infla y gira un poco */
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.2); /* Brillo naranja sutil */
  background: #111;
}

/* Ajuste para que el signo de interrogación brille un poco */
.mystery-box-card i {
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

/* FOOTER */
.site-footer {
  background: #050505;
  padding: 80px 0 30px;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand .logo {
  margin-bottom: 15px;
  display: block;
}
.footer-links h4,
.footer-social h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  color: #444;
}
.footer-links ul {
  list-style: none;
}
.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}
.footer-links a:hover {
  color: white;
}
.social-icons {
  display: flex;
  gap: 15px;
}
.social-icons a {
  color: #fff;
  font-size: 1.4rem;
  transition: 0.3s;
}
.social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-5px);
}
.footer-bottom {
  text-align: center;
  border-top: 1px solid #111;
  padding-top: 30px;
  color: #333;
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
}

/* --- GAMES PAGE SPECIFIC --- */

.page-header {
  padding: 150px 0 60px;
  text-align: center;
  background: linear-gradient(to bottom, #0a0a0a, #000);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
}

.page-header h1 span {
  color: var(--accent-color);
}

.game-showcase {
  padding: 100px 0;
  border-bottom: 1px solid #111;
  overflow: hidden;
}

.showcase-flex {
  display: flex;
  align-items: center;
  gap: 80px;
}

.showcase-flex.reverse {
  flex-direction: row-reverse;
}

.showcase-text {
  flex: 1;
}

.showcase-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-game-img {
  width: 100%;
  max-width: 400px;
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(0, 166, 255, 0.2);
  transform: rotate(-2deg);
  transition: 0.5s ease;
}

.main-game-img:hover {
  transform: rotate(0deg) scale(1.02);
}

.showcase-logo {
  width: 80px;
  border-radius: 20px;
  margin-bottom: 25px;
}

.showcase-text h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.showcase-text h2 span {
  color: var(--accent-color);
  display: block;
  font-size: 1.2rem;
  margin-top: 5px;
}

.showcase-text p {
  color: var(--text-gray);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.game-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.highlight {
  background: #111;
  padding: 10px 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid #222;
}

.highlight i {
  color: var(--accent-color);
}

/* Buttons */
.showcase-btns {
  display: flex;
  gap: 15px;
}

.btn-store {
  background: #fff;
  color: #000;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.btn-store:hover {
  background: var(--accent-color);
  color: #fff;
}

/* Upcoming Section Styling */
.upcoming-showcase {
  background: #050505;
}

.status-badge {
  display: inline-block;
  background: #222;
  color: var(--accent-color);
  padding: 5px 15px;
  border-radius: 5px;
  font-weight: 900;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.mystery-box {
  width: 300px;
  height: 400px;
  background: #111;
  border: 2px dashed #333;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: #222;
}

.mystery-text {
  font-style: italic;
  opacity: 0.7;
}

/* RESPONSIVE */

@media (max-width: 992px) {
  .showcase-flex,
  .showcase-flex.reverse {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }

  .game-highlights {
    justify-content: center;
  }

  .showcase-btns {
    justify-content: center;
    flex-direction: column;
  }

  .main-game-img {
    max-width: 300px;
  }
}

/* --- TWINHIT DETAILS SPECIFIC --- */

.detail-hero {
  padding: 180px 0 80px;
  background: radial-gradient(circle at center, #111 0%, #000 100%);
  text-align: center;
}

.game-category {
  color: var(--accent-color);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 3px;
  font-size: 0.8rem;
}

.detail-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin: 15px 0;
}

.detail-hero h1 span {
  color: var(--accent-color);
}

/* Video Wrapper (Mantener 16:9) */
.video-section {
  padding-bottom: 100px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(0, 166, 255, 0.3);
  background: #111;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Mechanics Grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-bullet {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.feature-bullet i {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-top: 5px;
}

.feature-bullet h4 {
  font-family: var(--font-heading);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.img-responsive {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
}

/* Gallery Grid */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.screenshots-grid img {
  width: 100%;
  border-radius: 15px;
  border: 2px solid #222;
  transition: 0.3s;
}

.screenshots-grid img:hover {
  border-color: var(--accent-color);
  transform: scale(1.02);
}

/* CTA Section */
.final-cta-section {
  background: linear-gradient(to top, #0a0a0a, #000);
  text-align: center;
  padding: 120px 0;
}

.store-btns-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.btn-store-big {
  background: #fff;
  color: #000;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 900;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: 0.3s;
}

.btn-store-big:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-5px);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .detail-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .feature-bullet {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .store-btns-row {
    flex-direction: column;
    align-items: center;
  }

  .btn-store-big {
    width: 280px;
    justify-content: center;
  }
}

/* --- PRIVACY POLICY SPECIFIC --- */

.policy-header {
  padding: 180px 0 60px;
  background: linear-gradient(to bottom, #0a0a0a, #000);
  text-align: center;
}

.last-updated {
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-top: 10px;
  font-weight: 700;
}

.container-narrow {
  max-width: 800px;
}

.policy-content {
  padding-bottom: 100px;
}

.policy-text h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: white;
  margin: 40px 0 20px;
  text-transform: uppercase;
  border-left: 4px solid var(--accent-color);
  padding-left: 15px;
}

.policy-text p {
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 20px;
}

.policy-list {
  list-style: none;
  margin-bottom: 30px;
}

.policy-list li {
  color: var(--text-gray);
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.policy-list li::before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Steps and Links Boxes */
.steps-box {
  background: #111;
  padding: 30px;
  border-radius: 15px;
  margin: 20px 0;
  border: 1px solid #222;
}

.steps-box ol {
  margin-left: 20px;
  color: #ddd;
}

.steps-box li {
  margin-bottom: 15px;
}

.policy-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.policy-link-box {
  background: #1a1a1a;
  color: white;
  text-decoration: none;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.policy-link-box:hover {
  background: var(--accent-color);
  color: white;
}

.email-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.2rem;
}

/* Responsive Policy */
@media (max-width: 768px) {
  .policy-links-grid {
    grid-template-columns: 1fr;
  }
  .policy-header h1 {
    font-size: 2rem;
  }
}
