/* Páginas de presentación del juego (/juego-de-karts/ y /en/): con el aspecto de la portada. */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/barlow-condensed-latin-800-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/barlow-condensed-latin-700-normal.woff2) format('woff2');
}

:root {
  color-scheme: dark;
  --page: #0c0f14;
  --surface: #141920;
  --raised: #1b212a;
  --ink: #eef1f5;
  --muted: #9aa4b2;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #f5b72a;
  --fc: 'Barlow Condensed', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Cabecera fija con el logo y el botón de jugar. */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(12, 15, 20, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { font: italic 800 26px/1 var(--fc); text-transform: uppercase; color: var(--ink); text-decoration: none; letter-spacing: 0.02em; }
.brand span { color: var(--accent); }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.top nav a:not(.play) { color: var(--muted); text-decoration: none; }
.top nav a:not(.play):hover { color: var(--ink); }

.play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  height: 46px;
  border-radius: 8px;
  background: var(--accent);
  color: #14110a;
  font: italic 800 22px/1 var(--fc);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  transform: skewX(-8deg);
}
.play > span { transform: skewX(8deg); }
.play:hover { filter: brightness(1.08); }
.play.big { height: 64px; padding: 0 36px; font-size: 30px; }
.top .play { height: 40px; font-size: 19px; padding: 0 16px; }

/* Portada de la página: texto a un lado, captura al otro. */
.hero { padding: 48px 0 32px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 {
  margin: 0 0 16px;
  font: italic 800 clamp(40px, 6vw, 64px)/0.95 var(--fc);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero h1 span { color: var(--accent); display: block; }
.lead { margin: 0 0 24px; font-size: 19px; color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); }
.shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5); }

section { padding: 40px 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  margin: 0 0 8px;
  font: italic 800 clamp(30px, 4vw, 40px)/1 var(--fc);
  text-transform: uppercase;
}
h2 + p { margin-top: 0; color: var(--muted); }
h3 { margin: 0 0 6px; font: 700 21px/1.15 var(--fc); text-transform: uppercase; letter-spacing: 0.03em; }

/* Lo que ofrece: tarjetas en rejilla. */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 22px; }
.card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Circuitos, por copas. */
.cup { margin-top: 28px; }
.cup-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cup-h h3 { margin: 0; font-size: 24px; }
.cup-h small { color: var(--muted); font-size: 15px; }
.tracks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.track { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.track img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.track div { padding: 12px 14px 14px; }
.track p { margin: 0; color: var(--muted); font-size: 15px; }

/* Objetos y controles. */
.items { columns: 2; column-gap: 32px; padding: 0; margin: 18px 0 0; list-style: none; }
.items li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.items b { color: var(--ink); }
table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 16px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 14px; }

/* Preguntas frecuentes. */
details { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-top: 10px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 600; }
details p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

.final { text-align: center; padding: 56px 0; }
.final p { color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .tracks { grid-template-columns: 1fr 1fr; }
  .items { columns: 1; }
  .top nav a:not(.play) { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .tracks { grid-template-columns: 1fr; }
  .play.big { width: 100%; }
  table { font-size: 14px; }
}
