/* ═══════════════════════════════════════════════════════════════════
   Forge to Studio — landing. Estética coherente con Forge to Stars:
   fondo espacial oscuro, Orbitron (títulos) + Inter (cuerpo), dorado + cian.
   Estático, ligero, responsive. Sin dependencias.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg:        #06080e;
  --bg-2:      #0a0e18;
  --panel:     #0c1020;
  --line:      #1c2436;
  --text:      #e6ecf6;
  --text-dim:  #a0acc0;
  --gold:      #d4a843;
  --gold-2:    #b8942a;
  --cyan:      #2eb8c8;
  --cyan-2:    #36d6c3;
  --blue:      #3a7bd5;
  --blue-2:    #4d8de6;
  --radius:    14px;
  --maxw:      1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; }

/* Fondo estelar: gradientes radiales + puntos sutiles */
.starfield {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 700px at 75% -10%, rgba(58,123,213,0.16), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(46,184,200,0.12), transparent 60%),
    radial-gradient(700px 500px at 50% 40%, rgba(212,168,67,0.06), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.starfield::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent),
    radial-gradient(1px 1px at 80% 20%, #cfe3ff 50%, transparent),
    radial-gradient(1px 1px at 40% 70%, #fff 50%, transparent),
    radial-gradient(1px 1px at 65% 85%, #ffe9b8 50%, transparent),
    radial-gradient(1px 1px at 90% 60%, #fff 50%, transparent),
    radial-gradient(1px 1px at 12% 80%, #cfe3ff 50%, transparent);
  opacity: 0.5;
}

/* ─── NAV ────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(6,8,14,0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__brand img { height: 38px; display: block; }
.nav__links { display: flex; align-items: center; gap: clamp(0.7rem, 2vw, 1.8rem); flex-wrap: wrap; justify-content: flex-end; }
.nav__links a {
  color: var(--text-dim); text-decoration: none; font-weight: 500;
  font-size: 0.95rem; letter-spacing: 0.02em; transition: color 0.2s;
}
.nav__links a:hover { color: var(--gold); }

/* ─── Contenedores de sección ────────────────────────── */
main > section { max-width: var(--maxw); margin-inline: auto; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem); }

.section__kicker {
  font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.28em; color: var(--cyan); margin-bottom: 0.7rem;
}
.section__title {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); line-height: 1.1; margin-bottom: 1rem;
}

/* ─── HERO (estudio) — full-bleed: el fondo ocupa TODO el ancho, el
   contenido se centra a --maxw dentro. Antes era una "cajita" a 1120px
   flotando con vacío a los lados en monitores grandes. ─────────────── */
.hero {
  max-width: none; width: 100vw; margin-left: calc(50% - 50vw);
  border-radius: 0; border: 0; border-bottom: 1px solid var(--line);
  text-align: center; position: relative; overflow: hidden;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 7vw, 5.5rem) !important;
  background:
    linear-gradient(180deg, rgba(6,8,14,0.68), rgba(6,8,14,0.92)),
    url('assets/hero-art.jpg') center/cover no-repeat;
}
.hero__inner { max-width: 820px; margin-inline: auto; }
.hero__logo { width: min(420px, 82vw); height: auto; filter: drop-shadow(0 8px 40px rgba(58,123,213,0.35)); }
.hero__eyebrow {
  font-family: 'Orbitron', sans-serif; font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.32em; color: var(--gold); margin: 1.4rem 0 0.8rem;
}
.hero__title {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.08;
  background: linear-gradient(120deg, #fff 20%, var(--blue-2) 70%, var(--cyan-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 640px; margin: 1.3rem auto 2rem; color: var(--text-dim); font-size: 1.1rem; }
.hero__cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ─── Botones ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 10px; font-weight: 600;
  font-size: 0.98rem; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1206;
  box-shadow: 0 6px 24px rgba(212,168,67,0.28);
}
.btn--gold:hover { box-shadow: 0 10px 32px rgba(212,168,67,0.42); }
.btn--ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn--steam {
  background: linear-gradient(135deg, var(--blue), #1b2838); color: #fff;
  box-shadow: 0 6px 24px rgba(58,123,213,0.3); font-size: 1.05rem; padding: 1rem 1.8rem;
}
.btn--steam:hover { box-shadow: 0 10px 34px rgba(58,123,213,0.45); }
.btn__icon { font-size: 0.85em; }

/* ─── Escaparate de juego (página estudio) ───────────── */
.gamecard {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: center; text-decoration: none; color: inherit;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem); transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.gamecard:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(46,184,200,0.12); }
.gamecard__art {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(58,123,213,0.16), transparent 70%);
  border-radius: var(--radius); padding: 1rem;
}
.gamecard__frame {
  position: relative; width: 100%; border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
}
.gamecard__shot { width: 100%; height: auto; display: block; }
.gamecard__logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(82%, 340px); height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.9)) drop-shadow(0 5px 18px rgba(0,0,0,0.6));
}
.gamecard__name { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 0.7rem; }
.gamecard__tag { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 1rem; }
.gamecard__status {
  display: inline-block; font-family: 'Orbitron', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.12em; color: var(--gold); border: 1px solid rgba(212,168,67,0.4);
  border-radius: 999px; padding: 0.3rem 0.8rem; margin-bottom: 1.1rem;
}
.gamecard__link { display: block; color: var(--cyan); font-weight: 600; }
.gamecard:hover .gamecard__link { color: var(--cyan-2); }

