/* ===== GLOBAL RESET ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* ===== BODY ===== */
body {
	font-family: Arial, sans-serif;
	background: linear-gradient(-45deg, #ff9a9e, #fad0c4, #fbc2eb, #a6c1ee, #84fab0, #8fd3f4);
	background-size: 800% 800%;
	animation: gradientMove 20s ease infinite;
	min-height: 100vh;
	overflow-x: hidden;
	position: relative;
}

@keyframes gradientMove {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* ===== CONFETTI ===== */
.confetti {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: hidden;
	z-index: -1;
}

.confetti span {
	position: absolute;
	display: block;
	width: 8px;
	height: 8px;
	background: red;
	opacity: 0.8;
	border-radius: 2px;
	animation-name: confettiFall;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

@keyframes confettiFall {
	0% {
		transform: translate3d(var(--x-start), -10vh, 0) rotate(0deg);
		opacity: var(--opacity);
	}
	100% {
		transform: translate3d(var(--x-end), 110vh, 0) rotate(var(--rotation));
		opacity: 0;
	}
}

/* ===== HEADER & NAVIGATION ===== */
header {
	background: #0077cc;
	padding: 1rem 2rem;
	color: #ffffff;
	border-bottom: 2px solid #000000;
	position: sticky;
	top: 0;
	z-index: 1000;
}

nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-weight: bold;
	font-size: 1.2rem;
}

.menu {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

nav a {
	color: #ffffff;
	text-decoration: none;
	font-weight: bold;
	transition: text-decoration 0.2s;
}

nav a:hover {
	text-decoration: underline;
}

/* ===== SECTIONS ===== */
section {
	padding: 3rem 2rem;
}

h1, h2 {
	margin-bottom: 1rem;
	color: #ffffff;
	-webkit-text-stroke: 1px black;
}

h3 {
	margin-bottom: 1rem;
	color: #ffffff;
}

.button {
	color: #ffffff;
	border: 2px solid #000000;
	font-weight: bold;
}

ul {
	display: inline-block;
	padding: 1rem 2rem;
	border-radius: 8px;
	color: #ffffff;
	background-color: #0077cc;
	border: 2px solid #000000;
	font-weight: bold;
}

/* ===== ADMIN BAR ===== */
.admin-bar {
	padding: 0.75rem 1rem;
}

.admin-bar button {
	padding: 0.5rem 1rem;
	border-radius: 6px;
	border: none;
	background-color: #0077cc;
	border: 2px solid #000000;
	color: #ffffff;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.admin-bar button:hover {
	background-color: #005fa3;
	transform: translateY(-1px);
}

.admin-bar .muted {
	color: #555;
	font-size: 0.9rem;
	margin-left: auto;
}

/* ===== UPLOADER FORM ===== */
#uploader {
	background-color: #ffffff;
	border: 2px solid #000000;
	border-radius: 8px;
	padding: 1rem 1.5rem;
	margin-bottom: 1rem;
	margin-left: 1rem;
	max-width: 500px;
}

#uploader h2 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.2rem;
	color: #333;
	text-align: center;
}

#uploader input[type="file"],
#uploader input[type="text"],
#uploader select {
	display: block;
	width: 100%;
	margin-bottom: 0.75rem;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	border: 1px solid #bbb;
	background-color: #fff;
	font-size: 1rem;
	transition: border-color 0.2s ease;
}

#uploader input[type="file"]:focus,
#uploader input[type="text"]:focus,
#uploader select:focus {
	border-color: #0077cc;
	outline: none;
}

#uploader label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
	color: #444;
}

#uploader button[type="submit"] {
	background-color: #0077cc;
	color: #fff;
	font-weight: bold;
	padding: 0.6rem 1.2rem;
	border-radius: 6px;
	border: 2px solid #000;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	width: 100%;
}

#uploader button[type="submit"]:hover {
	background-color: #005fa3;
	transform: translateY(-1px);
}

.progress {
	height: 6px;
	background: #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	margin-top: 0.75rem;
}

.progress > div {
	height: 100%;
	width: 0%;
	transition: width 0.2s ease;
	background: #0077cc;
}

/* ===== CONTROLS ===== */
.controls {
	padding: 0.75rem 1rem;
}

.controls label {
	padding: 0.5rem 1rem;
	border-radius: 6px;
	border: none;
	background-color: #0077cc;
	border: 2px solid #000000;
	color: #ffffff;
	font-weight: bold;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.controls select {
	margin-left: 0.5rem;
	padding: 0.35rem 0.5rem;
	border-radius: 6px;
	border: 2px solid #000000;
	font-weight: bold;
	cursor: pointer;
}

/* ===== INFORMATION ===== */
.informacion {
	display: block;
	padding: 1rem 2rem;
	margin: 2rem 0;
	border-radius: 8px;
	color: #ffffff;
	background-color: #0077cc;
	border: 2px solid #000000;
	font-weight: bold;
}

.informacion h2,
.info {
	color: #ffffff;
	-webkit-text-stroke: 0;
}

.Product h2 {
	color: #000000;
	-webkit-text-stroke: 0;
}

/* ===== GRID CARDS ===== */
.Piñata-grid,
.Torta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
}

.Piñata-card,
.Torta-card {
	color: #ffffff;
	background: #0077cc;
	border: 2px solid #000000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	transition: transform 0.2s;
}

.Piñata-card:hover,
.Torta-card:hover {
	transform: scale(1.02);
}

.Piñata-card img,
.Torta-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.Piñata-card .info,
.Torta-card .info {
	padding: 1rem;
}

.Piñata-card h3,
.Torta-card h3 {
	margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
	text-align: center;
	padding: 2rem;
	background: #0077cc;
	border-top: 2px solid #000000;
	font-size: 0.9rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.8);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 2000;
}

.lightbox.active {
	display: flex;
}

.lightbox img {
	max-width: 90%;
	max-height: 80vh;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.lightbox .close-btn {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	font-size: 2rem;
	color: #fff;
	cursor: pointer;
	user-select: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	nav {
		flex-direction: column;
		align-items: flex-start;
	}
	.menu {
		width: 100%;
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 0.75rem;
	}
}
