/* Variables raíz */
:root {
	--Bl-svg: white;
	--Bl-background-nav: rgba(0, 0, 0, 0.863);
	--Bl-border-nav: rgb(119, 119, 119);
	--Bl-shadow-nav: rgb(59, 2, 42);
	--Bl-background-title: rgba(0, 0, 0, 0.473);
	--Bl-border-title: rgb(83, 4, 50);
	--Bl-shadow-title: rgb(2, 0, 0);
	--Bl-color-title: rgb(255, 255, 255);
}

/* Palabras reservadas */
body {
	background-color: rgba(0, 0, 0, 0.999);
	color: var(--Bl-svg);
	font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
	overflow-x: hidden;
	overflow-y: auto;
}

button {
	color: white;
	border-radius: 10px;
	border: ridge black;
	background-color: var(--Bl-background-nav);
	font-size: 16px;
	font-weight: bold;
	user-select: none;
	transition: all 0.3s ease;
}

button:hover {
	transform: scale(1.10);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-align: center;
	user-select: none;
	overflow-x: auto;
}

h4 {
	font-family: Verdana, Geneva, Tahoma, sans-serif;
	font-size: x-large;
}

a {
	color: whitesmoke;
}

a:hover,
button:hover {
	color: lightblue;
	text-decoration: none;
	transform: scale(1.15);
}

nav {
	display: flex;
	justify-content: right;
	position: sticky;
	top: 2%;
	height: 65px;
	min-width: fit-content;
	max-width: fit-content;
	margin-left: -5px;
	border: 1px solid var(--Bl-border-nav);
	border-radius: 25px;
	background-color: var(--Bl-background-nav);
	box-shadow: 0 0 10px var(--Bl-shadow-nav);
	z-index: 200;
	transition: all 0.5s ease;
}

nav:hover {
	background-color: black;
	box-shadow: 2px 2px 10px purple;
}

nav a {
	width: 90%;
	height: 90%;
	border-radius: 30px;
	transition: transform 0.3s ease;
}

nav a img {
	scale: 0.8;
	width: 100%;
	height: 100%;
}

nav a:hover {
	transform: scale(1.2);
	z-index: 2;
}

input[type=text],
input[type=number] {
	font-weight: bold;
	border: 2px outset purple;
	border-radius: 10px;
	user-select: none;
	margin: 5px 5px 5px 5px;
	color: rgb(255, 255, 255);
	background-color: black;
	transition: box-shadow 0.3s ease;
}

input[type=text]:hover,
input[type=number]:hover {
	box-shadow: 2px 2px 10px purple;
}

li img {
	width: 100%;
	height: 100%;
}

li:hover .add-button,
li:hover .remove-button,
li:hover .regalo-button {
	display: block;
}

ul {
	list-style-type: none;
	display: flex;
	flex-flow: row wrap;
	gap: 20px 10px;
	justify-content: center;
	align-content: center;
	padding: 0px;
}

ul li {
	box-sizing: border-box;
	width: 300px;
	height: 250px;
	background-size: cover;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgb(128, 3, 128) 90%);
	border-radius: 30px;
	transition: box-shadow 0.5s ease, transform 1s ease, filter 0.5s ease;
	line-height: 1.7rem;
}

ul li:hover {
	box-shadow: 2px 2px 10px purple;
	transform: scale(1.02);
	filter: brightness(1.3);
}

ul img {
	opacity: 1;
	border-radius: 30px;
	box-shadow: inset 0 0 30px black;
  	transition: opacity 0.5s ease;
}

/* Clases */

/* Botones */
.add-button,
.remove-button,
.regalo-button {
	display: none;
	z-index: 100;
	position: absolute;
	padding-right: 9%;
	top: 45%;
	left: 40%;
	width: 35px;
	height: 35px;
	border-radius: 30px;
}

body:not(.vista-tradicional) #resultados .juegosNuevos .remove-button,body:not(.vista-tradicional) #resultados .juegosActualizados .remove-button{
	padding-right: 9.5%;
}

.cajaRegalos li:hover .remove-button{
	display: block;
	top: 62%;
}

.add-button:hover {
	box-shadow: 2px 2px 10px blue;
}

.remove-button:hover {
	box-shadow: 2px 2px 10px red;
}

.regalo-button:hover {
	box-shadow: 2px 2px 10px gold;
}

.regalo-button {
	top: 62%;
}