/* ─── Estudio ────────────────────────────────────────── */
.studio { text-align: center; }
.studio__text { max-width: 720px; margin: 0 auto; color: var(--text-dim); font-size: 1.12rem; }

/* ─── Prensa + Contacto ──────────────────────────────── */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.col {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.col__title { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.4rem; margin-bottom: 0.6rem; }
.col p { color: var(--text-dim); margin-bottom: 1.2rem; }
.contact__mail { display: inline-block; color: var(--cyan); font-weight: 600; text-decoration: none; margin-bottom: 1.2rem; }
.contact__mail:hover { color: var(--cyan-2); }
.socials { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.socials a { color: var(--text-dim); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.socials a:hover { color: var(--gold); }

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line); text-align: center;
  padding: 2.5rem 1rem; margin-top: 2rem;
}
.footer__logo { height: 42px; opacity: 0.85; margin-bottom: 0.8rem; }
.footer__copy { color: var(--text-dim); font-size: 0.88rem; }

/* ─── Selector de idioma con BANDERAS (dropdown propio) ───────────────
   El <select> nativo no admite imágenes de forma fiable entre navegadores,
   y los emoji de bandera NO se renderizan en Windows. Por eso: banderas SVG
   + dropdown construido por i18n.js. ───────────────────────────────── */
.langsel { position: relative; font-family: 'Inter', sans-serif; }
.langsel__btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.03); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 0.35rem 0.6rem; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: border-color 0.2s;
}
.langsel__btn:hover, .langsel.open .langsel__btn { border-color: var(--cyan); }
.langsel__flag { width: 22px; height: 15px; border-radius: 2px; display: block; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(0,0,0,0.35) inset; }
.langsel__cur { min-width: 0; }
.langsel__caret { width: 8px; height: 8px; opacity: 0.6; transition: transform 0.2s; }
.langsel.open .langsel__caret { transform: rotate(180deg); }
.langsel__menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 0.4rem; box-shadow: 0 14px 44px rgba(0,0,0,0.55); display: none;
  grid-template-columns: repeat(5, auto); gap: 0.25rem;
}
.langsel.open .langsel__menu { display: grid; }
.langsel__opt {
  display: flex; align-items: center; justify-content: center;
  padding: 0.3rem; border: 0; border-radius: 6px; background: none; cursor: pointer;
}
.langsel__opt .langsel__flag { width: 28px; height: 19px; }
.langsel__opt:hover, .langsel__opt.sel { background: #243352; box-shadow: 0 0 0 1px var(--cyan) inset; }

/* ─── Página del juego: hero, features, galería, CTA final ────── */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.ghero { background: none !important; border: none; text-align: center; padding-top: clamp(1.5rem, 4vw, 3rem) !important; }
.ghero__frame {
  position: relative; max-width: 1100px; margin: 0 auto; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 60px rgba(0,0,0,0.5);
}
.ghero__banner { width: 100%; height: auto; display: block; }
.ghero__logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(74%, 660px); height: auto;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.9)) drop-shadow(0 6px 26px rgba(0,0,0,0.65));
}
.game__note { margin-top: 0.9rem; color: var(--text-dim); font-size: 0.9rem; letter-spacing: 0.03em; }
.features-sec { text-align: center; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem; margin-top: 2.2rem; text-align: left;
}
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color 0.2s, transform 0.2s;
}
.feature:hover { border-color: var(--cyan); transform: translateY(-2px); }
.feature h3 { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--gold); }
.feature p { color: var(--text-dim); font-size: 0.98rem; }

