/* Stealth Squad: Cartel Ops — hoja de estilos única, sin dependencias */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/Fredoka-Medium.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #06110d;
  --bg-2: #0a1a14;
  --panel: #0f241c;
  --panel-2: #14302550;
  --line: #24493a;
  --gold: #f2b21f;
  --gold-hi: #ffc94a;
  --blue: #59ccff;
  --text: #ffffff;
  --muted: #b9cbc2;
  --display: "Fredoka", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Fredoka", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #9be0ff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: #1a1200; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; color: #1a1200; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Cabecera ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter);
  max-width: calc(var(--max) + 40px); margin: 0 auto;
}
.top--solid { position: static; border-bottom: 1px solid var(--line); max-width: none; background: var(--bg-2); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 600;
  letter-spacing: .04em; font-size: 15px; min-height: 44px;
}
.brand:hover { color: var(--gold-hi); }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--gold); font-weight: 600; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center;
}
.top nav a:hover { background: #ffffff1a; }
.top nav a.lang { border: 1px solid #ffffff55; padding: 8px 12px; background: #06110d99; }
.top nav a.hide-s { display: none; }
@media (min-width: 760px) { .top nav a.hide-s { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 96px 0 56px;
  overflow: hidden;
}
.hero__art {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 0%;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, #06110dcc 0%, #06110d26 14%, #06110d00 26%, #06110dbf 44%, #06110df2 62%, #06110d 92%);
}
@media (min-width: 900px) {
  .hero__art { object-position: 62% 30%; }
  .hero::before {
    background:
      linear-gradient(180deg, #06110dcc 0%, #06110d00 20%, #06110d00 55%, #06110d99 82%, #06110d 100%),
      linear-gradient(90deg, #06110dd9 0%, #06110d99 30%, #06110d00 68%);
  }
}
.hero__in { width: 100%; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #59ccff33; }
.logo { margin-top: 14px; text-transform: uppercase; filter: drop-shadow(0 4px 18px #000a); }
.logo span { display: block; }
.logo__a { color: var(--gold); font-size: clamp(2.1rem, 10.6vw, 6.6rem); letter-spacing: .01em; line-height: .95; }
.logo__b { color: var(--text); font-size: clamp(1.4rem, 6.6vw, 4rem); letter-spacing: .12em; margin-top: .12em; }
.tagline { margin-top: 18px; font-size: clamp(1.1rem, 4.4vw, 1.5rem); font-weight: 600; max-width: 22em; line-height: 1.3; text-wrap: balance; }
.lede { margin-top: 10px; color: #dce8e2; max-width: 34em; text-shadow: 0 1px 8px #000c; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 24px; border-radius: 16px; border: 0;
  font: 600 1.08rem/1.15 var(--display); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--gold { background: var(--gold); color: #1a1200; box-shadow: 0 6px 0 #a87400, 0 14px 28px #0008; }
.btn--gold:hover { background: var(--gold-hi); color: #1a1200; transform: translateY(-2px); }
.btn--gold:active { transform: translateY(3px); box-shadow: 0 3px 0 #a87400; }
.btn--soon {
  background: #0b1d16e6; color: #e6efe9; border: 1.5px dashed #6f8d80; cursor: not-allowed;
  flex-direction: row; text-align: left;
}
.btn--soon small { display: block; font: 600 .72rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.cta .btn { flex: 1 1 100%; }
@media (min-width: 560px) { .cta .btn { flex: 0 0 auto; } }
.platforms { margin-top: 18px; font-size: .9rem; color: #d3e0d9; text-shadow: 0 1px 6px #000c; }

/* ---------- Secciones ---------- */
.sec { padding: 72px 0; }
.sec--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid #12281f; }
.sec__head { max-width: 40em; margin-bottom: 36px; }
.sec__head h2 { font-size: clamp(1.9rem, 6.5vw, 3rem); color: var(--gold); text-transform: uppercase; letter-spacing: .03em; margin-top: 10px; }
.sec__head p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }

/* Equipo */
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 820px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.op {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, border-color .2s ease;
}
.op:hover { transform: translateY(-4px); border-color: var(--gold); }
.op img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #1c4a34; }
.op h3 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; }
.op__skill { color: var(--blue); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.op p:last-child { color: var(--muted); font-size: .95rem; line-height: 1.45; }
@media (min-width: 820px) {
  .op { flex-direction: row; align-items: center; gap: 18px; padding: 16px; }
  .op img { width: 120px; flex: none; }
  .op div { display: flex; flex-direction: column; gap: 6px; }
}
@media (max-width: 819px) { .op div { display: contents; } }

/* Cómo se juega */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; counter-reset: step; }
.step { display: grid; gap: 18px; align-items: center; counter-increment: step; }
.shot {
  margin: 0; border-radius: 18px; overflow: hidden; background: #000;
  border: 2px solid #1d3a2e; box-shadow: 0 22px 50px -18px #000;
}
.shot img { width: 100%; }
.step__txt h3 { font-size: clamp(1.35rem, 5vw, 1.8rem); display: flex; gap: 12px; align-items: center; }
.step__txt h3::before {
  content: counter(step); flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold); color: #1a1200; display: grid; place-items: center; font-size: 1.2rem;
}
.step__txt p { margin-top: 12px; color: var(--muted); }
@media (min-width: 860px) {
  .steps { gap: 64px; }
  .step { grid-template-columns: 1.35fr 1fr; gap: 44px; }
  .step:nth-child(even) .shot { order: 2; }
  .step:nth-child(even) { grid-template-columns: 1fr 1.35fr; }
}

/* Características */
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.feat svg { width: 36px; height: 36px; color: var(--gold); }
.feat h3 { font-size: 1.2rem; margin-top: 12px; }
.feat p { margin-top: 8px; color: var(--muted); font-size: .98rem; line-height: 1.5; }

.ops-strip {
  margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
  font-size: .9rem; color: var(--muted);
}
.ops-strip b { color: var(--text); font-weight: 600; margin-right: 4px; }
.ops-strip span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: #0b1d16; }

/* Cierre */
.final { text-align: center; padding: 76px 0 84px; background: radial-gradient(80% 120% at 50% 100%, #173a2c 0%, var(--bg) 70%); }
.final h2 { font-size: clamp(1.8rem, 7vw, 3rem); text-transform: uppercase; letter-spacing: .03em; color: var(--text); }
.final h2 em { font-style: normal; color: var(--gold); }
.final p { color: var(--muted); margin: 14px auto 0; max-width: 32em; }
.final .cta { justify-content: center; }

/* Pie */
.foot { border-top: 1px solid var(--line); background: #040c09; padding: 36px 0 44px; font-size: .95rem; color: var(--muted); }
.foot__in { display: grid; gap: 22px; }
@media (min-width: 760px) { .foot__in { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-block; padding: 7px 0; }
.foot__legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid #12281f; font-size: .85rem; }

/* ---------- Páginas de texto (legal, 404) ---------- */
.doc { padding: 44px 0 72px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(1.9rem, 7vw, 3rem); color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }
.doc .updated { color: var(--muted); margin-top: 10px; font-size: .95rem; }
.doc .summary { margin-top: 26px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 14px; padding: 18px 20px; }
.doc .summary h2 { margin: 0 0 8px; font-size: 1.1rem; color: var(--text); }
.doc h2 { font-size: 1.4rem; margin-top: 40px; color: var(--text); }
.doc h3 { font-size: 1.1rem; margin-top: 24px; color: var(--blue); }
.doc p, .doc ul, .doc ol { margin-top: 12px; color: #dbe6e0; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-top: 6px; }
.doc strong { color: var(--text); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .95rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.doc th { background: var(--panel); color: var(--text); font-weight: 600; }
.doc td { color: #dbe6e0; }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 560px; }

.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.lost .code { font: 600 clamp(5rem, 28vw, 11rem)/1 var(--display); color: var(--gold); }
.lost h1 { font-size: clamp(1.4rem, 6vw, 2.2rem); margin-top: 6px; text-transform: uppercase; letter-spacing: .04em; }
.lost p { color: var(--muted); margin-top: 12px; }
.lost .cta { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
