:root {
  /* Fondo general y menú del juego */
  --bg-deep-blue: #031338;
  --bg-darker: #020b20;
  --grid-cyan: #00d4ff;
  
  /* Botones y acentos estilo UI Arcade */
  --ui-blue: #0066eb;
  --ui-blue-light: #1a8cff;
  --ui-blue-dark: #00439e;
  
  --ui-yellow: #ffb703;
  --ui-yellow-hover: #ffa200;
  --ui-yellow-border: #ffd166;
  
  --ui-card-bg: #092055;
  --ui-card-border: #13459c;

  --text-white: #ffffff;
  --text-dim: #9bb3de;

  --font-arcade: 'Bungee', cursive, sans-serif;
  --font-text: 'Inter', system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-deep-blue);
  /* Textura de rejilla cibernética similar a la plataforma del menú */
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text-white);
  font-family: var(--font-text);
  line-height: 1.6;
}

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

/* Navbar */
/* Navbar Base */
.navbar {
  background: rgba(3, 19, 56, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--grid-cyan);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px; /* Cambiado de height fija a min-height */
  padding: 8px 16px;
  gap: 12px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0; /* Evita que el logo se achique o deforme */
}

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--grid-cyan);
  object-fit: cover;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}

.logo-text {
  font-family: var(--font-arcade);
  font-size: 1.25rem;
  color: #fff;
  white-space: nowrap;
}

.logo-text span {
  color: var(--ui-yellow);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--grid-cyan);
}

.btn-play-nav {
  background: linear-gradient(180deg, var(--ui-yellow), var(--ui-yellow-hover));
  color: #1a1000 !important;
  font-family: var(--font-arcade);
  padding: 6px 14px;
  border-radius: 6px;
  border: 2px solid var(--ui-yellow-border);
  box-shadow: 0 4px 8px rgba(255, 183, 3, 0.4);
  font-size: 0.8rem !important;
}

/* =========================================
   RESPONSIVE NAVBAR (Móviles y Tablets)
   ========================================= */
/* =========================================
   1. ESTILOS BASE NAVBAR (Desktop / PC)
   ========================================= */
.navbar {
  background: rgba(3, 19, 56, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--grid-cyan);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0 16px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-avatar {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 2px solid var(--grid-cyan);
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.logo-text {
  font-family: var(--font-arcade);
  font-size: 1.15rem;
  color: #fff;
  white-space: nowrap;
}

.logo-text span {
  color: var(--ui-yellow);
}

/* Menú en Desktop */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--grid-cyan);
}

.btn-play-nav {
  background: linear-gradient(180deg, var(--ui-yellow), var(--ui-yellow-hover));
  color: #1a1000 !important;
  font-family: var(--font-arcade);
  padding: 7px 18px;
  border-radius: 8px;
  border: 2px solid var(--ui-yellow-border);
  box-shadow: 0 4px 10px rgba(255, 183, 3, 0.4);
}

/* Botón Hamburguesa: TOTALMENTE OCULTO EN PC (evita el puntito) */
.nav-toggle {
  display: none !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--grid-cyan);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animación a 'X' cuando el menú se abre */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* =========================================
   2. RESPONSIVE (Tablets y Móviles: <= 820px)
   ========================================= */
@media (max-width: 820px) {
  .logo-text {
    font-size: 0.95rem;
  }

  /* Se activa el botón hamburguesa en pantallas chicas */
  .nav-toggle {
    display: flex !important;
  }

  /* Menú desplegable */
  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #020c24;
    border-bottom: 2px solid var(--grid-cyan);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }

  .nav-menu.active {
    max-height: 320px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  }

  .nav-links {
      display: flex;
      flex-direction: column;
      align-items: center;      /* Centra horizontalmente los items */
      justify-content: center;
      width: 100%;
      padding: 20px 0;
      gap: 16px;
      text-align: center;
    }

  .nav-links li {
      width: 100%;
      display: flex;
      justify-content: center;  /* Centra el contenido de cada <li> */
      align-items: center;
    }

  .btn-play-nav {
      display: inline-block;
      margin: 6px auto 0 auto;  /* auto en los costados fuerza el centrado */
      text-align: center;
    }
}

