/* Zyndrosoft — sitio básico. Para cambiar la paleta, editá solo las variables de :root. */
:root {
  --bg: #0d1117;
  --bg-2: #141b24;
  --card: #18212c;
  --line: #263243;
  --text: #e8edf3;
  --muted: #9aa7b6;
  --accent: #ffb020;      /* color de acento: cambialo por el color de tu logo */
  --accent-ink: #1a1200;  /* color del texto sobre el acento */
  --live: #3ecf8e;
  --radius: 14px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }

/* ---------- Cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(13, 17, 23, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-name { font-weight: 800; letter-spacing: .18em; font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.lang {
  background: transparent; color: var(--text); cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 4px 10px; font-weight: 700; font-size: .8rem;
}
.lang:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Portada ---------- */
.hero {
  text-align: center;
  padding: clamp(64px, 12vw, 130px) clamp(16px, 4vw, 40px) clamp(48px, 8vw, 90px);
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(255, 176, 32, .13), transparent 70%),
    linear-gradient(var(--bg), var(--bg-2));
}
.hero h1 {
  margin: 0 auto 16px; max-width: 18ch;
  font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em;
}
.hero p { margin: 0 auto 28px; max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.2rem); }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; padding: 12px 24px; border-radius: 10px;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.small { padding: 9px 18px; font-size: .92rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(48px, 8vw, 90px) clamp(16px, 4vw, 40px); max-width: var(--maxw); margin: 0 auto; }
.section.narrow { max-width: 720px; text-align: center; }
.section h2 { margin: 0 0 28px; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.01em; }
.section p { color: var(--muted); }
.section.narrow p { margin: 0 0 14px; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* ---------- Tarjetas de juegos ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.shot {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, #1f2b3a, #121923 60%, #2a2110);
  display: grid; place-items: center;
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-name { color: rgba(255, 255, 255, .28); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 0 12px; }
.shot img + .shot-name { display: none; } /* con imagen, no se muestra el nombre de reemplazo */

.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.35rem; }
.card-body p { margin: 0 0 8px; color: var(--muted); font-size: .96rem; flex: 1; }
.card-body .btn { align-self: flex-start; }

.badge {
  align-self: flex-start; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.badge.live { color: var(--live); border-color: rgba(62, 207, 142, .45); }
.badge.soon { color: var(--accent); border-color: rgba(255, 176, 32, .45); }

.mail { color: var(--accent); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.mail:hover { text-decoration: underline; }
.link { color: var(--muted); }
.link:hover { color: var(--text); }

/* Los enlaces a Steam sin dirección todavía no se muestran (lo decide js/main.js). */
[data-steam].hidden { display: none; }

/* ---------- Pie ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 24px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line);
  color: var(--muted); font-size: .85rem;
}
.small-note { opacity: .7; }

/* Pantallas angostas (celulares): cabecera compacta para que todo entre sin scroll horizontal. */
@media (max-width: 540px) {
  .top { padding: 10px 14px; gap: 8px; }
  .brand-logo { height: 30px; }
  .brand-name { letter-spacing: .1em; font-size: .9rem; }
  .nav { gap: 10px; }
  .nav a { font-size: .84rem; }
  .lang { padding: 3px 8px; }
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
}
