/* Quadium — high-tech shell (HTML5 + CSS3) */

:root {
  --core: #1a1a3a;
  --core-deep: #0f0f22;
  --core-light: #252548;
  --text: #eef0ff;
  --text-dim: #a8add4;
  --accent: #5ec8ff;
  --accent-soft: rgba(94, 200, 255, 0.45);
  --glow-cyan: rgba(120, 220, 255, 0.55);
  --glow-violet: rgba(160, 120, 255, 0.35);
  --header-edge: rgba(255, 255, 255, 0.08);
  --footer-bg: rgba(8, 10, 28, 0.92);
  --steam: #1c2333;
  --steam-dark: #0a0d14;
  --steam-glow: rgba(100, 200, 255, 0.22);
  --steam-glow-strong: rgba(120, 220, 255, 0.55);
  --panel: rgba(20, 22, 48, 0.65);
  --panel-border: rgba(120, 200, 255, 0.12);
  --font-display: "Jura", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-heading-mono: "Share Tech Mono", ui-monospace, monospace;
  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--core-deep);
}

/* Titulares principales: monoespacio + brillo tipo fósforo (CRT) */
h1,
h2 {
  font-family: var(--font-heading-mono);
  font-weight: 400;
}

h1 {
  color: #e8fff2;
  text-shadow:
    0 0 5px rgba(160, 255, 210, 0.5),
    0 0 14px rgba(100, 240, 200, 0.35),
    0 0 28px rgba(70, 220, 180, 0.2),
    0 0 48px rgba(40, 200, 160, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.55);
}

h2 {
  color: #b8e8d8;
  text-shadow:
    0 0 4px rgba(140, 255, 210, 0.28),
    0 0 12px rgba(80, 220, 190, 0.18),
    0 0 24px rgba(50, 200, 170, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.45);
}

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

a {
  color: inherit;
}

/* —— Fondo radial + partículas —— */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-bg__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(100, 140, 255, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 80% 100%, rgba(80, 60, 180, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 10% 60%, rgba(40, 100, 160, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, #1a1a3a 0%, #12122a 42%, var(--core-deep) 100%);
}

/* particles.js: capa a tamaño viewport, por encima del degradado, bajo el contenido */
.particles-host {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.94;
}

.particles-host canvas {
  display: block;
}

/* —— Skip —— */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  padding: 0.65rem 1rem;
  background: #fff;
  color: #0a0a18;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 0 0 3px var(--accent);
}

/* —— Nav toggle (accesible, sin bloquear layout) —— */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* —— Cabecera: logo | nav centrado | Steam —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--header-edge);
  background: linear-gradient(180deg, rgba(12, 12, 28, 0.92) 0%, rgba(12, 12, 28, 0.75) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__bar {
  display: grid;
  grid-template-columns: minmax(0, 200px) 1fr minmax(0, 220px);
  align-items: center;
  gap: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 4vw, 1.75rem);
  min-height: var(--header-h);
}

.logo {
  justify-self: start;
  line-height: 0;
  border-radius: 10px;
  transition: transform 0.25s var(--ease-out);
}

.logo:hover {
  transform: translateY(-1px);
}

.logo--glow {
  box-shadow:
    0 0 0 1px rgba(120, 200, 255, 0.15),
    0 0 24px rgba(100, 190, 255, 0.25),
    0 0 48px rgba(140, 100, 255, 0.12);
  border-radius: 12px;
}

.logo--glow img {
  border-radius: 10px;
}

.site-nav {
  justify-self: center;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 2rem;
}

.site-nav__link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--text);
  outline: none;
}

.site-nav__link:hover::after,
.site-nav__link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav__link[aria-current="page"] {
  color: var(--text);
}

.site-nav__link[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-header__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-steam {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--text);
  background: var(--steam);
  border: 1px solid rgba(140, 210, 255, 0.18);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 0 14px var(--steam-glow),
    0 4px 18px rgba(0, 0, 0, 0.4);
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.btn-steam__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: block;
  opacity: 0.95;
}

.btn-steam__label {
  line-height: 1;
}

.btn-steam:hover,
.btn-steam:focus-visible {
  background: var(--steam-dark);
  color: #f2f7ff;
  border-color: var(--steam-glow-strong);
  box-shadow:
    0 0 0 1px rgba(140, 230, 255, 0.5),
    0 0 22px rgba(94, 200, 255, 0.45),
    0 0 40px rgba(120, 200, 255, 0.28),
    0 6px 28px rgba(0, 0, 0, 0.55);
  outline: none;
}