.botonElementos {
	position: relative;
	top: -5px;
	color: white;
	display: flex;
	margin: 0 auto;
	margin-bottom: 5px;
	border: 2px outset purple;
	border-radius: 0px;
	box-shadow: 2px 2px 10px black;
	background-color: var(--Bl-background-nav);
	cursor: pointer;
}

.botonElementos:hover {
	box-shadow: 2px 2px 10px purple;
}

.BotonBolaRoja {
	display: inline-block;
	background-color: red;
	box-sizing: border-box;
	border: solid black;
	border-radius: 20px;
	width: 35px;
	height: 30px;
	transition: background-color 0.2s ease;
}

.BotonBolaVerde {
	display: inline-block;
	background-color: rgb(0, 255, 0);
	border-radius: 20px;
	width: 35px;
	height: 30px;
	position: relative;
	left: 51%;
}

.bordeBotonBola {
	display: inline-block;
	border: solid 3.5px purple;
	border-radius: 20px;
	width: 70px;
	height: 30px;
	transition: all 0.3s ease;
}

.bordeBotonBola:hover {
	box-shadow: 2px 2px 10px purple;
}

/* Otros */
.Activacion {
	border: solid 8px; 
	border-radius: 40px;
	animation: cambiocolorJActiv 2.5s linear infinite;
}

.busqueda {
	left: 100%;
	margin-top: -18.2%;
	max-width: 45%;
	scale: 0.75;
	position: sticky;
	top: 0%;
	height: fit-content;
	z-index: 200;
	display: none;
	justify-content: flex-end;
	padding-right: 10px;
	pointer-events: none;
}

.busqueda.visible {
	display: flex;
}

.caja {
	user-select: none;
	margin-top: 20px;
	border: 1px solid rgb(83, 4, 50);
	border-radius: 20px;
	box-shadow: 2px 2px 6px purple;
	padding-top: 10px;
	font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.cajaResultados {
	user-select: none;
	display: none;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border: outset 1px blue;
	border-radius: 20px;
	box-shadow: 2px 2px 6px blue;
	font-weight: bolder;
	font-family: sans-serif;
}

.cajaResultados li {
	list-style-type: none;
}

.cajaRegalos {
	display: none;
}

.cajaJuegosDescart {
	user-select: none;
	display: none;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border: outset 1px red;
	border-radius: 20px;
	box-shadow: 2px 2px 6px red;
	font-weight: bolder;
	font-family: sans-serif;
}

.cajaJuegosDescart li {
	list-style-type: none;
	width: 300px;
	height: 250px;
}

.divsBotonesRojoVerde {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: center;
}

.cajaJuegosDescart li:hover,
.cajaResultados li:hover {
	transform: translateY(-5px);
}

.encabezadosjuegos {
	border-top: 1px solid purple;
}

.divFotosEncabezadosConsolas {
	display: flex;
	gap: 8px;
	flex-flow: row nowrap;
	justify-content: center;
}

.fotosEncabezadosConsolas {
	margin-top: 25px;
	width: 50px;
	height: 40px;
}

.juegosNuevos {
	border: solid 8px rgb(171, 9, 171);
}

.juegosNuevos img {
	width: 100%;
	height: 100%;
}

.juegosNuevos,
.juegosActualizados {
	border-radius: 40px;
}

.juegosNuevos p,
.juegosActualizados p {
	display: none;
	color: whitesmoke;
	text-shadow: 2px 2px 2px black;
	font-weight: bolder;
}

.juegosActualizados {
	border: solid 8px rgb(88, 88, 236);
}

.juegosActualizados img {
	width: 100%;
	height: 100%;
}

.titulosTJuegos {
	overflow: hidden;
	user-select: none;
	display: flex;
	justify-content: center;
	margin: 0 auto;
	margin-top: 30px;
	margin-bottom: 30px;
	width: 250px;
	height: 150px;
}

.vista-tradicional li {
	width: auto !important;
	height: auto !important;
	background: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	display: list-item;
	padding: 12px !important;
	transition: transform 0.3s ease !important;
}

.vista-tradicional #juegosDescartados ul,
.vista-tradicional #resultados ul {
	display: block !important;
}

.vista-tradicional .juegosActualizados p {
	color: rgb(88, 88, 236);
}

.vista-tradicional .juegosNuevos p {
	color: rgb(157, 5, 157);
}

