/* BLACKSEAM — sitio oficial. Mina oscura, grieta naranja, sobreimpresión de cámara de seguridad.
   Movimiento: easing y duraciones del repo (--ease-out), UI <= 300 ms, todo se apaga con prefers-reduced-motion. */
@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/bigshoulders.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url("../fonts/sharetech.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #0b0a09;
  --ink-2: #131110;
  --ink-3: #1c1916;
  --line: #2d2822;
  --bone: #d9d2c2;
  --bone-dim: #9a9282;
  --rust: #7a4a2e;
  --orange: #ff5a14;
  --orange-hi: #ff8a3d;
  --alarm: #e0302a;
  --ok: #7ddc7a;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-mono: "Share Tech Mono", ui-monospace, Consolas, monospace;
  --f-body: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0; background: var(--ink); color: var(--bone);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: var(--ink); padding: 8px 14px; z-index: 100; font-family: var(--f-label); letter-spacing: .08em; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- etiquetas tipo OSD ---------- */
.osd { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-dim); }
.osd b { color: var(--orange-hi); font-weight: 400; }
.rec { display: inline-flex; align-items: center; gap: .5em; color: var(--alarm); }
.rec::before { content: ""; width: .62em; height: .62em; border-radius: 50%; background: var(--alarm); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

h1, h2, h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .95; margin: 0; letter-spacing: .01em; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--bone); }

/* ---------- barra superior ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--gutter);
  background: linear-gradient(to bottom, rgba(11,10,9,.92), rgba(11,10,9,0));
}
.top .brand { display: block; width: 34px; height: 34px; flex: none; }
.top nav { display: flex; gap: clamp(10px, 2vw, 26px); margin-left: auto; align-items: center; }
.top nav a { font-family: var(--f-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; font-size: .95rem; padding: 8px 2px; color: var(--bone); border-bottom: 2px solid transparent; transition: border-color .15s var(--ease-out), color .15s var(--ease-out); }
.top nav a:hover { color: var(--orange-hi); border-color: var(--orange); }
.lang { font: inherit; font-family: var(--f-mono); font-size: .8rem; letter-spacing: .1em; background: none; color: var(--bone); border: 1px solid var(--line); padding: 7px 10px; cursor: pointer; transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out); }
.lang:hover { border-color: var(--orange); }
.lang:active { transform: scale(.97); }
.lang [aria-current="true"] { color: var(--orange-hi); }
@media (max-width: 760px) { .top nav a.hide-s { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::before { /* viñeta + oscurecido para leer */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 65% 40%, rgba(11,10,9,0) 30%, rgba(11,10,9,.78) 100%),
    linear-gradient(to top, var(--ink) 0%, rgba(11,10,9,.55) 38%, rgba(11,10,9,.1) 100%);
}
.hero::after { /* líneas de barrido, casi invisibles */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.22) 2px 3px);
}
.frame { position: absolute; inset: clamp(12px, 2vw, 28px); pointer-events: none; z-index: 1; }
.frame i { position: absolute; width: 34px; height: 34px; border: 0 solid rgba(217,210,194,.7); }
.frame i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.frame i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.frame i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.frame i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.hud-tl, .hud-bl, .hud-br { position: absolute; z-index: 2; }
.hud-tl { top: clamp(58px, 9vh, 84px); left: calc(clamp(12px, 2vw, 28px) + 18px); display: grid; gap: 2px; }
.hud-bl { left: calc(clamp(12px, 2vw, 28px) + 18px); bottom: calc(clamp(12px, 2vw, 28px) + 14px); }
.hud-br { right: calc(clamp(12px, 2vw, 28px) + 18px); bottom: calc(clamp(12px, 2vw, 28px) + 14px); text-align: right; }
.hero-inner { padding: 22vh 0 clamp(70px, 12vh, 120px); }
.hero .logo { width: min(100%, 760px); height: auto; filter: drop-shadow(0 6px 30px rgba(0,0,0,.7)); }
.hero .pitch { font-family: var(--f-label); font-weight: 600; font-size: clamp(1.35rem, 3vw, 2.1rem); line-height: 1.2; letter-spacing: .02em; max-width: 24em; margin: 22px 0 8px; text-wrap: balance; }
.hero .sub { color: var(--bone-dim); font-size: 1rem; max-width: 46ch; margin-bottom: 28px; }
.hero .sub u { text-decoration: none; color: var(--bone); border-bottom: 1px solid var(--orange); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 14px 28px 12px; min-height: 52px; cursor: pointer;
  border: 2px solid var(--bone); color: var(--bone); background: transparent;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: background-color .18s var(--ease-out), color .18s var(--ease-out), border-color .18s var(--ease-out), transform .12s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn small { font-family: var(--f-mono); font-weight: 400; font-size: .72rem; letter-spacing: .1em; opacity: .75; }
@media (hover: hover) {
  .btn:hover { border-color: var(--orange); color: var(--orange-hi); }
  .btn.primary:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
}
.scroll-hint { display: none; }

/* ---------- secciones ---------- */
section { position: relative; padding: clamp(72px, 12vw, 150px) 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 64px); }
.sec-head .osd { display: flex; gap: 14px; flex-wrap: wrap; }

