/* 1. Pre-carga de fuentes */
@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&display=swap");

/* Variables para mantener el diseño consistente */
:root {
  --bg-color: #0d1117;
  --text-color: #e6edf3;
  --primary-color: #58a6ff;
  --secondary-color: #8b949e;
  --logo-shadow: 0 0 15px rgba(88, 166, 255, 0.5), 0 0 30px rgba(88, 166, 255, 0.3);
  --button-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  --windows-color: #0078d4;
  --transition-speed: 0.3s;
}

/* Estilos para elementos ocultos (para SEO y accesibilidad) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Estilos globales para el cuerpo de la página */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Exo 2", sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Estilos para el logo de la compañía en la esquina */
.logo-corner {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1001;
}

.logo-corner .logo-img {
  height: 80px;
  transition: transform var(--transition-speed);
}

.logo-corner:hover .logo-img {
  transform: scale(1.1);
}

/* ✅ NUEVO — Reducción de logos SOLO en páginas acerca de / descargar */
body.acerca-de-page .logo-corner .logo-img,
body.descargar-page .logo-corner .logo-img {
  height: 60px;
}

/* ✅ NUEVO — Ajuste logos principales en esas páginas */
body.acerca-de-page .game-logo-about,
body.descargar-page .game-logo-download {
  width: 140px;
  height: 140px;
}

/* Estilos para la barra de navegación */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.navbar nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  transition: color var(--transition-speed) ease-in-out;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  display: block;
  margin-top: 5px;
  right: 0;
  background: var(--primary-color);
  transition: width 0.4s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
  background: var(--primary-color);
}

/* Selector de idioma */
.language-switcher {
  display: flex;
  gap: 0.5rem;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(88, 166, 255, 0.1);
}

.lang-btn {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.lang-btn:hover {
  color: var(--primary-color);
  background-color: rgba(88, 166, 255, 0.1);
}

.lang-btn.active {
  background-color: var(--primary-color);
  color: var(--bg-color);
  cursor: default;
}

.lang-btn.active:hover {
  background-color: var(--primary-color);
  color: var(--bg-color);
}

/* Contenido principal */
.main-content {
  padding-top: 6rem;
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 10;
}

.main-logo-container {
  animation: fadeInScale 1.5s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.game-title-header {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  text-shadow: 0 0 15px var(--primary-color);
  letter-spacing: 2px;
}

.play-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-speed) ease-in-out,
    box-shadow var(--transition-speed) ease-in-out;
}

.play-button:hover {
  transform: scale(1.05);
}

.play-button .game-logo-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  box-shadow: var(--logo-shadow);
  transition: box-shadow var(--transition-speed);
}

.play-button:hover .game-logo-img {
  box-shadow: 0 0 25px var(--primary-color), 0 0 50px var(--primary-color);
}

.play-button .play-text-modern {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 250px;
  height: 55px;
  border-radius: 12px;
  position: relative;
  margin-top: 25px;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bg-color);
  background: var(--primary-color);
  box-shadow: 0 0 0 0 rgba(88, 166, 255, 0.7);
  animation: pulse 2s infinite;
  transition: background-color var(--transition-speed), transform var(--transition-speed),
    box-shadow var(--transition-speed);
  z-index: 5;
}

.play-button:hover .play-text-modern {
  background-color: #4a90e2;
  transform: scale(1.05);
  animation: none;
  box-shadow: var(--button-shadow);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(88, 166, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(88, 166, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(88, 166, 255, 0);
  }
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--secondary-color);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

/* Animaciones */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translate3d(0, 0, 0);
  }
  to {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
  }
}

/* --- Estilos para la Página 'Acerca de' --- */
.about-content {
  padding-top: 6rem;
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
  animation: fadeInScale 1.5s forwards;
  position: relative;
  z-index: 1;
}

.about-card {
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid var(--primary-color);
  border-radius: 15px;
  padding: 2.5rem 3.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(88, 166, 255, 0.1);
  text-align: center;
  max-width: 700px;
  width: 100%;
}

.about-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
}

.about-section {
  margin-bottom: 2rem;
  border-top: 1px solid rgba(88, 166, 255, 0.2);
  padding-top: 1.5rem;
}

