/* Estilos exclusivos de la portada */
.page-home .home-section {
  min-width: 0;
  margin: 0 0 28px;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid #e1e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 14px rgba(19, 31, 43, 0.08);
}

.page-home .home-section__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid #dce2e7;
}

.page-home .home-section__heading h1,
.page-home .home-section__heading h2 {
  margin: 0;
  color: #263645;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.25;
}

.page-home .home-section__heading p {
  margin: 5px 0 0;
  color: #687682;
}

.page-home .home-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.page-home .home-game-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e1e7eb;
  border-radius: 10px;
  background: #fff;
  color: #263645;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.page-home .home-game-card:hover,
.page-home .home-game-card:focus-visible {
  transform: translateY(-2px);
  border-color: #cbd5dc;
  box-shadow: 0 6px 18px rgba(19, 31, 43, .12);
  outline: none;
}

.page-home .home-game-card__image {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  background: #f3f6f8;
}

.page-home .home-game-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-home .home-game-card__title {
  padding: 8px 10px;
  color: #344553;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

.page-home .home-section__action {
  display: flex;
  justify-content: center;
  margin: 20px 0 0;
}

.page-home .home-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid #d5dde3;
  border-radius: 7px;
  background: #f8fafb;
  color: #344553;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.page-home .home-button:hover,
.page-home .home-button:focus-visible {
  border-color: #c52922;
  background: #fff;
  color: #c52922;
  text-decoration: none;
}

.page-home .home-empty {
  margin: 0;
  color: #687682;
}

@media (max-width: 960px) {
  .page-home .home-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page-home .home-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .page-home .home-section {
    margin-bottom: 16px;
    padding: 16px;
  }
}