.vista-tradicional .juegosNuevos p,
.vista-tradicional .juegosActualizados p {
	display: inline;
}

.vista-tradicional a {
	color: whitesmoke !important;
	text-decoration: none !important;
	transition: all 0.3s ease;
}

.vista-tradicional li a:hover {
	text-decoration: underline solid rgb(197, 113, 233) !important;
	color: rgb(197, 113, 233) !important;
	transform: translateX(-10px);
}

.vista-tradicional .juegosSinEnlace:hover {
	text-decoration: none !important;
	color: white !important;
}

.vista-tradicional .add-button,
.vista-tradicional .remove-button,
.vista-tradicional .regalo-button {
	display: inline-block !important;
	position: relative !important;
	top: 1% !important;
	left: 0 !important;
	width: auto !important;
	height: auto !important;
	margin-left: 10px;
	padding: 5px 10px;
	transition: transform 0.2s ease-in-out;
}

/* Checkboxes de filtros */
.filtros {
	display: block !important;
}

.contenedor-filtros {
	display: flex;
	width: 100%;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	padding: 10px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.contenedor-filtros h4 {
	width: 100%;
	margin: 0 0 10px 0;
}

.filtro-opcion label {
	border: solid purple;
	background-color: inherit;
	display: flex;
	align-items: center;
	cursor: pointer;
	padding: 5px 10px;
	border-radius: 20px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.filtro-opcion label:hover {
	background-color: #2c74b3;
	transform: scale(1.1);
	color: black;
	box-shadow: 2px 2px 10px purple;
}

.filtro-opcion input[type="checkbox"] {
	margin-right: 8px;
	cursor: pointer;
}

.texto-filtro {
	margin-right: 8px;
	font-weight: 500;
	color: whitesmoke;
}

.icono-filtros {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.filtro-opcion label:hover .texto-filtro {
	color: black;
}

/* Estilo cuando está seleccionado */
.filtro-opcion input[type="checkbox"]:checked+.texto-filtro {
	color: rgb(149, 8, 149);
	font-weight: 600;
}

.filtro-opcion input[type="checkbox"]:active+.texto-filtro {
	color: rgb(149, 8, 149);
	font-weight: 600;
}

.filtro-opcion input[type="checkbox"]:checked~.icono-filtros {
	filter: brightness(1.2) saturate(1.5);
}

/* Iconos de conexión y género en los juegos */
.li-iconos-filtros {
	position: absolute;
	top: 5px;
	left: 5px;
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	max-width: 80%;
	z-index: 5;
	transition: opacity 0.3s ease;
}

.li-icono-filtro {
	width: 24px !important;
	height: 24px !important;
	object-fit: contain;
	border-radius: 30%;
	background-color: rgba(0, 0, 0, 0.7);
	padding: 2px;
	box-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.li-icono-filtro:hover {
	opacity: 0.65;
}

.Ofertas>p {
	text-align: justify;
	font-weight: bold;
	padding-left: 2%;
	padding-right: 2%;
}

.vista-tradicional .li-iconos-filtros {
	position: relative;
	top: auto;
	left: auto;
	display: inline-flex;
	margin-left: 5px;
	vertical-align: middle;
}

ul:not(.vista-tradicional) li {
	position: relative;
}

ul:not(.vista-tradicional) li img {
	position: relative;
	z-index: 5;
}

ul:not(.vista-tradicional) li:hover .li-iconos-filtros {
	opacity: 1 !important;
	transform: none !important;
}

/* ID's */

/* Botones */
#botonArriba {
	height: 50px;
	width: 50px;
	border: solid 2px black;
	border-radius: 40px;
	box-shadow: 2px 2px 20px black;
	background-position: center;
	background-image: url("../img/flecha-correcta.webp");
	background-repeat: no-repeat;
	background-size: cover;
	position: fixed;
	display: none;
	bottom: 0%;
	right: 1%;
	transition: box-shadow 0.2s ease, transform 0.5s ease;
	z-index: 500;
}

#botonArriba a {
	display: block;
	width: 100%;
	height: 100%;
}

#botonArriba:hover {
	box-shadow: 2px 2px 10px purple;
	border-color: purple;
	transform: scale(1.15);
}

#botonEliminarTodo:hover {
	transform: scale(1.05);
	color: red;
}

#botonAgregarTodo:hover {
	color: blue;
}

