/* === JUEGOS (2 ARRIBA + 1 ABAJO) === */
.games-library {
  padding: 120px 4rem 4rem;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 100vh;
}

.games-header {
  text-align: center;
  margin-bottom: 4rem;
}

.games-header h1 {
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.games-header p {
  color: #888;
  font-size: 0.95rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 COLUMNAS */
  gap: 2.5rem;
  justify-content: center;
}

/* La tercera tarjeta ocupa todo el ancho y se centra */
.game-card.full-width {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 600px;
  width: 100%;
  margin-top: 1rem;
}

.game-card {
  background: rgba(20,20,25,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,102,0,0.3);
}

.game-card.featured {
  border: 1px solid rgba(255,102,0,0.4);
}

.game-preview {
  height: 320px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Fondo degradado azul/morado para tarjetas destacadas */
.game-preview.featured-bg {
  background: linear-gradient(135deg, #1a1a3e 0%, #2d2d5a 100%);
}

.game-preview.featured-bg.purple {
  background: linear-gradient(135deg, #2d1b4e 0%, #4a1a6e 100%);
}

.game-preview img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  transition: all 0.4s ease;
}

.game-card:hover .game-preview img {
  transform: scale(1.08);
}

.game-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--accent-orange);
  color: #000;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-info {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.game-desc {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex: 1;
}

.game-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.play-btn {
  background: var(--accent-orange);
  color: #000;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}

.play-btn:hover {
  transform: translateX(5px);
  box-shadow: 0 0 20px rgba(255,102,0,0.4);
}

/* Footer pequeño */
footer {
  padding: 1.5rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #111;
  background: #0a0a0a;
  margin-top: 4rem;
}

.footer-text {
  color: #444;
  font-size: 0.75rem;
}

.designer-signature {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.1rem;
}

.signature-ram { color: #fff; }
.signature-design { color: var(--accent-orange); }

/* Responsive */
@media (max-width: 768px) {
  .games-grid { grid-template-columns: 1fr; }
  .game-card.full-width { max-width: 100%; }
  .game-preview { height: 250px; }
}