/* Vortex Gamer Web — tema oscuro neón, estilo arcade/esports, a juego con el icono de la app. */

/* Tipografías autoalojadas -antes venían de fonts.googleapis.com en tiempo de carga, lo
   que cuenta como transmisión de datos (IP) a Google sin avisar en la UE-. Evita también
   tener que meter ningún aviso de cookies solo por esto. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Orbitron';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('fonts/orbitron.woff2') format('woff2');
}

:root {
  --bg: #0a0a14;
  --bg-alt: #10101e;
  --surface: #14142690;
  --surface-solid: #14142a;
  --border: #2a2a4a;
  --text: #e8e8f5;
  --text-dim: #9797b8;
  --cyan: #22d3ee;
  --purple: #a855f7;
  --orange: #fb923c;
  --gradient: linear-gradient(135deg, var(--cyan), var(--purple) 55%, var(--orange));
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.25);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at top, #1a1a35 0%, var(--bg) 55%);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Orbitron', 'Inter', sans-serif;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Cabecera ---------- */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; }
.site-header img { width: 38px; height: 38px; }
.site-header .brand {
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 18px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.site-header nav a { color: var(--text-dim); }
.site-header nav a:hover { color: var(--cyan); text-decoration: none; }

.lang-flags { display: flex; gap: 6px; }
.flag-button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: none;
  overflow: hidden;
  opacity: 0.55;
  transition: transform 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}
.flag-button img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.flag-button:hover { opacity: 0.85; }
.flag-button.active { opacity: 1; border-color: var(--cyan); transform: scale(1.15); }

/* ---------- Banner de descarga (fijo, no bloqueante) ---------- */
.download-bar {
  position: sticky;
  bottom: 0;
  z-index: 30;
  background: var(--gradient);
  color: #0a0a14;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 16px;
  text-align: center;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.4);
}
.download-bar a {
  color: #0a0a14;
  background: rgba(10, 10, 20, 0.15);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800;
}
.download-bar a:hover { text-decoration: none; background: rgba(10,10,20,0.28); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}
.hero img.hero-logo {
  width: 140px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.5));
}
.hero h1 {
  font-size: 34px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.tagline {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.btn-primary { background: var(--gradient); color: #0a0a14; }
.btn-primary:hover { text-decoration: none; filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { text-decoration: none; border-color: var(--cyan); color: var(--cyan); }

/* ---------- Tarjetas / grids ---------- */
.section { padding: 40px 0; }
.section-title { font-size: 22px; margin-bottom: 6px; }
.section-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 24px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--purple); box-shadow: var(--shadow-glow); text-decoration: none; }
.card .thumb {
  aspect-ratio: 1;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 10px 12px; }
.card .name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.3; }
.card .meta { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

.system-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.system-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  font-weight: 700;
}
.system-card .count { display: block; font-weight: 400; color: var(--text-dim); font-size: 12px; margin-top: 4px; }
.system-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-glow); text-decoration: none; }

