@font-face { font-family: 'Nosifer'; src: url('../fonts/Nosifer-Regular.ttf') format('truetype'); font-display: swap; }

:root {
  --bg: #07060a;
  --bg-2: #0e0c13;
  --bg-3: #16131c;
  --line: #2a2433;
  --bone: #ece6d6;
  --text: #cfc8b8;
  --muted: #8a8475;
  --toxic: #7fb36a;
  --toxic-dim: #3f5a35;
  --blood: #c0281e;
  --blood-hi: #ff4a33;
  --pixel: 'Pixelify Sans', 'Courier New', monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--toxic); text-underline-offset: 3px; }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--toxic); outline-offset: 3px; }
h1, h2, h3 { color: var(--bone); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h2 { font-family: var(--pixel); font-size: clamp(26px, 4vw, 38px); letter-spacing: .5px; }
h3 { font-family: var(--pixel); font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.cfg-missing { display: none !important; }

/* grano sutil sobre toda la página */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(7,6,10,.92), rgba(7,6,10,0));
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); font-family: var(--pixel); font-size: 18px; letter-spacing: 1px; }
.brand img { width: 36px; height: 36px; image-rendering: pixelated; border-radius: 8px; }
#site-nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
#site-nav a {
  color: var(--text); text-decoration: none; font-family: var(--pixel); font-size: 16px;
  padding: 8px 12px; border-radius: 6px;
}
#site-nav a:hover { color: var(--bone); background: rgba(255,255,255,.04); }
#site-nav a[aria-current="page"] { color: var(--toxic); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-left: 6px; }
.lang-btn { background: none; border: 0; color: var(--muted); font: 500 13px var(--pixel); padding: 6px 9px; cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: var(--toxic-dim); color: var(--bone); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--bone); border-radius: 6px; padding: 7px 11px; font: 15px var(--pixel); cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  #site-nav {
    position: absolute; top: 64px; left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: none;
  }
  #site-nav.open { display: flex; }
  #site-nav a { padding: 12px; }
  .lang { margin: 6px 0 2px; align-self: flex-start; }
}

/* ---------- hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); }
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated; image-rendering: crisp-edges;
  opacity: 0; transition: opacity 2.2s ease;
}
#hero-canvas.ready { opacity: 1; }
.hero::after { /* viñeta + fundido hacia el contenido */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 60% 45%, transparent 40%, rgba(7,6,10,.65) 100%),
    linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(56px, 12vh, 120px);
}
.hero-copy { max-width: 520px; }
.hero-tag { font: 500 14px var(--pixel); color: var(--toxic); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { margin: 0 0 14px; }
.hero h1 img { width: min(360px, 70vw); image-rendering: pixelated; filter: drop-shadow(0 4px 18px rgba(0,0,0,.8)); }
.hero-line { font-size: clamp(17px, 2.2vw, 20px); color: var(--bone); text-shadow: 0 2px 12px #000; margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.play-note { margin-top: 18px; font: 14px var(--pixel); color: var(--muted); letter-spacing: 1px; }
.play-note a { color: var(--muted); }
.scroll-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%);
  font: 13px var(--pixel); color: var(--muted); letter-spacing: 1px; opacity: .7;
  animation: drift 3.5s ease-in-out infinite;
}
@keyframes drift { 50% { transform: translate(-50%, 6px); opacity: .35; } }
@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; }
  #hero-canvas { position: relative; display: block; height: 60vh; height: 60svh; }
  .hero h1 img { width: 50vw; max-width: 240px; }
  .hero-tag { font-size: 12px; letter-spacing: 1.5px; }
  .hero-content { height: auto; margin-top: -70px; padding-bottom: 40px; }
  .hero::after { background: linear-gradient(to bottom, rgba(7,6,10,.55) 0%, transparent 16%, transparent 38%, var(--bg) 58%); }
  .scroll-hint { display: none; }
}

