:root {
  --bg: #0a0706;
  --bg-alt: #120c0a;
  --panel: #17110e;
  --border: #3a2a22;
  --text: #ece3d8;
  --text-dim: #b7a999;
  --text-faint: #8a7c6e;
  --accent: #d99a4e;
  --accent-strong: #e8b062;
  --blood: #8c2222;
  --font-display: "Press Start 2P", monospace;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 7, 6, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 7, 6, 0.92);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
  letter-spacing: 1px;
}

.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover { color: var(--accent-strong); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px;
  margin-left: 20px;
}

.lang-switch button {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-faint);
  background: none;
  border: none;
  border-radius: 16px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button:hover { color: var(--text); }

.lang-switch button.active {
  background: var(--accent);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.08);
  animation: heroZoom 24s ease-in-out infinite alternate;
  filter: saturate(1.05);
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.16); }
}

.hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,7,6,0.55) 0%, rgba(10,7,6,0.35) 35%, rgba(10,7,6,0.85) 78%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 64px);
  line-height: 1.25;
  margin: 0 0 22px;
  color: var(--text);
  text-shadow: 0 0 24px rgba(217, 154, 78, 0.25), 3px 3px 0 rgba(0,0,0,0.6);
}

.hero-tagline {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-tagline strong { color: var(--accent-strong); }

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: #201209;
  border-color: var(--accent);
}

.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-2px);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-faint);
  animation: bob 2.4s ease-in-out infinite;
  z-index: 2;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ---------- Premise ---------- */

.premise {
  padding: 90px 20px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.premise-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--text-dim);
}

.premise-inner strong { color: var(--accent-strong); }

/* ---------- Section shared ---------- */

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  padding: 0 20px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 32px);
  margin: 0 0 8px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 14px;
}

.modos {
  padding: 110px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.mode-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 110px;
}

.mode-card:last-child { margin-bottom: 0; }

.mode-card.reverse { direction: rtl; }
.mode-card.reverse > * { direction: ltr; }

.mode-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  position: relative;
}

.mode-media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
  pointer-events: none;
}

.mode-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mode-card:hover .mode-media img { transform: scale(1.05); }

.mode-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.mode-info h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 0 0 16px;
}

.mode-info p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 18px;
}

.mode-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-bullets li {
  font-size: 13.5px;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}

.mode-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- Atmosphere strip ---------- */

.atmosfera {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.atmosfera-img {
  width: 100%;
  height: 46vw;
  max-height: 460px;
  object-fit: cover;
  filter: brightness(0.75) saturate(1.1);
  transition: filter 0.4s ease;
}

.atmosfera-img:hover { filter: brightness(0.95) saturate(1.2); }

/* ---------- Co-op ---------- */

.cooperativo {
  padding: 120px 20px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.coop-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.coop-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

.coop-info h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 28px);
  margin: 10px 0 18px;
  line-height: 1.4;
}

.coop-info p { color: var(--text-dim); font-size: 15px; margin-bottom: 18px; }

/* ---------- Platforms ---------- */

.plataformas { padding: 120px 20px; max-width: 1180px; margin: 0 auto; }

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.platform-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px 20px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.platform-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.platform-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  color: var(--accent);
}

.platform-icon svg { width: 100%; height: 100%; }

.platform-card h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.platform-card p {
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 0 0 14px;
}

.badge {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* ---------- CTA ---------- */

.cta {
  padding: 120px 20px;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(140,34,34,0.18), transparent 60%),
    var(--bg);
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 34px);
  margin: 0 0 16px;
}

.cta p { color: var(--text-dim); }

/* ---------- Footer ---------- */

.footer {
  padding: 60px 20px 40px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-brand span { color: var(--accent); }

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 14px 0;
  flex-wrap: wrap;
}

.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--accent-strong); }

.footer-fine { margin-top: 18px; font-size: 11px; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .mode-card, .mode-card.reverse {
    direction: ltr;
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 72px;
  }

  .coop-inner { grid-template-columns: 1fr; gap: 32px; }
  .coop-media { order: -1; }

  .platform-grid { grid-template-columns: 1fr; max-width: 340px; }

  .atmosfera { grid-template-columns: 1fr; }
  .atmosfera-img { height: 260px; max-height: none; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    background: rgba(10,7,6,0.97);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }

  .nav-links.open { transform: translateY(0); }

  .nav-toggle { display: flex; }

  .lang-switch { margin-left: 12px; }
  .lang-switch button { padding: 5px 8px; }

  .hero { padding-top: 100px; }

  .modos, .cooperativo, .plataformas { padding-top: 80px; padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .scroll-hint { animation: none; }
}
