@font-face {
  font-family: "Press Start 2P";
  src: url("fonts/PressStart2P-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0b0c10;
  --bg-2: #14161c;
  --card: #1a1c23;
  --line: #2a2d36;
  --text: #ece6dc;
  --muted: #a49d93;
  --red: #e22c24;
  --red-dark: #8f1510;
  --gold: #ffc478;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: #fff; }

/* Language switch: only the active language's blocks are shown. */
html[data-lang="en"] [lang="es"],
html[data-lang="es"] [lang="en"] { display: none !important; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: 1100px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-family: var(--pixel); font-size: 13px; color: var(--red); }
.nav-links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.lang-btn {
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 10px; font-size: 14px; cursor: pointer;
}
.lang-btn:hover { border-color: var(--red); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 70% 30%, rgba(226, 44, 36, 0.22), transparent 60%), var(--bg);
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 72px 16px 64px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.hero h1 {
  font-family: var(--pixel); font-size: clamp(30px, 5vw, 54px); line-height: 1.25;
  color: var(--red); margin: 0 0 6px; text-shadow: 0 0 24px rgba(226, 44, 36, 0.45), 4px 4px 0 #000;
}
.hero .sub { font-family: var(--pixel); font-size: clamp(13px, 2vw, 18px); margin: 0 0 24px; }
.hero p.lead { color: var(--muted); font-size: 19px; max-width: 520px; }
.hero-art img {
  border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(226, 44, 36, 0.25);
}
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--red); color: #fff; padding: 14px 22px; border-radius: 12px;
  font-weight: 700; box-shadow: 0 6px 0 var(--red-dark);
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: var(--text); }

/* Sections */
section { padding: 64px 16px; }
.wrap { max-width: 1100px; margin: 0 auto; }
.narrow { max-width: 820px; margin: 0 auto; }
h2 {
  font-family: var(--pixel); font-size: clamp(18px, 3vw, 26px); line-height: 1.4;
  margin: 0 0 24px; color: var(--text);
}
h2 .accent { color: var(--red); }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
}
.feature .ico { font-size: 28px; }
.feature h3 { font-size: 18px; margin: 10px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery img { border-radius: 14px; border: 1px solid var(--line); }

.story {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center;
}
.story img { border-radius: 20px; }
.story p { color: var(--muted); }

/* Legal pages */
.doc { padding: 48px 16px 72px; }
.doc h1 { font-family: var(--pixel); font-size: clamp(20px, 3.4vw, 30px); line-height: 1.4; color: var(--red); margin: 0 0 8px; }
.doc .date { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-family: var(--body); font-size: 22px; margin: 36px 0 10px; color: var(--gold); }
.doc p, .doc li { color: #d6d0c6; }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--card); }
.note {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 10px; padding: 14px 18px; margin: 18px 0;
}

/* Contact */
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; text-align: center;
}
.contact-card .mail { font-size: clamp(18px, 3vw, 24px); font-weight: 700; word-break: break-all; }

/* Footer */
footer {
  border-top: 1px solid var(--line); padding: 28px 16px; color: var(--muted); font-size: 14px;
}
footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero-inner, .story { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 360px; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .nav-links { margin-left: 0; width: 100%; }
}