/* ---------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 17px var(--pixel); letter-spacing: .5px; text-decoration: none; cursor: pointer;
  padding: 13px 22px; border-radius: 6px; border: 2px solid transparent;
  transition: transform .12s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blood); color: #fff; box-shadow: 0 0 0 0 rgba(192,40,30,.0), 0 4px 0 #6e1210; }
.btn-primary:hover { background: var(--blood-hi); color: #fff; box-shadow: 0 0 24px rgba(255,74,51,.35), 0 4px 0 #6e1210; }
.btn-ghost { border-color: var(--line); color: var(--bone); background: rgba(14,12,19,.6); }
.btn-ghost:hover { border-color: var(--toxic); color: var(--toxic); }
.btn-toxic { background: var(--toxic-dim); color: var(--bone); box-shadow: 0 4px 0 #22321d; }
.btn-toxic:hover { background: #4f7444; color: #fff; }

/* ---------- secciones */
section { padding: clamp(64px, 10vw, 110px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow { font: 500 13px var(--pixel); letter-spacing: 3px; text-transform: uppercase; color: var(--toxic); display: block; margin-bottom: 10px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); border: 1px solid var(--line); border-radius: 12px; padding: 26px;
  position: relative; overflow: hidden;
}
.card::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--blood), transparent 70%); opacity: .7; }
.card .ico { width: 34px; height: 34px; margin-bottom: 14px; image-rendering: pixelated; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shots figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.shots img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; filter: saturate(.9) brightness(.92); transition: filter .3s ease, transform .5s ease; }
.shots figure:hover img { filter: none; transform: scale(1.03); }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr 1fr; } .shots figure:nth-child(n+5) { display: none; } }

.band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, rgba(127,179,106,.08), transparent 60%), var(--bg-2);
  text-align: center;
}
.band p { max-width: 560px; margin: 0 auto 26px; color: var(--text); }

/* ---------- páginas internas */
.page-hero { padding: 150px 0 40px; position: relative; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 70% at 20% 0%, rgba(127,179,106,.09), transparent 70%);
}
.page-hero h1 { font-family: 'Nosifer', var(--pixel); font-weight: 400; font-size: clamp(30px, 6vw, 56px); letter-spacing: 1px; color: var(--bone); text-shadow: 0 0 30px rgba(192,40,30,.25); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--bone); max-width: 680px; }
.prose { max-width: 720px; }
.prose p { color: var(--text); }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 6vw, 70px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.about-art { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, #1d1824, var(--bg-2)); padding: 18px; }
.about-art img { width: 100%; image-rendering: pixelated; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.ticks li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 10px; height: 10px; background: var(--toxic); box-shadow: 2px 2px 0 #22321d; }

.donate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0; }
@media (max-width: 760px) { .donate-grid { grid-template-columns: 1fr; } }
.donate-card { text-align: left; display: flex; flex-direction: column; }
.donate-card p { margin-bottom: 20px; }
.donate-card .btn { margin-top: auto; align-self: flex-start; }
.note { font-size: 15px; color: var(--muted); border-left: 3px solid var(--toxic-dim); padding: 4px 0 4px 14px; }
.notice { background: var(--bg-3); border: 1px dashed var(--line); border-radius: 10px; padding: 18px; color: var(--bone); font-family: var(--pixel); }

/* ---------- formulario */
.form { display: grid; gap: 16px; max-width: 620px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font: 500 14px var(--pixel); color: var(--bone); letter-spacing: .5px; }
.form input, .form select, .form textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; color: var(--bone);
  font: 16px var(--sans); padding: 12px 14px;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--toxic); outline: none; box-shadow: 0 0 0 3px rgba(127,179,106,.15); }
.form-error { color: var(--blood-hi); font-size: 14px; margin: 0; }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-foot small { color: var(--muted); }

/* ---------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer .made { display: flex; align-items: center; gap: 10px; }
.site-footer .made img { width: 30px; height: 30px; image-rendering: pixelated; border-radius: 6px; }

/* ---------- aparición */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  #hero-canvas { transition: none; }
  .scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}
