:root {
	--primary-color: #2e7d32;
	--primary-light: #60ad5e;
	--primary-dark: #005005;
	--accent-color: #ff8f00;
	--text-color: #333;
	--bg-color: #fff;
	--light-bg: #f9f7f2;
	--font-main: 'Georgia', serif;
	--font-heading: 'Playfair Display', serif;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&amp;display=swap'); 
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');


.hide {
	display: none !important;
}

.rounded-circle {
	border-radius: 50%;
}



.mobile-only {
	display: none !important;
}

.desktop-only {}

/* 📌 Modo Móvil */
@media (max-width: 600px) {
	.mobile-only {
		display: inherit;
	}

	.desktop-only {
		display: none !important;
	}
}





.app-credits {
	display: inline-flex;
	;
	align-content: center;
	justify-content: space-evenly;
	flex-direction: row;
	align-items: center;

	background-color: #333;
	padding: 10px;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	font-size: 16px;
	font-weight: 600;
	color: #ededed;

	cursor: pointer;
}

.app-credits-img {
	width: 20px;
	height: 20px;
}

.app-credits-num {}


/* Elemento editable original */
[data-type="editable"] {
	position: relative;
	cursor: pointer;
	padding: 0.5rem 1.75rem;
	border-radius: 8px;
	display: inline-block;
	transition: background-color 0.2s ease;
}

[data-type="editable"]:hover {
	background-color: #c2c2c2;
}

[data-type="editable"]::after {
	content: '\f303';
	/* Unicode del ícono "fa-pen" */
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	right: 0.8em;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.6em;
	opacity: 0.5;
	transition: opacity 0.2s;
	pointer-events: none;
	color: #999;
}

[data-type="editable"]:hover::after {
	opacity: 1;
	color: #555;
}

/* Contenedor del input editable */
.editable-container {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background-color: #c7cf98;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	max-width: 100%;
}

.editable-container input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 1rem;
	padding: 0.5rem;
	border-radius: 6px;
	background-color: #f9f9f9;
}

.editable-container input:focus {
	background-color: #fff;
	box-shadow: 0 0 0 2px #007bff33;
}

.editable-icon {
	color: #888;
	font-size: 1.2rem;
	margin-right: 0.3rem;
}

.editable-buttons {
	display: flex;
	gap: 0.3rem;
}

.editable-buttons button {
	background-color: transparent;
	border: none;
	cursor: pointer;
	font-size: 1.1rem;
	padding: 0.3rem;
	border-radius: 6px;
	transition: background-color 0.2s ease;
}

.editable-buttons button:hover {
	background-color: #eee;
}

.editable-buttons .confirm {
	color: #28a745;
}

.editable-buttons .cancel {
	color: #dc3545;
}




/* Overlay oscuro que cubre toda la pantalla */
.loading-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	/* negro translúcido */
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	flex-direction: column;
	color: white;
	font-family: 'Segoe UI', sans-serif;
}

/* Ícono de cocina */
.loading-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}

/* Spinner animado */
.loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #ffffff33;
	border-top: 4px solid #fff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.loading-text {
	margin-top: 1rem;
	font-size: 1.2rem;
	opacity: 0.8;
}

/* Toast notifications */
.toast-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 10000;
}

.toast {
	background-color: #333;
	color: white;
	padding: 1rem 1.5rem;
	border-radius: 4px;
	margin-top: 0.5rem;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	animation: slideIn 0.3s ease forwards;
}

.toast.success {
	background-color: #2e856e;
}

.toast.error {
	background-color: #e74c3c;
}

@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes slideOut {
	from {
		transform: translateX(0);
		opacity: 1;
	}

	to {
		transform: translateX(100%);
		opacity: 0;
	}
}

.toast.hiding {
	animation: slideOut 0.3s ease forwards;
}