/* =========================
   RESET GENERAL
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #111;
  color: #fff;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* =========================
   HEADER
========================= */
header {
  background: #181818;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1e90ff;
  text-shadow: 0 0 8px rgba(30, 144, 255, 0.7);
  letter-spacing: 1px;
}

.search-bar input {
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  outline: none;
  width: 260px;
  max-width: 100%;
}

/* =========================
   SECCIONES
========================= */
.games-section {
  padding: 30px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* =========================
   GRID DE JUEGOS
========================= */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

/* =========================
   TARJETAS
========================= */
.game-card {
  background: #1c1c1c;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
  transform: translateY(-5px);
  background: #222;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.game-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.game-title {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.4;
}

/* =========================
   REDES SOCIALES
========================= */
.social-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 25px 20px;
  flex-wrap: wrap;
}

.social-btn {
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  display: inline-block;
}

.social-btn:hover {
  transform: scale(1.08);
}

.instagram {
  background: #E1306C;
}

.youtube {
  background: #FF0000;
}

.tiktok {
  background: #000;
  border: 1px solid #333;
}

/* =========================
   PÁGINA DE JUEGO
========================= */
.game-view {
  padding: 40px 20px;
  text-align: center;
}

.game-cover {
  width: 350px;
  max-width: 100%;
  border-radius: 14px;
  margin-bottom: 20px;
}

.desc {
  max-width: 800px;
  margin: 0 auto 25px;
  line-height: 1.7;
  color: #ccc;
  font-size: 1rem;
}

.game-frame {
  width: 100%;
  height: 85vh;
  border: none;
  border-radius: 12px;
  background: #000;
}

/* =========================
   FOOTER
========================= */
footer {
  margin-top: 40px;
  padding: 20px;
  background: #181818;
  text-align: center;
  color: #aaa;
  font-size: 0.95rem;
}

/* =========================
   TABLETS
========================= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .logo {
    font-size: 2rem;
  }

  .search-bar {
    width: 100%;
  }

  .search-bar input {
    width: 100%;
  }

  .games-section {
    padding: 20px;
  }

  .section-title {
    font-size: 1.6rem;
    text-align: center;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
  }

  .game-frame {
    height: 70vh;
  }
}

/* =========================
   TELÉFONOS
========================= */
@media (max-width: 480px) {
  .logo {
    font-size: 1.7rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    padding: 12px;
  }

  .game-title {
    font-size: 0.95rem;
  }

  .social-container {
    flex-direction: column;
    align-items: center;
    margin: 20px;
  }

  .social-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .game-view {
    padding: 25px 15px;
  }

  .game-cover {
    width: 100%;
  }

  .desc {
    font-size: 0.95rem;
  }

  .game-frame {
    height: 60vh;
  }

  footer {
    font-size: 0.85rem;
    padding: 15px;
  }

  .ads-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px auto;
  flex-wrap: wrap;
  gap: 20px;
}
}