body:has(.modal-container) {
	overflow: hidden;
}

.modal-background {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0003;
	z-index: 1060;
	opacity: 0;
	animation: fade 0.1s ease-in-out forwards;
	backdrop-filter: blur(1px);
}

.modal-container {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 0.375rem;
	margin: 1rem;
	padding: 1rem;
	width: clamp(340px, 60vw, 520px);
	max-height: calc(100vh - 2rem);
	box-shadow:
		0 0 #0000,
		0 0 #0000,
		0 0 #0000,
		0 0 #0000,
		0 10px 15px -3px var(--tw-shadow-color, #0000001a),
		0 4px 6px -4px var(--tw-shadow-color, #0000001a);

	transform: scale(0);
	opacity: 0;
	animation: fadeIn cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.225s forwards;
}

.modal-container:focus-visible {
	outline: none;
}

.modal-container .modal-titulo {
	font-size: 20px;
	font-weight: 600;
	margin: 0;
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

.modal-container .modal-mensaje {
	font-size: 16px;
	margin: 0;
	margin-bottom: 0.5rem;
}

.modal-container .modal-botones {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 0.5rem;
}

.modal-container .boton-cancelar,
.modal-container .boton-confirmar {
	flex: 1;
	font-size: 16px;
	padding: 0.5rem 1rem;
	line-height: normal;
}

@keyframes fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeIn {
	from {
		transform: scale(0.9);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}
