/* STRIGOI — estilos comunes v2 «terminal de sangre»
   (nav, footer, botones, títulos, tipografía mono, atmósfera y
   micro-interacciones compartidas). Contrato de clases congelado:
   /overlay/ y futuras páginas dependen de estos nombres. */
@font-face {
  font-family: 'Cinzel';
  src: url('/sala/fuentes/Cinzel.ttf') format('truetype-variations');
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Bebas Neue';
  src: url('/sala/fuentes/BebasNeue.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
:root {
  /* paleta v2 */
  --negro: #070505;
  --panel: #100b0b;
  --panel-alto: #170f0f;
  --linea: rgba(255, 45, 70, 0.28);
  --linea-fuerte: rgba(255, 45, 70, 0.55);
  --sangre: #ff2d46;
  --sangre-suave: #ff8296;
  --fosforo: #3dff74;
  --fosforo-dim: rgba(61, 255, 116, 0.12);
  --hueso: #eae3d4;
  --ceniza: #a09389;

  /* tipografía */
  --mono: 'Cascadia Code', ui-monospace, Consolas, 'Courier New', monospace;
  --golpe: 'Bebas Neue', Haettenschweiler, Impact, sans-serif;

  /* alias legado (páginas aún no migradas: /overlay/) */
  --fondo: var(--negro);
  --texto: var(--hueso);
  --gris: var(--ceniza);
  --oro: var(--sangre);
  --oro-claro: var(--sangre-suave);
  --display: var(--mono);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-color: #7e1f2c #070505;
  scrollbar-width: thin;
}
body {
  background: var(--negro);
  color: var(--hueso);
  font-family: var(--mono);
  font-size: 15.5px;
  line-height: 1.65;
}
.contenedor { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 em {
  font-style: normal;
  color: var(--sangre);
  text-shadow: 0 0 18px rgba(255, 45, 70, 0.45);
}

::selection { background: rgba(255, 45, 70, 0.4); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #070505; }
::-webkit-scrollbar-thumb {
  background: #5e1620;
  border-radius: 0; border: 2px solid #070505;
}
::-webkit-scrollbar-thumb:hover { background: var(--sangre); }

/* atmósfera: scanlines CRT + grano fílmico */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 1999;
  pointer-events: none; opacity: 0.045;
  background: repeating-linear-gradient(0deg,
    transparent 0 2px, #000 2px 3px);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 2000;
  pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--fosforo); outline-offset: 3px; border-radius: 0;
}

/* ---- nav (prompt de terminal) ---- */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 5, 5, 0.93);
  border-bottom: 1px solid var(--linea);
  backdrop-filter: blur(6px);
}
nav .contenedor { display: flex; align-items: center; justify-content: space-between; padding: 13px 24px; flex-wrap: wrap; gap: 8px; }
.logo {
  font-size: 16px; color: var(--hueso); text-decoration: none;
  font-weight: bold; letter-spacing: 0.06em;
}
.logo::before { content: "strigoi@studio:~$ "; color: var(--sangre); }
.logo span { color: var(--ceniza); font-weight: normal; }
.logo-escudo { height: 18px; width: auto; margin-right: 9px; vertical-align: -3px; }
nav .enlaces { display: flex; flex-wrap: wrap; }
nav a.enlace { color: var(--ceniza); text-decoration: none; margin-left: 20px; font-size: 14px; }
nav a.enlace::before { content: "./"; color: var(--sangre); opacity: 0.7; }
nav a.enlace:hover { color: var(--fosforo); }
nav a.enlace[aria-current="page"] { color: var(--hueso); border-bottom: 1px solid var(--sangre); }

/* ---- títulos de sección ---- */
section { padding: 64px 0; }
section:nth-of-type(even) { background: #0b0808; }
h2.titulo { text-align: center; font-size: 26px; margin-bottom: 8px; }
h2.titulo::before { content: "$ "; color: var(--sangre); }
h2.titulo::after {
  content: ""; display: block; width: min(340px, 60%); height: 1px; margin: 14px auto 0;
  background: repeating-linear-gradient(90deg, var(--linea-fuerte) 0 10px, transparent 10px 16px);
}
p.intro-seccion { text-align: center; color: var(--ceniza); max-width: 640px; margin: 16px auto 0; font-size: 14.5px; }

/* ---- botones tipo comando ---- */
.cta-fila { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.boton {
  display: inline-block; padding: 13px 28px;
  border-radius: 0;
  text-decoration: none; font-size: 15px; font-weight: bold; letter-spacing: 0.05em;
  font-family: var(--mono);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.boton:hover { transform: translate(0, -2px); }
.boton.primario {
  background: var(--sangre); color: #1a0306;
  border: 1px solid var(--sangre);
  box-shadow: 0 0 22px rgba(255, 45, 70, 0.35);
}
.boton.primario:hover { background: var(--sangre-suave); border-color: var(--sangre-suave); }
.boton.secundario { border: 1px solid var(--linea-fuerte); color: var(--sangre-suave); }
.boton.secundario:hover { border-color: var(--sangre); background: rgba(255, 45, 70, 0.07); color: var(--hueso); }

/* ---- acordeones estilo log ---- */
.faq { max-width: 700px; margin: 36px auto 0; }
.faq details {
  background: var(--panel); border: 1px solid var(--linea);
  border-radius: 0; padding: 15px 20px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; color: var(--hueso); font-weight: bold; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "> "; color: var(--fosforo); }
.faq summary::after {
  content: "[+]"; float: right; color: var(--sangre); font-size: 13px;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { content: "[-]"; }
.faq details p { margin-top: 10px; color: var(--ceniza); font-size: 14.5px; }

/* ---- clips (landing y /overlay/) ---- */
.clips-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-top: 40px; }
.tarjeta-clip {
  position: relative; overflow: hidden; border-radius: 0;
  border: 1px solid var(--linea); background: #000; cursor: pointer;
}
.tarjeta-clip:hover { border-color: var(--sangre); }
.tarjeta-clip video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.tarjeta-clip figcaption { padding: 12px 16px 14px; background: var(--panel); color: var(--ceniza); font-size: 14px; }
.tarjeta-clip figcaption b { color: var(--sangre-suave); display: block; margin-bottom: 2px; }
.tarjeta-clip .pista {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(7, 5, 5, 0.78); border: 1px solid rgba(61, 255, 116, 0.5);
  color: var(--fosforo); font-size: 11px; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.tarjeta-clip.reproduciendo .pista { opacity: 0; }

/* ---- aparición al hacer scroll (revelar.js añade .reveal) ---- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---- footer ---- */
footer {
  padding: 56px 0 40px; text-align: center; color: #6d5f5f; font-size: 13px;
  border-top: 1px solid var(--linea); background: #050303;
}
footer .pie-enlaces { margin: 12px 0; }
footer .pie-enlaces a { color: var(--sangre-suave); text-decoration: none; margin: 0 10px; }
footer .pie-enlaces a:hover { color: var(--fosforo); }
footer .aviso { max-width: 600px; margin: 14px auto 0; font-size: 11.5px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton { transition: none; }
  h1 em { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .faq summary::after { transition: none; }
}

/* ── móvil perfecto: 720px y 480px ── */
@media (max-width: 720px) {
  nav .contenedor { padding: 12px 16px; gap: 10px; }
  nav .enlaces { gap: 6px 14px; }
  nav a.enlace { margin-left: 0; padding: 8px 2px; min-height: 44px; display: inline-flex; align-items: center; }
  .contenedor { padding: 0 16px; }
  header { padding: 56px 0 48px; }
  header h1 { font-size: clamp(28px, 8vw, 42px); }
  .vitrina { margin: 32px auto 0; }
  .skins-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rejilla { grid-template-columns: 1fr; }
  .precios { grid-template-columns: 1fr; max-width: 420px; }
  .wallets { grid-template-columns: 1fr; max-width: 420px; }
  .pasos { grid-template-columns: 1fr; }
  .boton { min-height: 44px; }
}
@media (max-width: 480px) {
  .skins-grid { grid-template-columns: 1fr; }
  .cta-fila { flex-direction: column; }
  .cta-fila .boton { width: 100%; text-align: center; }
  nav .enlaces { font-size: 13px; }
  h2.titulo { font-size: 22px; }
}
/* touch: sin delay y sin highlight azul feo */
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html { overflow-x: hidden; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }
