/* =========================================================
   Portfolio · Daniel Pinteño Guerra
   Diseño oscuro: azul marino profundo, latón y casillas de ajedrez.
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --bg: #0b1424;            /* fondo general */
  --bg-2: #0f1b30;
  --panel: rgba(255, 255, 255, .045);
  --panel-line: rgba(255, 255, 255, .09);
  --ink: #e9eef6;           /* texto */
  --muted: #9cabc0;         /* texto secundario */
  --faint: #6f7f96;
  --brass: #d4a94c;         /* acento principal */
  --brass-light: #f0cf86;
  --blue: #6f9fd8;          /* azul del CV, aclarado para fondo oscuro */
  --sq-light: #dde5ef;      /* casillas del tablero */
  --sq-dark: #6f8cb1;

  --wrap: 1160px;
  --radius: 18px;
  --font: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  /* Fondo con luces suaves de color (no un color plano) */
  background-image:
    radial-gradient(1100px 700px at 110% 15%, rgba(38, 88, 139, .28), transparent 60%),
    radial-gradient(900px 600px at -10% 55%, rgba(38, 88, 139, .18), transparent 60%),
    radial-gradient(800px 500px at 80% 95%, rgba(212, 169, 76, .07), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
/* Grano fino encima de todo para dar textura */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .06;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--brass); color: var(--bg); }

.wrap { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- Idiomas ---------- */
html[data-lang="en"] [data-l="es"],
html[data-lang="es"] [data-l="en"] { display: none; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--brass); color: var(--bg); padding: 8px 14px; border-radius: 6px;
}
.skip:focus { left: 8px; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; }