.about-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.about-section h2 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.company-logo-main {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
  box-shadow: var(--logo-shadow);
  border-radius: 50%;
  transition: transform var(--transition-speed) ease-in-out;
}

.company-logo-main:hover {
  transform: scale(1.05);
}

.game-logo-about {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1), 0 0 40px rgba(88, 166, 255, 0.3);
  border-radius: 10px;
  transition: transform var(--transition-speed) ease-in-out;
}

.game-logo-about:hover {
  transform: scale(1.05);
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease-in-out;
}

.contact-link:hover {
  color: #a0c9ff;
  text-decoration: underline;
}

/* --- Estilos para la Página 'Descargar' --- */
.download-content {
  padding-top: 6rem;
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
  animation: fadeInScale 1.5s forwards;
  z-index: 1;
}

.download-card {
  background: rgba(13, 17, 23, 0.85);
  border: 1px solid var(--windows-color);
  border-radius: 15px;
  padding: 3rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 120, 212, 0.2);
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.download-title {
  font-size: 3rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.subtitle {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.game-logo-download {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1), 0 0 40px rgba(88, 166, 255, 0.3);
  border-radius: 10px;
}

.download-platforms {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.download-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  color: var(--text-color);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed),
    background-color var(--transition-speed);
  text-transform: uppercase;
}

.windows-btn {
  background-color: var(--windows-color);
  box-shadow: 0 8px 20px rgba(0, 120, 212, 0.5);
  border: 2px solid var(--windows-color);
}

.windows-btn:hover {
  transform: translateY(-3px);
  background-color: #008af7;
  box-shadow: 0 12px 25px rgba(0, 120, 212, 0.7);
}

.download-button i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.download-button span {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.download-button small {
  font-size: 0.8rem;
  opacity: 0.8;
}

.requirements-text {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.requirements-text i {
  color: var(--windows-color);
}

/* --- Responsivo --- */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1rem;
  }

  .navbar nav {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .language-switcher {
    position: relative;
    margin-bottom: 1rem;
  }

  .game-title-header {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .play-button .game-logo-img {
    width: 150px;
    height: 150px;
  }

  .play-button .play-text-modern {
    width: 200px;
    height: 50px;
    font-size: 1.2rem;
    margin-top: 15px;
  }

  .logo-corner {
    top: 10px;
    left: 10px;
  }

  .logo-corner .logo-img {
    height: 60px;
  }

  .main-content {
    padding-top: 10rem;
  }

  .about-card,
  .download-card {
    padding: 1.5rem 2rem;
  }

  .about-title,
  .download-title {
    font-size: 2rem;
  }

  .about-section h2 {
    font-size: 1.5rem;
  }

  .about-section p {
    font-size: 1rem;
  }

  .company-logo-main {
    width: 80px;
    height: 80px;
  }

  .game-logo-about,
  .game-logo-download {
    width: 120px;
    height: 120px;
  }

  .company-name {
    font-size: 1.3rem;
  }

  .download-button {
    padding: 1rem;
  }

  .download-button i {
    font-size: 2.5rem;
  }
}

/* === ESTILOS ACTUALIZADOS PARA "NOTAS DE VERSIÓN" === */

.release-notes-content {
  padding-top: 8rem;
  padding-bottom: 6rem;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInScale 1.5s forwards;
}

.release-title {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
}

.release-subtitle {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.releases-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1rem;
}

/* === BLOQUES DE RELEASE === */
.release-item {
  background: rgba(13, 17, 23, 0.9);
  border: 1px solid rgba(88, 166, 255, 0.3);
  border-radius: 15px;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 0 25px rgba(88, 166, 255, 0.15);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.release-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(88, 166, 255, 0.3);
}

.release-item h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(88, 166, 255, 0.3);
}

.release-item .release-date {
  color: var(--secondary-color);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.release-item ul {
  list-style-type: none;
  padding-left: 0;
}

.release-item li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.release-item li:last-child {
  border-bottom: none;
}

.release-separator {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(88, 166, 255, 0.3), transparent);
  margin-top: 1.5rem;
}
