/* ==========================================================
   Guzzart Productions — estilos del sitio
   Colores, tipografías y espaciados viven en :root.
   Para cambiar el acento de una página, define --accent
   en la etiqueta <body> (ver las páginas de juego).
   ========================================================== */

:root {
  --bg: #0B0B0C;
  --surface: #161618;
  --border: #2A2A2E;
  --border-strong: #3A3A3F;
  --text: #F2F0EB;
  --muted: #9A9893;
  --on-accent: #0B0B0C;

  --brand: #BB69F7;
  --accent: var(--brand);

  --font-display: 'Clash Display', 'Archivo', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-stencil: 'Saira Stencil One', 'Archivo', sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 32px);
  --radius: 8px;
  --ease: 0.3s ease;
}

*, *::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(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--text); text-underline-offset: 3px; transition: color var(--ease); }
a:hover { color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 4px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Tipografía ---------- */

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.02em; line-height: 1.05; }

.eyebrow {
  font-family: var(--font-body);
  font-stretch: 125%;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow.accent { color: var(--accent); }

.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 640px; margin: 0; }

.num {
  font-family: var(--font-stencil);
  font-size: clamp(64px, 8vw, 88px);
  line-height: 0.8;
  color: var(--accent);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 26px; border-radius: 4px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600; text-decoration: none;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn-ghost { border: 1px solid var(--border-strong); background: rgba(11, 11, 12, 0.6); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { min-height: 60px; padding: 18px 32px; font-size: 18px; }
.btn svg { width: 14px; height: 14px; }

.link-accent { color: var(--accent); font-weight: 600; text-decoration: none; transition: color var(--ease); }
.link-accent:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Encabezado ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand-link { display: flex; align-items: center; flex-shrink: 0; }
.brand-link img { height: 38px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--accent); }
.lang { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--text); }
.lang [aria-current="true"] { color: var(--text); font-weight: 600; }
.site-nav .btn { min-height: 44px; padding: 10px 20px; font-size: 15px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border-strong); border-radius: 4px;
  background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; font-size: 18px; }
  .site-nav li:not(.lang) a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .site-nav .lang { font-size: 15px; }
  .site-nav .lang a { display: inline-block; padding: 10px 6px; }
  .site-nav .lang { padding: 16px 0; }
  .site-nav .btn { margin-top: 8px; width: 100%; min-height: 52px; }
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--border); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(22, 22, 24, 0.96) 0%, rgba(22, 22, 24, 0.78) 45%, rgba(22, 22, 24, 0.25) 100%);
}
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 26px; padding-block: clamp(96px, 14vw, 160px) clamp(80px, 10vw, 120px); }
.hero h1 { font-size: clamp(56px, 10vw, 136px); line-height: 0.92; letter-spacing: -0.035em; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3vw, 36px); line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 700px) {
  .hero::after { background: rgba(22, 22, 24, 0.86); }
  .game-hero::after { background: linear-gradient(0deg, rgba(11, 11, 12, 0.98) 0%, rgba(11, 11, 12, 0.8) 60%, rgba(11, 11, 12, 0.45) 100%); }
}

/* ---------- Franja de premio ---------- */

.award { border-bottom: 1px solid var(--border); }
.award .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 26px; }
.award svg { width: 28px; height: 28px; color: var(--accent); }
.award p { margin: 0; font-size: 16px; }

/* ---------- Secciones ---------- */

