/* ==========================================================================
   Botiga Games — estilos globales
   Paleta tomada del logo: hierro, roble, ladrillo y ámbar.
   ========================================================================== */

:root {
  --bg: #120f0e;
  --bg-2: #1a1614;
  --surface: #221c19;
  --surface-2: #2b2420;
  --line: #3a312b;
  --text: #ece0c8;
  --text-dim: #b3a58e;
  --text-mute: #7f7263;

  --brick: #a53a37;
  --brick-hi: #c9504a;
  --oak: #d9822b;
  --oak-hi: #f0a846;
  --lantern: #ffc85a;
  --iron: #4a4a55;
  --veil: #7fb3c9;
  --veil-hi: #bfe3f0;

  --radius: 4px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-pixel: "Pixelify Sans", "Silkscreen", monospace;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-type: "Special Elite", "Courier New", monospace;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

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;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
.pixelated { image-rendering: pixelated; image-rendering: crisp-edges; }

a { color: var(--oak-hi); text-decoration: none; }
a:hover { color: var(--lantern); }

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

h1, h2, h3, h4 {
  font-family: var(--font-pixel);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .5em;
  letter-spacing: .01em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--lantern);
  color: var(--bg);
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 28px; color: var(--text); }
.brand .brand-logo { height: 56px; width: auto; }
/* El título es pixel art de 93×13: sólo múltiplos exactos (×4, ×3, ×2) para que se vea nítido */
.brand .brand-title { height: 52px; width: auto; }
@media (max-width: 1100px) { .brand .brand-title { height: 39px; } }
@media (max-width: 440px) { .brand { gap: 16px; } .brand .brand-logo { height: 48px; } .brand .brand-title { height: 26px; } }
.brand:hover { color: var(--text); }

.nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-pixel);
  font-size: 17px;
  color: var(--text-dim);
  border-radius: var(--radius);
  transition: color .15s, background .15s;
}

.nav a:hover { color: var(--text); background: var(--surface); }

.nav a[aria-current="page"] {
  color: var(--lantern);
  background: var(--surface);
  box-shadow: inset 0 -2px 0 var(--brick);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
  transition: transform .2s, background .2s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: 12px var(--gutter) 20px; }
  .nav a { padding: 12px 14px; font-size: 20px; }
}

/* ---------- Botones y etiquetas ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-pixel);
  font-size: 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .15s, color .15s;
  line-height: 1.2;
}

.btn-primary {
  background: var(--brick);
  color: #fff4e4;
  box-shadow: 0 4px 0 #6d2422;
}
.btn-primary:hover { background: var(--brick-hi); color: #fff; transform: translateY(-1px); box-shadow: 0 5px 0 #6d2422; }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #6d2422; }

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}
.btn-ghost:hover { border-color: var(--oak); color: var(--lantern); }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text-dim);
}
.tag-hot { border-color: var(--brick); color: var(--brick-hi); }
.tag-veil { border-color: var(--veil); color: var(--veil-hi); }
.tag-oak { border-color: var(--oak); color: var(--oak-hi); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--oak-hi);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--brick);
  box-shadow: 8px 0 0 var(--oak), 16px 0 0 var(--lantern);
  margin-right: 18px;
}

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

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(32px, 4.5vw, 48px); margin: 0; }
.section-head p { color: var(--text-dim); margin: 8px 0 0; max-width: 56ch; }

.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 85% 0%, color-mix(in srgb, var(--oak) 14%, transparent), transparent 70%),
    var(--bg);
}
.page-hero h1 { font-size: clamp(40px, 7vw, 76px); margin-bottom: 16px; }
.page-hero p { font-size: clamp(17px, 2vw, 20px); color: var(--text-dim); max-width: 62ch; margin: 0; }

/* ---------- Portada: Echoes of the Veil ---------- */

.feature-hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

