/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

/* ── VARIABLES ── */
:root {
  --pink: #ff2aa3;
  --pad: 80px;
  --bg:            #fafafa;
  --fg:            #0a0a0a;
  --border:        #0a0a0a;
  --border-subtle: #e0e0e0;
}
body.dark {
  --bg:            #0a0a0a;
  --fg:            #f0f0f0;
  --border:        #2a2a2a;
  --border-subtle: #1e1e1e;
}

/* ── BASE ── */
html, body {
  min-height: 100%;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  transition: background 0.4s ease, color 0.4s ease;
}

/* ── CURSOR ── */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--pink);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}

/* ── BLINK ── */
@keyframes blink { 50% { opacity: 0; } }

#typing-text::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 1.2em;
  margin-left: 8px;
  background: var(--pink);
  animation: blink 1s step-start infinite;
  vertical-align: middle;
  border-radius: 2px;
}
.nav-logo #nav-typing-text::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.8em;
  margin-left: 3px;
  background: var(--pink);
  animation: blink 1s step-start infinite;
  vertical-align: middle;
  border-radius: 1px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease;
}
.nav-left  { display: flex; align-items: center; }
.nav-center { display: flex; justify-content: center; }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }

.nav-link {
  text-decoration: none;
  color: var(--fg);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity 0.2s, color 0.4s ease;
  padding-bottom: 2px;
}
.nav-link:hover, .nav-link.active {
  opacity: 1;
  border-bottom: 1.5px solid var(--pink);
}
.nav-logo {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 4px;
  text-decoration: none;
  color: var(--fg);
  transition: color 0.4s ease;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}

/* ── DARK TOGGLE ── */
.dark-toggle {
  width: 38px; height: 22px;
  border-radius: 22px;
  border: 1px solid var(--fg);
  background: transparent;
  position: relative;
  opacity: 0.4;
  transition: border-color 0.4s ease, background 0.4s ease, opacity 0.2s;
  flex-shrink: 0;
  cursor: none !important;
}
.dark-toggle:hover { opacity: 1; }
.dark-toggle::after {
  content: '';
  position: absolute;
  top: 4px; left: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--fg);
  transition: transform 0.35s cubic-bezier(0.77,0,0.175,1), background 0.4s ease;
}
body.dark .dark-toggle { border-color: var(--pink); background: rgba(255,42,163,0.08); }
body.dark .dark-toggle::after { transform: translateX(16px); background: var(--pink); }

/* ── HERO (index) ── */
#hero {
  width: 100%; height: 100vh;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.4s ease;
}
#typing-line {
  font-size: clamp(5rem, 15vw, 12rem);
  color: var(--fg);
  letter-spacing: 0.05em;
  text-align: center;
  font-weight: 350;
  transition: color 0.4s ease;
}

/* ── PROJECTS GRID ── */
.projects-grid {
  height: calc(100vh - 61px);
  margin-top: 61px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px var(--pad);
  overflow: hidden;
}
.column { overflow: hidden; position: relative; }
.col-inner { display: flex; flex-direction: column; gap: 16px; will-change: transform; }

/* ── CARD ── */
.card {
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--bg);
  aspect-ratio: 4/5;
  border-radius: 16px;
  text-decoration: none;
  flex-shrink: 0;
}
.card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease;
  opacity: 0.95;
}
.card:hover img { transform: scale(1.05); filter: brightness(0.85); }
.overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 70%);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.2,0.8,0.2,1), opacity 0.3s ease;
  pointer-events: none;
}
.card:hover .overlay { transform: translateY(0); opacity: 1; pointer-events: auto; }
.overlay h2 { color: white; font-size: 16px; font-weight: 500; transform: translateY(10px); opacity: 0; transition: all 0.3s ease 0.1s; }
.overlay p  { color: rgba(255,255,255,0.6); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 4px; transform: translateY(10px); opacity: 0; transition: all 0.3s ease 0.2s; }
.card:hover .overlay h2, .card:hover .overlay p { transform: translateY(0); opacity: 1; }
.card::before, .card::after { content: none !important; display: none !important; }