/* Barra de progreso de lectura (js/effects.js actualiza --p) */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--brass), var(--brass-light));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .95rem var(--font); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s, background-color .2s, border-color .2s, color .2s;
}
.btn--brass {
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  color: #1a1408;
  box-shadow: 0 8px 24px -10px rgba(212, 169, 76, .7), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn--brass:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(212, 169, 76, .85), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn--line {
  background: rgba(255, 255, 255, .04); color: var(--ink);
  border-color: rgba(255, 255, 255, .16); backdrop-filter: blur(6px);
}
.btn--line:hover { border-color: var(--brass-light); transform: translateY(-2px); }
.btn--navy { background: var(--blue); color: var(--bg); }
.btn--off { background: transparent; color: var(--faint); border: 1px dashed rgba(255, 255, 255, .18); cursor: default; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 20, 36, .72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand {
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: 9px;
}
/* Mini tablero 2×2 junto a las iniciales */
.brand::before {
  content: ""; width: 14px; height: 14px; border-radius: 3px;
  background: conic-gradient(var(--brass) 25%, transparent 0 50%, var(--brass) 0 75%, transparent 0) 0 0 / 100% 100%;
  box-shadow: 0 0 0 1px rgba(212, 169, 76, .6);
}
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 6px 12px; border-radius: 8px; transition: color .2s, background-color .2s;
}
.nav a:hover { color: #fff; }
/* Enlace de la sección visible (js/effects.js pone .is-active) */
.nav a.is-active { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--brass);
}
.lang {
  background: rgba(255, 255, 255, .04); color: var(--ink); cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px;
  padding: 6px 11px; font: 700 .8rem var(--font); letter-spacing: .04em;
}
.lang:hover { border-color: var(--brass-light); }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 66px);
  display: flex; align-items: center;
  padding: 72px 0 96px;
  overflow: hidden;
  isolation: isolate;
}
/* Suelo de ajedrez en perspectiva */
.hero__floor { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
/* Velo para que el texto se lea bien sobre el suelo */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 20, 36, .92) 0%, rgba(11, 20, 36, .6) 45%, rgba(11, 20, 36, .1) 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero__name {
  font-size: clamp(3.1rem, 7.4vw, 6rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 28px;
}
/* Cada línea del nombre sube desde detrás de una máscara */
.hero__name .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__name .line > span {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 30%, #b9c8dc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__role { color: var(--brass-light); font-weight: 600; font-size: 1.12rem; margin-bottom: 14px; }
.hero__lead { color: var(--muted); font-size: 1.14rem; max-width: 33em; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Animación de entrada de la portada (solo con JavaScript activo) */
.js .hero__name .line > span { transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.js .hero__name .line:nth-child(2) > span { animation-delay: .12s; }
.js .intro { opacity: 0; transform: translateY(18px); animation: fadeUp .9s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Tablero ---------- */
.game { margin: 0; justify-self: end; width: 100%; max-width: 480px; perspective: 1200px; }
.board {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: conic-gradient(var(--sq-dark) 25%, var(--sq-light) 0 50%, var(--sq-dark) 0 75%, var(--sq-light) 0) 0 0 / 25% 25%;
  box-shadow:
    0 0 0 1px rgba(212, 169, 76, .55),
    0 0 0 12px rgba(15, 27, 48, .9),
    0 0 0 13px rgba(255, 255, 255, .08),
    0 40px 80px -20px rgba(0, 0, 0, .7),
    0 0 120px -20px rgba(111, 159, 216, .35);
  /* Inclinación con el ratón (js/effects.js pone --rx y --ry) */
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
  transform-style: preserve-3d;
}
/* Reflejo de luz que sigue al ratón sobre el tablero */
.board::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(420px circle at var(--gx, 70%) var(--gy, 20%), rgba(255, 255, 255, .16), transparent 55%);
  mix-blend-mode: soft-light;
}
.pc, .hl {
  position: absolute; left: 0; top: 0;
  width: 12.5%; height: 12.5%;
  transform: translate(calc(var(--x) * 100%), calc(var(--y) * 100%));
}
.pc { transition: transform .55s var(--ease), opacity .3s; z-index: 2; }
.pc svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); }
.pc.moving { z-index: 3; }
.pc.moving svg { filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .4)); }
.pc.gone { opacity: 0; }
.pc--w { --pf: #fbfcfd; --ps: #0f1d33; --pc: #0f1d33; }
.pc--b { --pf: #14223a; --ps: #dfe6ef; --pc: #dfe6ef; }
.pc use { fill: var(--pf); stroke: var(--ps); stroke-width: 1.4; stroke-linejoin: round; }
.cut { fill: none; stroke: var(--pc); stroke-width: 1.6; stroke-linecap: round; }
.eye { fill: var(--pc); stroke: none; }
.hl { background: rgba(212, 169, 76, .55); z-index: 1; }
.hl[hidden] { display: none; }
.coord {
  position: absolute; font-size: 10px; font-weight: 700; line-height: 1; z-index: 1;
  color: #0f1d33; opacity: .5; pointer-events: none;
}

.game__caption { margin-top: 32px; }
.game__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.game__title { font-weight: 600; color: #fff; margin: 0 0 10px; }
.game__replay {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--brass-light); font: 600 .9rem var(--font);
  text-decoration: underline; text-underline-offset: 4px;
}
.moves {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 2px 12px;
  font-size: .85rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.moves li { white-space: nowrap; }
.moves .n { opacity: .55; margin-right: 3px; }
.moves .m { padding: 0 3px; border-radius: 3px; transition: background-color .2s; }
.moves .m.now { background: var(--brass); color: #1a1408; font-weight: 700; }
.game__note { font-size: .8rem; color: var(--faint); margin: 12px 0 0; }

/* ---------- Cinta de tecnologías ---------- */
.ticker {
  position: relative;
  display: flex; overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, .07);
  background: rgba(255, 255, 255, .02);
  padding: 18px 0;
  /* Se difumina en los bordes */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker__track {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0 14px;
  animation: slide 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker li { font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; color: rgba(233, 238, 246, .82); white-space: nowrap; }
.ticker .sep svg { width: 22px; height: 22px; display: block; fill: var(--brass); opacity: .85; }
@keyframes slide { to { transform: translateX(-100%); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 120px 0; }
/* Sección con dibujo de casillas muy suave */
.section--paper2::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: conic-gradient(rgba(255, 255, 255, .025) 25%, transparent 0 50%, rgba(255, 255, 255, .025) 0 75%, transparent 0) 0 0 / 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000, transparent 75%);
}
.h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.035em;
  margin-bottom: 44px;
  display: flex; align-items: center; gap: 22px;
}
/* Línea de latón detrás del título */
.h2::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(212, 169, 76, .6), transparent);
}
.h2--light { color: #fff; }
.h4 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; color: #fff; }
.prose { color: var(--muted); max-width: 36em; font-size: 1.06rem; }
.small { font-size: .9rem; color: var(--muted); }

/* Aparición al hacer scroll (js/effects.js pone .is-in) */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Sobre mí ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.skills {
  margin: 0; padding: 10px 28px;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: var(--radius);
  backdrop-filter: blur(8px);
}
.skills__row {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px;
  padding: 15px 0; border-top: 1px solid rgba(255, 255, 255, .07);
}
.skills__row:first-child { border-top: 0; }
.skills dt { color: var(--brass-light); font-weight: 600; font-size: .92rem; }
.skills dd { margin: 0; font-weight: 500; }

/* ---------- Tarjetas de proyecto ---------- */
.feature {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--panel-line);
  border-radius: 22px;
  padding: 56px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px -40px rgba(0, 0, 0, .8);
  overflow: hidden;
  isolation: isolate;
}
/* Foco de luz que sigue al ratón por la tarjeta (--mx, --my desde js/effects.js) */
.feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 169, 76, .09), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.feature:hover::before { opacity: 1; }
/* Borde superior con brillo de latón */
.feature::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 207, 134, .7), transparent);
}
.feature + .feature { margin-top: 40px; }
.feature__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.feature__title { font-size: clamp(2rem, 3.8vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.feature__sub { color: var(--muted); margin: 6px 0 0; }
.feature__intro { font-size: 1.14rem; max-width: 40em; margin-bottom: 40px; color: #d6deea; }
.status {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; color: var(--brass-light);
  background: rgba(212, 169, 76, .1); border: 1px solid rgba(212, 169, 76, .4);
  padding: 5px 13px; border-radius: 999px;
}
/* Punto que late: el proyecto sigue vivo */
.status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brass-light);
  box-shadow: 0 0 0 0 rgba(240, 207, 134, .7); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(240, 207, 134, 0); } 100% { box-shadow: 0 0 0 0 rgba(240, 207, 134, 0); } }