/* Capas del fondo: capturas del juego → lluvia → relámpago → degradado */
.hero-slides { position: absolute; inset: 0; z-index: -4; background: #0a0706; }
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.8s ease, transform 9s linear;
  filter: saturate(.9) contrast(1.05);
}
.hero-slides img.is-active { opacity: 1; transform: scale(1.12); }

.feature-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
}

.lightning {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(ellipse 80% 60% at 60% 10%, rgba(210, 230, 255, .55), rgba(170, 200, 240, .15) 60%, transparent);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

.feature-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, .16) 2px 3px);
}

.feature-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 90% at 60% 40%, transparent 40%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(to top, var(--bg) 0%, color-mix(in srgb, var(--bg) 75%, transparent) 30%, transparent 70%),
    linear-gradient(to right, color-mix(in srgb, var(--bg) 85%, transparent) 0%, transparent 65%);
}

.feature-hero .container { padding-top: 120px; padding-bottom: clamp(48px, 7vw, 88px); }

.echoes-title {
  font-family: var(--font-type);
  font-weight: 400;
  font-size: clamp(46px, 8.5vw, 108px);
  line-height: .95;
  margin-bottom: 18px;
  color: #f3ead8;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, .6),
    6px 0 0 color-mix(in srgb, var(--veil) 28%, transparent),
    -4px 0 0 color-mix(in srgb, var(--brick) 22%, transparent);
  animation: echo 7s ease-in-out infinite;
}

@keyframes echo {
  0%, 86%, 100% { text-shadow: 0 2px 0 rgba(0,0,0,.6), 6px 0 0 color-mix(in srgb, var(--veil) 28%, transparent), -4px 0 0 color-mix(in srgb, var(--brick) 22%, transparent); }
  90% { text-shadow: 0 2px 0 rgba(0,0,0,.6), 18px 0 2px color-mix(in srgb, var(--veil) 45%, transparent), -12px 0 2px color-mix(in srgb, var(--brick) 35%, transparent); }
  93% { text-shadow: 0 2px 0 rgba(0,0,0,.6), -8px 0 1px color-mix(in srgb, var(--veil) 40%, transparent), 10px 0 1px color-mix(in srgb, var(--brick) 30%, transparent); }
}

.typewriter {
  font-family: var(--font-type);
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--veil-hi);
  min-height: 1.5em;
  margin-bottom: 14px;
  text-shadow: 0 0 18px color-mix(in srgb, var(--veil) 45%, transparent);
}
.typewriter::after {
  content: "▌";
  margin-left: 2px;
  color: var(--veil);
  animation: blink 1s steps(2) infinite;
}