/* Hero Section */
.hero-section {
  padding: 40px 0 60px;
  text-align: center;
}

.hero-container {
  max-width: 900px;
}

.banner-frame {
  margin-bottom: 24px;
}

.img-banner-main {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 3px solid var(--grid-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 212, 255, 0.35);
  display: block;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid var(--grid-cyan);
  color: var(--grid-cyan);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff88;
}

.hero-heading {
  font-family: var(--font-arcade);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 3px 0px var(--ui-blue-dark), 0 0 20px rgba(0, 212, 255, 0.4);
  margin-bottom: 14px;
}

.hero-subtext {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Botones estilo UI 3D del juego */
.btn-ui {
  font-family: var(--font-arcade);
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  display: inline-block;
  cursor: pointer;
}

.btn-ui:active {
  transform: translateY(3px);
}

.btn-yellow {
  background: linear-gradient(180deg, #ffd166 0%, #ffb703 50%, #d48b00 100%);
  color: #2b1700;
  border: 2px solid #fff;
  box-shadow: 0 6px 0px #8f5a00, 0 10px 15px rgba(0,0,0,0.5);
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

.btn-yellow:hover {
  background: linear-gradient(180deg, #ffe08a 0%, #ffc229 50%, #e09400 100%);
}

.btn-blue {
  background: linear-gradient(180deg, #3399ff 0%, #0066eb 50%, #00439e 100%);
  color: #ffffff;
  border: 2px solid #80c0ff;
  box-shadow: 0 6px 0px #002b66, 0 10px 15px rgba(0,0,0,0.5);
}

.btn-blue:hover {
  background: linear-gradient(180deg, #52aaff 0%, #1a7bff 50%, #0050b8 100%);
}

/* Secciones */
.section {
  padding: 70px 0;
}

.section-title {
  font-family: var(--font-arcade);
  font-size: 2.2rem;
  text-align: center;
  color: var(--ui-yellow);
  text-shadow: 0 3px 0 var(--ui-blue-dark), 0 0 15px rgba(255, 183, 3, 0.4);
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 40px;
}

/* Tarjetas */
.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--ui-card-bg);
  border: 2px solid var(--ui-card-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s, border-color 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--grid-cyan);
}

.highlight-card {
  border-color: var(--grid-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.card-icon-box {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.game-card h3 {
  font-family: var(--font-arcade);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 8px;
}

.game-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* Vista Previa / Screenshot */
.section-lobby {
  background: var(--bg-darker);
  border-top: 2px solid var(--ui-card-border);
  border-bottom: 2px solid var(--ui-card-border);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.screenshot-wrapper {
  width: 100%;
  border-radius: 14px;
  border: 3px solid var(--ui-blue);
  box-shadow: 0 10px 40px rgba(0, 102, 235, 0.35);
  overflow: hidden;
}

.screenshot-button {
  display: block;
  padding: 0;
  background: none;
  cursor: zoom-in;
}

.screenshot-button:focus-visible,
.screenshot-dialog-close:focus-visible {
  outline: 3px solid var(--grid-cyan);
  outline-offset: 3px;
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.screenshot-button:hover .screenshot-img {
  transform: scale(1.04);
}

.screenshot-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: 94vw;
  max-height: 92vh;
  box-sizing: border-box;
  padding: 44px 16px 16px;
  border: 2px solid var(--ui-blue);
  border-radius: 14px;
  background: var(--bg-darker);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
}

.screenshot-dialog:not([open]) {
  display: none;
}

.screenshot-dialog::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.screenshot-dialog-img {
  display: block;
  max-width: 90vw;
  max-height: calc(92vh - 64px);
  object-fit: contain;
}

.screenshot-dialog-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ui-card-border);
  border-radius: 50%;
  color: var(--text-white);
  background: var(--ui-card-bg);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}

/* Descargas */
/* Cuadrícula de plataformas ordenada en cajas */
.platforms-grid {
  display: grid;
  /* 3 columnas fijas en pantallas medianas/grandes */
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 30px auto 0;
  text-align: left;
}

.platform-card {
  background: var(--ui-card-bg);
  border: 2px solid var(--ui-card-border);
  border-radius: 12px;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--grid-cyan);
}

/* Tarjeta destacada (Windows / Actual) */
.active-platform {
  border: 2px solid var(--grid-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
  background: linear-gradient(180deg, #0e2b6e 0%, var(--ui-card-bg) 100%);
}

/* Tarjetas en desarrollo */
.platform-card.coming-soon {
  opacity: 0.85;
  background: rgba(9, 32, 85, 0.6);
  border-style: dashed;
}

.platform-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 10px;
  background: #00ff88;
  color: #022411;
}

.badge-store {
  background: var(--ui-yellow);
  color: #2b1700;
}

.badge-soon {
  background: #4a5d78;
  color: #ffffff;
}

.platform-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.platform-card h3 {
  font-family: var(--font-arcade);
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.platform-meta {
  color: var(--grid-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.platform-features {
  list-style: none;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 20px;
  flex-grow: 1; /* Hace que todas las tarjetas tengan la misma altura y los botones queden alineados abajo */
}

.platform-features li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.platform-features li::before {
  content: "▸ ";
  color: var(--ui-yellow);
  font-weight: bold;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.btn-secondary-ui {
  background: #102a5c;
  color: #fff;
  border: 2px solid var(--ui-card-border);
  box-shadow: 0 4px 0 #071633;
}

.btn-secondary-ui:hover {
  border-color: var(--grid-cyan);
  color: var(--grid-cyan);
}

.btn-disabled {
  background: #253347;
  color: #6a7c94;
  border: 2px solid #36475f;
  cursor: not-allowed;
  box-shadow: none;
}

/* Adaptación para pantallas chicas y celulares */
@media (max-width: 860px) {
  .platforms-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
  }
}

@media (max-width: 560px) {
  .platforms-grid {
    grid-template-columns: 1fr; /* 1 columna solo en teléfonos móviles */
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--ui-card-border);
  padding: 30px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  color: var(--grid-cyan);
  text-decoration: none;
  margin-left: 15px;
  font-weight: 700;
}
/* =========================================
   ESTILOS PARA PÁGINA LEGAL (Privacidad y Términos)
   ========================================= */
.legal-page-body {
  background-color: var(--bg-deep-blue);
  color: var(--text-white);
  min-height: 100vh;
}

.legal-wrapper {
  max-width: 920px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.legal-header {
  margin-bottom: 35px;
}

.legal-badge {
  display: inline-block;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid var(--grid-cyan);
  color: var(--grid-cyan);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.legal-main-title {
  font-family: var(--font-arcade);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ui-yellow);
  text-shadow: 0 3px 0 var(--ui-blue-dark), 0 0 20px rgba(255, 183, 3, 0.4);
  margin-bottom: 6px;
}

.legal-subtext {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 25px;
}

/* Tabs / Pestañas */
.legal-tabs {
  display: inline-flex;
  gap: 12px;
  background: rgba(2, 11, 32, 0.8);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--ui-card-border);
}

.tab-btn {
  background: transparent;
  color: var(--text-dim);
  border: none;
  font-family: var(--font-arcade);
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-white);
}

.tab-btn.active {
  background: linear-gradient(180deg, #0066eb 0%, #00439e 100%);
  color: #fff;
  border: 1px solid var(--grid-cyan);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

/* Panel contenedor del documento */
.legal-doc-box {
  background: rgba(9, 32, 85, 0.85);
  backdrop-filter: blur(14px);
  border: 2px solid var(--ui-card-border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.doc-meta-banner {
  background: rgba(0, 212, 255, 0.1);
  border-left: 4px solid var(--grid-cyan);
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--grid-cyan);
  font-weight: 600;
  margin-bottom: 30px;
}

.banner-terms {
  border-left-color: var(--ui-yellow);
  color: var(--ui-yellow);
  background: rgba(255, 183, 3, 0.1);
}

/* Tipografía de las secciones legales */
.doc-section {
  margin-bottom: 32px;
}

.doc-section h2 {
  font-family: var(--font-arcade);
  font-size: 1.25rem;
  color: var(--ui-yellow);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.doc-section p {
  color: #d2def2;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.doc-list {
  list-style: none;
  padding-left: 5px;
  margin-top: 10px;
}

.doc-list li {
  color: #d2def2;
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.doc-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--grid-cyan);
  font-weight: bold;
}

.doc-list strong {
  color: #fff;
}

/* Cajas de EOS y EAC destacadas */
.callout-box {
  background: #051842;
  border: 1px solid #13459c;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 18px 0;
}

.callout-box h3 {
  font-family: var(--font-arcade);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 6px;
}

.callout-box p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.callout-box a {
  color: var(--grid-cyan);
  text-decoration: underline;
}

.callout-security {
  border-color: rgba(255, 42, 42, 0.6);
  background: rgba(40, 10, 18, 0.5);
}

.callout-security h3 {
  color: #ff6b6b;
}

/* Tarjeta de Contacto */
.contact-card {
  background: #020c24;
  border: 1px solid var(--grid-cyan);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

/* Botón de Contacto vía Discord */
.discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #5865F2;
  color: #ffffff !important;
  font-family: var(--font-arcade);
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 15px;
  border: 2px solid #828aff;
  box-shadow: 0 6px 0 #3b44a8, 0 8px 20px rgba(88, 101, 242, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.discord-btn:hover {
  background: #4752c4;
  box-shadow: 0 6px 0 #2e3583, 0 10px 25px rgba(88, 101, 242, 0.6);
  transform: translateY(-2px);
}

.discord-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 #2e3583;
}

.discord-icon {
  font-size: 1.3rem;
}

/* Responsive para la página legal */
@media (max-width: 768px) {
  .legal-doc-box {
    padding: 24px 18px;
  }
  
  .legal-tabs {
    flex-direction: column;
    width: 100%;
  }

  .tab-btn {
    width: 100%;
    font-size: 0.85rem;
  }
}
/* Seccion "Sobre el juego" y una sola plataforma centrada */
.about-links a {
  color: var(--grid-cyan);
  font-weight: 700;
  text-decoration: none;
}
.about-links a:hover { text-decoration: underline; }
.platforms-grid.single {
  grid-template-columns: minmax(0, 340px);
  justify-content: center;
}

/* Selector de idioma ES | EN */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 2px solid var(--ui-card-border);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-family: var(--font-text);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.lang-toggle:hover { border-color: var(--grid-cyan); }
.lang-toggle:focus-visible { outline: 2px solid var(--grid-cyan); outline-offset: 2px; }
.lang-opt { padding: 1px 3px; border-radius: 3px; }
.lang-opt.active { color: #031338; background: var(--grid-cyan); }
.lang-sep { opacity: 0.5; }

/* Requisitos del sistema */
.req-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}
.req-card {
  background: var(--ui-card-bg);
  border: 2px solid var(--ui-card-border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.req-card h3 {
  font-family: var(--font-arcade);
  color: var(--ui-yellow);
  margin: 0 0 14px;
  font-size: 1.1rem;
}
.req-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0;
}
.req-list dt { color: var(--grid-cyan); font-weight: 700; font-size: 0.9rem; }
.req-list dd { margin: 0; color: #fff; font-size: 0.9rem; }
@media (max-width: 640px) {
  .req-grid { grid-template-columns: 1fr; }
  .req-list { grid-template-columns: 1fr; gap: 2px; }
  .req-list dd { margin-bottom: 8px; }
}
[hidden] { display: none !important; }

@media (max-width: 820px) {
  /* El menú del celular ahora tiene más opciones (idioma y requisitos) */
  .nav-menu.active { max-height: 520px; }
  /* En la página legal no hay hamburguesa: el idioma y "volver" quedan siempre a la vista */
  .nav-menu.nav-menu-legal {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
  }
  .nav-menu-legal .nav-links {
    flex-direction: row;
    padding: 0;
    gap: 8px;
    width: auto;
  }
  .nav-menu-legal .nav-links li { width: auto; }
  .nav-menu-legal .btn-play-nav { font-size: 0.7rem !important; padding: 5px 8px; }
  .legal-page-body .logo-text-desktop { display: none; }
}