/* grieta: separador naranja entre secciones; se dibuja una vez al entrar */
.crack { height: 54px; margin: -27px 0; position: relative; z-index: 3; pointer-events: none; }
.crack svg { width: 100%; height: 100%; overflow: visible; }
.crack path { fill: none; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.crack .glow { stroke: var(--orange); stroke-width: 7px; opacity: .35; filter: blur(5px); }
.crack .core { stroke: var(--orange-hi); stroke-width: 1.5px; }
.crack .glow, .crack .core { stroke-dasharray: 1; stroke-dashoffset: 1; }
.crack.on .glow, .crack.on .core { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease-in-out); }

/* ---------- mapas ---------- */
.maps { background: var(--ink-2); }
.map-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 3px; align-items: stretch; }
.map { position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; background: #000; isolation: isolate; }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .3s var(--ease-out), filter .3s var(--ease-out); filter: saturate(.85) brightness(.85); }
.map::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11,10,9,.95) 0%, rgba(11,10,9,.35) 55%, transparent 100%); }
@media (hover: hover) { .map:hover img { transform: scale(1.03); filter: saturate(1) brightness(1); } }
.map .body { padding: 22px; }
.map .num { font-family: var(--f-mono); font-size: .8rem; color: var(--orange-hi); letter-spacing: .1em; }
.map h3 { margin: 6px 0 8px; }
.map p { color: var(--bone); font-size: .98rem; margin: 0; max-width: 38ch; }
@media (max-width: 900px) { .map-grid { grid-template-columns: 1fr; } .map { min-height: 320px; } }

/* ---------- cómo se juega ---------- */
.play-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.side { padding: clamp(24px, 4vw, 52px); position: relative; background: var(--ink-3); border-top: 3px solid var(--bone); }
.side.anom { background: #0f1510; border-top-color: var(--ok); }
.side h3 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 8px 0 14px; }
.side ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.side li { padding-left: 22px; position: relative; }
.side li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 2px; background: var(--orange); }
.side.anom li::before { background: var(--ok); }
.side.anom .osd b { color: var(--ok); }
@media (max-width: 820px) { .play-split { grid-template-columns: 1fr; } }

.specs { margin-top: clamp(28px, 4vw, 48px); border: 1px solid var(--line); }
.specs h3 { padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 1.4rem; }
.specs dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.specs div { padding: 18px 20px; border-right: 1px solid var(--line); }
.specs div:last-child { border-right: 0; }
.specs dt { font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; color: var(--bone); line-height: 1; }
.specs dd { margin: 6px 0 0; color: var(--bone-dim); font-size: .95rem; line-height: 1.45; }
@media (max-width: 820px) { .specs dl { grid-template-columns: 1fr 1fr; } .specs div { border-bottom: 1px solid var(--line); } .specs div:nth-child(2n) { border-right: 0; } .specs div:nth-last-child(-n+2) { border-bottom: 0; } }

/* ---------- galería ---------- */
.mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-flow: dense; gap: 3px; }
.mosaic button { position: relative; padding: 0; border: 0; background: #000; cursor: zoom-in; overflow: hidden; aspect-ratio: 16 / 9; grid-column: span 2; color: inherit; }
.mosaic button.big { grid-column: span 4; grid-row: span 2; aspect-ratio: auto; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease-out); }
@media (hover: hover) { .mosaic button:hover img { transform: scale(1.04); } }
.mosaic .cap { position: absolute; left: 0; bottom: 0; padding: 18px 12px 9px; width: 100%; text-align: left; background: linear-gradient(to top, rgba(11,10,9,.85), transparent); font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bone); }
.mosaic button:active img { transform: scale(1.01); }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; } .mosaic button { grid-column: span 1; } .mosaic button.big { grid-column: span 2; grid-row: auto; aspect-ratio: 16/9; } }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; color: var(--bone); }
dialog.lightbox::backdrop { background: rgba(5,4,4,.94); }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: grid; place-items: center; grid-template-rows: 1fr auto; padding: 16px; gap: 10px; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 90px); width: auto; height: auto; margin: auto; object-fit: contain; }
.lightbox figcaption { font-family: var(--f-mono); letter-spacing: .08em; font-size: .85rem; text-transform: uppercase; color: var(--bone-dim); }
.lb-btn { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; font-size: 1.6rem; background: rgba(11,10,9,.7); color: var(--bone); border: 1px solid var(--line); cursor: pointer; }
.lb-btn:hover { border-color: var(--orange); color: var(--orange-hi); }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-close { top: 18px; translate: 0 0; right: 14px; }
@media (max-width: 600px) { .lb-btn { width: 44px; height: 44px; } }