.feature-hero .lede {
  font-size: clamp(17px, 2vw, 20px);
  color: #dcd2c2;
  max-width: 52ch;
  margin-bottom: 28px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- El caso (tráiler + sinopsis + galería) ---------- */

.case {
  background:
    radial-gradient(ellipse 50% 60% at 15% 30%, rgba(232, 164, 74, .10), transparent 70%),
    radial-gradient(ellipse 40% 50% at 90% 80%, rgba(127, 179, 201, .07), transparent 70%),
    linear-gradient(#140d0a, #100b09);
}

.case-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }

.case h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  color: #f1e4cc;
}
.case p { color: #c9bba5; }
.case .dossier {
  font-family: var(--font-type);
  font-size: 15px;
  color: #d8cbb2;
  border-left: 2px solid var(--brick);
  padding: 4px 0 4px 16px;
  margin: 22px 0;
  display: grid;
  gap: 6px;
  list-style: none;
}
.case .dossier li::before { content: "— "; color: var(--brick-hi); }

.trailer {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid #3a2a20;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 6px #1b120d;
}
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer button {
  all: unset;
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.trailer button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.75); transition: filter .2s, transform .4s; }
.trailer button:hover img { filter: brightness(.9); transform: scale(1.02); }
.trailer .play {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-type);
  font-size: 18px;
  color: #f3ead8;
  background: rgba(10, 6, 4, .7);
  border: 1px solid rgba(243, 234, 216, .35);
  padding: 12px 22px 12px 18px;
  border-radius: 2px;
}
.trailer .play::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 14px solid var(--brick-hi);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.trailer button:focus-visible .play { outline: 2px solid var(--lantern); outline-offset: 3px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(32px, 5vw, 56px); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery button {
  all: unset;
  cursor: zoom-in;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid #3a2a20;
  background: #000;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .2s; filter: brightness(.85); }
.gallery button:hover img { transform: scale(1.05); filter: brightness(1); }
.gallery button:focus-visible { outline: 2px solid var(--lantern); outline-offset: 2px; }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1400px, 94vw);
  width: 100%;
}
.lightbox::backdrop { background: rgba(5, 3, 2, .92); }
.lightbox img { width: 100%; height: auto; border: 1px solid #3a2a20; }
.lightbox figcaption { font-family: var(--font-type); color: #cbbda6; padding: 12px 0; text-align: center; }
.lightbox .close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  background: rgba(10, 6, 4, .8);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.feature-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.feature-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Tarjetas de proyecto ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.project-card {
  position: relative;
  grid-column: span 6;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.project-card:hover { border-color: var(--oak); transform: translateY(-3px); }

.project-card.is-featured { grid-column: span 12; flex-direction: row; min-height: 420px; }
.project-card.is-featured .project-art { flex: 1.4; aspect-ratio: auto; min-height: 420px; }
.project-card.is-featured .project-body { flex: 1; justify-content: center; padding: clamp(24px, 4vw, 48px); }
.project-card.is-featured h3 { font-size: clamp(32px, 4vw, 48px); }

.project-art {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.project-art canvas,
.project-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-art canvas { image-rendering: pixelated; }

.project-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-body h3 { font-size: 28px; margin: 0; }
.project-body p { color: var(--text-dim); margin: 0; }
.project-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.project-footer {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mute);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}
.status::before { content: ""; width: 8px; height: 8px; background: var(--text-mute); }
.status[data-state="dev"]::before { background: var(--lantern); animation: blink 1.4s steps(2) infinite; }
.status[data-state="released"]::before { background: #6cc36a; }
.status[data-state="paused"]::before { background: var(--iron); }

@keyframes blink { 50% { opacity: .25; } }

@media (max-width: 860px) {
  .project-card,
  .project-card.is-featured { grid-column: span 12; flex-direction: column; min-height: 0; }
  .project-card.is-featured .project-art { aspect-ratio: 16 / 9; min-height: 0; flex: none; }
}

/* ---------- Noticias ---------- */

.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.news-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color .2s;
}
.news-item:hover { border-color: var(--brick); }
.news-item:first-child { grid-row: span 2; background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.news-item:first-child h3 { font-size: 30px; }

.news-item time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-mute);
}
.news-item h3 { font-size: 22px; margin: 0; }
.news-item p { color: var(--text-dim); margin: 0; font-size: 16px; }
.news-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .news-list { grid-template-columns: 1fr 1fr; }
  .news-item:first-child { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 600px) {
  .news-list { grid-template-columns: 1fr; }
  .news-item:first-child { grid-column: auto; }
}

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

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent, var(--oak));
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.service-card h3 { font-size: 28px; margin: 0; }
.service-card .sub { font-family: var(--font-mono); font-size: 13px; color: var(--accent, var(--oak-hi)); letter-spacing: .06em; text-transform: uppercase; }
.service-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.service-card li { padding-left: 22px; position: relative; color: var(--text-dim); font-size: 16px; }
.service-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .6em;
  width: 8px;
  height: 8px;
  background: var(--accent, var(--oak));
}

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent, var(--oak));
}
.service-icon svg { width: 32px; height: 32px; shape-rendering: crispEdges; }