/* Cifras del TFG */
.figures {
  list-style: none; margin: 0 0 48px; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.figures li {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 20px 18px; border-radius: 14px;
  background: rgba(11, 20, 36, .55); border: 1px solid rgba(255, 255, 255, .07);
}
.figures strong {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums;
}
.figures li > span { color: var(--muted); font-size: .9rem; }

/* Funciones en dos columnas */
.features { margin: 0 0 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; }
.features > div { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; position: relative; }
.features > div::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 36px; height: 1px; background: var(--brass);
}
.features dt { font-weight: 700; margin-bottom: 5px; color: #fff; }
.features dd { margin: 0; color: var(--muted); font-size: .96rem; }

.feature__foot {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px;
  border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 34px;
}
.feature__meta p { margin-bottom: 12px; }

/* Lista con rombos de latón */
.next { list-style: none; margin: 0 0 12px; padding: 0; }
.next li { position: relative; padding-left: 22px; margin-bottom: 9px; color: var(--muted); }
.next li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg);
}

/* Vídeo + captura del móvil (Odres Nuevos) */
.media { display: grid; grid-template-columns: 3fr 1fr; gap: 20px; margin: 0 0 48px; }
.media figure { margin: 0; }
.media video,
.media img {
  width: 100%; display: block;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1);
  background: #000;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9);
}
.media video { aspect-ratio: 16 / 9; object-fit: cover; }
.media__side img { height: auto; aspect-ratio: 16 / 27; object-fit: cover; object-position: center 70%; }
.media figcaption { font-size: .85rem; color: var(--faint); margin-top: 10px; }