/* ─── Galería ────────────────────────────────────────── */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.shot {
  position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.45s ease; }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 0.7rem 0.9rem;
  font-family: 'Orbitron', sans-serif; font-size: 0.82rem; letter-spacing: 0.05em;
  color: var(--text); background: linear-gradient(180deg, transparent, rgba(6,8,14,0.88));
}
.gallery__note {
  text-align: center; color: var(--text-dim); font-size: 0.82rem;
  letter-spacing: 0.06em; margin-top: 1.1rem; opacity: 0.75;
}

/* Lightbox — abre la captura a pantalla completa (sin recorte) */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
  background: rgba(3,5,10,0.92); backdrop-filter: blur(4px); cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 80px rgba(0,0,0,0.7); }
.lightbox__close {
  position: absolute; top: 1rem; right: 1.2rem; font-size: 2rem; line-height: 1;
  color: #fff; background: none; border: 0; cursor: pointer; opacity: 0.8;
}
.lightbox__close:hover { opacity: 1; }

.finalcta { text-align: center; }
.finalcta .section__title { margin-bottom: 1.5rem; }
.backlink { display: inline-block; margin-top: 1.6rem; color: var(--text-dim); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.backlink:hover { color: var(--cyan); }

/* ─── Press kit ──────────────────────────────────────── */
.press-hero { text-align: center; }
.press-hero .section__title { margin-bottom: 0.6rem; }
.press-lead { max-width: 720px; margin: 0 auto 1.6rem; color: var(--text-dim); font-size: 1.08rem; }
.factsheet {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem;
  margin: 1.5rem 0;
}
.fact {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem;
}
.fact dt { font-family: 'Orbitron', sans-serif; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--cyan); text-transform: uppercase; margin-bottom: 0.35rem; }
.fact dd { color: var(--text); font-size: 0.98rem; }
.fact dd a { color: var(--cyan); }
.press-block { max-width: 820px; margin: 0 auto; }
.press-block h2 { font-family: 'Orbitron', sans-serif; font-size: 1.4rem; margin: 2.2rem 0 0.8rem; }
.press-block p { color: var(--text-dim); margin-bottom: 1rem; }
.press-block ul { color: var(--text-dim); padding-left: 1.2rem; margin-bottom: 1rem; display: grid; gap: 0.4rem; }
.assets-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; }
.asset {
  display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text-dim); transition: border-color 0.2s, transform 0.2s;
}
.asset:hover { border-color: var(--cyan); transform: translateY(-2px); color: var(--text); }
.asset img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #05070d; }
.asset span { display: block; padding: 0.6rem 0.8rem; font-size: 0.85rem; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .gamecard { grid-template-columns: 1fr; text-align: center; }
  .gamecard__art { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 780px) {
  .nav__links { gap: 0.9rem; font-size: 0.85rem; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .nav { flex-wrap: wrap; }
  .nav__brand img { height: 30px; }
  .nav__links a { font-size: 0.82rem; }
}