#buscar .botonesBusqueda {
	display: none;
	padding: 10px;
	font-size: 1rem;
	border: none;
	border-radius: 25px;
	background-color: var(--Bl-background-nav);
	color: white;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

#buscar .botonesBusqueda:hover {
	background-color: rgb(166, 11, 180);
	transform: scale(1.1);
}

/* Mostrar el botón de borrar cuando el input tiene contenido */
#buscar input:not(:placeholder-shown)+.botonesBusqueda {
	display: inline-block;
}

#botonOcultarBusqueda {
	height: 100%;
	justify-content: center;
	border-radius: 20px;
	background-color: var(--Bl-background-nav);
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

#botonOcultarBusqueda:hover {
	background-color: rgb(166, 11, 180);
	transform: scale(1.05);
}

#botonEnviarWhatsapp {
	color: white;
	display: flex;
	margin: 0 auto;
	margin-bottom: 5px;
	border: 2px outset purple;
	border-radius: 0px;
	background-color: var(--Bl-background-nav);
	cursor: pointer;
}

#botonEnviarWhatsapp:hover {
	color: rgb(49, 238, 2);
	transform: scale(1.05);
	box-shadow: 2px 2px 10px purple;
}

#botonMostrarInfoJActiv {
	position: relative;
	top: 21px;
	width: 30px;
	height: 30px;
	color: white;
	z-index: 10;
	border: none;
	cursor: pointer;
	transform: none;
}

/* Encabezados de juegos */
#amongus h4 {
	color: rgb(4, 255, 0);
}

#dutyimg {
	width: 190px;
	height: 200px;
}

#duty h4 {
	color: rgb(227, 153, 15);
}

#doki h4 {
	color: rgb(235, 102, 124);
}

#FNAF h4 {
	color: brown;
}

#fnf h4 {
	color: lightcyan;
}

#monster h4 {
	color: #c0bfbd;
}

#mortal h4 {
	color: rgba(203, 70, 3, 0.818)
}

#naruto h4 {
	color: rgb(255, 180, 7);
}

#pokemon h4 {
	color: rgb(195, 248, 2);
}

#sonic h4 {
	color: rgba(64, 64, 244, 0.986);
}

#undertale h4 {
	color: lightcyan;
}

#worms h4 {
	color: rgba(242, 234, 124, 0.936);
}

#yugio h4 {
	color: rgb(218, 54, 54);
}

/* Otros */
#banner {
	width: 100%;
	user-select: none;
	pointer-events: none;
}

#buscar {
	position: relative;
	right: -9vw;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	max-width: 300px;
	padding: 10px;
	box-sizing: border-box;
	transition: all 0.5s ease;
	background-color: var(--Bl-background-nav);
	border: 1px solid var(--Bl-border-nav);
	border-radius: 25px;
	box-shadow: 0 0 10px var(--Bl-shadow-nav);
	pointer-events: auto;
}

#buscar:hover {
	background-color: black;
}

/* Contenedor de cada campo de búsqueda */
#buscar>div {
	display: flex;
	align-items: center;
	gap: 5px;
	width: 100%;
}

#buscar input[type="text"],
#buscar input[type="number"] {
	flex-grow: 1;
	width: 100%;
	padding: 10px;
	font-size: 1rem;
	border: 2px solid var(--Bl-border-nav);
	border-radius: 10px;
	background-color: black;
	box-shadow: 2px 2px 10px black;
	transition: box-shadow 0.3s ease;
}

#buscar input[type="text"] {
	color: white;

}

#buscar input[type="number"] {
	color: rgb(20, 238, 20);
}

#buscar input[type="number"].amarillo {
	transition: color 0.5s ease;
	color: yellow;
}

#buscar input[type="number"].rojo {
	transition: color 0.5s ease;
	color: red;
}

#buscar input[type="text"]:hover,
#buscar input[type="number"]:hover,
#buscar input[type="text"]:focus,
#buscar input[type="number"]:focus {
	box-shadow: 2px 2px 10px purple;
	outline: none;
}

#cajaNoHayResultados {
	display: none;
	text-align: center;
	padding-bottom: 3px;
}

#calculoPrecio,
#encabezadoResultados,
#encabezadoDescartados,
#encabezadoRegalos {
	text-align: center;
	margin: 20px auto;
	padding: 15px;
	font-size: 1.4em;
	font-weight: bold;
	color: white;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	width: 80%;
}

#contenidoInfoJActiv {
	display: none;
}

