body {
  font-family: Georgia, serif ;
  margin: 0;
  background: #f5f5f5;
  color: #333;
}

header {
  background: #2c3e50;
  color: white;
  padding: 2rem;
  text-align: center;
}

section {
  background:transparent;
  padding: 0.5rem 1.5rem;
  max-width: 1000px;
  margin: auto;
}

section + section {
  margin-top: -1rem;
}

h2 {
  border-bottom: 2px solid #ddd;
}

/* Cards eventos */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.about p {
  line-height: 1.5;
}
.card {
  background: white;
  padding: 0rem 1rem 1rem ;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Juegos */
.games-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Chips */
.game {
  text-decoration: none;
  color: white;
  padding: 0.4rem 0.7rem;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.game:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Categorías */
.logic { background: #8e44ad; }
.strategy { background: #27ae60; }
.party { background: #e67e22; }
.coop { background: #c0392b; }
.cardgame { background: #2980b9; }
.mystery { background: #2c3e50; }

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background: #2c3e50;
  color: white;
  margin-top: 2rem;
}

/* Páginas individuales de juegos */
.back-link {
  color: white;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
  opacity: 0.85;
}
.back-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.game-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.game-info-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #eee;
}
.game-info-list li:last-child {
  border-bottom: none;
}

.more-info-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.rules-list {
  line-height: 1.6;
  padding-left: 1.3rem;
}
.rules-list li {
  margin-bottom: 0.5rem;
}