/* ---------- Trayectoria ---------- */
.journey { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
/* Raíl gris y relleno de latón que crece al hacer scroll (--fill desde js/effects.js) */
.timeline::before,
.timeline::after {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; border-radius: 2px;
}
.timeline::before { background: rgba(255, 255, 255, .1); }
.timeline::after {
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  transform-origin: top; transform: scaleY(var(--fill, 0));
}
.timeline li { position: relative; padding: 0 0 34px 30px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: .4em; z-index: 1;
  width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--brass); transform: rotate(45deg);
}
.timeline__date { color: var(--brass-light); font-weight: 700; font-size: .88rem; margin: 0 0 4px; }
.timeline h4 { font-size: 1.12rem; margin-bottom: 6px; color: #fff; }
.timeline p:last-child { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Contacto ---------- */
.contact {
  position: relative; overflow: hidden;
  padding: 130px 0 120px;
  background: linear-gradient(180deg, transparent, rgba(7, 13, 24, .8) 30%);
  border-top: 1px solid rgba(255, 255, 255, .06);
}
/* Casillas que se encienden al fondo */
.squares { position: absolute; inset: 0; pointer-events: none; }
.squares span {
  position: absolute; width: 64px; height: 64px; border-radius: 4px;
  background: var(--c, rgba(111, 159, 216, .14));
  opacity: 0;
  animation: blink var(--t, 7s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes blink { 0%, 100% { opacity: 0; } 45%, 55% { opacity: 1; } }
.contact__inner { z-index: 1; }
.contact__text { color: var(--muted); font-size: 1.14rem; max-width: 34em; }
.avail { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.avail li {
  font-size: .88rem; font-weight: 600; color: var(--ink);
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
}
.contact__mail {
  position: relative; display: inline-block; margin: 34px 0 34px;
  color: #fff; font-weight: 800; letter-spacing: -.035em; text-decoration: none;
  font-size: clamp(1.7rem, 6vw, 4.2rem); line-height: 1.05;
  overflow-wrap: anywhere;
}
/* Subrayado que se dibuja al pasar el ratón */
.contact__mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brass), var(--brass-light));
  transform: scaleX(.25); transform-origin: left; transition: transform .6s var(--ease);
}
.contact__mail:hover::after { transform: scaleX(1); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__status { min-height: 1.5em; margin: 14px 0 0; color: var(--brass-light); font-size: .92rem; }

/* ---------- Pie ---------- */
.footer { background: rgba(7, 13, 24, .95); color: var(--faint); font-size: .9rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer__inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 26px; padding-bottom: 26px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: #fff; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .hero { min-height: 0; padding: 56px 0 80px; }
  .hero::after { background: linear-gradient(180deg, rgba(11, 20, 36, .85) 0%, rgba(11, 20, 36, .55) 50%, var(--bg) 100%); }
  .hero__grid, .about, .journey, .feature__foot { grid-template-columns: 1fr; gap: 48px; }
  .game { justify-self: start; }
  .section { padding: 88px 0; }
  .feature { padding: 36px; }
  .figures { grid-template-columns: 1fr 1fr; }
  .media { grid-template-columns: 1fr; }
  .media__side img { max-width: 260px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .lang { margin-left: auto; }
  .feature { padding: 26px 18px; border-radius: 16px; }
  .feature__head { flex-direction: column; }
  .features { grid-template-columns: 1fr; }
  .figures li { padding: 16px 14px; }
  .skills { padding: 6px 18px; }
  .skills__row { grid-template-columns: 1fr; gap: 2px; }
  .h2::after { display: none; }
  .ticker li { font-size: 1.1rem; }
  .board { box-shadow: 0 0 0 1px rgba(212, 169, 76, .55), 0 0 0 7px rgba(15, 27, 48, .9), 0 24px 50px -16px rgba(0, 0, 0, .7); }
  .squares span { width: 44px; height: 44px; }
  .footer__inner { flex-direction: column; }
}

/* ---------- Menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pc, .board { transition: none; }
  .ticker__track, .status::before, .squares span { animation: none; }
  .js .hero__name .line > span, .js .intro { animation: none; opacity: 1; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