#divHeaderInfoJActiv {
	cursor: pointer;
	display: flex;
	flex-flow: row nowrap;
	justify-content: center;
	gap: -1%;
	transition: transform 0.3s ease;
}

#divHeaderInfoJActiv:hover {
	transform: scale(1.08);
}

#divInfoJActiv {
	word-spacing: 0.7px;
	margin: 10px;
	margin-bottom: 15px;
	text-align: justify;
	border: 1px solid var(--Bl-border-title);
	border-radius: 20px;
	padding: 13px;
	animation: cambiocolorJActiv 2.5s linear infinite;
}

#divInfoJActiv.contVisible #contenidoInfoJActiv {
	display: block;
}

#divInfoJActiv.contVisible #botonMostrarInfoJActiv::after {
	content: "▼";
}

#divInfoJActiv:not(.contVisible) #botonMostrarInfoJActiv::after {
	content: "▶";
}

#divInfoJActiv h2,
h3 {
	font-weight: 100;
}

#divInfoJActiv a {
	transition: all 0.3s ease;
	display: block;
	text-decoration: none;
}

#divInfoJActiv a:hover {
	color: rgb(157, 5, 157) !important;
	text-decoration: underline !important;
	text-decoration-color: rgb(157, 5, 157) !important;
	transform: translateX(-5px);
}

#divLupa {
	left: 100%;
	top: 2%;
	margin-top: -8%;
	position: sticky;
	height: 55px;
	max-width: fit-content;
	padding: 8px;
	box-sizing: border-box;
	border: 1px solid var(--Bl-border-nav);
	border-radius: 40px;
	background-color: var(--Bl-background-nav);
	box-shadow: 0 0 10px var(--Bl-shadow-nav);
	z-index: 200;
	transition: all 0.5s ease;
	cursor: pointer;
}

#divLupa:hover {
	transform: scale(1.1);
	box-shadow: 2px 2px 10px purple;
}

#EncabezadoJnewAct.mostrar {
	display: block !important;
}

#lupa {
	width: 100%;
	height: 100%;
}

#texto {
	display: flex;
	justify-content: center;
}

#Titulo {
	width: 100%;
	height: 40px;
	padding-top: 10px;
	scale: 0.9;
	border: 1px solid var(--Bl-border-title);
	border-radius: 20px;
	background-color: var(--Bl-background-title);
	box-shadow: inset 0 0 30px var(--Bl-shadow-title);
	text-align: center;
	font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-seri;
	font-size: 20px;
	color: var(--Bl-color-title);
	text-shadow: 0 0 10px black;
}

#EncabezadoJnewAct {
	display: none;
	margin-top: 1%;
	font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#mando {
	position: relative;
	bottom: 8%;
	left: 6%;
}

#menuDesplegable {
	opacity: 0.6;
	cursor: pointer;
	position: fixed;
	bottom: 8px;
	left: -15px;
	display: flex;
	height: 80px;
	max-width: 75%;
	margin-top: 20px;
	margin-left: 20px;
	border: 1px solid var(--Bl-border-nav);
	border-radius: 50px;
	background-color: var(--Bl-background-nav);
	scale: 0.9;
	user-select: none;
	z-index: 550;
	transition: all 0.5s ease;
}

#menuDesplegable:hover {
	opacity: 1;
	box-shadow: 2px 2px 10px purple;
	transform: scale(1.05);
}

#menuDesplegable a {
	border-radius: 30px;
	transition: transform 1s;
}

#menuDesplegable a:hover {
	transform: scale(1.1);
	z-index: 2;
}

#menuDesplegado {
	display: none;
	cursor: default;
	overflow-y: auto;
	overflow-x: hidden;
	border: 1px solid var(--Bl-border-nav);
	background-color: var(--Bl-background-nav);
	box-shadow: 0 0 10px var(--Bl-shadow-nav);
	width: auto;
}

#menuDesplegado img {
	margin-left: 5px;
	border-radius: 30px;
	width: 70px;
	height: 68px;
	transition: transform 1s;
}

#menuDesplegado img:hover {
	transform: scale(1.1);
	background-color: rgb(166, 11, 180);
	z-index: 2;
}

/* Animaciones */
@keyframes cambiocolorJActiv {
	0% {
		border-color: red
	}

	33% {
		border-color: rgb(26, 102, 123)
	}

	86% {
		border-color: #FAAD00
	}

	100% {
		border-color: red
	}
}