/* ---------- tráiler ---------- */
.trailer { background: var(--ink-2); }
.player { position: relative; border: 1px solid var(--line); background: #000; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player .osd { position: absolute; top: 12px; left: 14px; pointer-events: none; z-index: 2; text-shadow: 0 1px 6px #000; }

/* ---------- servidores ---------- */
.signal { border: 1px solid var(--line); background: var(--ink-2); }
.signal-bar { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.state { display: inline-flex; align-items: center; gap: .6em; }
.state::before { content: ""; width: .7em; height: .7em; background: var(--bone-dim); border-radius: 50%; }
.state[data-s="live"] { color: var(--ok); } .state[data-s="live"]::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.state[data-s="off"] { color: var(--alarm); } .state[data-s="off"]::before { background: var(--alarm); }
.state[data-s="empty"] { color: var(--orange-hi); } .state[data-s="empty"]::before { background: var(--orange); }
.rows { margin: 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: 2.4fr 1.2fr 1fr .9fr; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.row:last-child { border-bottom: 0; }
.row.head { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bone-dim); padding-block: 10px; background: var(--ink); }
.row .nm { font-family: var(--f-label); font-weight: 600; font-size: 1.25rem; letter-spacing: .03em; overflow-wrap: anywhere; }
.row .mono { font-family: var(--f-mono); }
.pl { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); }
.pl .pips { display: flex; gap: 3px; } .pl .pips i { width: 7px; height: 14px; background: var(--line); } .pl .pips i.on { background: var(--orange-hi); }
.signal-msg { padding: 34px 20px; color: var(--bone-dim); }
.signal-msg strong { display: block; color: var(--bone); font-family: var(--f-display); font-size: 1.6rem; text-transform: uppercase; margin-bottom: 6px; }
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr auto; row-gap: 2px; }
  .row.head { display: none; }
  .row .nm { grid-column: 1 / -1; }
}

/* ---------- devlogs ---------- */
.logs { background: var(--ink-2); }
.log { display: grid; grid-template-columns: 170px 1fr; gap: clamp(16px, 3vw, 44px); padding: 30px 0; border-top: 1px solid var(--line); }
.log:last-of-type { border-bottom: 1px solid var(--line); }
.log .ver { font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--bone); }
.log .ver span { display: block; font-family: var(--f-mono); font-weight: 400; font-size: .75rem; letter-spacing: .1em; color: var(--orange-hi); margin-top: 8px; }
.log h3 { margin-bottom: 10px; }
.log p { color: var(--bone-dim); }
.log ul { margin: 0 0 12px; padding-left: 1.1em; color: var(--bone); } .log li { margin-bottom: 5px; }
.log a.more { font-family: var(--f-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--orange-hi); border-bottom: 1px solid var(--orange); }
@media (max-width: 700px) { .log { grid-template-columns: 1fr; gap: 8px; } .log .ver { font-size: 2rem; } }

/* ---------- prensa ---------- */
.press-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.facts { margin: 0; border: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 38% minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { padding: 12px 16px; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-dim); background: var(--ink-2); }
.facts dd { margin: 0; padding: 12px 16px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .hud-bl { display: none; }
  .hero-inner { padding-bottom: 84px; }
  .btn { font-size: 1.3rem; padding-inline: 22px; }
}
.kit { display: grid; gap: 14px; }
.kit ul { margin: 0 0 8px; padding: 0; list-style: none; font-family: var(--f-mono); font-size: .85rem; color: var(--bone-dim); }
.kit li::before { content: "▸ "; color: var(--orange); }
.desc { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .press-grid { grid-template-columns: 1fr; } }

/* ---------- cierre ---------- */
.closer { text-align: center; padding-bottom: clamp(60px, 9vw, 110px); }
.closer h2 { font-size: clamp(2.8rem, 9vw, 7rem); }
.closer h2 em { font-style: normal; color: var(--orange-hi); }
.closer .cta { justify-content: center; margin-top: 30px; }
.closer p { margin-inline: auto; color: var(--bone-dim); }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer p { margin: 0; max-width: none; }
footer a { text-decoration: none; border-bottom: 1px solid var(--line); }
footer a:hover { border-color: var(--orange); }

/* ---------- aparición (sólo opacidad y desplazamiento corto) ---------- */
.js .rv { opacity: 0; transform: translateY(10px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
  .crack .glow, .crack .core { stroke-dashoffset: 0; }
}