/* ---------- Ficha de juego ---------- */
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-dim); }
.game-header { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.game-header .cover { width: 220px; border-radius: var(--radius); border: 1px solid var(--border); flex-shrink: 0; }
.game-header .info { flex: 1; min-width: 240px; }
.game-header h1 { font-size: 26px; }
.badge {
  display: inline-block;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--cyan);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.lang-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.lang-tabs button {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lang-tabs button.active { color: #0a0a14; background: var(--gradient); border-color: transparent; }
.lang-panel { display: none; }
.lang-panel.active { display: block; }

.panel-box {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.panel-box h3 { font-size: 15px; color: var(--cyan); margin-bottom: 10px; }
.panel-box ul { margin: 0; padding-left: 20px; }
.panel-box li { margin-bottom: 6px; font-size: 14px; }

/* ---------- Lista de precios (no tabla: así no hay scroll horizontal en móvil, cada
   fila se adapta sola al ancho que tenga en vez de cortar columnas) ---------- */
.price-list { background: var(--surface-solid); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.price-row {
  /* Rejilla fija, no flexbox con salto de línea: así el precio nunca se cae a una
     segunda línea y todas las filas miden exactamente lo mismo, sea cual sea el
     largo del nombre -eso es lo que hacía que no "cuadrara" en pantallas estrechas-. */
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 4px 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.price-list > .price-row:last-child,
.gated-blur .price-row:last-child { border-bottom: none; }
.price-row:hover { background: rgba(168, 85, 247, 0.08); }
.price-row__rank { font-family: 'Orbitron', sans-serif; color: var(--orange); font-weight: 800; font-size: 13px; }
.price-row__name { min-width: 0; font-size: 14px; overflow-wrap: break-word; }
.price-row__amount { color: var(--cyan); font-weight: 700; font-size: 13px; white-space: nowrap; text-align: right; }
.updated-note { color: var(--text-dim); font-size: 12px; margin-bottom: 20px; }

/* ---------- Noticias ---------- */
.news-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.news-item img { width: 110px; height: 74px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.news-item h3 { font-size: 15px; margin-bottom: 6px; }
.news-item p { font-size: 13px; color: var(--text-dim); margin: 0 0 6px; }
.news-item .src { font-size: 11px; color: var(--text-dim); }

/* ---------- Paginación ---------- */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
}
.pagination .current { background: var(--gradient); color: #0a0a14; font-weight: 700; border-color: transparent; }

/* ---------- Pie ---------- */
.site-footer {
  padding: 40px 0 100px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}

/* ---------- Utilidades ---------- */
.search-box {
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--text);
  font-size: 14px;
  margin-bottom: 24px;
}
.search-box::placeholder { color: var(--text-dim); }

/* ---------- Responsive / móvil ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }

  .site-header .wrap { flex-wrap: wrap; row-gap: 10px; }
  .site-header .brand { font-size: 15px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 10px; }

  .hero { padding: 36px 0 28px; }
  .hero img.hero-logo { width: 100px; }
  .hero h1 { font-size: 24px; }
  .hero p.tagline { font-size: 14px; }
  .btn { padding: 11px 18px; font-size: 13px; }

  .game-header { flex-direction: column; align-items: center; text-align: center; }
  .game-header .cover { width: 60%; max-width: 200px; }
  .game-header h1 { font-size: 21px; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .system-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

  .news-item { flex-direction: column; }
  .news-item img { width: 100%; height: 170px; }

  .download-bar { flex-direction: column; gap: 8px; font-size: 13px; padding: 10px 14px; }

  .price-row { padding: 10px 12px; font-size: 13px; }
}

/* ---------- Icono de consola (junto al nombre del sistema) ---------- */
.system-icon { width: 32px; height: 32px; object-fit: contain; margin-bottom: 8px; }
.system-card { display: flex; flex-direction: column; align-items: center; }
.title-with-icon { display: flex; align-items: center; gap: 12px; }
.title-with-icon img { width: 40px; height: 40px; object-fit: contain; }

/* ---------- Contenido "adelanto" (trucos/consejos): las primeras entradas se ven bien,
   el resto se difumina con una llamada a descargar la app encima -el texto sigue en el
   HTML para que Google lo indexe igual, solo se oculta visualmente-. */
.gated-wrap { position: relative; }
.gated-blur {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  max-height: 160px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 95%);
}
.gated-cta {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 14px;
  cursor: pointer;
  background: linear-gradient(to bottom, transparent, var(--surface-solid) 75%);
}
.gated-cta .btn { pointer-events: none; }
.gated-cta p { font-size: 12.5px; color: var(--text-dim); margin: 0 0 10px; text-align: center; padding: 0 12px; }

/* Igual que .gated-blur pero pensado para una rejilla de tarjetas (listados de juegos)
   en vez de una lista de texto -mismo degradado, más alto para que se note la rejilla-. */
.gated-blur-grid {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  max-height: 260px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 15%, transparent 90%);
  mask-image: linear-gradient(to bottom, black 15%, transparent 90%);
}

/* Aviso corto de "hay más, y está en la app" cuando no hay nada que difuminar
   (p.ej. un juego con un único truco, o directamente sin ninguno todavía). */
.hint-more {
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--app-gradient-soft, rgba(168, 85, 247, 0.08));
  margin: 8px 0 0;
}

/* ---------- Escaparate "todo lo que tiene la app", en toda página ---------- */
.app-features {
  background: var(--surface-solid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 12px;
}
.app-features__title {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.app-features__grid {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 0 20px;
}
.app-features__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
}
.app-features__item .emoji { font-size: 18px; flex-shrink: 0; }

/* ---------- Aviso de cookies (informativo, sin necesidad de aceptar/rechazar nada
   más: la web no usa cookies de seguimiento ni publicidad) ---------- */
.cookie-notice {
  /* En el flujo normal, justo bajo la cabecera -no "fixed": así no compite por espacio
     con el banner de descarga que ya vive fijo abajo, ni tapa nada al superponerse-. */
  display: none;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-dim);
}
.cookie-notice.open { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cookie-notice p { margin: 0; flex: 1; min-width: 180px; max-width: 720px; }
.cookie-notice__accept {
  flex-shrink: 0;
  border: none;
  background: var(--gradient);
  color: #0a0a14;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12.5px;
}

/* ---------- Popup / modal de descarga ---------- */
.app-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 12, 0.75);
  backdrop-filter: blur(3px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.app-modal-backdrop.open { display: flex; }
.app-modal {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-glow);
  position: relative;
}
.app-modal img { width: 64px; height: 64px; margin: 0 auto 14px; }
.app-modal h3 { font-size: 17px; margin-bottom: 10px; }
.app-modal p { font-size: 13.5px; color: var(--text-dim); margin: 0 0 20px; }
.app-modal .btn { width: 100%; justify-content: center; }
.app-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Paginación con flechas + elipsis ---------- */
.pagination { align-items: center; }
.pagination .arrow { font-weight: 800; }
.pagination .ellipsis { border: none; background: none; padding: 8px 4px; color: var(--text-dim); }
