#gallery {
	opacity: 0;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.10);
	backdrop-filter: blur(10px);
	z-index: 201;
	display: flex;
	justify-content: center;
	align-items: center;
}

#gallery-content {
	animation: fadeIn 0.3s ease-in forwards;
	background-color: #FFFFFF;
    height: 65%; 
    width: 60%; 
    max-width: 850px; 
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
	color: #333333;
	opacity: 0;
	position: relative;
}

.gallery-close-btn {
	position: absolute;
	top: 15px;
	left: 15px;
	background: transparent; 
	color: #FFFFFF;
	border: none; 
	border-radius: 0;
	width: 50px;
	height: 50px;
	font-size: 0;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background-image: url('../img/PF.png');
	background-size: contain; 
	background-repeat: no-repeat;
	background-position: center;
	padding: 0;
}

.gallery-close-btn:hover {
	transform: scale(1.15);
	opacity: 0.8;
}

#gallery-header {
	font-size: 36px;
	background: transparent;
	color: #333333;
	text-align: center;
	padding: 25px 0 10px 0;
	font-family: "Fredoka", sans-serif;
	font-weight: bold;
}

.gallery-tabs {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 0 20px 20px 20px;
	position: relative;
	padding-left: 50px;
}

.gallery-tab {
	background: #E0E0E0;
	color: #333333;
	border: none;
	border-radius: 10px;
	padding: 12px 30px;
	font-size: 16px;
	font-weight: bold;
	font-family: "Fredoka", sans-serif;
	cursor: pointer;
	transition: all 0.3s ease;
}

.gallery-tab:hover {
	background: #FFD700;
	color: #000000;
	transform: translateY(-2px);
}

.gallery-tab.active {
	background: #FFD700;
	color: #000000;
	box-shadow: 0 4px 10px rgba(255, 215, 0, 0.5);
}

.gallery-search {
	position: absolute;
	left: 38px;
	top: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	z-index: 5;
}

.gallery-search input {
	width: 150px;
	padding: 10px 15px;
	font-size: 14px;
	font-weight: bold;
	font-family: "Fredoka", sans-serif;
	border: 3px solid #33333369;
	border-radius: 12px;
	outline: none;
	transition: all 0.3s ease;
	background: linear-gradient(135deg, #FFFFFF, #F5F5F5);
	color: #333333;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.gallery-search input:focus {
	border-color: #0000009c;
	box-shadow: 0 0 12px rgba(252, 252, 252, 0.6);
	background: linear-gradient(135deg, #FFFEF0, #FFFACD);
}

.gallery-search input::placeholder {
	color: #666666;
	font-weight: normal;
}
#clear-search {
	width: 28px; 
	height: 28px; 
	background: linear-gradient(135deg, #FF6B6B, #EE5A6F);
	border: 2px solid #D63447;
	border-radius: 8px; 
	color: #FFFFFF;
	font-size: 14px; 
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	display: none;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); 
	flex-shrink: 0;
}

#clear-search:hover {
	background: linear-gradient(135deg, #FF5252, #D32F2F);
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4);
}

#clear-search:active {
	transform: scale(0.95);
}
#gallery-body {
	display: flex;
	align-items: flex-start; 
	padding: 10px 20px; 
	position: relative;
	flex: 1;
	min-height: 0;
}

#skinsUL {
	padding: 10px;
	margin: 0;
	overflow-y: auto;
	overflow-x: hidden;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	width: 100%;
	max-height: 100%;
	scrollbar-width: auto;
	scrollbar-color: #FFD700 #E0E0E0;
	align-content: start; 
}

#skinsUL::-webkit-scrollbar {
	width: 26px !important;
	height: 26px !important;
}

#skinsUL::-webkit-scrollbar-track {
	background: #E0E0E0 !important;
	border-radius: 15px !important;
	margin: 8px 0 !important;
}

#skinsUL::-webkit-scrollbar-thumb {
	background-color: #FFD700 !important;
	border-radius: 15px !important;
	border: 4px solid #E0E0E0 !important;
	min-height: 120px !important;
}

#skinsUL::-webkit-scrollbar-thumb:hover {
	background-color: #FFC700 !important;
	border: 4px solid #CCCCCC !important;
}

.skin {
	list-style-type: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #F5F5F5;
	border: 3px solid #E0E0E0;
	border-radius: 15px;
	padding: 15px 15px 10px 15px;
	transition: all 0.3s ease;
	cursor: pointer;
	position: relative;
	margin-bottom: 55px;
}

.skin:hover {
	transform: translateY(-8px);
	border-color: #FFD700;
	box-shadow: 0 4px 10px rgba(255, 193, 7, 0.25);
}

.skinName {
	margin: 0 0 12px 0;
	text-align: center;
	font-size: 14px;
	font-weight: bold;
	font-family: "Fredoka", sans-serif;
	color: #000000;
	background: linear-gradient(135deg, #FFFFFF, #F5F5F5);
	padding: 8px 12px;
	width: 100%;
	border-radius: 10px;
	border: 3px solid #33333346;
}

.circular {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: #FFFFFF;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	border: 4px solid #FFFFFF;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition: all 0.3s ease;
}

.circular:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.skin-use-btn {
	position: absolute;
	bottom: -48px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, #FFD700, #FFA500);
	border: none;
	outline: none;
	border-radius: 8px;
	width: calc(100% - 10px);
	height: 40px;
	font-size: 15px;
	font-weight: bold;
	color: #000000;
	font-family: "Fredoka", sans-serif;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
}

.skin-use-btn:hover {
	background: linear-gradient(135deg, #FFC700, #FF8C00);
	transform: translateX(-50%) translateY(-2px);
	box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
}


#useSkin:hover {
	background: linear-gradient(135deg, #FFC700, #FF8C00);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(255, 215, 0, 0.6);
}



.gallery-nav-arrow:hover {
	background: rgba(0, 255, 42, 0.9);
	transform: scale(1.15);
}

.gallery-nav-arrow.left {
	margin-right: 15px;
}

.gallery-nav-arrow.right {
	margin-left: 15px;
}

/* Animaciones */
@keyframes fadeIn {
	0% {
		opacity: 0;
		transform: scale(0.95);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}