/* ── GAME CARD ── */
.card-game {
  position: relative; display: block;
  aspect-ratio: 4/5; border-radius: 16px;
  text-decoration: none; overflow: hidden;
  background: #0a0a0a; cursor: none !important;
  flex-shrink: 0;
}
.card-game-bg {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 3px; padding: 3px;
}
.card-game-bg span { border-radius: 4px; display: block; animation: cgPulse 3s ease-in-out infinite; }
@keyframes cgPulse { 0%,100% { opacity: 0.75; } 50% { opacity: 1; } }
.card-game-bg span.odd { animation: cgOdd 2.2s ease-in-out infinite; }
@keyframes cgOdd { 0%,100% { opacity: 0.6; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.02); } }
.card-game-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 50%, transparent 80%);
}
.card-game-label { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: #ff2aa3; margin-bottom: 4px; opacity: 0.8; }
.card-game-title { color: white; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.card-game-desc { color: rgba(255,255,255,0.5); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; transform: translateY(6px); opacity: 0; transition: all 0.3s ease 0.1s; }
.card-game:hover .card-game-desc { transform: translateY(0); opacity: 1; }
.card-game:hover .card-game-bg   { opacity: 0.55; }

/* ── ABOUT ── */
.about { max-width: 1100px; margin: 0 auto; padding: 140px 40px 100px; }
.about-title { font-size: clamp(32px, 5vw, 56px); font-weight: 600; line-height: 1.1; max-width: 720px; margin-bottom: 80px; letter-spacing: -0.02em; color: var(--fg); transition: color 0.4s ease; }
.highlight { color: var(--pink); position: relative; display: inline-block; }
.highlight::after { content: ''; position: absolute; bottom: 2px; left: 0; width: 100%; height: 3px; background: var(--pink); transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(0.77,0,0.175,1); }
.highlight:hover::after { transform: scaleX(1); }
.about-intro { display: grid; grid-template-columns: 260px 1fr; gap: 60px; align-items: start; margin-bottom: 80px; }
.about-image { position: relative; width: 100%; max-width: 260px; }
.about-image img { width: 100%; height: auto; display: block; border-radius: 16px; object-fit: cover; max-height: 340px; filter: grayscale(10%); transition: filter 0.4s ease, opacity 0.5s ease; }
.about-image img:hover { filter: grayscale(0%) saturate(1.1); }
.about-image .img-light { opacity: 1; position: relative; z-index: 1; }
.about-image .img-dark  { opacity: 0; position: absolute; top: 0; left: 0; width: 100%; z-index: 2; border-radius: 16px; }
body.dark .about-image .img-light { opacity: 0; }
body.dark .about-image .img-dark  { opacity: 1; }
.about-text { max-width: 520px; padding-top: 8px; }
.about-text p { margin-bottom: 18px; line-height: 1.9; opacity: 0.7; font-size: 13.5px; color: var(--fg); transition: color 0.4s ease; }
.quote { margin-top: 28px; padding: 20px; border-left: 2px solid var(--pink); font-size: 12px; line-height: 1.8; background: rgba(255,42,163,0.04); border-radius: 0 8px 8px 0; color: var(--fg); transition: color 0.4s ease, background 0.4s ease; }
body.dark .quote { background: rgba(255,42,163,0.07); }
.quote .author { display: block; margin-top: 8px; font-size: 10px; opacity: 0.5; letter-spacing: 1px; }
.tools-section { margin-bottom: 80px; }
.section-label { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.35; margin-bottom: 20px; color: var(--fg); transition: color 0.4s ease; }
.tools-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-tag { border: 0.5px solid var(--border-subtle); padding: 7px 16px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; border-radius: 40px; color: var(--fg); transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.tool-tag:hover { border-color: var(--pink); color: var(--pink); transform: translateY(-2px); }
.tool-tag.featured { background: var(--pink); border-color: var(--pink); color: white; }
.section-divider { width: 100%; height: 1px; background: var(--border-subtle); margin: 80px 0; position: relative; transition: background 0.4s ease; }
.section-divider::before { content: ''; position: absolute; left: 0; top: 0; height: 1px; width: 60px; background: var(--pink); }
.about-info-grid { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 40px; margin-bottom: 80px; }
.about-info-grid h3 { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.35; margin-bottom: 20px; font-weight: 400; color: var(--fg); transition: color 0.4s ease; }
.info-divider { width: 1px; background: var(--border-subtle); transition: background 0.4s ease; }
.info-item { margin-bottom: 18px; font-size: 12.5px; color: var(--fg); line-height: 1.6; opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease, color 0.4s ease; }
.info-item.visible { opacity: 0.75; transform: translateY(0); }
.info-item span { display: block; font-size: 9px; opacity: 0.4; margin-top: 3px; letter-spacing: 1px; }
.contact-section { padding-top: 40px; border-top: 1px solid var(--border-subtle); }
.contact-title { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.4; margin-bottom: 12px; color: var(--fg); transition: color 0.4s ease; }
.contact-text { font-size: 13px; opacity: 0.7; max-width: 500px; margin-bottom: 24px; line-height: 1.8; color: var(--fg); transition: color 0.4s ease; }
.contact-links { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-links a { font-size: 11px; text-decoration: none; color: var(--fg); letter-spacing: 1px; padding: 10px 20px; border: 0.5px solid var(--border-subtle); border-radius: 40px; opacity: 0.6; transition: all 0.25s ease; }
.contact-links a:hover { opacity: 1; border-color: var(--pink); color: var(--pink); transform: translateY(-2px); }

/* ── INTERACTIVE BLOCK (index) ── */
#interactive-block {
  min-height: 100vh;
  padding: 120px 40px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.interactive-content { width: 100%; max-width: 900px; padding: 0; }
.interactive-code { font-size: 11px; letter-spacing: 2px; margin-bottom: 6px; color: var(--fg); opacity: 0.5; }
#command-input { width: 100%; border: none; outline: none; background: transparent; font-size: 20px; color: var(--fg); font-family: 'Poppins', sans-serif; }
#command-input::placeholder { color: var(--fg); opacity: 0.3; }

/* ── PLAYGROUND ── */
#playground {
  width: 100%; height: 65vh;
  max-width: 900px; margin: 0 auto;
  background: #000; position: relative;
  overflow: hidden; border-radius: 20px;
}
.play-letter {
  position: absolute; top: 0; left: 0;
  font-weight: 700; font-family: 'Poppins', sans-serif;
  color: #fff; user-select: none;
  pointer-events: none; line-height: 1;
  will-change: transform;
}

/* ── COLOR CONTROLS ── */
.color-controls { display: none; gap: 12px; margin-top: 4px; justify-content: center; }
.color-controls.active { display: flex; }
.color-controls button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: none !important; transition: transform 0.2s, border-color 0.2s; }
.color-controls button:hover { transform: scale(1.3); border-color: rgba(255,255,255,0.4); }
.color-controls button:nth-child(1) { background: #000; border-color: rgba(255,255,255,0.3); }
.color-controls button:nth-child(2) { background: #ff2aa3; }
.color-controls button:nth-child(3) { background: #1e2bff; }
.color-controls button:nth-child(4) { background: #f5e6c8; }
.color-controls button:nth-child(5) { background: #3a5a40; }

/* ── GAME PAGE ── */
#game-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 60px;
  gap: 40px;
}
#game-box {
  background: #0a0a0a;
  border-radius: 20px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 560px;
  color: #f0f0f0;
  font-family: 'Poppins', sans-serif;
}
.g-label  { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: #ff2aa3; opacity: 0.8; margin-bottom: 4px; }
.g-screen { display: none; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 12px 0; }
.g-screen.on { display: flex; }
.g-title  { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: #f0f0f0; }
.g-title span { color: #ff2aa3; }
.g-sub    { font-size: 11px; opacity: 0.35; max-width: 300px; color: #f0f0f0; }
.g-big    { font-size: clamp(52px,10vw,80px); font-weight: 600; color: #ff2aa3; letter-spacing: -0.04em; line-height: 1; }
.g-rec    { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.4; color: #f0f0f0; }
.g-rec b  { color: #ff2aa3; opacity: 1; font-weight: 400; }
.g-btn { padding: 10px 26px; font-family: 'Poppins',sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; border-radius: 40px; border: 1px solid rgba(240,240,240,0.2); background: transparent; color: #f0f0f0; cursor: none !important; transition: all 0.2s; }
.g-btn:hover { border-color: #ff2aa3; color: #ff2aa3; }
.g-btn.primary { background: #ff2aa3; border-color: #ff2aa3; color: #fff; }
.g-btn.primary:hover { filter: brightness(1.1); color: #fff; }
.g-btn-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.g-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; width: 100%; margin-bottom: 4px; }
.g-stat  { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 10px 8px; text-align: center; }
.g-stat-lbl { font-size: 8px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.3; display: block; margin-bottom: 3px; color: #f0f0f0; }
.g-stat-val { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: #f0f0f0; }
.g-stat-val.pink { color: #ff2aa3; }
.g-pips { display: flex; gap: 4px; align-items: center; width: 100%; margin-bottom: 8px; }
.g-pip-lbl { font-size: 8px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.3; margin-right: 4px; white-space: nowrap; color: #f0f0f0; }
.g-pip { height: 2px; flex: 1; background: rgba(255,255,255,0.1); border-radius: 2px; transition: background 0.3s; }
.g-pip.on { background: #ff2aa3; }
.g-tbar-wrap { height: 2px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-bottom: 14px; overflow: hidden; width: 100%; }
.g-tbar { height: 100%; background: #ff2aa3; width: 100%; transform-origin: left; }
.g-grid-wrap { display: flex; justify-content: center; width: 100%; }
.g-grid { display: grid; gap: 5px; }
.g-cell { border-radius: 7px; cursor: none !important; transition: transform 0.1s, filter 0.1s; }
.g-cell:hover { transform: scale(1.07); filter: brightness(1.15); }
.g-cell:active { transform: scale(0.94); }
.g-fb { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; height: 14px; text-align: center; }
.g-fb.ok  { color: #4ade80; }
.g-fb.bad { color: #ff2aa3; }
@keyframes g-shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-7px)} 40%{transform:translateX(7px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }
@keyframes g-pulse { 0%{box-shadow:0 0 0 0 rgba(74,222,128,0.5)} 100%{box-shadow:0 0 0 14px rgba(74,222,128,0)} }
.g-shake { animation: g-shake 0.32s ease; }
.g-pulse { animation: g-pulse 0.45s ease forwards; }

/* ── PROYECTOS: sistema compartido ── */
.p-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}
.p-bleed { width: 100%; max-width: none; }

.p-eyebrow { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--pink); opacity: 0.75; display: block; margin-bottom: 10px; }
.p-h1 { font-weight: 600; letter-spacing: -0.05em; line-height: 0.88; color: var(--fg); transition: color 0.4s; }
.p-statement { font-size: clamp(22px,3.5vw,40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; color: var(--fg); transition: color 0.4s; }
.p-body { font-size: 14px; line-height: 1.85; opacity: 0.6; color: var(--fg); font-weight: 300; transition: color 0.4s; }
.p-label { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.28; color: var(--fg); }
.p-tag { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border: 0.5px solid var(--border-subtle); border-radius: 40px; color: var(--fg); opacity: 0.55; display: inline-block; }
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.p-rule { width: 100%; height: 1px; background: var(--border-subtle); position: relative; }
.p-rule::before { content: ''; position: absolute; left: 0; top: 0; height: 1px; width: 60px; background: var(--pink); }

.p-img { display: block; width: 100%; object-fit: cover; }
.p-img-hover { transition: filter 0.35s ease; }
.p-img-hover:hover { filter: brightness(0.82); }

.p-strip-wrap { overflow: hidden; width: 100%; padding: 48px 0; }
.p-strip-label { font-size: 9px; letter-spacing: 3px; text-transform: uppercase; opacity: 0.25; color: var(--fg); padding: 0 48px; margin-bottom: 16px; display: block; }
.p-strip-track { display: flex; gap: 10px; padding: 0 48px; will-change: transform; }
.p-strip-img { flex-shrink: 0; width: 260px; height: 300px; object-fit: cover; border-radius: 6px; display: block; filter: grayscale(15%); transition: filter 0.3s ease; }
.p-strip-img:hover { filter: grayscale(0%); }

.p-gh-link { display: inline-flex; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; color: var(--fg); opacity: 0.5; border: 0.5px solid var(--border-subtle); border-radius: 40px; padding: 10px 20px; transition: opacity 0.2s, border-color 0.2s, color 0.2s; }
.p-gh-link:hover { opacity: 1; border-color: var(--pink); color: var(--pink); }

/* FOOTER — en flujo normal, NO flotante */
.p-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 48px;
  border-top: 1px solid var(--border-subtle);
  max-width: 1100px;
  margin: 80px auto 0;
  width: 100%;
}
.p-footer a { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; color: var(--fg); opacity: 0.35; transition: opacity 0.2s; }
.p-footer a:hover { opacity: 1; }
.p-footer-pink { color: var(--pink) !important; opacity: 0.75 !important; }

.p-bignumber { font-size: clamp(120px,22vw,280px); font-weight: 600; letter-spacing: -0.07em; color: var(--fg); opacity: 0.04; line-height: 1; user-select: none; pointer-events: none; }

/* ── GLITCH/FADE (transitions.js) ── */
@keyframes glitchBar {
  0%   { transform: translateX(0) scaleX(1); opacity: 1; }
  30%  { transform: translateX(-24px) scaleX(1.05); opacity: 0.9; }
  60%  { transform: translateX(18px) scaleX(0.97); opacity: 0.85; }
  100% { transform: translateX(0) scaleX(1); opacity: 0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  *, *::before, *::after { cursor: auto !important; }
  .cursor { display: none !important; }
  :root { --pad: 20px; }

  nav { padding: 14px var(--pad); }
  .nav-link { font-size: 9px; letter-spacing: 1px; }
  .nav-logo { font-size: 13px; letter-spacing: 3px; }
  .dark-toggle { width: 30px; height: 18px; }
  .dark-toggle::after { width: 10px; height: 10px; top: 3px; left: 3px; }
  body.dark .dark-toggle::after { transform: translateX(12px); }

  #typing-line { font-size: clamp(2.5rem,13vw,5rem); padding: 0 16px; }

  .projects-grid { display: flex; flex-direction: column; height: auto; overflow: visible; padding: 76px var(--pad) 40px; gap: 16px; margin-top: 0; }
  .col-inner { gap: 16px; }
  .card { aspect-ratio: 3/2; border-radius: 12px; }
  .card-game { aspect-ratio: 3/2; border-radius: 12px; cursor: auto !important; }
  .overlay { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .overlay h2, .overlay p { transform: translateY(0); opacity: 1; }

  .about { padding: 90px var(--pad) 60px; }
  .about-title { font-size: clamp(24px,8vw,36px); margin-bottom: 48px; }
  .about-intro { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
  .about-image { max-width: 180px; }
  .about-info-grid { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
  .info-divider { display: none; }
  .section-divider { margin: 48px 0; }
  .tools-section { margin-bottom: 48px; }
  .contact-links a { padding: 10px 14px; font-size: 10px; }

  #interactive-block { padding: 90px 16px 40px; gap: 20px; }
  #playground { height: 55vh; border-radius: 12px; }

  #game-section { padding: 80px 16px 40px; }
  .g-cell { cursor: auto !important; }
  .g-btn  { cursor: auto !important; }

  .p-wrap { padding: 0 20px; }
  .p-strip-label { padding: 0 20px; }
  .p-strip-track { padding: 0 20px; }
  .p-strip-img { width: 200px; height: 145px; }
  .p-footer { padding: 32px 20px; margin-top: 48px; }
}

/* Todas las imágenes de proyectos nunca se deforman */
.p-img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* Cuando una imagen está dentro de un contenedor con altura fija */
.p-img-wrap {
  overflow: hidden;
  width: 100%;
}
.p-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