.section { padding-block: clamp(80px, 10vw, 120px); }
.section + .section { padding-top: 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.section-title { display: flex; flex-direction: column; gap: 16px; }
.section-title .title-row { display: flex; align-items: flex-end; gap: 24px; }
.section-title h2 { font-size: clamp(36px, 5vw, 52px); }
.group + .group { margin-top: 64px; }
.group > .eyebrow { margin-bottom: 20px; }

/* ---------- Tarjetas de proyecto ----------
   Cada tarjeta define --card-color. Al pasar el cursor
   (o al enfocar su enlace) el acento cambia a ese color. */

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 16px 28px;
  transition: border-color var(--ease);
}
.card:hover, .card:focus-within { --accent: var(--card-color, var(--brand)); border-color: var(--accent); }
.card-media { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--bg); border: 1px solid var(--border); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media::before { content: ""; position: absolute; top: 0; left: 22px; z-index: 1; width: 44px; height: 6px; background: var(--accent); transition: background-color var(--ease); }
.card-body { display: flex; flex-direction: column; gap: 14px; padding-inline: 8px; flex: 1; }
.card h3, .card h4 { font-size: clamp(26px, 2.6vw, 34px); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .credit { font-size: 14px; color: var(--muted); }
.card .link-accent { margin-top: auto; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.tag { border: 1px solid var(--border-strong); color: var(--muted); padding: 5px 10px; border-radius: 3px; }
.tag.accent { border-color: var(--accent); color: var(--accent); transition: color var(--ease), border-color var(--ease); }

/* Prototipos: tarjetas de texto en rejilla */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tile { background: var(--surface); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.tile .eyebrow { letter-spacing: 0.12em; font-size: 12px; color: var(--accent); font-stretch: 100%; }
.tile h3, .tile h4 { font-size: 24px; letter-spacing: -0.01em; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile .meta { font-size: 14px; color: var(--muted); }
.tile svg { width: 28px; height: 28px; color: var(--accent); }

/* ---------- Estudio ---------- */

.studio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 6vw, 72px); align-items: center; }
.studio-text { display: flex; flex-direction: column; gap: 24px; }
.studio-text > p { margin: 0; font-size: clamp(17px, 1.6vw, 19px); }
.motto { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; color: var(--accent); margin: 0; }
.founder { padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.founder .name { font-family: var(--font-display); font-weight: 600; font-size: 24px; }
.founder .role { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.founder p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.studio-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }

/* ---------- Contacto ---------- */

.contact .container { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; }
.contact-text { display: flex; flex-direction: column; gap: 20px; max-width: 680px; }
.contact h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.03em; }
.contact-text p { margin: 0; color: var(--muted); font-size: 18px; }
.contact-actions { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.contact-actions .mail { font-size: 15px; }
.contact-actions .press { font-size: 14px; color: var(--muted); }
.contact-actions .press a { color: var(--muted); }

/* ---------- Servicios ---------- */

.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.page-hero .container { display: flex; flex-direction: column; gap: 24px; padding-block: clamp(80px, 11vw, 128px) clamp(64px, 8vw, 96px); }
.page-hero h1 { font-size: clamp(48px, 7.5vw, 104px); line-height: 0.95; letter-spacing: -0.03em; max-width: 1000px; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }

.stages { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.stages li { display: flex; align-items: center; gap: 10px; }
.stages span { border: 1px solid var(--border); background: var(--bg); padding: 10px 16px; border-radius: 3px; }
.stages li + li::before { content: "→"; color: var(--accent); }

.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.pillar .title-row { display: flex; align-items: flex-end; gap: 18px; }
.pillar .num { font-size: 64px; }
.pillar h2 { font-size: clamp(26px, 2.6vw, 32px); }
.pillar > p { margin: 0; font-size: 17px; }
.pillar ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.pillar li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.pillar li strong { font-size: 15px; font-weight: 600; }
.pillar li span { font-size: 14px; color: var(--muted); }
.pillar .for { font-size: 14px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--border); }
.steps li:first-child { border-top-color: var(--accent); }
.steps .step-num { font-family: var(--font-stencil); font-size: 40px; line-height: 1; color: var(--accent); }
.steps h3 { font-size: 22px; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.did { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.did .eyebrow { font-size: 12px; letter-spacing: 0.12em; font-stretch: 100%; }
.did p { color: var(--text); font-size: 15px; }

/* ---------- Página de juego ---------- */

.game-hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; border-bottom: 1px solid var(--border); overflow: hidden; }
.game-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 11, 12, 0.98) 0%, rgba(11, 11, 12, 0.6) 45%, rgba(11, 11, 12, 0.15) 100%); }
.game-hero .container { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; padding-block: 120px 72px; }
.game-hero h1 { font-size: clamp(48px, 8vw, 112px); line-height: 0.95; letter-spacing: -0.03em; max-width: 900px; }
.game-hero .lead { color: #D9D6CF; }

.about { display: flex; flex-wrap: wrap; gap: 56px; }
.about-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.about-text p { margin: 0; font-size: 19px; }
.facts { flex: 1 1 300px; margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 24px; align-self: flex-start; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-size: 15px; text-align: right; }
.facts .accent { color: var(--accent); }

.media-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.shots .media-frame { border-radius: 6px; }

/* ---------- Pie ---------- */

.site-footer { border-top: 1px solid var(--border); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 40px; font-size: 14px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { height: 34px; width: auto; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.social a { color: var(--muted); text-decoration: none; }
.social a:hover { color: var(--text); }

/* ---------- 404 ---------- */

.not-found { min-height: 70vh; display: flex; align-items: center; }
.not-found .container { display: flex; flex-direction: column; gap: 24px; padding-block: 96px; }
.not-found .num { font-size: clamp(96px, 16vw, 180px); }

/* ---------- Movimiento reducido ---------- */

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