/* --- Paleta de Colores y Variables Globales --- */
:root {
  --color-background-dark: #0a0a1e; /* Azul noche oscuro */
  --color-background-light: #1a1a3a; /* Azul oscuro secundario */
  --color-primary-accent: #ffc700; /* Oro/Amarillo vibrante */
  --color-secondary-accent: #00e0ff; /* Cian/Turquesa neón */
  --color-text-light: #ffffff;
  --color-text-medium: #a0a0c0; /* Gris azulado claro */
  --font-primary: "Cinzel", serif;
  --font-secondary: "Montserrat", sans-serif;
}

/* --- Estilos Globales y Reseteo --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--color-background-dark);
  color: var(--color-text-light);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: var(--font-primary);
  color: var(--color-primary-accent);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

p {
  color: var(--color-text-medium);
  margin-bottom: 15px;
}

a {
  color: var(--color-secondary-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* --- Encabezado y Navegación --- */
.main-header {
  background-color: rgba(10, 10, 30, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  color: var(--color-text-light);
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-primary-accent);
  text-decoration: none;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--color-text-light);
  transition: all 0.3s ease-in-out;
}

/* --- Botón CTA --- */
.cta-button {
  display: inline-block;
  background-color: var(--color-primary-accent);
  color: var(--color-background-dark);
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-transform: uppercase;
  font-family: var(--font-secondary);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 199, 0, 0.2);
  text-decoration: none;
}

/* --- Secciones --- */
.content-section,
.content-section-dark,
.hero-section {
  padding: 80px 0;
}

.content-section-dark {
  background-color: var(--color-background-light);
}

.hero-section {
  padding-top: 150px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section#final-cta {
  background: url("images/hero.jpg") no-repeat center center/cover;
  background-attachment: fixed;
}

.hero-section#final-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 30, 0.7);
  z-index: 1;
}

.hero-section#final-cta .container {
  position: relative;
  z-index: 2;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 30, 0.6);
  z-index: -1;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 4rem;
}

.hero-section .subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--color-text-light);
}

/* --- Características --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.feature-card {
  background: var(--color-background-dark);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--color-secondary-accent);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  font-size: 1.5rem;
}

/* --- Jugabilidad --- */
.gameplay-container {
  display: flex;
  align-items: center;
  gap: 40px;
}
.gameplay-container img {
  max-width: 50%;
  border-radius: 10px;
}

/* --- Capturas de Pantalla --- */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.screenshot-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--color-secondary-accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.screenshot-image:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 224, 255, 0.3);
}

/* --- Opiniones --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.review-card {
  background-color: var(--color-background-dark);
  padding: 25px;
  border-radius: 8px;
  border-left: 5px solid var(--color-secondary-accent);
}

.review-card h4 {
  color: var(--color-primary-accent);
  margin-top: 15px;
  text-align: right;
}

/* --- FAQ --- */
.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-background-light);
  padding-bottom: 15px;
}
.faq-question {
  cursor: pointer;
  font-size: 1.2rem;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding-left: 15px;
}

/* --- Contacto --- */
.contact-container {
  display: flex;
  gap: 40px;
}
.contact-info,
.contact-form {
  flex: 1;
}
.contact-form .form-group {
  margin-bottom: 20px;
}
.contact-form label {
  display: block;
  margin-bottom: 5px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--color-text-medium);
  background-color: var(--color-background-light);
  color: var(--color-text-light);
}
.checkbox-group {
  display: flex;
  align-items: center;
}
.checkbox-group input {
  width: auto;
  margin-right: 10px;
}

/* --- Footer --- */
.main-footer {
  background-color: var(--color-background-light);
  padding: 40px 0;
  text-align: center;
}
.footer-links {
  margin-bottom: 20px;
}
.footer-links a {
  margin: 0 15px;
  color: var(--color-text-medium);
}
.footer-copy p {
  font-size: 0.9rem;
  color: var(--color-text-medium);
}

/* --- Banner de Cookies --- */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--color-background-light);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
  transition: bottom 0.5s ease-in-out;
  z-index: 2000;
}

.cookie-banner.show {
  bottom: 0;
}

/* --- Стили для юридических страниц --- */
.legal-page {
  padding-top: 80px;
}

.legal-header {
  background-color: var(--color-background-dark);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-background-light);
}

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

.legal-nav .nav-logo img {
  height: 40px;
}

.back-button {
  background-color: var(--color-secondary-accent);
  color: var(--color-background-dark);
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.back-button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.legal-page main {
  padding: 40px 0;
}

.legal-page h1 {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.legal-page h2 {
  font-size: 1.8rem;
  text-align: left;
  margin-top: 30px;
  margin-bottom: 15px;
}

.legal-page ul {
  margin: 15px 0;
  padding-left: 30px;
}

.legal-page li {
  margin-bottom: 10px;
  color: var(--color-text-medium);
}

/* --- Media Queries para Responsividad --- */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px; /* Altura del header */
    flex-direction: column;
    background-color: var(--color-background-dark);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    gap: 0;
  }
  .nav-menu.active {
    left: 0;
  }
  .nav-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-background-light);
  }
  .hamburger {
    display: block;
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  .gameplay-container,
  .contact-container {
    flex-direction: column;
  }
  .gameplay-container img {
    max-width: 100%;
  }
  .screenshot-gallery {
    grid-template-columns: 1fr;
  }
  .screenshot-image {
    height: 250px;
  }
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-banner p {
    margin-bottom: 15px;
  }

  /* --- Юридические страницы на мобильных --- */
  .legal-nav {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .legal-page h1 {
    font-size: 2rem;
  }

  .legal-page h2 {
    font-size: 1.5rem;
  }

  .back-button {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}