.retro-band {
  margin-top: 56px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,.18) 3px 4px),
    linear-gradient(135deg, #1c2a1a, #16140f 60%);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.retro-band h3 { font-size: clamp(28px, 3.5vw, 40px); color: #b8e08f; }
.retro-band p { color: #c8d4b4; }
.retro-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.retro-specs div {
  background: rgba(0,0,0,.35);
  border: 1px solid #3d4a33;
  padding: 14px;
  border-radius: 2px;
}
.retro-specs strong { display: block; font-family: "Silkscreen", var(--font-mono); font-size: 18px; color: #d4f0a8; }
.retro-specs span { font-family: var(--font-mono); font-size: 12px; color: #93a47e; }

@media (max-width: 860px) {
  .retro-band { grid-template-columns: 1fr; }
}

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process li {
  list-style: none;
  counter-increment: step;
  border-left: 2px solid var(--line);
  padding: 4px 0 4px 20px;
}
.process li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-pixel);
  font-size: 32px;
  color: var(--brick-hi);
  margin-bottom: 6px;
}
.process h4 { font-size: 20px; margin-bottom: 6px; }
.process p { color: var(--text-dim); font-size: 15px; margin: 0; }
.process { padding: 0; margin: 0; }

@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- Redes ---------- */

.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.social-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color .15s, transform .15s, background .15s;
}
.social-card:hover { border-color: var(--brand, var(--oak)); color: var(--text); transform: translateY(-2px); background: var(--surface-2); }
.social-icon {
  width: 36px;
  height: 36px;
  flex: none;
  background: var(--brand, var(--oak));
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.social-card strong { display: block; font-family: var(--font-pixel); font-size: 22px; font-weight: 600; }
.social-card span { font-family: var(--font-mono); font-size: 13px; color: var(--text-mute); }
.social-card .arrow { margin-left: auto; color: var(--text-mute); font-family: var(--font-mono); }

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

.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } .contact-layout .form { order: -1; } }

.contact-aside { display: grid; gap: 16px; }
.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.contact-box h3 { font-size: 22px; margin-bottom: 6px; }
.contact-box p { color: var(--text-dim); margin: 0; font-size: 16px; }
.contact-box a { font-family: var(--font-mono); font-size: 15px; word-break: break-all; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 36px);
  display: grid;
  gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-pixel); font-size: 17px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  transition: border-color .15s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--oak); box-shadow: 0 0 0 3px color-mix(in srgb, var(--oak) 25%, transparent); }
.field .hint { font-size: 13px; color: var(--text-mute); }

.form-note { font-size: 14px; color: var(--text-mute); margin: 0; }
.form-status { font-family: var(--font-mono); font-size: 14px; color: #8fd18c; min-height: 1.4em; margin: 0; }

/* ---------- CTA y pie ---------- */

.cta {
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    radial-gradient(ellipse 50% 70% at 50% 100%, color-mix(in srgb, var(--lantern) 16%, transparent), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.cta h2 { font-size: clamp(30px, 5vw, 52px); }
.cta p { color: var(--text-dim); max-width: 56ch; margin: 0 auto 28px; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 48px 0 32px;
  font-size: 15px;
  color: var(--text-mute);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid img { height: 124px; width: auto; margin-bottom: 18px; }
.footer-grid h4 { font-size: 18px; color: var(--text); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid a { color: var(--text-dim); }
.footer-grid a:hover { color: var(--lantern); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; font-family: var(--font-mono); font-size: 13px; }

@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: span 2; } }

/* ---------- Animación de entrada ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .status[data-state="dev"]::before { animation: none; }
  .echoes-title, .typewriter::after { animation: none; }
  .hero-slides img { transition: opacity .3s; transform: none; }
}

/* La tarjeta de Echoes usa la tipografía del juego */
#echoes-of-the-veil h3 { font-family: var(--font-type); font-weight: 400; }
