.games-section {
  padding: 80px 20px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.games-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.games-badge {
  color: #c77dff;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(199, 125, 255, 0.8);
  display: inline-block;
  margin-bottom: 15px;
  font-size: 14px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.games-header h2 {
  font-size: 48px;
  color: #ffffff;
  margin: 15px 0 20px 0;
  font-family: var(--title-font);
  text-shadow: 0 0 20px rgba(180, 0, 255, 0.5);
  line-height: 1.2;
  font-weight: 700;
}

.games-header p {
  color: #e9d9ff;
  font-size: 18px;
  line-height: 1.6;
}

/* ===================================
   GRID DE JUEGOS
   =================================== */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  margin-top: 40px;
}

/* ===================================
   TARJETA DE JUEGO
   =================================== */

.game-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(181, 23, 255, 0.3);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 0 25px rgba(181, 23, 255, 0.15);
  animation: fadeInScale 0.6s ease-out both;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }
.game-card:nth-child(7) { animation-delay: 0.7s; }
.game-card:nth-child(8) { animation-delay: 0.8s; }
.game-card:nth-child(9) { animation-delay: 0.9s; }
.game-card:nth-child(10) { animation-delay: 1s; }

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 45px rgba(181, 23, 255, 0.4);
  border-color: rgba(181, 23, 255, 0.6);
}

/* ===================================
   IMAGEN DEL JUEGO
   =================================== */

.game-image {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 250px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s;
}

.game-card:hover .game-image img {
  transform: scale(1.1);
}

/* Overlay */
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 0, 26, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.game-card:hover .game-overlay {
  opacity: 1;
}

/* Botón ver más */
.btn-view {
  padding: 12px 25px;
  background: linear-gradient(90deg, #9b5de5, #b517ff);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(181, 23, 255, 0.5);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--button-font);
}

.btn-view:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(181, 23, 255, 0.8);
}

/* ===================================
   INFO DEL JUEGO
   =================================== */

.game-info {
  padding: 25px;
}

.game-info h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(181, 23, 255, 0.3);
}

.game-info p {
  color: #cfaaff;
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 15px;
}

/* ===================================
   LINKS DE REDES SOCIALES
   =================================== */

.game-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
}

.game-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 18px;
  border: 2px solid;
}

/* YouTube - Rojo */
.game-link.youtube {
  background: rgba(255, 0, 0, 0.1);
  border-color: rgba(255, 0, 0, 0.4);
  color: #ff0000;
}

.game-link.youtube:hover {
  background: rgba(255, 0, 0, 0.3);
  border-color: #ff0000;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* Instagram - Gradiente */
.game-link.instagram {
  background: rgba(225, 48, 108, 0.1);
  border-color: rgba(225, 48, 108, 0.4);
  color: #e1306c;
}

.game-link.instagram:hover {
  background: rgba(225, 48, 108, 0.3);
  border-color: #e1306c;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

/* Twitter/X - Negro/Blanco */
.game-link.twitter {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.game-link.twitter:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

/* Descarga - Morado */
.game-link.download {
  background: rgba(181, 23, 255, 0.2);
  border-color: rgba(181, 23, 255, 0.5);
  color: #b517ff;
}

.game-link.download:hover {
  background: rgba(181, 23, 255, 0.4);
  border-color: #b517ff;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(181, 23, 255, 0.6);
}

/* ===================================
   MODAL
   =================================== */

.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.game-modal.active {
  display: flex;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(181, 23, 255, 0.8);
  border: 2px solid #b517ff;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(181, 23, 255, 0.6);
  z-index: 10001;
}

.modal-close:hover {
  background: #b517ff;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 30px rgba(181, 23, 255, 1);
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(181, 23, 255, 0.6);
  border: 3px solid rgba(181, 23, 255, 0.5);
  object-fit: contain;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  .games-section {
    padding: 60px 15px;
  }

  .games-header h2 {
    font-size: 32px;
  }

  .games-header p {
    font-size: 16px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .game-image {
    min-height: 220px;
  }

  .modal-close {
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .modal-content img {
    max-height: 70vh;
  }
}