/* Finax Studios — portada. Fuente: repositorio, no el hosting. */

@font-face {
  font-family: 'Playfair Display';
  src: url('/assets/fonts/playfair-display-black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0d12;
  --bg-soft: #12151d;
  --card: #161a24;
  --line: #232838;
  --text: #e8eaf0;
  --muted: #9aa1b2;
  --gold: #c9a15a;
  --gold-soft: #e3c489;
  --display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* Cabecera.
   Sin `backdrop-filter`: una cabecera sticky con desenfoque de fondo crea una
   capa compositada en la GPU y en Chromium/Windows hace parpadear o
   desaparecer el contenido que pasa por debajo al hacer scroll. El fondo va
   opaco, que sobre este fondo casi negro se ve igual y no crea capa. */
header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .3px; }
.brand .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 14px var(--gold);
}
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* Portada */
.hero { padding: 92px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(201, 161, 90, .10), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  color: var(--gold); font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
}
.hero h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(38px, 7vw, 68px); line-height: 1.05; margin: 18px 0 16px;
}
.hero h1 span { color: var(--gold); }
.hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto; }

/* Secciones */
section { padding: 64px 0; }
.section-title { font-family: var(--display); font-size: 30px; font-weight: 900; margin-bottom: 8px; }
.section-sub { color: var(--muted); margin-bottom: 32px; }

/* Fichas de juego */
.games { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.game {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px;
}
.game .cover {
  width: 104px; height: 104px; flex: 0 0 104px; border-radius: 22px;
  border: 1px solid var(--line);
  object-fit: cover; display: block;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
}
.game h3 { font-size: 22px; margin-bottom: 6px; }
.game p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tag {
  display: inline-block; font-size: 12px; color: var(--gold);
  border: 1px solid var(--gold); border-radius: 999px; padding: 2px 10px;
}
.tag.soon { color: var(--muted); border-color: var(--line); background: var(--bg-soft); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #14110a; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 10px; transition: transform .15s, background .15s;
}
.btn:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line); cursor: default;
}
.btn.ghost:hover { background: transparent; transform: none; }

.game-legal { margin-top: 14px; font-size: 13px; color: var(--muted); }
.game-legal a { color: var(--gold); }
.game-legal a:hover { color: var(--gold-soft); text-decoration: underline; }

/* Legal */
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th, .legal-table td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.legal-table th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.legal-table td a { color: var(--gold); }
.legal-table td a:hover { color: var(--gold-soft); text-decoration: underline; }
.legal-table td .app { color: var(--text); font-weight: 600; }

/* Contacto */
.contact-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px; display: flex; flex-wrap: wrap; gap: 12px 32px;
  align-items: center; justify-content: space-between;
}
.contact-card .label { color: var(--muted); font-size: 14px; }
.contact-card a.mail { color: var(--gold); font-weight: 600; font-size: 18px; word-break: break-all; }
.contact-card a.mail:hover { color: var(--gold-soft); }

/* Pie */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a:hover { color: var(--text); }
.foot .former { display: block; font-size: 12.5px; opacity: .72; margin-top: 4px; }

/* Página 404 */
.notfound { padding: 120px 0 96px; text-align: center; }
.notfound h1 { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 9vw, 88px); color: var(--gold); }
.notfound h2 { font-size: 20px; margin: 10px 0 14px; }
.notfound p { color: var(--muted); max-width: 460px; margin: 0 auto 28px; }

@media (max-width: 860px) {
  .games { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .game { flex-direction: column; text-align: center; align-items: center; }
  .game .cover { flex-basis: auto; }
  .tags { justify-content: center; }
  .legal-table { font-size: 13.5px; }
  .legal-table th, .legal-table td { padding: 10px 6px; }
}
