/* --- SECCIÓN FAVORITOS --- */
.favorites-grid {
  background: linear-gradient(180deg, #0a0a0a 0%, var(--gr-black) 100%);
  padding: 40px 0;
  border-bottom: 1px solid var(--gr-border);
}

/* --- BUSCADOR --- */
.search-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto 50px;
}

.search-input-gr {
  background: var(--gr-card-bg);
  border: 1px solid var(--gr-border);
  color: white;
  border-radius: 100px;
  padding: 1.2rem 1.5rem 1.2rem 4rem;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s;
}

.search-input-gr:focus {
  background: #1a1a1a;
  border-color: var(--gr-accent);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
  outline: none;
}

.search-icon-gr {
  position: absolute;
  left: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gr-muted);
}

/* --- FILTROS --- */
.filter-sidebar {
  background: var(--gr-card-bg);
  border: 1px solid var(--gr-border);
  border-radius: 20px;
  padding: 25px;
  position: sticky;
  top: 100px;
}

.filter-title {
  font-weight: 900;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gr-muted);
  margin-bottom: 20px;
  display: block;
}

.btn-apply {
  background: white;
  color: black;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  margin-top: 20px;
  transition: transform 0.2s;
}

.btn-apply:hover {
  transform: scale(1.02);
  background: #e0e0e0;
}

/* --- TARJETAS DE VIDEOJUEGOS --- */
.game-card-visual {
  background: var(--gr-card-bg);
  border: 1px solid var(--gr-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
}

.game-card-visual:hover {
  transform: translateY(-10px);
  border-color: var(--gr-accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.game-img-container {
  height: 220px;
  background: #222;
  position: relative;
  overflow: hidden;
}

.game-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.game-card-visual:hover .game-img-container img {
  transform: scale(1.1);
}

.game-rating {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-info {
  padding: 20px;
}

.game-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gr-muted);
  margin-bottom: 5px;
  display: block;
}

.game-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.game-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gr-border);
  padding-top: 15px;
}
