/* ============================================================
   Gaming Portal Indie ARG — estilos compartidos del portal
   ============================================================ */
:root {
  --bg: #0b1d3a;
  --bg-2: #081426;
  --panel: #142b52;
  --panel-2: #10284d;
  --border: #1e3a6d;
  --border-soft: #2a4066;
  --text: #f0f0f0;
  --muted: #cfd8dc;
  --muted-2: #7f93ad;
  --accent: #4da6ff;
  --accent-2: #7dbaff;
  --gold: #ffd166;
  --green: #3ddc84;
  --red: #ff5f6d;
  --radius: 14px;
  --shadow: 0 10px 34px rgba(0, 0, 0, .45);
  --font: 'Segoe UI', 'Roboto', Arial, sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: radial-gradient(1400px 700px at 50% -160px, #12305f 0%, var(--bg) 55%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

a { color: var(--accent); }

button, a, .game { touch-action: manipulation; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 40, 77, .82);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border);
  padding: 14px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand .logo {
  font-size: 30px;
  filter: drop-shadow(0 0 10px rgba(77, 166, 255, .7));
}

.brand .title {
  font-size: 1.25em;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .5px;
}

.brand .title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(77, 166, 255, .6);
}

.brand .tag {
  display: block;
  font-size: .68em;
  font-weight: 600;
  color: var(--muted-2);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav { display: flex; gap: 10px; flex-wrap: wrap; }

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: .92em;
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--border-soft);
  background: rgba(20, 43, 82, .5);
  transition: all .18s;
}

.nav a:hover {
  color: var(--bg-2);
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ---------- Héroe ---------- */
.hero {
  text-align: center;
  padding: 52px 20px 30px;
}

.hero h1 {
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--accent), #7dbaff 45%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 34px rgba(77, 166, 255, .35);
}

.hero p {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero .badge {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 18px;
  border-radius: 30px;
  border: 1px solid var(--border-soft);
  background: rgba(20, 43, 82, .6);
  color: var(--muted-2);
  font-size: .8em;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Grilla de juegos ---------- */
main { flex: 1; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
  padding: 10px 28px 40px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.game {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex;
  flex-direction: column;
}

.game:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 24px rgba(77, 166, 255, .18);
}

.game .cover {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, #1a3566, #0e1f3f);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.game .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.game:hover .cover img { transform: scale(1.07); }

.game .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(8,20,38,.55) 100%);
}

.game .info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.game .info .cat {
  font-size: .68em;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

.game .info h2 {
  font-size: 1.25em;
  color: var(--text);
}

.game .info p {
  font-size: .86em;
  color: var(--muted-2);
  margin-top: 2px;
}

.game .go {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .9em;
  color: var(--accent);
  transition: gap .2s, color .2s;
}

.game:hover .go { gap: 14px; color: var(--gold); }

/* ---------- Espacio de anuncios ---------- */
.ads {
  position: sticky;
  bottom: 0;
  z-index: 15;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  background: rgba(16, 40, 77, .92);
  border-top: 3px solid var(--border);
  backdrop-filter: blur(6px);
  font-size: .88em;
  width: 100%;
}

/* ---------- Pie ---------- */
footer.site-footer {
  text-align: center;
  padding: 20px;
  background: rgba(16, 40, 77, .85);
  border-top: 3px solid var(--border);
  font-size: .88em;
  color: var(--muted);
}

footer.site-footer a { font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .site-header { padding: 12px 16px; }
  .brand .logo { font-size: 24px; }
  .brand .title { font-size: 1.05em; }
  .brand .tag { letter-spacing: 1px; }
  .nav a { padding: 7px 12px; font-size: .85em; }
  .hero { padding: 30px 16px 18px; }
  .grid {
    padding: 8px 16px 30px;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  }
  .game .info { padding: 10px 12px 12px; }
  .game .info .cat { font-size: .6em; letter-spacing: 1px; }
  .game .info h2 { font-size: 1.02em; }
  .game .info p { font-size: .78em; }
  .game .go { margin-top: 8px; font-size: .82em; }
  .ads { position: static; padding: 12px; font-size: .8em; }
}