.btn-steam:hover .btn-steam__icon,
.btn-steam:focus-visible .btn-steam__icon {
  opacity: 1;
}

.nav-burger {
  display: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--header-edge);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-burger:hover {
  color: var(--text);
  border-color: rgba(94, 200, 255, 0.35);
}

/* —— Móvil: menú desplegable, un solo Steam —— */
@media (max-width: 820px) {
  .site-header__bar {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .logo {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header__actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.45s var(--ease-out),
      opacity 0.3s ease;
  }

  .nav-burger {
    display: inline-flex;
  }

  .site-header .nav-toggle:checked ~ .site-header__bar .site-nav {
    max-height: 280px;
    opacity: 1;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--header-edge);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .site-nav__link {
    font-size: 0.82rem;
  }
}

/* —— Principal —— */
.main {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  background: transparent;
}

.main--inner {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 1.75rem);
}

/* —— Hero home —— */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(0.65rem, 2vw, 1.35rem) clamp(1rem, 4vw, 1.75rem) clamp(1.75rem, 4vw, 3rem);
  max-width: min(960px, 100%);
  margin: 0 auto;
}

.hero__intro {
  width: 100%;
  margin-bottom: clamp(0.6rem, 1.6vw, 1rem);
  padding: 0 0.35rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.55rem);
  line-height: 1.06;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__tagline {
  margin: 0.4rem 0 0;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(0.9rem, 1.85vw, 1.05rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.35;
}

.hero__media {
  width: 100%;
  max-width: min(800px, 94vw);
  margin: 0;
  padding: 0;
}

.media-glow {
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(120, 200, 255, 0.35), rgba(160, 120, 255, 0.25), rgba(120, 200, 255, 0.2));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 40px rgba(80, 160, 255, 0.18),
    0 0 80px rgba(120, 100, 220, 0.12),
    0 24px 48px rgba(0, 0, 0, 0.45);
}

.hero__shot {
  width: 100%;
  max-width: min(800px, 94vw);
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  image-rendering: auto;
  image-rendering: high-quality;
}

/* Tamaños en px enteros vía workbench-fit.js: evita escalado borroso por subpíxeles */
.hero__media .hero__shot--snap {
  width: auto;
  max-width: none;
  height: auto;
}

.hero__lightbox-trigger {
  display: block;
  cursor: pointer;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  outline: none;
}

.hero__lightbox-trigger:focus-visible {
  box-shadow: 0 0 0 2px var(--core-deep), 0 0 0 4px rgba(94, 200, 255, 0.65);
}

/* —— Lightbox (nativo, sin librerías) —— */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10050;
  box-sizing: border-box;
}

.lightbox__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: rgba(2, 6, 18, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: min(5vw, 2.5rem);
  box-sizing: border-box;
  pointer-events: none;
}

.lightbox__img {
  pointer-events: auto;
  max-width: min(90vw, 3814px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
  image-rendering: high-quality;
  border-radius: 12px;
  border: 1px solid rgba(120, 200, 255, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 48px rgba(80, 160, 255, 0.28),
    0 0 96px rgba(120, 100, 220, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.65);
}

.lightbox .lightbox__img--snap {
  max-width: none;
  max-height: none;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  pointer-events: auto;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(120, 200, 255, 0.35);
  border-radius: 8px;
  background: rgba(12, 16, 36, 0.92);
  color: #e8f0ff;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 0 18px rgba(94, 200, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(20, 28, 52, 0.98);
  border-color: rgba(160, 220, 255, 0.55);
  box-shadow:
    0 0 28px rgba(94, 200, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Páginas internas —— */
.content-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.content-panel__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.content-panel__lead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.65;
}

.content-panel__text {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.7;
}

.content-panel__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.content-panel__list li {
  margin-bottom: 0.5rem;
}

.content-panel__list li::marker {
  color: var(--accent);
}

/* —— Pie —— */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1.25rem 1rem;
  text-align: center;
  background: var(--footer-bg);
  border-top: 1px solid var(--header-edge);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.site-footer__disclaimer {
  margin: 0.65rem auto 0;
  max-width: 44rem;
  padding: 0 0.5rem;
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  opacity: 0.72;
}

.site-footer__social {
  margin: 0.55rem 0 0;
}

.site-footer__youtube {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #c9d6ff;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer__youtube:hover,
.site-footer__youtube:focus-visible {
  color: #ffffff;
  opacity: 1;
}

.site-footer__youtube svg {
  color: #ff5b6a;
}

